/* ============================================================
   ファミリークリニックやひろ - メインCSS
   モバイルファースト設計
   ブレークポイント：768px（タブレット）、1024px（PC）
   ============================================================ */

/* ============================================================
   CSS変数（カラーパレット・フォント・スペース）
   ============================================================ */
:root {
  /* テーマカラー */
  --green-dark:  #3d6b4f;
  --green-main:  #5a8a6a;
  --green-light: #8ab89a;
  --green-pale:  #e8f2eb;
  --cream:       #faf7f2;
  --accent:      #d4845a;
  --text-dark:   #2d3a30;

  /* テキスト */
  --text-body:   #3d4a40;
  --text-muted:  #6b7a6e;
  --text-light:  #ffffff;

  /* ボーダー */
  --border:      #d4e0d8;
  --border-light:#e8f2eb;

  /* LINE */
  --line-green:  #06C755;

  /* フォント */
  --font-sans:   'Noto Sans JP', sans-serif;
  --font-serif:  'Noto Serif JP', serif;

  /* スペース */
  --section-gap: 64px;
  --container-w: 1140px;
  --container-px: 20px;

  /* ボーダーラジウス */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* シャドウ */
  --shadow-sm: 0 2px 8px rgba(61,107,79,0.08);
  --shadow-md: 0 4px 16px rgba(61,107,79,0.12);
  --shadow-lg: 0 8px 32px rgba(61,107,79,0.16);

  /* トランジション */
  --transition: 0.25s ease;

  /* ヘッダー高さ */
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --header-h: 72px;
    --section-gap: 96px;
    --container-px: 32px;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 80px;
    --section-gap: 120px;
    --container-px: 40px;
  }
}

/* ============================================================
   リセット・ベーススタイル
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-main);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-dark);
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ============================================================
   レイアウトユーティリティ
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: var(--section-gap) 0;
}

.section--cream {
  background-color: var(--cream);
}

.section--pale {
  background-color: var(--green-pale);
}

.section--dark {
  background-color: var(--green-dark);
  color: var(--text-light);
}

/* PC のみ表示 */
.pc-only { display: none; }
@media (min-width: 1024px) { .pc-only { display: block; } }

/* SP のみ表示 */
.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

