/*
Theme Name: clinic
Theme URI: 
Description: 歯科クリニックテーマ
Version: 1.0.0
Author: tama
Author URI: 
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 180px;   /* ← 好きなサイズに調整 */
  height: auto;   /* 縦横比を維持 */
}

/* ヘッダー */
.header {
  border-bottom: 1px solid #d5d5d5;
  position: relative;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  align-items: center;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  width: 300px;
}

.logo-area img {
  width: auto;
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  .logo-area img {
    width: 200px;
  }
}


.header-text {
  display: flex;
  font-size: 14px;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .header-text {
    display: none;
  }
}


.header-text div {
  margin-left: 24px;
}

.treatment-time p {
  margin: 0 0 8px;
}

.reserve-area {
  position: relative;
  width: 130px;
}

.reserve-text {
  position: absolute;
  bottom: 40px;
  width: 100%;
  margin: 0 0 8px;
  text-align: center;
}

.reserve-btn {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin: 0;
}


/* ===== ロゴ ===== */
.logo-box {
  margin-right: 32px;
 flex: 0 0 auto;
}

.logo {
  width: 300px;
  height: auto;
}

.logo-text {
  line-height: 1.2;
}

.clinic-name {
  font-size: 14px;
  font-weight: 700;
}

.clinic-sub {
  font-size: 12px;
}

/* ===== ナビ ===== */
.nav-box {
  margin: 0 auto;
}

.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  justify-content: center;
}

.nav-list a {
  position: relative;
  padding: 0 8px;
}

/* 区切り線 */
.nav-list li:not(:last-child) a::after {
  content: "|";
  position: absolute;
  right: -14px;
  color: #ccc;
}

/* ===== 予約エリア ===== */
.reserve-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  /* padding: 8px 16px; */
  border-radius: 4px;
}

.time-box {
  font-size: 12px;
  line-height: 1.6;
}

.time-title {
  font-weight: 700;
}

.reserve-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #28a745;
  color: #fff;
  padding: 6px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;

}

/* タイトル */
.page-title {
  text-align: center;
  padding: 20px 20px;
  font-size: 32px;
  background: #f5f5f5;
}

/* ファーストプレビュー　*/
body {
  margin: 0;
  font-family: "Noto Sans JP", "游ゴシック", sans-serif;
}

.hero {
  position: relative;
  height: 100vh;
  background-image: url("image/img4.webp"); /* 背景画像 */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  display: flex;
  align-items: flex-start;    /* 上 */
  justify-content: flex-start;/* 左 */
  padding: 80px 60px;         /* 余白 */
}

/* 白いレイヤー */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  transform-origin: top left;
  z-index: 1;
}

/* テキスト */
.hero h1 {
  position: relative;
  z-index: 2;
  color: #007bff;
  font-size: 3rem;
  font-weight: bold;
  text-align: left;
  line-height: 1.4;

  /* 白い縁取り */
  text-shadow:
    -2px -2px 0 #fff,
     2px -2px 0 #fff,
    -2px  2px 0 #fff,
     2px  2px 0 #fff;
}

/* コンセプト */
.concept {
  background-image: url("image/img8.webp"); /* 背景画像 */
  background-size: cover;
  background-position: center;
}

.concept-overlay {
  background: rgba(255, 255, 255, 0.75); /* 白の半透明 */
  padding: 80px 20px;
}

.concept-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* タイトル */
.concept-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
}

.concept-title span {
  display: block;
  font-size: 16px;
  color: #1e88e5;
  margin-top: 5px;
}

/* キャッチコピー */
.concept-lead {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
}

/* 本文 */
.concept-text {
  font-size: 16px;
  line-height: 2;
  text-align: left;
}

.page-title + .bg-gray {
  margin-top: 50px;     /* ← ここで空白を作る */
}

.hero + .concept {
  margin-top: 50px;     /* ← ここで空白を作る */
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    padding: 20px 10px;
  }

  .hero h1 {
    font-size: xx-large;
  }

  .concept {
    padding: 60px 15px;
  }

  .concept-overlay {
    padding: 40px 15px;
  }

  .concept-title {
    font-size: 22px;
  }

  .concept-lead {
    font-size: 18px;
  }
  
}

/* 特徴 */
.features {
  background: #f5f5f5;
  padding: 80px 20px;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* タイトル */
.features-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 50px;
}

.features-title span {
  display: block;
  font-size: 16px;
  color: #007bff;
  margin-top: 5px;
}

/* カード横並び */
.features-list {
  display: flex;
  gap: 30px;
}

/* カード */
.feature-card {
  background: #fff;
  width: 100%;
}

/* 画像 */
.feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* 見出し */
.feature-card h3 {
  font-size: 18px;
  font-weight: bold;
  padding: 20px;
  text-align: center;
}

/* テキスト */
.feature-card p {
  font-size: 14px;
  line-height: 1.8;
  padding: 0 20px 25px;
}

.concept + .features {
  margin-top: 50px;     /* ← ここで空白を作る */
}

@media (max-width: 768px) {
  .features-list {
    flex-direction: column;
  }
}