/* ============================================================
   セクション共通ヘッダー
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-main);
  margin-bottom: 8px;
}

.section-label--light {
  color: var(--green-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .section-title { font-size: 2rem; }
}

.section-title--light {
  color: var(--text-light);
}

.section-desc {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

/* アクセントカラーボタン（オレンジ） */
.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--accent:hover {
  background: #c06a40;
  border-color: #c06a40;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* アウトラインボタン */
.btn--outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn--outline:hover {
  background: var(--green-dark);
  color: #fff;
}

/* アウトライン（白） */
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* LINE追加ボタン */
.btn--line-add {
  background: var(--line-green);
  color: #fff;
  border-color: var(--line-green);
  font-size: 1rem;
  padding: 14px 32px;
}
.btn--line-add:hover {
  background: #05a844;
  border-color: #05a844;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(6,199,85,0.35);
}

/* 電話ボタン */
.btn--tel {
  background: var(--green-main);
  color: #fff;
  border-color: var(--green-main);
}
.btn--tel:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

/* LINEフッターボタン */
.btn--line {
  background: var(--line-green);
  color: #fff;
  border-color: var(--line-green);
  font-size: 0.85rem;
  padding: 10px 20px;
}
.btn--line:hover {
  background: #05a844;
  color: #fff;
  border-color: #05a844;
}

/* 初診予約ボタン（病院なび） */
.btn--reserve {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--reserve:hover {
  background: #c06a40;
  border-color: #c06a40;
  color: #fff;
}

/* フッター内ボタン共通：幅を広げて見やすく */
.btn--footer {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.9rem;
}

.btn--full {
  width: 100%;
}

.btn--more {
  padding: 14px 40px;
}

/* ヘッダー予約ボタン */
.btn--header {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ヒーローボタン */
.btn--hero {
  padding: 14px 24px;
  font-size: 0.9rem;
}

.btn--disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.btn-icon {
  font-size: 1rem;
}

/* ============================================================
   注記テキスト
   ============================================================ */
.external-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.external-note--light {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--container-px);
  max-width: calc(var(--container-w) + var(--container-px) * 2);
  margin: 0 auto;
}

/* ロゴ */
.header-logo .logo-link {
  text-decoration: none;
}

.header-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .header-logo-img {
    height: 52px;
  }
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-corp {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  font-family: var(--font-serif);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .logo-name { font-size: 1.1rem; }
}

/* PCナビ */
.header-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

/* スマホ：ドロワーを常にDOMに配置しtransformで制御 */
@media (max-width: 1023px) {
  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    width: 78vw;
    max-width: 300px;
    height: 100vh;
    background: var(--cream);
    padding: calc(var(--header-h) + 16px) 24px 24px;
    overflow-y: auto;
    z-index: 99;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    justify-content: flex-start;
  }
  .header-nav.is-open {
    transform: translateX(0);
  }
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    top: auto !important;
    right: auto !important;
  }
  .header-nav .nav-list {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .header-nav .nav-list li a {
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    border-bottom: none !important;
    white-space: nowrap;
  }
  .header-nav .header-reserve-btn-wrap {
    display: flex !important;
  }
  .drawer-contact {
    display: none !important;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-list li a:hover {
  color: var(--green-main);
  background: var(--green-pale);
}

.header-reserve-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 8px;
}

.header-reserve-btn-wrap .external-note {
  font-size: 0.65rem;
  white-space: nowrap;
}

/* ハンバーガーボタン */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.hamburger:hover {
  background: var(--green-pale);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ハンバーガー開いた状態 */
.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

/* スマホメニュー（右スライドドロワー） */
@media (max-width: 1023px) {
  .header-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header-nav .nav-list li a {
    padding: 12px 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-dark);
  }

  .header-nav .header-reserve-btn-wrap {
    display: none;
  }
}

/* ドロワー内 連絡先 */
.drawer-contact {
  display: none;
}

.header-nav.is-open .drawer-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.drawer-btn--tel {
  background: var(--green-main);
  color: #fff !important;
}
.drawer-btn--tel:hover { background: var(--green-dark); }

.drawer-btn--line {
  background: #06c755;
  color: #fff !important;
}
.drawer-btn--line:hover { background: #05a847; }

.drawer-btn--reserve {
  background: var(--accent);
  color: #fff !important;
}
.drawer-btn--reserve:hover { opacity: 0.85; }

.drawer-reserve-note {
  font-size: 0.7rem;
  color: var(--text-dark);
  text-align: center;
  margin-top: -4px;
}

/* オーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 98;
}
.nav-overlay.is-visible { display: block; }

/* ============================================================
   右固定サイドボタン（PC only）
   ============================================================ */
.side-buttons {
  display: none;
}

@media (min-width: 1024px) {
  .side-buttons {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    gap: 4px;
  }
}

.side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  padding: 14px 8px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  transition: all var(--transition);
  text-decoration: none;
}

.side-btn:hover {
  width: 72px;
  color: #fff;
}

.side-btn--treatment {
  background: var(--green-main);
}
.side-btn--treatment:hover {
  background: var(--green-dark);
}

.side-btn--reserve {
  background: var(--accent);
}
.side-btn--reserve:hover {
  background: #c06a40;
}

.side-btn-icon {
  font-size: 1.25rem;
}

.side-btn-label {
  writing-mode: horizontal-tb;
  font-size: 0.65rem;
}

/* ============================================================
   ページコンテンツ上部オフセット（固定ヘッダー分）
   ============================================================ */
.site-main {
  padding-top: var(--header-h);
}

/* ============================================================
   ヒーローセクション — フルワイドイラスト＋テキストオーバーレイ方式
   参考：mukawa-heartclinic.com
   SP ：イラスト全幅表示 → テキストは下段クリーム背景
   PC ：イラストをセクション全体の背景に展開、左側に半透明オーバーレイ、その上にテキスト
   ============================================================ */

/* ── セクション本体 ── */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #f0f8f3; /* イラスト読込前のフォールバック色 */
}

/* ── ① 背景イラスト ── */
.hero-bg-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

/* SP：自然なアスペクト比で全幅表示（縮小しない） */
.hero-bg-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* SP：オーバーレイは非表示 */
.hero-bg-overlay {
  display: none;
}

/* PC：イラストをフル表示（高さはイラストのアスペクト比に従う） */
@media (min-width: 768px) {
  /* .hero-section の高さはイラストが決める → 固定しない */

  .hero-bg-wrap {
    position: relative; /* フロー内に残してセクション高さを決定 */
    width: 100%;
    height: auto;
  }

  .hero-bg-img {
    width: 100%;
    height: auto;   /* ← クロップしない */
    object-fit: unset;
  }

  /* 左半分にクリームのグラデーションオーバーレイ → テキスト可読性を確保 */
  .hero-bg-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(250, 247, 242, 0.97) 0%,
      rgba(248, 245, 238, 0.93) 25%,
      rgba(245, 242, 234, 0.78) 42%,
      rgba(242, 248, 244, 0.40) 58%,
      transparent 75%
    );
  }
}

/* ── ② テキストコンテンツ ── */

/* SP：画像下のクリーム背景エリアとして表示 */
.hero-content-wrap {
  background: #faf7f2;
  padding: 28px var(--container-px) 72px; /* 下部に波形の余白 */
}

/* PC：イラストの上に絶対配置でテキストを重ねる */
@media (min-width: 768px) {
  .hero-content-wrap {
    position: absolute;
    inset: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
  }
}

.hero-content-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  width: 100%;
}

/* PC：左半分にテキストを収める */
@media (min-width: 768px) {
  .hero-content-inner {
    padding: 0 var(--container-px);
    max-width: 520px; /* 左半分に収める */
    margin: 0 0 0 max(var(--container-px), calc((100vw - var(--container-w)) / 2));
  }
}

/* 法人名 */
.hero-corp {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

/* 診療科目バッジ */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  background: #fff;
  border: 1.5px solid var(--green-light);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(61,107,79,0.10);
}

/* メインキャッチ */
.hero-catch {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 14px;
}

@media (min-width: 768px) { .hero-catch { font-size: 2.0rem; } }
@media (min-width: 1024px) { .hero-catch { font-size: 2.3rem; } }

/* 「かかりつけ医」強調 */
.hero-catch-em {
  color: var(--green-main);
  position: relative;
  display: inline-block;
}
.hero-catch-em::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-main), var(--green-light));
  border-radius: 2px;
}

/* サブテキスト */
.hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.9;
}

/* CTAボタン群 */
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

/* 明るい背景・オーバーレイ共用のグリーンアウトラインボタン */
.btn--green-outline {
  background: rgba(255,255,255,0.92);
  color: var(--green-dark);
  border: 2px solid var(--green-main);
  box-shadow: 0 2px 8px rgba(61,107,79,0.12);
  backdrop-filter: blur(4px);
}
.btn--green-outline:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(61,107,79,0.18);
}

/* 注記テキスト */
.hero-notes { margin-top: 6px; }
.hero-note-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── ③ 波形区切り ── */
/* SP：テキストエリアの絶対外、クリーム背景の下に配置 */
.hero-wave {
  position: relative;
  line-height: 0;
  margin-top: -1px;
  background: #faf7f2; /* SP：テキストエリアの背景色に合わせる */
}
/* PC：画像下端に絶対配置 */
@media (min-width: 768px) {
  .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
  }
}
.hero-wave svg {
  width: 100%;
  height: 72px;
  display: block;
}

/* 旧クラス（使用しなくなったが念のため無効化） */
.hero-bg-blob,
.hero-deco-circle,
.hero-illust,
.hero-inner,
.hero-text,
.hero-image,
.hero-img-placeholder,
.placeholder-inner,
.placeholder-icon,
.placeholder-text { display: none !important; }

/* hero-img は新構造で .hero-bg-img に置き換え済み */
.hero-img {
  display: none !important;
}

/* セクション上下の波形（共通） */
.section-wave-top,
.section-wave-bottom {
  line-height: 0;
  display: block;
}
.section-wave-top svg,
.section-wave-bottom svg {
  width: 100%;
  display: block;
}
.section-wave-top {
  margin-bottom: -1px;
}
.section-wave-bottom {
  margin-top: 60px;
  margin-top: var(--section-gap);
}

/* 旧 .hero-deco-circle は非表示に（新デザインでは.hero-bg-blobを使用） */
.hero-deco-circle { display: none; }

/* ============================================================
   お知らせセクション
   ============================================================ */
.news-section {
  background: #fff;
}

.news-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.news-item {
  border-bottom: 1px solid var(--border);
}

.news-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 8px;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}

.news-link:hover {
  background: var(--green-pale);
  color: inherit;
}

@media (min-width: 768px) {
  .news-link {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 12px;
  }
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.news-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag--important {
  background: #fee2e2;
  color: #dc2626;
}
.tag--news {
  background: var(--green-pale);
  color: var(--green-dark);
}
.tag--closed {
  background: #fef3c7;
  color: #d97706;
}
.tag--default {
  background: var(--border-light);
  color: var(--text-muted);
}

.news-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
}

.news-link:hover .news-title {
  color: var(--green-main);
}

.news-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 一覧ページ用 */
.news-list--full .news-link {
  flex-direction: column;
}

.no-posts {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}

/* ============================================================
   診療案内カード
   ============================================================ */
.dept-section {
  background: var(--cream);
}

.dept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .dept-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.dept-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  animation-delay: var(--delay, 0s);
}

.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.dept-card-link {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.dept-card-icon {
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green-main);
}

.dept-card-icon svg {
  width: 32px;
  height: 32px;
}

/* スプライトアイコン：1枚の画像を4分割して各科に表示 */
.dept-card-icon--sprite {
  background-image: var(--sprite-url);
  background-size: 200% 200%;  /* 画像を2倍に拡大 → 各象限がちょうど56×56pxに */
  background-repeat: no-repeat;
  background-color: transparent;
  color: transparent; /* SVG用colorを無効化 */
}
/* 内科：左上 */
.dept-card-icon--naika   { background-position: 0%   0%;   }
/* 外科：右上 */
.dept-card-icon--geka    { background-position: 100% 0%;   }
/* 小児科：左下 */
.dept-card-icon--shonika { background-position: 0%   100%; }
/* 皮膚科：右下 */
.dept-card-icon--hifuka  { background-position: 100% 100%; }

.dept-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.dept-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.dept-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  list-style: none;
}

.dept-card-tags li {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: var(--radius-full);
}

.dept-card-more {
  font-size: 0.8rem;
  color: var(--green-main);
  font-weight: 700;
  margin-top: 16px;
  display: block;
}

/* ============================================================
   診療時間セクション
   ============================================================ */
.hours-section {
  background: var(--green-dark);
}

.hours-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .hours-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
  .hours-table-wrap { flex: 1; }
  .hours-contact { width: 280px; flex-shrink: 0; }
}