/* 院長挨拶 */
.greeting {
  background: #f5f5f5;
  padding: 80px 20px;
}

.greeting-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* 左：画像 */
.greeting-image img {
  width: 420px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* 右：テキスト */
.greeting-text {
  flex: 1;
}

.greeting-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
}

.greeting-title span {
  display: block;
  font-size: 15px;
  color: #007bff;
  margin-top: 5px;
}

.greeting-text p {
  font-size: 15px;
  line-height: 2;
  color: #333;
}

.features + .greeting {
  margin-top: 50px;     /* ← ここで空白を作る */
}

@media (max-width: 768px) {
  .greeting-inner {
    flex-direction: column;
  }

  .greeting-image img {
    width: 100%;
  }
}

/* アクセス */
.access {
  background: #f5f5f5;
  padding: 80px 20px;
}

.access-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* 見出し */
.access-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 40px;
}

.access-title span {
  display: block;
  font-size: 15px;
  color: #007bff;
  margin-top: 5px;
  letter-spacing: 0.1em;
}

/* マップ */
.access-map iframe {
  width: 100%;
  height: 420px;
  display: block;
}

.greeting + .access {
  margin-top: 50px;     /* ← ここで空白を作る */
}

@media (max-width: 768px) {
  .access-map iframe {
    height: 300px;
  }
}

.access + .section {
  margin-top: 50px;     /* ← ここで空白を作る */
}

/* スタッフ紹介 */
.staff-intro {
  padding: 60px 20px;
  background: #f5f5f5;
}
.page-title + .staff-intro {
  margin-top: 50px;     /* ← ここで空白を作る */
}

.staff-intro + .staff-intro {
  margin-top: 50px;     /* ← ここで空白を作る */
}

.staff-intro + .section {
  margin-top: 50px;     /* ← ここで空白を作る */
}

.staff-intro__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* 画像 */
.staff-intro__image img {
  width: 500px;
  max-width: 100%;
  border-radius: 4px;
}

/* テキスト */
.staff-intro__role {
  color: #007bff;
  font-weight: bold;
  font-size: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.staff-intro__name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.staff-intro__name span {
  font-size: 16px;
  margin-left: 12px;
}

.staff-intro__text {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 28px;
  color: #333;
  text-align: left;
}

/* タグ */
.staff-intro__tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag__label {
  background: #007bff;
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag__text {
  font-size: 14px;
  color: #333;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .staff-intro__inner {
    flex-direction: column;
  }

  .staff-intro__image img {
    width: 100%;
  }
}

/* 診療内容 */
.treatment {
  background: #fff;
}

/* 見出し */
.treatment-header {
  background: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
}

.treatment-header h1 {
  font-size: 32px;
  font-weight: bold;
}

/* リスト */
.treatment-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 各項目 */
.treatment-item {
  background: #f5f5f5;
  display: flex;
  gap: 32px;
  padding: 40px 20px;
  border-bottom: 1px solid #ddd;
  align-items: center;
}

.treatment-item__image {
  width: 300px;
  flex-shrink: 0;
}

.treatment-item__image img {
  width: 300px;
  max-width: 100%;
}
.page-title + .treatment-item {
  margin-top: 50px;           /* ← ここで空白を作る */
}

.treatment-item + .treatment-item {
  margin-top: 50px;           /* ← ここで空白を作る */
}
.treatment-item + .section.bg-light {
  margin-top: 50px;           /* ← ここで空白を作る */
}

/* テキスト */
.treatment-item__content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.treatment-item__content p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.treatment-item__content ul {
  padding-left: 20px;
}

.treatment-item__content li {
  font-size: 14px;
  line-height: 1.7;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .treatment-item {
    flex-direction: column;
  }

  .treatment-item__image img {
    width: 90%;
  }
}

/* アクセス */
.access {
  background: #f5f5f5;
}

/* 見出し */
.access-header {
  background: #f5f5f5;
  padding: 20px 20px;
  text-align: center;
}

.access-header h1 {
  font-size: 32px;
  font-weight: bold;
}

/* 住所情報 */
.access-info {
  max-width: 1000px;
  margin: 40px auto 20px;
  padding: 0 20px;
  text-align: center;
}

.access-info p {
  font-size: 15px;
  line-height: 1.8;
}

.access-info .note {
  font-size: 14px;
}

/* マップ */
.access-map {
  max-width: 1200px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.access-map iframe {
  width: 100%;
  height: 420px;
  border: none;
}

/* ブログ */
/* 共通 */
.blog {
  background: #fff;
}

/* 見出し */
.page-header {
  background: #f5f5f5;
  padding: 20px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  font-weight: bold;
}

/* 一覧 */
.blog-list {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: left;
}

.blog-title {
  text-align: center;
  font-size: 24px;
  margin: 15px;
}

/* 記事 */
.blog-item {
  margin-bottom: 80px;
}

.blog-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
  justify-items: center;
  width: 1400px;
  margin: 0 auto;
}

.category {
  text-align: center;
  font-size: 20px;
  color: #333;
}

.blog-head h3 {
  font-size: 18px;
  font-weight: normal;
  margin: 10px;
}

.blog-category {
  width: 260px;
  text-align: center;
  margin: 10px;
}

.article-title {
  text-align: center;
  margin: 10px;
}

/* 本文 */
.blog-content {
  display: flex;
  gap: 60px;
 /* margin-left: 60px; */
  max-width: 1400px;
  margin: 0px auto;
}

.blog-content img {
  width: 260px;
  height: auto;
}

.blog-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}