.hours-note-top {
  padding: 10px 16px;
  background: rgba(255,255,255,0.12);
  border-left: 3px solid var(--green-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.hours-note-top p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.hours-block {
  margin-bottom: 24px;
}

.hours-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hours-time-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.hours-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOS慣性スクロール対応 */
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 480px;
}

.hours-table th {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
  white-space: nowrap; /* 曜日ヘッダーが折り返されないよう */
}

.hours-table td {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  padding: 12px 10px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap; /* 医師名・括弧書きが途中で折り返されないよう */
  vertical-align: middle;
}

.closed-col,
.closed-cell {
  background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.5) !important;
}

.dr-sub {
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.4;
  white-space: nowrap; /* 「奥村Dr.（皮膚科）」等が折り返されないよう */
}

.hours-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
}

/* 連絡先カード */
.hours-contact-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 24px;
}

.hours-contact-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.hours-tel {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.hours-tel:hover {
  color: var(--green-light);
}

.hours-fax {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  opacity: 1 !important;
  margin-top: 6px;
  -webkit-text-fill-color: #ffffff !important;
}

.hours-contact-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 20px 0;
}

.hours-address {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

/* ============================================================
   LINEセクション
   ============================================================ */
.line-section {
  background: linear-gradient(135deg, #005b2f 0%, var(--line-green) 100%);
}

.line-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .line-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .line-text { flex: 1; }
  .line-qr { width: 200px; flex-shrink: 0; }
}

.line-section .section-label {
  color: rgba(255,255,255,0.7);
}

.line-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 16px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .line-title { font-size: 2rem; }
}

.line-desc {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.line-features {
  list-style: none;
  margin-bottom: 28px;
}

.line-features li {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  padding: 4px 0;
}

.line-btn-icon {
  display: flex;
  align-items: center;
}

.line-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
}

/* QRコードエリア */
.line-qr-wrap {
  text-align: center;
}

.line-qr-img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  background: #fff;
  padding: 8px;
  margin: 0 auto;
}

.line-qr-caption {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}

.line-qr-placeholder {
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.qr-placeholder-inner {
  text-align: center;
  color: rgba(255,255,255,0.8);
}

.qr-placeholder-text {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

.qr-placeholder-text small {
  font-size: 0.65rem;
  opacity: 0.8;
}

/* QRグリッドダミー */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px;
  width: 100px;
  margin: 0 auto;
}

.qr-cell {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.2);
  border-radius: 1px;
}
.qr-cell--dark {
  background: rgba(255,255,255,0.85);
}

/* ============================================================
   アクセスセクション（トップページ用）
   ============================================================ */
.access-section {
  background: var(--cream);
}

.access-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .access-layout {
    flex-direction: row;
    gap: 40px;
  }
  .access-map { flex: 1; }
  .access-info { width: 320px; flex-shrink: 0; }
}

.access-map-iframe {
  width: 100%;
  border-radius: var(--radius-md);
}

.access-map-note {
  margin-top: 8px;
}

.access-map-link {
  font-size: 0.85rem;
  color: var(--green-main);
  font-weight: 500;
}

.access-info-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.access-info-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.access-info-item:last-child {
  border-bottom: none;
}

.access-info-icon {
  font-size: 1.25rem;
  width: 28px;
  flex-shrink: 0;
}

.access-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.access-info-value {
  font-size: 0.9rem;
  color: var(--text-dark);
}


.access-tel {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}
.access-tel:hover { color: var(--green-main); }

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: #3d6b52;
  color: rgba(255,255,255,0.90);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 60px var(--container-px);
  max-width: var(--container-w);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
}

.footer-corp {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.footer-address {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-hours-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.footer-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.footer-hours-table td {
  padding: 3px 0;
}

.footer-hours-table td:first-child {
  width: 80px;
  font-weight: 500;
}

.footer-hours-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
}

.footer-nav-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list > li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-nav-list > li > a {
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.footer-nav-list > li > a:hover {
  color: var(--green-light);
}

.footer-nav-sub {
  list-style: none;
  padding-left: 12px;
  margin-bottom: 6px;
}

.footer-nav-sub li a {
  display: block;
  padding: 4px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer-nav-sub li a:hover { color: var(--green-light); }

.footer-tel-label,
.footer-line-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.footer-tel-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 4px;
}
.footer-tel-number:hover { color: var(--green-light); }

.footer-tel-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  opacity: 1 !important;
  margin-bottom: 24px;
  -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 768px) {
  .footer-tel-sub {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
}

.footer-line-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

.footer-line-wrap {
  margin-bottom: 24px;
}

.footer-reserve-wrap .external-note {
  margin-top: 6px;
  color: rgba(255,255,255,0.85);
}

/* フッター下部 */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px var(--container-px);
}

.footer-bottom-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
}

.footer-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}

.footer-related-link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.footer-related-link:hover { color: rgba(255,255,255,0.75); }

/* ============================================================
   ページヒーロー（各内部ページ共通）
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
  padding: 48px 0 52px;
  color: #fff;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .page-hero-title { font-size: 2.25rem; }
}

.page-hero-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   アーカイブ・カテゴリーフィルター
   ============================================================ */
.archive-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1024px) {
  .archive-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .archive-main { flex: 1; }
  .archive-sidebar { width: 260px; flex-shrink: 0; }
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #fff;
  text-decoration: none;
  transition: all var(--transition);
}

.category-btn:hover,
.category-btn.is-active {
  background: var(--green-main);
  border-color: var(--green-main);
  color: #fff;
}

/* ページネーション */
.pagination-wrap {
  margin-top: 48px;
}

.pagination-wrap .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.pagination-wrap .page-numbers li a,
.pagination-wrap .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-body);
  text-decoration: none;
  background: #fff;
  transition: all var(--transition);
}

.pagination-wrap .page-numbers li a:hover {
  background: var(--green-pale);
  border-color: var(--green-main);
  color: var(--green-dark);
}

.pagination-wrap .page-numbers li .current {
  background: var(--green-main);
  border-color: var(--green-main);
  color: #fff;
}

/* サイドバー */
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.sidebar-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}

.sidebar-cat-list {
  list-style: none;
}

.sidebar-cat-list li {
  border-bottom: 1px solid var(--border-light);
}

.sidebar-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--transition);
}

.sidebar-cat-list li a:hover,
.sidebar-cat-list li.is-active a {
  color: var(--green-main);
}

.cat-count {
  font-size: 0.75rem;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

/* ============================================================
   投稿ページ（single.php）
   ============================================================ */
.single-article {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .single-article { padding: 48px 40px; }
}

.entry-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-body);
}

.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2em 0 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--green-pale);
}
.entry-content h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.75em 0 0.6em;
}
.entry-content ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.5em; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1.5em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content a { color: var(--green-main); text-decoration: underline; }
.entry-content img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--green-light);
  padding: 16px 20px;
  background: var(--green-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
  color: var(--text-muted);
}

/* 前後ナビゲーション */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; }
.post-nav-back { text-align: center; }

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.post-nav-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-nav-title {
  font-size: 0.875rem;
  color: var(--green-main);
  font-weight: 500;
}

.post-nav-link:hover .post-nav-title {
  color: var(--green-dark);
}

/* ============================================================
   診療案内ページ（page-treatment.php）
   ============================================================ */
.dept-page-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}

.dept-page-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
}

.dept-page-nav-list li a {
  display: block;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.dept-page-nav-list li a:hover {
  color: var(--green-main);
  border-bottom-color: var(--green-main);
}

.dept-page-section {
  scroll-margin-top: calc(var(--header-h) + 60px);
}

.dept-page-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.dept-page-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dept-page-icon svg {
  width: 36px;
  height: 36px;
}

/* スプライトアイコン（診療案内ページ用・64×64px） */
.dept-page-icon.dept-page-icon--sprite {
  background-image: var(--sprite-url);
  background-size: 200% 200%;
  background-repeat: no-repeat;
  background-color: transparent;
}
.dept-page-icon.dept-page-icon--naika   { background-position: 0%   0%;   }
.dept-page-icon.dept-page-icon--geka    { background-position: 100% 0%;   }
.dept-page-icon.dept-page-icon--shonika { background-position: 0%   100%; }
.dept-page-icon.dept-page-icon--hifuka  { background-position: 100% 100%; }

.dept-page-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

.dept-page-subtitle {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.dept-page-lead {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

/* 説明文＋画像の横並びエリア */
.dept-page-lead-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dept-page-lead-img {
  width: 100%;
}

@media (min-width: 768px) {
  .dept-page-lead {
    flex-direction: column;
    align-items: stretch;
  }

  .dept-page-lead-main {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }
  .dept-page-lead-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .dept-page-lead-img {
    width: 45%;
    max-width: 520px;
    flex-shrink: 0;
  }
  .dept-page-lead-img img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  /* 専門医バッジ：4つ横並び */
  .specialist-badges {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 24px;
  }
  .specialist-badge {
    flex: 1;
  }
}

.dept-page-lead-text p {
  margin-bottom: 1em;
  font-size: 0.95rem;
  line-height: 1.85;
}

.specialist-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.specialist-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--green-pale);
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 120px;
}

.specialist-badge-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.specialist-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
}

/* アコーディオン */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: background var(--transition);
}

.accordion-btn:hover {
  background: var(--green-pale);
}

.accordion-btn[aria-expanded="true"] {
  background: var(--green-pale);
  color: var(--green-dark);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-pale);
  flex-shrink: 0;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--green-main);
  border-radius: 2px;
}
.accordion-icon::before {
  width: 10px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-icon::after {
  width: 2px; height: 10px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}

.accordion-btn[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-body {
  display: none;
  padding: 0 16px 20px;
}

.accordion-body.is-open {
  display: block;
}

.accordion-body p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-body);
}

.accordion-body ul {
  list-style: disc;
  padding-left: 1.5em;
  font-size: 0.9rem;
  line-height: 2;
}

/* 疾患グリッド */
/* 予防接種スケジュールバナー */
.vaccine-schedule-wrap {
  margin-top: 32px;
}

.vaccine-schedule-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.vaccine-schedule-link {
  display: block;
  text-decoration: none;
}