/* ボタン */
.btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 14px;
}

/* single.php専用：右ズレを根こそぎ直す */
body.single-post .container,
body.single-post main {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    float: none !important;
}

/* 記事エリアを強制的に画面中央の800px幅に固定 */
.blog-detail-article {
    display: block !important;
    max-width: 800px !important;
    width: 90% !important; /* スマホで見てもはみ出さないように */
    margin: 40px auto !important;
    float: none !important;
    clear: both !important;
}

/* 本文の中身が右に逃げないように固定 */
.blog-detail-content {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: left !important;
}

/* 本文内の画像の中央寄せ */
.blog-detail-content img {
    display: block !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .blog-content {
    flex-direction: column;
    width: 90%;
  }

  .blog-content img {
    width: 100%;
  }

  .blog-head {
    grid-template-columns: 1fr;
    gap: 5px;
    width: 90%;
  }
}

/* エラー本文 */
.error {
  background: #fff;
  padding: 80px 20px;
}

.error-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.error-inner h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.error-inner p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* リンク */
.back-link {
  color: #007bff;
  text-decoration: none;
  font-size: 16px;
}

.back-link:hover {
  text-decoration: underline;
}

/* セクション */
.section {
  padding: 64px 16px;
  margin-top: 50px;
}

.section img {        
  max-width: 500px;  /* ← ここで大きさ調整 */
  height: auto;
  border-radius: 6px;
}

.two-column img { width: 50%; }

.section h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.container {
  margin: 0 auto;
}

.section p {
  font-size: 20px;   /* ← 読みやすい */
  line-height: 1.9;
}

.bg-gray {
  background: #f5f5f5;
  margin-top: 50px;
}

.section + .section {
  margin-top: 50px;     /* ← ここで空白を作る */
}

.bg-light {
  background: #f5f5f5;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.two-column {
  display: flex;
  gap: 48px;
  align-items: center;
}

.two-column.reverse {
  flex-direction: row-reverse;
}

.two-column img {
  width: 50%;
  border-radius: 4px;
}

.text {
  width: 50%;
}

.text h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

/* インフォ */
.info-area {
  display: flex;
  gap: 48px;
}

.clinic-info,
.hours {
  width: 50%;
}

.buttons {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.btn {
  background: #007bff;
  color: #fff;
  padding: 10px 30px;
  border-radius: 20px;
}

.btn.outline {
  background: #fff;
  color: #007bff;
  border: 1px solid #007bff;
}

/* テーブル */
.hours-title {
  text-align: center;
  color: #007bff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

th {
  background: #007bff;
  color: #fff;
}

.note {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
}

/* フッター */
.footer {
  background: #007bff;
  color: #fff;
  text-align: center;
  padding: 16px;
}

.footer-logo {
  width: 300px;
  height: auto;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .two-column,
  .two-column.reverse,
  .info-area {
    flex-direction: column;
  }

  .two-column img,
  .two-column.reverse img,
  .text,
  .clinic-info,
  .hours {
    width: 100%;
  }

  .nav {
    display: none;
  }
}

/* フォーム全体の幅を整える */
.wpforms-container {
    max-width: 800px !important;
    margin: 40px auto !important;
}

/* 送信ボタンを包むエリア */
.wpforms-submit-container {
    text-align: center !important; /* 中身のボタンを中央に寄せる */
    padding: 20px 0 !important;
    clear: both; /* 回り込みを解除して確実に中央へ */
}

/* ボタン自体の設定 */
.wpforms-submit {
    display: inline-block !important; /* 中央寄せが効くようにインラインブロック化 */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ハンバーガー */
.menu-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  display: none;
  font-size: 32px;
  color: #007bff;
  background: #fff;
  border: none;
  padding: 8px 12px;
  z-index: 1001;
  cursor: pointer;
}

/* オーバーレイ */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 表示用 */
.menu-overlay.active {
  display: flex;
}

/* メニュー本体 */
.menu-box {
  background: #fff;
  width: 90%;
  max-width: 360px;
  padding: 20px;
  position: relative;
  padding-bottom: 20px;
}

/* ヘッダー */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 150px;
}

/* 閉じる */
.close-btn {
  font-size: 24px;
  background: none;
  border: none;
  color: #007bff;
}

/* メニュー */
.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 10px;
  margin: 20px 0;
  list-style: none;
}

.menu-list a {
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* 診療時間 */
.menu-info {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.info-title {
  font-weight: bold;
}

/* 予約ボタン */
.menu-reserve-btn {
  display: block;
  text-align: center;
  background: #28a745;
  color: #fff;
  padding: 14px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

@media screen and (max-width: 768px) {
  .menu-btn {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    background: #fff;
    border: none;
    padding: 6px 12px;
    z-index: 1001;
    cursor: pointer;

  }
}