.vaccine-schedule-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  border: 2px solid var(--green-main);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  transition: all var(--transition);
}

.vaccine-schedule-link:hover .vaccine-schedule-banner {
  background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.vaccine-schedule-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.vaccine-schedule-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.vaccine-schedule-text strong {
  font-size: 0.95rem;
  color: var(--green-dark);
}

.vaccine-schedule-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.vaccine-schedule-arrow {
  font-size: 1.4rem;
  color: var(--green-main);
  flex-shrink: 0;
}

.vaccine-schedule-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.disease-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .disease-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* 2カラム固定（小児科用） */
.disease-grid--2col {
  grid-template-columns: 1fr 1fr !important;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .disease-grid--2col {
    grid-template-columns: 1fr 1fr !important;
  }
}

.disease-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
}

.disease-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.disease-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.dept-page-note {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  margin-top: 16px;
  line-height: 1.7;
}

/* 検査機器グリッド */
.equipment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .equipment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.equipment-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.equipment-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.equipment-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.equipment-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   当院についてページ（page-about.php）
   ============================================================ */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.philosophy-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.philosophy-card-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.philosophy-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.philosophy-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* 院長セクション */
.director-section {
  background: var(--cream);
}

.director-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .director-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .director-photo { width: 240px; flex-shrink: 0; }
  .director-info { flex: 1; }
}

.director-photo img,
.director-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.director-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--green-pale);
  border: 2px dashed var(--green-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.placeholder-person-icon {
  font-size: 3.5rem;
}

.director-name-wrap {
  margin-bottom: 24px;
}

.director-position {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-main);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.director-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.director-name-kana {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.director-credentials {
  margin-bottom: 28px;
}

.director-credentials-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.director-credentials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.director-credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}

.cred-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.director-message-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.director-message-text {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px;
  border-left: 4px solid var(--green-light);
}

.director-message-text p {
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 1em;
  color: var(--text-body);
}

.director-message-text p:last-child { margin-bottom: 0; }

.director-message-text em {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* スタッフグリッド */
.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.staff-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.staff-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.staff-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.staff-card-info {
  padding: 16px;
}

.staff-position {
  font-size: 0.75rem;
  color: var(--green-main);
  font-weight: 700;
  margin-bottom: 4px;
}

.staff-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.staff-credentials {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.staff-credentials li {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 1em;
  position: relative;
}

.staff-credentials li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.staff-specialty {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.staff-comment {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.65;
}

.staff-placeholder {
  background: var(--green-pale);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
}

.staff-placeholder-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.staff-placeholder-text small {
  font-size: 0.8rem;
  color: var(--green-main);
}

/* ============================================================
   アクセスページ（page-access.php）
   ============================================================ */
.access-page-map {
  margin-bottom: 40px;
}

.access-page-map iframe {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.access-map-link-wrap {
  margin-top: 10px;
  text-align: right;
}

.access-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .access-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.access-detail-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.access-detail-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.access-detail-icon {
  font-size: 1.25rem;
}

.access-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.access-dl dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 2px;
  white-space: nowrap;
}

.access-dl dd {
  font-size: 0.875rem;
  color: var(--text-body);
}

.access-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 8px;
}

.access-hours-table th {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--border);
}

.access-hours-table td {
  padding: 8px;
  text-align: center;
  border: 1px solid var(--border);
  background: #fff;
}

.hours-period {
  background: var(--cream) !important;
  font-size: 0.75rem;
  text-align: left;
  white-space: nowrap;
}

/* 交通手段 */
/* 外観写真・地図イラスト */
.access-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .access-photos {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.access-photo-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.access-photo-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.access-photo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.access-photo-caption {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-top: 10px;
  line-height: 1.6;
}

.transport-placeholder-note em {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 予約バナー */
.access-reserve-banner {
  background: var(--green-pale);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-bottom: 40px;
}

.access-reserve-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .access-reserve-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.reserve-banner-text h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.reserve-banner-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.reserve-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   404ページ
   ============================================================ */
.error-404-inner {
  text-align: center;
  padding: 60px 20px;
}

.error-404-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.error-404-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--green-light);
  margin-bottom: 8px;
}

.error-404-subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.error-404-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.error-404-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============================================================
   スクロールアニメーション
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in-up.is-visible,
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ユーティリティ
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   WordPress標準ブロック対応（Gutenberg）
   ============================================================ */
.wp-block-image img {
  border-radius: var(--radius-sm);
}

.wp-block-quote {
  border-left: 4px solid var(--green-light);
  padding: 16px 20px;
  background: var(--green-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.wp-block-button .wp-block-button__link {
  background-color: var(--green-main);
  border-radius: var(--radius-full);
}

/* ============================================================
   修正①：診療時間テーブル（統合テーブル用スタイル）
   ============================================================ */

/* 統合テーブルの列幅を固定 */
.hours-table--unified {
  table-layout: auto; /* 内容に合わせて列幅を自動調整 */
  width: 100%;
  min-width: 680px; /* 折り返しが起きない最小幅を確保・親のoverflow-x:autoで横スクロール */
}

.hours-table--unified .col-period {
  /* 時間帯列は最小幅だけ指定 */
  white-space: nowrap;
}

.hours-table--unified .col-day--closed {
  background: rgba(0, 0, 0, 0.12);
}

/* 時間帯セル（td/th） */
.hours-table--unified .th-period {
  text-align: left;
  padding-left: 12px;
}

.hours-table--unified .td-period {
  text-align: left;
  vertical-align: middle;
  padding: 14px 8px 14px 12px;
}

.hours-time-range {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  white-space: nowrap;
}

/* ============================================================
   修正②：初診予約注釈テキスト
   ============================================================ */

/* 共通 */
.reserve-target-note {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.5;
}

/* ヘッダー内（白背景） */
.header-reserve-btn-wrap .reserve-target-note {
  color: var(--text-muted);
}

/* ヒーロー内（グリーン背景） */
.reserve-target-note--hero {
  color: rgba(255, 255, 255, 0.65);
}

/* 診療時間カード内（ダーク背景） */
.reserve-target-note--dark {
  color: rgba(255, 255, 255, 0.55);
}

/* フッター内（ダーク背景） */
.reserve-target-note--footer {
  color: rgba(255, 255, 255, 0.45);
}

/* サイドボタン内の注釈 */
.side-btn-note {
  display: block;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ============================================================
   修正③：LINEセクション 注意書きスタイル
   ============================================================ */

.line-caution {
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-left: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ※LINEでの症状のご相談… の行：太字で目立たせる */
.line-caution > :first-line,
.line-caution {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

/* サブテキスト（電話のご案内行）は通常ウェイト */
.line-caution-sub {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* ============================================================
   ★ 全体ソフト化オーバーライド（リデザイン）
   ============================================================ */

/* セクション見出しに柔らかいアンダーライン装飾 */
.section-title {
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-main), var(--green-light));
  border-radius: 2px;
}
/* ダーク背景セクション用 */
.section-title--light::after {
  background: linear-gradient(90deg, var(--green-light), rgba(138,184,154,0.4));
}

/* セクションラベルに葉っぱアイコン風の装飾 */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-label::before {
  content: '🌿';
  font-size: 0.85em;
}

/* カードの丸みを全体的に強化 */
.dept-card,
.equipment-card,
.disease-card,
.philosophy-card,
.staff-card,
.transport-card,
.access-info-card,
.hours-contact-card,
.access-detail-card {
  border-radius: 20px !important;
}

/* お知らせリストのホバーを丸みに */
.news-link {
  border-radius: 12px;
  transition: background var(--transition), transform var(--transition);
}
.news-link:hover {
  transform: translateX(4px);
}

/* 診療案内カードのホバー改善 */
.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(61,107,79,0.14);
}

/* news-section に波形をCSSで追加（下部） */
.news-section {
  padding-bottom: 0;
  position: relative;
}
.news-section::after {
  content: '';
  display: block;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 56' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,28 C480,56 960,0 1440,28 L1440,56 L0,56 Z' fill='%23faf7f2'/%3E%3C/svg%3E") center/cover no-repeat;
  margin-top: 48px;
}

/* dept-section の背景を少し明るく */
.dept-section {
  background: var(--cream);
  padding-bottom: 0;
  position: relative;
}
.dept-section::after {
  content: '';
  display: block;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 56' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 C360,56 1080,0 1440,36 L1440,56 L0,56 Z' fill='%23ffffff'/%3E%3C/svg%3E") center/cover no-repeat;
  margin-top: 64px;
}

/* ============================================================
   ★ 院内施設紹介セクション
   ============================================================ */
.facility-section {
  background: #ffffff;
  padding-top: 0; /* 上部の波形で接続 */
  padding-bottom: 0; /* 下部の波形で接続 */
  position: relative;
}

.facility-section .section-header {
  padding-top: var(--section-gap);
}

/* 上部・下部波形のマージン調整 */
.facility-section .section-wave-top svg {
  height: 60px;
}
.facility-section .section-wave-bottom svg {
  height: 70px;
  margin-top: 0;
}
.facility-section .section-wave-bottom {
  margin-top: 0;
  padding-top: 40px;
}

.facility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .facility-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.facility-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(61,107,79,0.09);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
  animation-delay: var(--delay, 0s);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(61,107,79,0.14);
}

.facility-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.facility-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.facility-card:hover .facility-img {
  transform: scale(1.04);
}

.facility-card-body {
  padding: 16px;
}

.facility-card-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 6px;
}

.facility-card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.facility-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   ★ ヘッダーの背景をより白くはっきりさせる
   ============================================================ */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(61,107,79,0.10);
}

/* ============================================================
   ★ ページヒーローを少し柔らかく
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #2f5540 0%, var(--green-main) 100%);
  padding: 52px 0 60px;
}

/* ============================================================
   ★ hours-section の上部を facility→hours の波形に合わせる
   ============================================================ */
.hours-section {
  padding-top: 0;
}
.hours-section .container {
  padding-top: var(--section-gap);
}

/* ============================================================
   院長プロフィールページ
   ============================================================ */

/* レイアウト：写真左・情報右 */
.director-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .director-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }
}

/* 写真エリア */
.director-photo {
  flex-shrink: 0;
  text-align: center;
}

.director-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 32px rgba(47, 85, 64, 0.15);
}

@media (min-width: 768px) {
  .director-img {
    width: 240px;
  }
}

@media (min-width: 1024px) {
  .director-img {
    width: 280px;
  }
}

.director-photo-caption {
  margin-top: 16px;
}

.director-position {
  font-size: 0.85rem;
  color: var(--green-main);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.director-name-ja {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px;
}

.director-name-kana {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin: 0;
}

/* モットー */
.director-motto {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-pale);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 16px;
}

.director-motto-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-main);
  letter-spacing: 0.1em;
  white-space: nowrap;
  border: 1px solid var(--green-main);
  border-radius: 4px;
  padding: 2px 8px;
}

.director-motto-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0;
}

.director-message-text p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-main);
  margin: 0 0 16px;
}

/* 資格 */
.director-credentials {
  margin-top: 28px;
}

.director-credentials-title,
.director-career-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--green-pale);
  padding-bottom: 6px;
  margin: 0 0 14px;
}

.director-credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.director-credentials-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.6;
}

.cred-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

/* 経歴タイムライン */
.director-career {
  margin-top: 28px;
}

.director-career-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--green-pale);
  padding-left: 20px;
}

.career-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  position: relative;
}

.career-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2px solid var(--green-main);
}

.career-item--current::before {
  background: var(--green-main);
}

.career-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-main);
  letter-spacing: 0.03em;
}

.career-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
}

.career-desc strong {
  color: var(--green-dark);
}

/* ============================================================
   CT検査カレンダーセクション
   ============================================================ */
.ct-calendar-section {
  background: #fff;
}

.ct-calendar-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f0f8f3;
  border-left: 4px solid var(--green-main);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.ct-notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.ct-calendar-notice p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-main);
}

.ct-calendar-notice strong {
  color: var(--green-dark);
  font-weight: 700;
}

.ct-available-label {
  background: #1a73e8;
  color: #ffffff;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.ct-calendar-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0 0 24px;
}

.ct-calendar-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(47, 85, 64, 0.1);
  border: 1px solid var(--green-pale);
}

.ct-calendar-embed iframe {
  display: block;
  width: 100%;
}

.ct-calendar-update {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

/* SP：カレンダーの高さを縮める */
@media (max-width: 767px) {
  .ct-calendar-embed iframe {
    height: 420px;
  }
}

/* ============================================================
   当院の取り組み（注釈）
   ============================================================ */
.policy-note-wrap {
  background: #f8fbf8;
  border-top: 1px solid var(--green-pale);
  padding: 16px 0;
}

.policy-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policy-note-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1em;
  position: relative;
}

.policy-note-list li::before {
  content: '※';
  position: absolute;
  left: 0;
}

/* ============================================================
   理念プレビューセクション（トップページ）
   ============================================================ */
.about-preview-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .about-preview-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .about-preview-img {
    width: 420px;
    flex-shrink: 0;
  }
  .about-preview-text {
    flex: 1;
  }
}

.about-preview-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--green-dark);
  margin: 8px 0 24px;
}

.about-preview-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.about-preview-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-preview-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-preview-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--green-dark);
  margin-bottom: 4px;
}

.about-preview-list p {
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

.about-preview-btn {
  display: inline-flex;
  align-items: center;
}

/* ============================================================
   皮膚科 曜日・時間案内
   ============================================================ */
/* ① 診療案内カード内バッジ */
.dept-card-badge {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  line-height: 1.4;
}

/* ② 診療時間表 下の皮膚科案内 */
.hours-derm-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.1);
  border-left: 4px solid #fbbf24;
  border-radius: 8px;
  color: #ffffff;
}
.hours-derm-notice-icon {
  font-size: 1.4rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.hours-derm-notice-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fbbf24;
}
.hours-derm-notice-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.hours-derm-notice-text p strong {
  display: inline;
  color: #ffffff;
  margin: 0;
  font-size: inherit;
}

/* ③ 皮膚科ページ 初診者向け注意ボックス */
.derm-alert-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 28px;
  padding: 20px 24px;
  background: #fffbeb;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(251,191,36,0.15);
}
.derm-alert-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.derm-alert-body {
  flex: 1;
}
.derm-alert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 8px;
  line-height: 1.5;
}
.derm-alert-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #3a3a3a;
  margin: 0 0 6px;
}
.derm-alert-text strong {
  color: #b45309;
  font-weight: 700;
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 4px;
}
.derm-alert-text--sub {
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .derm-alert-box {
    padding: 16px;
    gap: 12px;
  }
  .derm-alert-title {
    font-size: 0.98rem;
  }
  .derm-alert-text {
    font-size: 0.9rem;
  }
}

/* ============================================================
   印刷スタイル
   ============================================================ */
@media print {
  .site-header,
  .side-buttons,
  .hero-section,
  .line-section,
  .footer-reserve-wrap,
  .access-reserve-banner {
    display: none;
  }
}
