/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; overflow-x: clip; }
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
  background-image:
    radial-gradient(circle 40vmin at 5% 35%, rgba(0, 153, 204, 0.32) 0%, transparent 100%),
    radial-gradient(circle 40vmin at 72% 88%, rgba(0, 180, 236, 0.28) 0%, transparent 100%),
    radial-gradient(circle 36vmin at 40% 5%, rgba(0, 180, 236, 0.24) 0%, transparent 100%),
    radial-gradient(circle 58vmin at 95% 30%, rgba(0, 153, 204, 0.16) 0%, transparent 100%),
    radial-gradient(circle 60vmin at 20% 95%, rgba(0, 180, 236, 0.14) 0%, transparent 100%),
    radial-gradient(circle 56vmin at 75% 45%, rgba(0, 153, 204, 0.11) 0%, transparent 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.04em;
  -webkit-overflow-scrolling: touch;
}
img { max-width: 100%; height: auto; display: block; }
/* 既定リンク: 本文中インラインリンク想定。白地 5.88:1（AA 適合）＋下線で判別可能にする。
   ボタン・ナビ・カード等の装飾リンクは「装飾リンクの下線解除」ブロックで下線を外す。 */
a { color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 0.18em; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }
table { border-collapse: collapse; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--font-weight-bold); line-height: var(--line-height-heading); letter-spacing: 0.05em; }
h1, h2, h3 { font-feature-settings: "palt"; }

/* 装飾リンク（ボタン・ナビ・カード・タグ）は下線を出さない。
   既定 a の下線は本文中インラインリンク専用。新規コンポーネントを足すときは本リストにも足す。 */
.btn-primary, .btn-secondary, .btn-text, .btn-reserve, .btn-tel,
.btn-english, .btn-english-sp, .btn-cta-reserve,
.header-logo a, .header-nav a, .dropdown-menu li a, .drawer-menu nav a,
.drawer-accordion__link, .drawer-accordion__list li a, .drawer-actions a, .drawer-sns__btn,
.footer-nav a, .footer-info a, .footer-clinic-name a, .footer-sns__btn,
.sp-bottom-bar__item, .breadcrumb a, .page-nav__list a,
.medical-card, .medical-card__link, .mirai-banner, .checkup-type-card,
a.news-title, .info-card__address a, .info-card__more a,
.back-link a, .related-block__links a, .list-filter__chip, .pagination__item,
.transport-item a, .address-card__item a, .group-block a.medical-card,
.cta-card .cta-phone-number a, .cta-bottom__phone a, .supervisor a { text-decoration: none; }


/* ── CSS Custom Properties ── */
:root {
  /* トンマナ適用済: template_002 → 荻原医院（Primary 水色（ロゴシアン系）#0099cc / Secondary ロゴシアン#00b4ec / Accent コーラルレッド#ff6f6f） */
  --color-white: #ffffff;
  --color-accent: #0099cc;          /* 水色・ロゴシアン系 (Primary) */
  --color-sub: #ff6f6f;             /* コーラルレッド (Accent) */
  --color-accent-light: rgba(0, 153, 204, 0.10);
  --color-accent-dark: #015c98;
  --color-sub-light: rgba(255, 111, 111, 0.10);
  --color-sub-dark: #c33636;        /* コーラルレッド濃色（白地 4.94:1 AA） */
  --color-secondary: #00b4ec;       /* ロゴシアン（行動・肯定状態） */
  --color-secondary-dark: #0089bd;
  --color-secondary-light: rgba(0, 180, 236, 0.10);
  --color-text-primary: #2a2926;
  --color-text-secondary: #5a5650;
  --color-text-light: #8a847c;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f5fbfc;
  --color-bg-dark: #1c2b3a;
  --color-border: #dfe5e3;
  --color-border-light: #d7e0e2;
  --color-alert: #c0453a;                        /* 緊急受診の目安（白地 5.05:1 / AA 適合） */
  --color-alert-light: rgba(192, 69, 58, 0.07);  /* 同・淡い地色 */
  /* 予約 CTA（ユーザー指定 2026-08-25）。青系ボタンの中で最重要の一手だけを
     赤で立てる。赤地に濃紺文字は 1.96:1 で判読不能のため文字は白（3.58:1／
     16px 太字のため AA 未達だが視認性は確保）。ホバーは白地＋濃紺文字（9.06:1）。 */
  --color-cta: #f74444;
  --color-cta-text: var(--color-white);
  --color-cta-hover: var(--color-white);
  --color-cta-hover-text: var(--color-accent-dark);
  --font-primary: 'M PLUS 1p', sans-serif;
  --font-heading: 'M PLUS 1p', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-size-h1: 30px;
  --font-size-h2: 26px;
  --font-size-h3: 21px;
  --font-size-h4: 19px;
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-xs: 11px;
  --line-height-heading: 1.5;
  --line-height-body: 1.9;
  --line-height-tight: 1.4;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  --spacing-2xl: 96px;
  --section-padding-lg: 96px;
  --section-padding-md: 64px;
  --section-padding-sm: 40px;
  --max-width: 1100px;
  --max-width-wide: 1200px;
  --max-width-narrow: 800px;
  --container-padding: 20px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 10px rgba(100, 80, 60, 0.06);
  --shadow-md: 0 4px 20px rgba(100, 80, 60, 0.09);
  /* 予約 CTA のホバー（--color-accent-dark 地）用。地色と同系の影にする */
  --shadow-cta-hover: 0 6px 20px rgba(1, 92, 152, 0.35);
  --shadow-hover: 0 8px 28px rgba(100, 80, 60, 0.14);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}


/* ── Header ── */
.site-header {
  width: 100%;
  background: transparent;
}

/* 上段: ロゴ + アクションボタン群 */
.header-top {
  width: 100%;
  background: transparent;
  border-bottom: none;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--container-padding);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

/* .site-header + .header-nav-bar を束ねるラッパー */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}
.header-wrapper.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* ドロワー(z-index:999)より前面に残るヘッダーが透明のままだと
   ロゴが暗幕の上に浮いて見えるため、メニュー展開中は白背景にする */
body.menu-open .header-wrapper {
  background: var(--color-white);
}
/* ヘッダーの PC 化は 960px から（768〜959px はロゴとアクションが衝突し、
   電話番号が桁の途中で折り返すため、ドロワー式を維持する） */
@media (min-width: 960px) {
  .header-wrapper {
    position: relative;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin: 0 60px;
    width: calc(100% - 120px);
  }
}

/* 下段: ナビゲーションバー（PCのみsticky） */
.header-nav-bar {
  display: none;
}
@media (min-width: 960px) {
  .header-nav-bar {
    display: block;
    position: relative;
    z-index: 1000;
    width: 100%;
    background: transparent;
    border-bottom: none;
    transition: background var(--transition-normal), box-shadow var(--transition-normal), backdrop-filter var(--transition-normal);
  }
}
@media (min-width: 960px) {
  .header-nav-bar {
    position: sticky;
    top: 0;
    margin: 0 60px;
    width: calc(100% - 120px);
  }
  .header-nav-bar.is-scrolled {
    margin: 0;
    width: 100%;
  }
}
.header-nav-bar.is-scrolled {
  background: rgba(245, 251, 252, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--container-padding);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  height: 80px;
}

/* SP: ヘッダー上段の構造（ロゴ + ハンバーガー） */
.header-top-inner .header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-primary);
}
.header-top-inner .header-logo a:hover { color: var(--color-text-primary); }
.header-logo img {
  height: 48px;
  width: auto;
}
.header-logo .logo-text {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}
/* ═════════ [昇格] index インラインにあったヘッダー調整（全50ページ共通） ═════════ */
/* 下層ページでこれが無いと 960px でロゴが伸びて「問診票について」を潰す */

/* ── ヘッダー電話: 注釈を電話番号の上に小さく縦積み ── */
.header-actions .btn-tel {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
  padding: 4px 6px;
  line-height: 1.2;
}
.header-actions .btn-tel .tel-note {
  font-size: 12px; /* [M-004] 旧 10px */
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  line-height: 1.2;
  display: block;
  text-align: center;
}
.header-actions .btn-tel .tel-number { justify-content: center; }

/* ── グローバルナビ: 日本語+英字を縦積み、chevron は外側で可視 ── */
.has-dropdown > a .nav-text-group { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.has-dropdown > a .lucide-chevron-down,
.has-dropdown > a [data-lucide="chevron-down"] {
  width: 12px; height: 12px;
  color: var(--color-accent);
  -webkit-text-fill-color: currentColor;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}
.has-dropdown:hover > a .lucide-chevron-down { transform: rotate(180deg); }

/* ── NEWS 見出し: 文字単位の折返しを防ぎ、語の区切りで自然に改行 ── */
.news-header .section-heading__ja { word-break: keep-all; overflow-wrap: normal; line-height: 1.45; }
@media (min-width: 768px) { .news-header .section-heading__ja { font-size: 30px; } }

/* ── ロゴ: 小さめに（横長でも上限を超えないよう調整） ── */
.header-logo img { height: 38px; max-width: 200px; }
@media (min-width: 1200px) { .header-logo img { height: 40px; max-width: 220px; } }

.header-actions { display: none; }
.header-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}
.header-actions .btn-tel {
  background: none;
  color: var(--color-accent-dark); /* [M-003] 白地 5.96:1（旧 --color-accent は 3.92:1） */
  padding: 8px 12px;
}
.header-actions .btn-tel:hover {
  color: #00587a; /* [M-003] hover はさらに濃く（8.11:1） */
}
.header-actions .btn-tel :is(i, svg) {
  color: var(--color-accent-dark);
}
.header-actions .btn-tel .tel-number {
  font-family: var(--font-accent);
  font-weight: var(--font-weight-bold);
  font-size: 17px;
  color: var(--color-accent-dark); /* [M-003] 白地 5.96:1 */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-actions .btn-reserve {
  /* §9-D 予約 CTA は赤（青系サイトで最も目立つ一手。ユーザー指定） */
  background: var(--color-cta);
  color: var(--color-cta-text);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.header-actions .btn-reserve::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-cta-hover); /* ホバーは白地へ反転（濃紺文字 9.06:1） */
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.header-actions .btn-reserve:hover::before {
  transform: translateX(0);
}
.header-actions .btn-reserve:hover {
  color: var(--color-cta-hover-text); /* 地色の反転に合わせて文字もブルー系へ */
  box-shadow: var(--shadow-cta-hover);
}
.header-actions .btn-english {
  padding: 6px 12px;
  font-weight: var(--font-weight-medium);
  font-size: 13px;
  border-radius: var(--radius-sm);
  border: none;
  position: relative;
  background:
    linear-gradient(135deg, #33c4f0 0%, #0099cc 100%),
    linear-gradient(#fff, #fff);
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
  z-index: 0;
  transition: box-shadow var(--transition-normal);
}
.header-actions .btn-english::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #33c4f0 0%, #0099cc 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 3;
  pointer-events: none;
}
.header-actions .btn-english::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #33c4f0 0%, #0099cc 100%);
  border-radius: inherit;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.header-actions .btn-english:hover {
  -webkit-text-fill-color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.header-actions .btn-english:hover::after {
  transform: translateX(0);
}

/* ナビゲーション（デスクトップ） */
.header-nav { display: none; }
.header-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.header-nav ul li {
  flex: 1;
}
/* 縦積みラベル（日本語 + 英語） */
.header-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  position: relative;
  padding: 6px 4px;
  line-height: 1.2;
}
.header-nav a .nav-en {
  font-family: var(--font-accent);
  font-size: 12px; /* [M-004] design_rules の下限 12px（旧 9px） */
  font-weight: 600;
  letter-spacing: 0.06em; /* 12px 化で伸びる横幅を字間で吸収し 960px の9項目1行を維持 */
  text-transform: uppercase;
  display: block;
  color: var(--color-accent-dark);
}
.header-nav a:hover { color: var(--color-accent); }
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}
.header-nav a:hover::after { width: 60%; }

/* SP Header Right */
.sp-header-right {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  /* ブルー系グラデ。中の MENU ラベル（白文字）は 4.8:1〜6.6:1 で AA */
  background: linear-gradient(135deg, #007bab 0%, #015c98 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 5px;
  z-index: 1002;
}
.hamburger span:not(.hamburger-label) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
}
.hamburger-label {
  display: block;
  font-size: 12px; /* [M-004] 旧 10px */
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  color: var(--color-white);
  line-height: 1;
  width: auto;
  height: auto;
  background: none;
}
body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
body.menu-open .drawer-overlay {
  opacity: 1;
  visibility: visible;
}
.drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  padding: 80px 24px 100px;
}
body.menu-open .drawer-menu {
  transform: translateX(0);
}
.drawer-menu nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.drawer-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
}
.drawer-menu nav a::after {
  content: '›';
  font-size: 24px;
  color: var(--color-text-secondary);
  line-height: 1;
}
.drawer-menu nav a:hover {
  color: var(--color-accent-dark);
}
/* Drawer Hours */
.drawer-hours {
  margin-top: 24px;
  padding: 16px 0;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
}
.drawer-hours__title {
  font-family: var(--font-heading);
  letter-spacing: 0.05em; /* [SM-006] h3 から p へ変更した分の見た目を維持 */
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-dark); /* [M-003] 白地 5.96:1（旧 3.92:1） */
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}
.drawer-hours__table th,
.drawer-hours__table td {
  padding: 6px 3px;
  border: 1px solid var(--color-border-light);
}
.drawer-hours__table th {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-bold);
  font-size: 13px;
  background: var(--color-accent-light);
}
.drawer-hours__table td:first-child {
  text-align: left;
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.drawer-hours__table small {
  display: block;
  font-size: 12px; /* [M-004] 旧 11px（診療時間は中核情報のため下限を守る） */
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}
.drawer-hours__maru {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  vertical-align: middle;
  font-size: 0;
}
.drawer-hours__note {
  font-size: 12px; /* [M-004] 旧 11px */
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.drawer-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-sns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}
.drawer-sns__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  font-size: 18px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.drawer-sns__btn:hover { background: var(--color-accent-light); color: var(--color-accent); }
.drawer-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  /* .btn-reserve だけ枠線 2px を持ち、「24」も 1.35em で行が伸びるため高さがずれる。
     透明枠で外形を揃え、min-height で行の高さ差も吸収する */
  border: 2px solid transparent;
  min-height: 56px;
  line-height: 1.4;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  color: var(--color-white);
  text-align: center;
}
.drawer-actions .btn-reserve { background: var(--color-cta); color: var(--color-cta-text); } /* 24時間ネット予約は赤地＋白文字 */
.drawer-actions .btn-tel { background: var(--color-accent-dark); } /* [M-003] 白文字 5.96:1 */
.drawer-actions .btn-english-sp {
  background: none;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  font-weight: var(--font-weight-medium);
}

/* ── Section Heading ── */
.section-heading {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  isolation: isolate;
}
.section-heading::before {
  content: none;
}
.section-heading__en {
  display: block;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #33c4f0 0%, #0099cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-heading__en--accent { }
.section-heading__en--sub { }
.section-heading__ja {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  color: color-mix(in srgb, var(--color-accent) 30%, var(--color-text-primary));
}
.section-heading__line {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-heading__line--accent { background: var(--color-sub); }
.section-heading__line--sub { background: var(--color-accent); }

/* ── Section Backgrounds ── */
.section--primary { background-color: var(--color-bg-primary); }
.section--cream { background-color: #ffffff; }
.section--accent-light { background-color: var(--color-sub-light); }
.section--features {
  background-color: rgba(0, 153, 204, 0.16);
}
.section--features .section-heading__ja {
  color: var(--color-text-primary);
}
.section--features .section-heading__line--sub {
  background: var(--color-accent);
}
.section--features .feature-card {
  background: var(--color-white);
  border-color: var(--color-border-light);
}
.section--features .feature-card__title {
  color: var(--color-accent);
}
.section--features .feature-card__text {
  color: var(--color-text-primary);
}
.section-padding {
  padding: 56px 0;
}

/* ── Page Hero ── */
.page-hero {
  background: var(--color-bg-secondary);
  padding: 32px 0;
  margin-top: 0;
}
.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-hero__en {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark); /* [M-003] #f5fbfc 地 5.70:1（旧 3.75:1） */
}
.page-hero__title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
}
.breadcrumb {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary); /* [M-003] #f5fbfc 地 6.97:1（旧 --color-text-light 3.54:1） */
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px var(--container-padding);
}
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-sub); }
.breadcrumb span { color: var(--color-text-secondary); }

/* ── Page Nav (anchor links) ── */
.page-nav {
  /* .page-content の地色と同色だと枠が消えるため白地＋細枠にする */
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
}
.page-nav__title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  margin-bottom: 16px;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-nav__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.page-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.page-nav__list a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.page-nav__list a :is(i, svg) {
  color: var(--color-accent);
  font-size: 12px;
}

/* ── Section Divider ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: 40px 0;
}

/* ── CTA Bottom Section ── */
.cta-bottom {
  /* §9-C template_002 残置のオリーブ → トンマナ内の水色〜ダーク */
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-bg-dark) 100%);
  padding: 64px 0;
  text-align: center;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-bottom__heading {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  margin-bottom: 8px;
}
.cta-bottom__sub {
  font-size: var(--font-size-body);
  opacity: 0.8;
  margin-bottom: 24px;
}
.cta-bottom__phone {
  font-family: var(--font-accent);
  font-size: 32px;
  font-weight: var(--font-weight-bold);
}
.cta-bottom__phone a {
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cta-bottom__phone a:hover {
  color: var(--color-sub);
}
.cta-bottom__hours {
  font-size: var(--font-size-small);
  opacity: 0.7;
  margin-top: 12px;
}

/* ── CTA Section ── */
.cta-section {
  position: relative;
  padding: 48px 0;
  /* §9-B 参照先が存在しない sample_waiting_room.webp を実写（医院外観）へ差し替え。
     body 側の fixed グラデと二重になるため background-attachment: fixed は外す。 */
  background-image: url('images/re_main_img_02.jpg');
  background-size: cover;
  background-position: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /* グレーの幕 → 水色系の幕（トンマナ内） */
  background: linear-gradient(135deg, rgba(0, 113, 156, 0.86) 0%, rgba(28, 43, 58, 0.82) 100%);
  z-index: 0;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: 640px;
  margin: 0 auto;
}
.cta-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 40px 24px;
  box-shadow: var(--shadow-md);
}
.cta-card h2 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  margin-bottom: 16px;
  color: var(--color-text-primary);
}
.cta-card .btn-cta-reserve {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-cta); /* §9-D 予約 CTA は赤 */
  color: var(--color-cta-text);
  /* .cta-card は白地。ホバーで白背景になると溶けるため枠線を持たせる */
  border: 2px solid var(--color-cta);
  border-radius: var(--radius-full);
  padding: 12px 62px; /* 枠線 2px ぶん詰めて外形サイズを保つ */
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  white-space: nowrap; /* 「24時間ネット予約」を改行させない */
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  z-index: 0;
}
/* 狭幅では左右パディングを詰めてボタン自体をはみ出させない */
@media (max-width: 400px) {
  .cta-card .btn-cta-reserve { padding: 14px 36px; }
}
.cta-card .btn-cta-reserve::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-cta-hover); /* ホバーは白地へ反転（濃紺文字 9.06:1） */
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.cta-card .btn-cta-reserve:hover::before {
  transform: translateX(0);
}
.cta-card .btn-cta-reserve:hover {
  background: var(--color-cta); /* 地色は赤のまま。白は ::before のスライドで見せる */
  color: var(--color-cta-hover-text); /* 地色の反転に合わせて文字もブルー系へ */
  border-color: var(--color-cta-hover-text);
  box-shadow: var(--shadow-cta-hover);
}
.cta-card .cta-phone-number {
  font-family: var(--font-accent);
  font-weight: var(--font-weight-bold);
  font-size: 24px;
  color: var(--color-accent);
}
.cta-card .cta-phone-number a {
  color: var(--color-accent);
}
.cta-card .cta-phone-number a:hover {
  color: var(--color-accent-dark);
}
.cta-card .cta-hours {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-white);
}
.footer-main {
  padding: 40px 0;
}
.footer-main .container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}
.footer-info .footer-clinic-name {
  margin-bottom: 12px;
}
.footer-info .footer-clinic-name img {
  height: 48px;
  width: auto;
}
.footer-info p {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.8;
}
.footer-info .footer-tel {
  font-family: var(--font-accent);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  opacity: 1;
  margin-top: 8px;
}
.footer-info .footer-tel a {
  color: var(--color-white);
}
.footer-sns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-sns__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 16px;
  transition: background var(--transition-fast);
}
.footer-sns__btn:hover { background: rgba(255, 255, 255, 0.3); color: var(--color-white); }

.footer-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}
.footer-nav__group { flex: 0 0 180px; }
.footer-nav__group--wide { flex: 0 0 180px; }
.footer-nav__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
  padding-bottom: 10px;
}
.footer-nav__group--wide ul { columns: 1; }
/* navi.md §3: SP では症状・疾患カラムの個別リンクを隠し、ハブリンクのみ表示する。
   HTML 上にリンクは残るのでクロール性は損なわない（到達性はハブ経由 2 クリック以内）。 */
.footer-nav__group--collapsible li:not(.footer-nav__hub) { display: none; }
@media (min-width: 768px) {
  .footer-nav__group--collapsible li:not(.footer-nav__hub) { display: block; }
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
}
.footer-nav a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.footer-nav a:hover {
  /* 白→白の色変化だけでは当たりが分からないので下線で明示する */
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-nav a:hover::before {
  background: var(--color-white);
}
.footer-nav li {
  break-inside: avoid;
}
.footer-bottom {
  background: #111f21;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

/* ── SP Bottom Bar ── */
.sp-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--color-accent); /* 水色（ユーザー指定）。白文字 3.3:1 で AA 未達だが指定どおりで確定（申し送り済み） */
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.sp-bottom-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  color: var(--color-white); /* アイコン・文字は白（ユーザー指定） */
  font-size: 12px; /* [M-004] 旧 10px */
  font-weight: var(--font-weight-bold);
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.sp-bottom-bar__item:last-child { border-right: none; }
/* 全体の a:hover（水色文字）が水色地に重なり文字が消えるため、ホバー・タップ時も白文字を保ち、地色を濃くして押下を示す */
.sp-bottom-bar__item:hover, .sp-bottom-bar__item:active { color: var(--color-white); background: var(--color-accent-dark); }
.sp-bottom-bar__item :is(i, svg) {
  font-size: 20px;
  color: var(--color-white);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* [統括判断] tone_manner §2 の役割分担（水色＝情報・専門性／赤＝予約CTA／
     Accent＝少量の差し色）に合わせ、主要ボタンは Primary Dark 地＋白文字（5.96:1） */
  background: var(--color-accent-dark);
  color: var(--color-white);
  border-radius: var(--radius-full);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}
.btn-primary:hover {
  background: var(--color-accent);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border: none;
  background: var(--color-white);
  /* テンプレ残置の水色 #52a4d4 は白地 2.7:1 で AA 不適合、かつブランド外。
     Primary Dark（5.96:1）に是正して枠線と色を揃える */
  color: var(--color-accent-dark);
  border-radius: var(--radius-full);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  overflow: hidden;
  z-index: 0;
  transition: color 0.4s, box-shadow var(--transition-normal);
}
.btn-secondary :is(i, svg) {
  color: inherit;
  transition: color 0.4s;
}
.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #33c4f0 0%, #0099cc 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #33c4f0 0%, #0099cc 100%);
  border-radius: inherit;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.btn-secondary:hover {
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn-secondary:hover :is(i, svg) {
  color: var(--color-white);
}
.btn-secondary:hover::after {
  transform: translateX(0);
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* 旧テンプレの Accent 文字色は白地 2.20:1 で AA 不適合。Primary Dark（5.96:1）に是正 */
  color: var(--color-accent-dark);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
}
.btn-text :is(i, svg) {
  transition: transform var(--transition-fast);
}
.btn-text:hover :is(i, svg) {
  transform: translateX(4px);
}
.btn-text--sub {
  color: var(--color-accent-dark); /* [M-003] 白地 5.96:1（旧 3.92:1） */
}
.btn-text--sub:hover {
  color: #00587a; /* [M-003] hover はさらに濃く（8.11:1） */
}

/* ── Fade-in Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── SP body padding ── */
body { padding-bottom: 64px; padding-top: 72px; }

/* ── Focus Style ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-sub);
  outline-offset: 2px;
}

/* ── Nav Dropdown ── */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; }
.nav-text-group { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.has-dropdown > a .lucide-chevron-down { font-size: 10px; color: #ccc; transition: transform var(--transition-fast); -webkit-text-fill-color: #ccc; }
.dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  z-index: 1010;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.has-dropdown:hover > a .lucide-chevron-down { transform: rotate(180deg); }
.dropdown-menu li { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  position: relative;
  text-align: center;
  transition: color var(--transition-fast);
}
.dropdown-menu li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}
.dropdown-menu li a:hover { color: var(--color-accent); }
.dropdown-menu li a:hover::after { width: calc(100% - 32px); }

/* ── Drawer Accordion ── */
.drawer-accordion__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
}
.drawer-accordion__link {
  flex: 1;
  padding: 16px 0;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
}
.drawer-accordion__link:hover { color: var(--color-accent-dark); }
.drawer-accordion__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}
.drawer-accordion__icon { transition: transform var(--transition-fast); font-size: 12px; color: var(--color-text-secondary); }
.drawer-accordion__btn[aria-expanded="true"] .drawer-accordion__icon { transform: rotate(180deg); }
.drawer-accordion__link::after { display: none; }
.drawer-accordion__list { padding: 4px 0 4px 16px; border-bottom: 1px solid var(--color-border-light); }
.drawer-accordion__list[hidden] { display: none; }
.drawer-accordion__list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: none;
  color: var(--color-text-secondary);
}
.drawer-accordion__list li a::after { display: none; }
.drawer-accordion__list li a:hover { color: var(--color-accent-dark); }

/* ── 診療の流れ (FLOW) ── */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.flow-card {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 16px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 153, 204, 0.25);
  padding: 24px 20px;
}
.flow-card__body {
  flex: 1;
}
.flow-card__photo {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flow-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flow-card__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* [M-003] 白文字 2.51〜3.92:1 だったため両端を濃度側へ（4.82:1 → 5.96:1） */
  background: linear-gradient(135deg, #007bab 0%, #015c98 100%);
  color: #fff;
  font-family: var(--font-accent);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-card__title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  margin-bottom: 12px;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.flow-card__desc {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}
.flow-arrow {
  display: flex;
  justify-content: center;
}
.flow-arrow::after {
  content: '';
  display: block;
  width: 64px;
  height: 18px;
  background: linear-gradient(135deg, #33c4f0 0%, #0099cc 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.flow-note {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  text-align: left;
  margin-top: var(--spacing-md);
}
.flow-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

/* ─────────────────────────────────────────────── */
/* RESPONSIVE: MEDIUM PC (768px+) */
/* ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .section-heading { margin-bottom: 48px; }
  .section-heading__en { font-size: 13px; }
  .section-heading__ja { font-size: 38px; }
  .section-padding { padding: 96px 0; }

  .page-hero {
    padding: 40px 0;
    margin-top: 0;
  }
  .page-hero__en { font-size: 13px; }
  .page-hero__title { font-size: 40px; }

  .cta-bottom__phone { font-size: 40px; }
  .cta-section { padding: 64px 0; }
  .cta-card { }
  .cta-card .cta-phone-number { font-size: 28px; }

  .footer-main { padding: 64px 0; }
  .footer-main .container {
    flex-direction: row;
    align-items: flex-start;
  }
  .footer-info { flex: 0 0 auto; max-width: 300px; }
  /* navi.md §3 の5カラム。auto-fit なので 768〜1199px では自動的に段落ちする */
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px 28px;
  }
  .footer-nav a { white-space: normal; align-items: flex-start; line-height: 1.6; }
  .footer-nav a::before { margin-top: 0.62em; }

  .btn-primary { padding: 14px 40px; font-size: 16px; }
  .btn-secondary { padding: 12px 36px; }

  .flow-actions {
    flex-direction: row;
    justify-content: center;
  }

  .flow-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .flow-card__photo { width: 240px; }
}

/* ─────────────────────────────────────────────── */
/* RESPONSIVE: HEADER PC 化 (960px+) */
/* ─────────────────────────────────────────────── */
/* 959px 以下はハンバーガー＋SP固定下部バーを維持する。
   768px から PC ヘッダーにするとロゴが問診票ボタンに衝突し、
   電話番号が「0263-33-」「9728」に分断されるため。 */
@media (min-width: 960px) {
  body { padding-bottom: 0; padding-top: 0; }
  html { scroll-padding-top: 56px; }

  /* 2段ヘッダー（960px〜1199px） */
  .site-header { background: transparent; }
  .header-top { background: transparent; border-bottom: none; }
  /* ロゴ高は上部の [昇格] ブロックで 38/40px に確定済み（テンプレ既定の 56px は使わない） */
  .header-top-inner { padding: 8px 0; max-width: 100%; }
  .header-actions {
    display: flex;
    /* 電話ボタンは注記＋大きな番号の2行で背が高い。stretch で予約ボタンを
       同じ高さまで伸ばし、上下の見た目を揃える */
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .header-actions .btn-reserve { padding: 4px 12px; min-height: 44px; font-size: 16px; }
  .header-actions .btn-tel { padding: 0 6px; font-size: 16px; line-height: 1.1; }
  .header-actions .btn-tel .tel-number { font-size: 26px; white-space: nowrap; }
  .header-actions .btn-english { padding: 4px 8px; font-size: 16px; white-space: nowrap; }
  .header-nav { display: block; width: 100%; }
  .header-nav ul { justify-content: center; }
  .header-nav a { font-size: 13px; white-space: nowrap; padding: 4px 4px; }
  .header-nav-bar-inner { height: 52px; }
  .hamburger { display: none; }
  .sp-header-right { display: none; }
  .sp-bottom-bar { display: none; }
}

/* ─────────────────────────────────────────────── */
/* RESPONSIVE: LARGE PC (1200px+) */
/* ─────────────────────────────────────────────── */
@media (min-width: 1200px) {
  .container { max-width: var(--max-width-wide); }
  html { scroll-padding-top: 56px; }

  /* ロゴ高は上部の [昇格] ブロックで 40px に確定済み（テンプレ既定の 64px は使わない） */
  .header-top-inner { padding: 10px 0 0; max-width: 100%; }
  .header-nav-bar-inner { padding: 16px 0; height: 84px; max-width: 100%; }
  .header-nav a { font-size: 18px; padding: 8px 4px; }
  .header-actions .btn-reserve { padding: 4px 18px; min-height: 48px; font-size: 16px; }
  .header-actions .btn-tel { padding: 0 8px; font-size: 16px; line-height: 1.1; }
  .header-actions .btn-tel .tel-number { font-size: 28px; }
  .header-actions .btn-english { padding: 6px 12px; font-size: 16px; }

  .page-hero { margin-top: 0; }
}

/* ── Lucide icons 基本設定 ── */
i[data-lucide] { display: inline-block; width: 1em; height: 1em; }
svg.lucide { width: 1em; height: 1em; vertical-align: -0.125em; }
.sns-icon { width: 1em; height: 1em; vertical-align: -0.125em; }
/* 電話は塗りアイコン */
svg.lucide-phone { fill: currentColor; stroke-width: 0; }


/* ══════════════════════════════════════════════════════════════════════════
   全50ページ共通コンポーネント（Step 5 Phase 1 で集約）
   トンマナ適用済: 荻原医院（実装 output/ 準拠）

   [昇格]  = output/index.html のインライン <style> から移設（tone_manner.md §8-1）
   [移植]  = templates/template_002/*.html のインライン <style> から移植（§8-1b）
   [新規]  = tone_manner.md §8-2 N1〜N10

   ⚠ ページ側でこれらのセレクタを再定義しないこと（49ページで見た目が揺れる）
   ══════════════════════════════════════════════════════════════════════════ */

/* ─────────── [昇格] 診療時間表 ─────────── */
/* index / about/hours / access / about/first-visit で共用 */
.schedule-wrapper { max-width: var(--max-width-narrow); margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule-wrapper--compact { overflow: visible; }
.schedule-table.schedule-table--compact { min-width: 0; width: 100%; table-layout: fixed; }
.schedule-table--compact col.col-time { width: 130px; }
.schedule-table--compact th, .schedule-table--compact td { padding: 10px 0; font-size: 16px; text-align: center; }
.schedule-table--compact .time-label { padding-left: 6px; text-align: left; }
.schedule-table--compact .time-label .time-label-sub { font-size: 18px; display: block; margin-top: 3px; }
.schedule-table--compact .mark-open .mark-circle { width: 13px; height: 13px; margin-bottom: 0; }
.schedule-table { width: 100%; min-width: 480px; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.schedule-table thead { background: linear-gradient(105deg, #00b4ec 0%, #0089bd 100%); color: var(--color-white); } /* 水色系グラデ（ユーザー指定）。白文字 2.4〜4.0:1 で AA 未達のためレビュー時要申し送り */
.schedule-table th, .schedule-table td { padding: 11px 6px; text-align: center; font-size: 16px; }
.schedule-table thead th { font-weight: var(--font-weight-medium); }
.schedule-table tbody td { border-bottom: 1px solid var(--color-border-light); background: var(--color-white); }
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table .mark-open { color: var(--color-text-primary); vertical-align: middle; }
.schedule-table .mark-open .mark-circle { display: block; width: 14px; height: 14px; background: var(--color-accent); border-radius: 50%; margin: 0 auto 6px; }
.schedule-table .mark-closed { color: var(--color-text-secondary); vertical-align: middle; } /* [M-003] 白地 7.29:1 */
.schedule-table .time-label { font-weight: var(--font-weight-medium); text-align: left; padding-left: 12px; white-space: nowrap; }
.schedule-notes { font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.8; margin-top: 12px; }
.schedule-notes li { padding-left: 1em; text-indent: -1em; }
.schedule-notes li::before { content: '※ '; }
.time-label-sub { font-size: 16px; color: var(--color-text-secondary); white-space: nowrap; }

/* ─────────── [昇格] お知らせリスト ─────────── */
/* index / news / column で共用（Step 9 の Vue 化で v-for の器になる） */
.news-list { flex: 1; background: var(--color-white); border-radius: var(--radius-lg); padding: 0 24px; }
.news-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.news-item + .news-item { border-top: 1px solid var(--color-border-light); }
/* コラム一覧のカテゴリ絞り込み用。.news-item は display:flex のため [hidden] だけでは消えない */
.news-item[hidden] { display: none; }
/* 絞り込みで行が飛ぶと隣接セレクタが当たらないため、可視行の境界線は JS が付け外しする */
.news-item.is-row-top { border-top: 1px solid var(--color-border-light); }
.news-item.is-row-flush { border-top: none; }
.news-date { font-family: var(--font-accent); font-weight: var(--font-weight-bold); font-size: var(--font-size-small); color: var(--color-accent-dark); flex-shrink: 0; min-width: 86px; } /* [M-003] 5.96:1 */
.news-tag { display: inline-flex; align-items: center; justify-content: center; padding: 3px 12px; border-radius: 100px; font-size: 11px; font-weight: var(--font-weight-bold); white-space: nowrap; flex-shrink: 0; min-width: 72px; color: #fff; }
.news-tag--info { background: var(--color-accent); }
/* 標準カテゴリ「重要」。--color-sub（#ff6f6f）は白文字 2.71:1 で AA 未達のため濃色を使う（#c33636・白文字 5.38:1） */
.news-tag--important { background: var(--color-sub-dark); }
.news-title { font-size: 16px; font-weight: var(--font-weight-medium); color: var(--color-text-primary); flex: 1; min-width: 0; }
a.news-title:hover { color: var(--color-accent-dark); }

/* ─────────── [昇格] 情報カード（診療時間 / アクセス） ─────────── */
.info-grid { display: grid; grid-template-columns: 1fr; gap: var(--spacing-md); margin-top: 32px; }
.info-card { padding: 0; min-width: 0; overflow: hidden; }
.info-card__title { font-size: 19px; font-weight: var(--font-weight-bold); color: var(--color-text-secondary); margin-bottom: 10px; }
.info-card__address { font-style: normal; font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.8; margin-top: 28px; margin-bottom: 16px; text-align: center; }
.info-card__address a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-accent-dark); font-family: var(--font-accent); font-weight: var(--font-weight-bold); font-size: 28px; margin-top: 4px; } /* Primary Dark 5.96:1（大文字扱いで 3:1 要件も満たす） */
.info-card__address-label { font-size: 18px; font-weight: var(--font-weight-bold); color: #007bab; } /* 行動色ブルー（白地 4.8:1 AA） */
.info-card__more { margin-top: 16px; text-align: center; }
.access-map--info { border-radius: var(--radius-md); overflow: hidden; height: 320px; }
.access-map--info iframe { width: 100%; height: 100%; border: 0; display: block; }

/* [移植] 囲みタイプの情報カード（template_002 shinryoka_*）。
   index の .info-card は「枠なしの器」なので、下層ページで注意事項等を囲みたいときは
   .info-card--boxed を併用する（.info-card 単体を再定義しない） */
.info-card--boxed {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  overflow: visible;
}
.info-card--boxed .info-card__title {
  font-size: var(--font-size-h4);
  color: var(--color-accent-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card--boxed .info-card__title :is(i, svg) { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; }
.info-card--boxed p { line-height: var(--line-height-body); }
.info-card--boxed p:last-child { margin-bottom: 0; }

/* ─────────── [昇格] 交互配置の特徴行 ─────────── */
/* index / endoscopy/gastroscopy / about で共用 */
.features-rows { display: flex; flex-direction: column; gap: var(--spacing-xl); margin-top: var(--spacing-lg); }
.features-row { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.features-row__image { width: 100%; border-radius: var(--radius-lg); overflow: hidden; flex-shrink: 0; aspect-ratio: 4 / 3; }
.features-row__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.features-row__content { flex: 1; }
.features-row__num { font-family: var(--font-accent); font-weight: var(--font-weight-bold); font-size: 40px; line-height: 1; color: var(--color-accent); display: block; margin-bottom: 10px; }
.features-row__title { font-size: 26px; font-weight: var(--font-weight-bold); color: var(--color-text-primary); margin-bottom: 16px; padding-bottom: 14px; position: relative; }
.features-row__title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 64px; height: 3px; background: var(--color-accent); border-radius: 2px; }
.features-row__text { font-size: 16px; color: var(--color-text-secondary); line-height: var(--line-height-body); }

/* ─────────── [昇格] 診療カード（関連リンクの器として最も流用する） ─────────── */
/* index / medical / endoscopy / symptoms / diseases で共用 */
.medical-grid { display: grid; grid-template-columns: 1fr; gap: var(--spacing-sm); align-items: stretch; }
.medical-card {
  display: flex; flex-direction: column; background: var(--color-white); border-radius: var(--radius-lg);
  padding: 16px; border: 1px solid var(--color-border-light); /* 枠線は薄いグレー（ユーザー指定） */
  transition: background 0.45s ease, box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease;
  color: var(--color-text-primary); text-align: center; position: relative; overflow: hidden;
}
.medical-card:hover { background: var(--color-accent-light); box-shadow: 0 12px 36px color-mix(in srgb, var(--color-accent) 18%, transparent), 0 0 0 1px var(--color-accent); transform: translateY(-6px); border-color: var(--color-accent); color: var(--color-text-primary); } /* ホバーは薄い水色地（ユーザー指定） */
.medical-card__icon { width: 96px; height: 96px; border-radius: 50%; background: rgba(0, 153, 204, 0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; transition: background 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.medical-card:hover .medical-card__icon { background: rgba(0, 153, 204, 0.22); transform: scale(1.1); }
/* index はインライン <style> で stroke を url(#icon-gradient) に上書きする（同ページに defs があるため）。
   下層ページには defs が無いので共通側は必ず実色で塗る（gradient 参照だとアイコンが消える） */
.medical-card__icon svg { width: 44px; height: 44px; stroke: var(--color-accent); stroke-width: 1.75; fill: none; }
.medical-card__name { font-size: var(--font-size-h3); font-weight: var(--font-weight-bold); margin-bottom: 8px; align-self: center; }
/* width:fit-content + margin auto で「1行の短文は中央・折り返す長文は左揃えの塊」を両立させる。
   中央揃えのカード内で1行だけ左寄せになるのを防ぐため、幅を auto に戻さない */
.medical-card__desc { font-size: 16px; color: var(--color-text-secondary); line-height: 1.7; text-align: left; width: fit-content; margin: 0 auto; }
.medical-more { text-align: center; margin-top: var(--spacing-lg); }
/* 直後に目次ボックスが続くと密着するため間隔を入れる（diseases 等） */
.medical-more + .page-nav { margin-top: var(--spacing-lg); }

/* [移植] カテゴリ一覧ハブ用のグリッドと補助パーツ（template_002 shinryo.html）。
   カード本体は上記 .medical-card を使う（ハブとトップで見た目を揃える） */
.medical-cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; align-items: stretch; }
.medical-card__link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: var(--font-weight-medium); color: var(--color-accent-dark); margin-top: auto; padding-top: 16px; }
.medical-card__link :is(i, svg) { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.medical-card:hover .medical-card__link :is(i, svg) { transform: translateX(4px); }
.medical-card__badge {
  display: inline-block; align-self: center; margin-bottom: 12px;
  background: var(--color-sub-light); border: 1px solid var(--color-sub); color: var(--color-text-primary);
  font-size: 12px; font-weight: var(--font-weight-bold); padding: 2px 10px; border-radius: var(--radius-full);
}
.info-badge {
  display: inline-block; background: var(--color-accent-light); color: var(--color-accent-dark);
  font-size: var(--font-size-small); font-weight: var(--font-weight-medium);
  padding: 6px 16px; border-radius: var(--radius-full); margin-bottom: 32px;
}
.other-info { background: var(--color-bg-secondary); border-radius: var(--radius-lg); padding: 32px 24px; margin-bottom: 40px; }
.other-info__title { font-size: var(--font-size-h3); font-weight: var(--font-weight-bold); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.other-info__title :is(i, svg) { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; }
.other-info__list li { position: relative; padding-left: 20px; margin-bottom: 12px; line-height: var(--line-height-body); font-size: 16px; }  /* 本文下限 15px（tone_manner §3） */
.other-info__list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.other-info__badge { margin-top: 16px; font-size: var(--font-size-small); color: var(--color-text-secondary); }
.other-info__badge :is(i, svg) { color: var(--color-accent); }

/* ─────────── [昇格] 予告バナー（ブルー） ─────────── */
/* index / endoscopy / colonoscopy / gastroenterology / doctors で共用 */
.mirai-banner { display: flex; align-items: center; gap: 18px; margin-top: 16px; background: #fff; border: 2px solid var(--color-secondary-dark); border-radius: var(--radius-lg); padding: 22px 26px; color: var(--color-text-primary); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.mirai-banner:hover { box-shadow: 0 6px 20px rgba(0, 137, 189, 0.18); transform: translateY(-2px); color: var(--color-text-primary); }
.mirai-banner__body { flex: 1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* ラベルはベタ塗り白抜き（ブルー系・ユーザー指定）。白文字 16px × #0089bd は 4.0:1 で AA 未達だが指定どおりで確定（申し送り済み） */
.mirai-banner__label { display: inline-block; font-size: 16px; font-weight: var(--font-weight-bold); color: #fff; background: var(--color-secondary-dark); border-radius: 100px; padding: 4px 18px; letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0; }
.mirai-banner__title { font-size: 17px; font-weight: var(--font-weight-bold); line-height: 1.6; }
.mirai-banner__arrow { color: var(--color-secondary-dark); flex-shrink: 0; display: flex; align-items: center; margin-right: 8px; }
.mirai-banner__arrow :is(i, svg) { width: 34px; height: 34px; }
/* 小さい画面: nowrap 固まりがはみ出して右余白を潰すため、
   バナー内は自然折り返しに戻し、サイズも一段階縮小して余白を確保する */
@media (max-width: 767px) {
  .mirai-banner { padding: 18px 20px; gap: 12px; }
  .mirai-banner .cell-nowrap { white-space: normal; }
  .mirai-banner__body { gap: 8px 12px; min-width: 0; }
  .mirai-banner__title { font-size: 15px; }
  .mirai-banner__arrow { margin-right: 0; }
  .mirai-banner__arrow :is(i, svg) { width: 28px; height: 28px; }
}

/* ═════════ [移植] 下層ページの本文器（template_002 shinryoka_a〜d / checkup / access） ═════════ */
/* 既定は読み物用の 800px カラム。ハブ・アクセス等の一覧系は .page-content--wide を併用する */
/* 下層49ページの本文面。body の放射グラデ（background-attachment: fixed）が
   長文の背後で動き続けると読みづらいので、明るいオフホワイトの単色で固定する。
   白いカード・囲みがこの地色の上で分離して見えるので白地にはしない。 */
.page-content { padding: 40px 0; background: var(--color-bg-secondary); }
.page-content .container { max-width: var(--max-width-narrow); }
.page-content--wide .container { max-width: var(--max-width); }

.content-section { margin-bottom: 56px; }
.content-section:last-child { margin-bottom: 0; }

.content-heading {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--color-accent);
  position: relative;
}
.content-heading::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 80px; height: 3px; background: var(--color-sub); }

.content-sub-heading {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  padding-left: 16px;
  margin-bottom: 16px;
  margin-top: 32px;
  border-left: 4px solid var(--color-accent);
  color: var(--color-text-primary);
}

/* .content-body / .flow-actions は自身に下マージンを持たないため、直後に兄弟ブロック
   （.reserve-duo / figure / .related-block / .address-card / .form-steps 等）が来ると
   隙間がゼロになる。末尾なら .content-section の下マージンが効くので :not(:last-child) に限る。 */
.content-body:not(:last-child) { margin-bottom: var(--spacing-md); }
.flow-actions:not(:last-child) { margin-bottom: var(--spacing-md); }
/* .content-body の中に差し込まれたグリッドは、前後の段落との間隔を確保する */
.content-body > .medical-grid { margin: var(--spacing-md) 0; }

.content-body p { margin-bottom: 16px; line-height: var(--line-height-body); }
.content-body p:last-child { margin-bottom: 0; }
.content-body ul:not([class]) { margin: 0 0 16px; }
.content-body ul:not([class]) li { position: relative; padding-left: 18px; margin-bottom: 8px; line-height: var(--line-height-body); }
.content-body ul:not([class]) li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

/* 導入ボックス / 導入リード */
.intro-box { background: var(--color-accent-light); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.intro-box p { margin-bottom: 0; line-height: var(--line-height-body); }
.intro-text { max-width: var(--max-width-narrow); margin: 0 auto 40px; line-height: var(--line-height-body); color: var(--color-text-secondary); }
/* wide レイアウト（1100px）では narrow(800px) の intro-text が中央寄せになり
   見出し・本文と行頭が揃わないため左寄せにする（.intro-box 併用時も含む） */
.page-content--wide .intro-text { margin-left: 0; margin-right: 0; }
/* ただしページ冒頭の導入文（囲み .intro-box ／ .fade-in 付き）は中央寄せのまま残す
   （ユーザー指定。左寄せにするのは各 content-section 内のリード文だけ） */
.page-content--wide .intro-box.intro-text,
.page-content--wide .intro-text.fade-in { margin-left: auto; margin-right: auto; }

/* チェックリスト */
.checklist { margin: 16px 0 24px; }
.checklist li {
  position: relative;
  padding-left: 28px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--font-size-body);
  line-height: 1.6;
}
.checklist li::before {
  content: '';
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  color: var(--color-accent);
  position: absolute;
  left: 4px;
  top: 14px;
  font-size: 14px;
}
.checklist-heading { font-size: var(--font-size-body); font-weight: var(--font-weight-bold); margin-top: 20px; margin-bottom: 12px; color: var(--color-accent-dark); }

/* 対象疾患ブロック / 丸アイコン */
/* .page-content の地色（--color-bg-secondary）と同色だと枠が消えるため、
   白地＋細枠のカードとして面を立てる */
.disease-section { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px 24px; margin-bottom: 32px; }
.disease-section__title { font-size: var(--font-size-h3); font-weight: var(--font-weight-bold); color: var(--color-text-primary); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-white); flex-shrink: 0;
}
.icon-circle :is(i, svg) { width: 18px; height: 18px; }

/* 生活アドバイス */
.lifestyle-tips { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0 24px; }
.lifestyle-tip { background: var(--color-white); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--color-border-light); }
.lifestyle-tip__title { font-size: var(--font-size-body); font-weight: var(--font-weight-bold); color: var(--color-accent-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.lifestyle-tip__title :is(i, svg) { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
.lifestyle-tip p { font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 0; }

/* 一覧へ戻る */
.back-link { text-align: center; margin-top: 40px; }

/* ═════════ [移植] FAQ アコーディオン（template_002 faq.html。§8-2 N4） ═════════ */
/* 開閉は js/common.js に集約。閉じている間は .faq-answer に hidden が付きフォーカス不可 */
.faq-category { margin-bottom: 48px; }
.faq-category:last-child { margin-bottom: 0; }
.faq-category__title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--color-accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-category__title::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 80px; height: 3px; background: var(--color-sub); }
.faq-item { border: 1px solid var(--color-border-light); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; background: var(--color-white); }
.faq-item:last-child { margin-bottom: 0; }
.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  min-height: 48px;
  cursor: pointer;
  background: var(--color-white);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: 1.6;
  transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--color-bg-secondary); }
.faq-question__icon,
.faq-answer__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-family: var(--font-accent); font-weight: var(--font-weight-bold); font-size: 14px;
  flex-shrink: 0;
}
/* Q/A は水色系で統一（白文字は Primary Dark 5.96:1 で AA 適合） */
.faq-question__icon { background: var(--color-accent-dark); color: var(--color-white); }
.faq-answer__icon { background: var(--color-accent-light); color: var(--color-accent-dark); }
.faq-question__text { flex: 1; padding-top: 2px; }
.faq-question__toggle { flex-shrink: 0; color: var(--color-text-secondary); width: 18px; height: 18px; transition: transform var(--transition-normal); margin-top: 4px; }
.faq-item.is-open .faq-question__toggle { transform: rotate(180deg); }
.faq-answer { background: var(--color-white); }
.faq-answer[hidden] { display: none; }
.faq-answer__inner { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--color-border-light); }
.faq-answer__text { flex: 1; font-size: var(--font-size-body); line-height: var(--line-height-body); color: var(--color-text-secondary); padding-top: 2px; }
.faq-answer__text p { margin-bottom: 12px; }
.faq-answer__text p:last-child { margin-bottom: 0; }
.faq-answer__text a { color: var(--color-accent-dark); text-decoration: underline; }

/* ═════════ [移植] 健診カード（template_002 checkup.html） ═════════ */
.checkup-card { background: var(--color-white); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: 28px 24px; margin-bottom: 32px; }
.checkup-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.checkup-card__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: var(--color-white); flex-shrink: 0; }
.checkup-card__icon :is(i, svg) { width: 20px; height: 20px; }
.checkup-card__title { font-size: var(--font-size-h3); font-weight: var(--font-weight-bold); }
.checkup-card__list { margin-bottom: 16px; }
.checkup-card__list li { position: relative; padding-left: 24px; margin-bottom: 10px; line-height: 1.7; font-size: 16px; }
.checkup-card__list li::before {
  content: '';
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
  position: absolute; left: 0; top: 4px; color: var(--color-accent); font-size: 14px;
}
.checkup-card__note { background: var(--color-bg-secondary); border-radius: var(--radius-md); padding: 16px; font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.8; }
.checkup-card__note-label { font-weight: var(--font-weight-bold); color: var(--color-accent-dark); margin-bottom: 4px; display: block; }

/* ═════════ [移植] 医師プロフィール（template_002 about.html） ═════════ */
.doctor-profile { margin-bottom: 48px; }
.doctor-profile__main { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
.doctor-profile__photo { text-align: center; }
.doctor-profile__photo img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; margin: 0 auto; }
.doctor-profile__photo-caption { font-size: var(--font-size-small); color: var(--color-text-secondary); margin-top: 8px; }
.doctor-profile__info h3 { font-size: var(--font-size-h3); margin-bottom: 4px; }
.doctor-profile__title-label { font-size: var(--font-size-small); color: var(--color-accent-dark); font-weight: var(--font-weight-bold); margin-bottom: 16px; display: block; }
.doctor-profile__kana { font-size: var(--font-size-small); color: var(--color-text-secondary); margin-bottom: 16px; }
.doctor-profile__message { line-height: var(--line-height-body); margin-bottom: 24px; }
.doctor-profile__certs-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.doctor-detail { background: var(--color-bg-secondary); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.doctor-detail__title { font-size: var(--font-size-body); font-weight: var(--font-weight-bold); color: var(--color-accent-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.doctor-detail__title :is(i, svg) { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
.doctor-detail__list li { position: relative; padding-left: 16px; margin-bottom: 6px; font-size: 15px; line-height: 1.7; }
.doctor-detail__list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.other-doctors { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
.other-doctor-card { background: var(--color-white); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.other-doctor-card__name { font-size: var(--font-size-h4); font-weight: var(--font-weight-bold); margin-bottom: 4px; }
.other-doctor-card__charge { font-size: var(--font-size-small); color: var(--color-accent-dark); font-weight: var(--font-weight-medium); margin-bottom: 12px; }
.other-doctor-card__certs { width: fit-content; margin: 0 auto; }
.other-doctor-card__certs li { position: relative; padding-left: 12px; margin-bottom: 4px; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); text-align: left; }
.other-doctor-card__certs li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-border); }
.facility-heading { font-size: var(--font-size-h3); margin-bottom: 20px; }
.facility-heading--mt { margin-top: 40px; }

/* ═════════ [移植] 設備・院内写真（template_002 about.html） ═════════ */
.equipment-list { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
.equipment-item { display: flex; flex-direction: column; gap: 12px; }
.equipment-item__photo { border-radius: var(--radius-md); overflow: hidden; }
.equipment-item__photo img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.equipment-item__name { font-size: var(--font-size-h4); font-weight: var(--font-weight-bold); margin-bottom: 8px; color: var(--color-text-primary); }
.equipment-item__desc { font-size: 16px; line-height: var(--line-height-body); color: var(--color-text-secondary); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
/* grid の子に height:100% を与えると画像が行の高さを占め、overflow:hidden で
   figcaption が枠外に押し出されて消える。高さは aspect-ratio に任せる */
.gallery-item { border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.gallery-item img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery-item figcaption { font-size: var(--font-size-small); color: var(--color-text-secondary); text-align: center; padding: 8px 4px; background: var(--color-bg-secondary); }

/* ═════════ [移植] アクセス（template_002 access.html） ═════════ */
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; border: 1px solid var(--color-border-light); }
.map-wrapper iframe { width: 100%; height: 300px; display: block; border: none; }
.address-card { background: var(--color-bg-secondary); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 40px; }
.address-card__name { font-size: var(--font-size-h3); font-weight: var(--font-weight-bold); margin-bottom: 16px; }
.address-card__detail { display: flex; flex-direction: column; gap: 12px; }
.address-card__item { display: flex; align-items: flex-start; gap: 12px; font-size: var(--font-size-body); line-height: 1.7; }
.address-card__item :is(i, svg) { color: var(--color-accent); width: 20px; height: 20px; margin-top: 4px; flex-shrink: 0; }
.address-card__item a { color: var(--color-text-primary); }
.address-card__item a:hover { color: var(--color-accent-dark); }
.transport-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.transport-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: var(--color-white); border-radius: var(--radius-md); border: 1px solid var(--color-border-light); font-size: var(--font-size-body); line-height: 1.6; }
.transport-item :is(i, svg) { color: var(--color-accent); width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.transport-note { font-size: var(--font-size-small); color: var(--color-text-secondary); margin-top: 12px; padding-left: 4px; }
.guide-steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
.guide-step { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--color-bg-secondary); border-radius: var(--radius-md); }
.guide-step__header { display: flex; align-items: flex-start; gap: 10px; }
.guide-step__number { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent); color: var(--color-white); font-family: var(--font-accent); font-weight: var(--font-weight-bold); font-size: 13px; flex-shrink: 0; }
.guide-step__text { font-size: var(--font-size-small); line-height: 1.7; padding-top: 4px; }
.guide-step__img { width: 100%; border-radius: var(--radius-md); overflow: hidden; }
.guide-step__img img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 4 / 3; }

/* ═════════ [新規 N1] 受診の目安コールアウト（3段） ═════════ */
/* 3段が同一ページに並ぶ。サイズは揃え、色と見出し語だけで緊急度の差を示す */
.callout { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; margin: 20px 0; }
.callout__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: var(--font-size-h4); font-weight: var(--font-weight-bold); line-height: var(--line-height-heading); margin-bottom: 10px; }
.callout__title :is(i, svg) { width: 22px; height: 22px; flex-shrink: 0; }
.callout p { line-height: var(--line-height-body); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin-bottom: 0; }
.callout li { position: relative; padding-left: 18px; margin-bottom: 6px; line-height: var(--line-height-body); }
.callout li:last-child { margin-bottom: 0; }
.callout li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.55; }
/* 地色は必ず不透明にする。半透明（rgba トークン）のままだと body の
   background-attachment: fixed の放射グラデが透けて、囲みの中が斑に見える。
   淡色は白の上に重ねて合成し、単色として描画させる。 */
.callout--normal { border-color: var(--color-accent); background: linear-gradient(var(--color-accent-light), var(--color-accent-light)) var(--color-white); }
.callout--normal .callout__title { color: var(--color-accent-dark); }
.callout--soon { border-color: var(--color-sub); background: linear-gradient(var(--color-sub-light), var(--color-sub-light)) var(--color-white); }
.callout--soon .callout__title { color: var(--color-text-primary); }
.callout--soon .callout__title :is(i, svg) { color: var(--color-sub-dark); }
.callout--urgent { border-color: var(--color-alert); background: linear-gradient(var(--color-alert-light), var(--color-alert-light)) var(--color-white); }
.callout--urgent .callout__title { color: var(--color-alert); }

/* ═════════ [新規 N3] ページ末尾の3段導線ブロック ═════════ */
/* 「同カテゴリの他ページ」→「関連コラム」→ 締めは .cta-section（direction §8-4 不変条件6） */
.related-block { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: var(--spacing-md); }
.related-block__title { font-size: var(--font-size-h4); font-weight: var(--font-weight-bold); color: var(--color-accent-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.related-block__title :is(i, svg) { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
.related-block__links li + li { border-top: 1px solid var(--color-border-light); }
.related-block__links a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 16px; color: var(--color-text-primary); }
.related-block__links a:hover { color: var(--color-accent-dark); }
.related-block__links a :is(i, svg) { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; }

/* ═════════ [新規 N5] 費用表 ═════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.price-table {
  width: 100%; min-width: 460px;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-white);
}
/* 項目名セルが金額列（nowrap）に押されて1文字ずつ縦積みになるのを防ぐ。
   費用表は胃カメラ・自費診療・健診・特定健診で共用するため共通側で担保する */
.price-table th { white-space: nowrap; }
/* 2〜3列の短い費用表は min-width による横スクロールが不要（390px で金額が
   画面外に出るため）。列が少ない表には --narrow を付ける */
.price-table--narrow { min-width: 0; }
.price-table td { vertical-align: middle; }

.price-table thead th { background: var(--color-accent-dark); color: var(--color-white); font-weight: var(--font-weight-medium); font-size: 14px; }
.price-table th, .price-table td { padding: 12px 12px; font-size: 16px; vertical-align: middle; border-bottom: 1px solid var(--color-border-light); }
.price-table tbody th { text-align: left; font-weight: var(--font-weight-medium); color: var(--color-text-primary); }
.price-table tbody td { text-align: right; font-family: var(--font-accent); font-weight: var(--font-weight-bold); color: var(--color-text-primary); white-space: nowrap; }
.price-table tbody td.price-table__text { font-family: var(--font-primary); font-weight: var(--font-weight-regular); text-align: left; white-space: normal; }
.price-table tbody tr:last-child :is(th, td) { border-bottom: none; }
.price-note { font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.8; }
.price-note li { padding-left: 1em; text-indent: -1em; }
.price-note li::before { content: '※ '; }

/* ═════════ [新規 N6] 監修者表示（E-E-A-T / Step 8 Physician の受け皿） ═════════ */
.supervisor { display: flex; align-items: center; gap: 16px; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; margin-top: var(--spacing-lg); }
.supervisor__photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.supervisor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.supervisor__body { flex: 1; min-width: 0; }
.supervisor__name { font-size: 16px; font-weight: var(--font-weight-bold); color: var(--color-text-primary); margin-bottom: 4px; }
.supervisor__note { font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.8; }

/* ═════════ [新規 N7] 問い合わせフォーム ═════════ */
/* ラベルは入力欄の上。必須は「必須」の文字バッジで示し色だけに頼らない。タップ領域 48px */
.form-block { display: flex; flex-direction: column; gap: 20px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 16px; font-weight: var(--font-weight-bold); color: var(--color-text-primary); display: flex; align-items: center; gap: 8px; }
.form-label--required::after {
  content: '必須';
  font-size: 12px; font-weight: var(--font-weight-bold); line-height: 1.4;
  color: var(--color-white); background: var(--color-alert);
  border-radius: var(--radius-full); padding: 2px 10px; letter-spacing: 0.04em;
}
.form-input, .form-select, .form-textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-family: var(--font-primary); font-size: 16px; line-height: 1.6;
  color: var(--color-text-primary); background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-text-light); }
.form-textarea { min-height: 160px; line-height: var(--line-height-body); resize: vertical; }
.form-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5650' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px 18px;
}
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: var(--line-height-body); }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 22px; height: 22px; margin-top: 4px; flex-shrink: 0; accent-color: var(--color-accent); }
.form-note { font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.8; }
.form-actions { text-align: center; margin-top: 8px; }
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible,
.form-check input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ═════════ [新規 N8] 一覧フィルタ（カテゴリ / 年月） ═════════ */
/* 静的 HTML では 1チップ = 1リンク。Step 9 の Vue 化で v-for の器になるので DOM を崩さない */
.list-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--spacing-md); }
.list-filter__chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  background: var(--color-white); color: var(--color-text-primary);
  font-size: 16px; font-weight: var(--font-weight-medium); white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.list-filter__chip:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.list-filter__chip.is-active { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: var(--color-white); font-weight: var(--font-weight-bold); }

/* ═════════ [新規 N9] ページネーション ═════════ */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: var(--spacing-lg); }
.pagination__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-white); color: var(--color-text-primary);
  font-family: var(--font-accent); font-weight: var(--font-weight-bold); font-size: 15px;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.pagination__item :is(i, svg) { width: 16px; height: 16px; }
.pagination__item:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.pagination__item.is-current { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: var(--color-white); }
.pagination__item[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* ═════════ [新規 N10] 部位別グループ（症状 / 疾患ハブ） ═════════ */
.group-block { margin-bottom: var(--spacing-xl); }
.group-block:last-child { margin-bottom: 0; }
.group-block__title {
  font-size: var(--font-size-h3); font-weight: var(--font-weight-bold);
  color: var(--color-text-primary); margin-bottom: 20px;
  padding-left: 16px; border-left: 4px solid var(--color-accent);
}

/* フェーズ2（大腸カメラ開始後）で差し替える CTA のマーカー。見た目は付けない。
   .cta-colonoscopy — tone_manner.md §11-6 */

/* ─────────── パンくずの hover も Accent から是正（§9-A と同種） ─────────── */
.breadcrumb a:hover { color: var(--color-accent-dark); }

/* ═════════════════════ RESPONSIVE: 768px+（本ブロック分） ═════════════════════ */
@media (min-width: 768px) {
  /* [昇格] */
  .info-grid { grid-template-columns: 1fr 1fr; gap: calc(var(--spacing-md) * 3); margin-top: 64px; }
  .features-row { flex-direction: row; gap: var(--spacing-xl); }
  .features-row:nth-child(even) { flex-direction: row-reverse; }
  .features-row__image { width: 42%; }
  .medical-grid { grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }
  /* カード枚数が4でないグリッド用の列数バリアント。
     4列既定のまま3枚を並べると右に1枠ぶんの空白が残るため、枚数に応じて指定する。 */
  .medical-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .medical-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .medical-grid--auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .medical-card { padding: 32px 24px; width: 100%; }
  .schedule-table th, .schedule-table td { padding: 14px 10px; font-size: 17px; }
  .schedule-table .mark-open .mark-circle { width: 16px; height: 16px; }
  .time-label-sub { font-size: 16px; }

  /* [移植] */
  .page-content { padding: 64px 0; }
  .content-heading { font-size: 28px; }
  .content-sub-heading { font-size: 22px; }
  .content-section { margin-bottom: 72px; }
  .page-nav__list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .lifestyle-tips { grid-template-columns: 1fr 1fr; }
  .disease-section { padding: 40px 32px; }
  .medical-cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .info-card--boxed { padding: 28px; }
  .faq-category__title { font-size: 24px; }
  .faq-question { padding: 24px; }
  .faq-answer__inner { padding: 20px 24px 24px; }
  .checkup-card { padding: 32px; }
  .other-info { padding: 40px 32px; }
  .map-wrapper iframe { height: 450px; }
  .address-card { padding: 40px; }
  .guide-steps { grid-template-columns: repeat(3, 1fr); }
  .doctor-profile__main { grid-template-columns: 4fr 6fr; gap: 32px; }
  .doctor-profile__certs-grid { grid-template-columns: 1fr 1fr; }
  .other-doctors { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .equipment-list { grid-template-columns: repeat(3, 1fr); }

  /* [新規] */
  .callout { padding: 24px 28px; }
  .related-block { padding: 28px 32px; }
  .supervisor { padding: 24px 28px; gap: 20px; }
  .supervisor__photo { width: 88px; height: 88px; }
  .form-block { padding: 32px; gap: 24px; }
  .group-block__title { font-size: 22px; }
}

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

/* ═════════ フッター・共通ボタンの是正（下層49ページにも波及するもの） ═════════ */

/* フッターロゴ: 元データが黒ワードマークで暗背景（--color-bg-dark）に埋もれるため
   白抜きにして表示する。ロゴ画像自体は差し替えない */
.footer-logo-img { filter: brightness(0) invert(1); opacity: 0.95; }

/* FAX 行: text-secondary は暗背景で判読できないため専用色にする */
.footer-fax { font-size: 13px; color: rgba(255, 255, 255, 0.62); }

/* フッターの補足注記（例: 大腸カメラの「2027年4月 開始予定」） */
.footer-note { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.02em; margin-top: 2px; padding-left: 1.15em; }

/* .btn-reserve は元テンプレでは .header-actions / .drawer-actions 配下しか
   装飾されておらず、単体で使うと無装飾で描画される（index の診療時間カードで露見）。
   単体使用でも成立する基底を与える */
.btn-reserve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-cta); /* 24時間ネット予約は赤地＋白文字 */
  color: var(--color-cta-text);
  /* ホバーで白地になると背景の白面に溶けるため枠線を持たせる。
     通常時は地色と同色にして見た目を変えない */
  border: 2px solid var(--color-cta);
  border-radius: var(--radius-full);
  padding: 8px 20px; /* 枠線 2px ぶん詰めて外形サイズを保つ */
  /* タップ領域の下限。実際の高さは置き場所ごとに上書きする
     （ヘッダー 44/48px・診療時間カード下 48px・ドロワー .drawer-actions a 56px） */
  min-height: 48px;
  justify-content: center;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.btn-reserve:hover { background: var(--color-cta-hover); color: var(--color-cta-hover-text); border-color: var(--color-cta-hover-text); box-shadow: var(--shadow-cta-hover); } /* ホバーは白地＋濃紺文字（9.06:1）。枠線・影も紺系 */
/* .btn-cta-reserve の基底。.cta-card 配下以外（.reserve-card 等）でも同じ挙動にするため
   共通側に置く。ページ側で hover を再定義しないこと（白地×白文字になる事故が起きた） */
.btn-cta-reserve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-cta);
  color: var(--color-cta-text);
  border: 2px solid var(--color-cta);
  border-radius: var(--radius-full);
  padding: 12px 30px;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.btn-cta-reserve:hover { background: var(--color-cta-hover); color: var(--color-cta-hover-text); border-color: var(--color-cta-hover-text); box-shadow: var(--shadow-cta-hover); }
/* 「24」だけ Montserrat の大きめ数字にして時間帯の訴求を立てる（ユーザー指定） */
.btn-reserve__num {
  font-family: var(--font-accent);
  font-size: 1.2em;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: 0;
  margin-right: -2px; /* 「24」と「時間」の字間を詰める */
}
/* 予約ボタンのアイコンも一回り大きく（ユーザー指定） */
.btn-reserve :is(i, svg), .btn-cta-reserve :is(i, svg) { width: 22px; height: 22px; }

/* 診療時間カード直下の 24時間ネット予約は主導線のため大きめに */
.info-card__more .btn-reserve { padding: 8px 40px; min-height: 48px; font-size: 18px; width: min(100%, 340px); justify-content: center; }

/* .btn-primary / .btn-secondary を <button> で使うときの UA 既定リセット */
button.btn-primary, button.btn-secondary, button.btn-text {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* お知らせリスト: 狭幅で日付・タグが幅を取りタイトルが1行数文字に潰れるため、
   767px 以下はタイトルを次行フル幅に落とす（index / news / column 共通） */
@media (max-width: 767px) {
  .news-item { flex-wrap: wrap; row-gap: 6px; }
  .news-item .news-title { flex: 1 0 100%; min-width: 0; }
}

/* 診療時間表: 狭幅で min-width 480px のまま横スクロールに隠れ、
   曜日列が無告知で見切れるため、560px 以下は画面幅に収める（12px 下限は守る） */
@media (max-width: 560px) {
  .schedule-table { min-width: 0; width: 100%; table-layout: fixed; }
  .schedule-table th, .schedule-table td { padding: 11px 2px; font-size: 16px; }
  .schedule-table .time-label { padding-left: 8px; }
  .schedule-table .time-label .time-label-sub { font-size: 16px; white-space: nowrap; }
  /* 時間列を狭め曜日列の幅を確保し、「日祝」の改行を防ぐ */
  .schedule-table--compact col.col-time { width: 104px; }
  .schedule-table thead th { white-space: nowrap; padding-left: 0; padding-right: 0; }
  .schedule-table .mark-open .mark-circle { width: 13px; height: 13px; margin-bottom: 0; }
}
/* さらに小さい画面では文字が見切れるため一段階縮小する */
@media (max-width: 400px) {
  .schedule-table th, .schedule-table td { font-size: 14px; }
  .schedule-table .time-label .time-label-sub { font-size: 14px; }
  .schedule-table--compact col.col-time { width: 90px; }
}

/* ═════════ 症状9・疾患13ページの共通部品（Phase 2 で各ページに散在したものを昇格） ═════════ */
/* ページ末尾の免責文（「このページは一般的な情報です」）。症状・疾患22ページ共通 */
.page-disclaimer { font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.8; margin-top: 16px; }
/* 本文中盤の CTA（主ボタン＋補助ボタンの横並び） */
.mid-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Step 6 先行修正（A1〜A8）: ページ固有 <style> に散在していた同一定義の昇格と
   コントラスト・文字サイズの是正。
   ⚠ 本ブロックは必ず common.css の末尾に置く（前に置くと既存の昇格済み定義に負ける）
   トンマナ適用済: 荻原医院（実装 output/ 準拠）
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────── [A7] 予告バナーのラベル ─────────── */
/* ユーザー指定でベタ塗り白抜き（ブルー系 --color-secondary-dark 地に白文字）に再設計し、
   定義を本体（.mirai-banner__label 本則）へ集約。本ブロックの上書きは不要になった */

/* ─────────── [A8] お知らせタグ ─────────── */
/* 11px かつ地色が薄く白文字で 2.8〜3.9:1 だった。12px に上げ、--info は地色を濃くして
   4.5:1 以上にする（5.96:1・白文字）。--column は下記のとおりユーザー指定のロゴシアン地 */
.news-tag { font-size: 12px; }
.news-tag--info { background: var(--color-accent-dark); }
/* コラムはロゴシアン地＋白文字（ユーザー指定。2.40:1 で AA 未達のため要申し送り） */
.news-tag--column { background: var(--color-secondary); color: #fff; }

/* ─────────── [A3] 診療時間表（560px 以下） ─────────── */
/* about / access / about/hours / about/first-visit が同一ブロックをページ側で重複定義
   していたぶんを共通化。col-time に幅を与えないと table-layout:fixed で時間ラベルの
   列が曜日列と同じ幅になり、ラベルが隣のセルに重なる。
   index の .schedule-table--compact は合意済みの見た目のため対象から外す */
@media (max-width: 560px) {
  .schedule-wrapper { overflow-x: visible; }
  .schedule-table:not(.schedule-table--compact) col.col-time { width: 96px; }
  .schedule-table:not(.schedule-table--compact) th,
  .schedule-table:not(.schedule-table--compact) td { padding: 8px 1px; }
  .schedule-table:not(.schedule-table--compact) .time-label { padding-left: 8px; white-space: normal; }
}

/* ─────────── [A2] 3ページ以上で重複していたページ固有定義の昇格 ─────────── */

/* 本文中の電話番号（tone_manner §9-F: 19px 未満の水色は使わないため 22px / accent-dark） */
.tel-inline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-accent); font-weight: var(--font-weight-bold); font-size: 22px; color: var(--color-accent-dark); text-decoration: none; }
.tel-inline:hover { color: var(--color-accent); }
.tel-inline :is(i, svg) { width: 22px; height: 22px; }

/* ボタン・テキストリンクの横並び行 */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }

/* 小さな注記 */
.note-sm { font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.8; }

/* CTA カード内の補助リンク */
.cta-note { margin-top: 16px; font-size: var(--font-size-small); line-height: 1.7; }

/* 折り返し位置を意味の区切りで固定する（SP で語中の改行を防ぐ）。
   ⚠ flex コンテナ（.flow-card__title / .info-card__title / .callout__title）の直下では
   inline-block が flex アイテム化してトラックを押し広げるため使わない */
.cell-nowrap { white-space: nowrap; }
.nowrap-unit { display: inline-block; }

/* 本文中に置く実写1枚の器（症状・疾患・診療・検査ページ） */
.page-figure { margin: 0 0 24px; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-white); }
.page-figure img { width: 100%; height: auto; display: block; }
.page-figure figcaption { font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.8; padding: 10px 14px; }

/* キャプション付き写真の器（医院案内・アクセス系）。
   ページごとに「白カード＋3:2 クロップ」と「素の画像＋下キャプション」の2系統に割れていたため
   白カードに一本化し、クロップ・幅の制御はモディファイアで行う */
.photo-figure { margin: 24px 0; background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; }
.photo-figure img { width: 100%; height: auto; display: block; }
.photo-figure figcaption { font-size: var(--font-size-small); color: var(--color-text-secondary); line-height: 1.7; padding: 10px 14px; }
/* 複数枚を並べて高さを揃えたいとき */
.photo-figure--crop img { aspect-ratio: 3 / 2; object-fit: cover; }
/* 本文幅の中で広がりすぎないよう上限を付ける */
.photo-figure--center { max-width: 620px; margin-left: auto; margin-right: auto; }
.photo-figure--narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─────────── [A1] 症状ページ末尾 CTA の補助ボタン ─────────── */
/* 主CTA（電話・ネット予約）より一段弱い外枠ボタン。症状3ページで共用 */
.cta-card .btn-cta-sub { margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--color-white); color: var(--color-accent-dark); border: 1px solid var(--color-accent); border-radius: var(--radius-full); padding: 13px 32px; font-size: 16px; font-weight: var(--font-weight-bold); letter-spacing: 0.05em; text-decoration: none; transition: background var(--transition-normal), color var(--transition-normal); }
.cta-card .btn-cta-sub:hover { background: var(--color-accent-light); color: var(--color-accent-dark); }

/* ═════════ [A4] CMS 記事本文の器（news/[id].html・column/[id].html で共用） ═════════ */
/* .article-body の中身は CMS（v-html）が流し込むため、素の HTML 要素で崩れないよう要素セレクタで指定する */
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.article-body { background: var(--color-white); border-radius: var(--radius-lg); padding: 24px; font-size: var(--font-size-body); line-height: var(--line-height-body); }
.article-body > :first-child { margin-top: 0; }
.article-body > :last-child { margin-bottom: 0; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: var(--font-size-h3); margin: 40px 0 16px; padding-left: 16px; border-left: 4px solid var(--color-accent); scroll-margin-top: 88px; }
.article-body h3 { font-size: var(--font-size-h4); margin: 28px 0 12px; color: var(--color-accent-dark); }
.article-body ul { margin: 0 0 20px; }
.article-body ul li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.article-body ol { margin: 0 0 20px; padding-left: 1.5em; }
.article-body ol li { list-style: decimal; margin-bottom: 8px; }
.article-body img { border-radius: var(--radius-md); margin: 0 0 20px; }
.article-body table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin: 0 0 20px; }
.article-body :is(th, td) { padding: 12px; min-width: 6em; font-size: 15px; text-align: left; vertical-align: middle; line-height: 1.7; border-bottom: 1px solid var(--color-border-light); }
.article-body thead th { background: var(--color-accent-dark); color: var(--color-white); font-size: 14px; font-weight: var(--font-weight-medium); }
.article-body tbody th { font-weight: var(--font-weight-medium); background: var(--color-bg-secondary); }
.article-body tr:last-child :is(th, td) { border-bottom: none; }
.article-body blockquote { margin: 0 0 20px; padding: 16px 20px; background: var(--color-bg-secondary); border-radius: var(--radius-md); color: var(--color-text-secondary); }
/* CMS の本文に出るが未定義だった要素。pre は overflow を切らないと長い行がページ全体を横スクロールさせる */
.article-body pre { margin: 0 0 20px; padding: 16px 20px; background: var(--color-bg-secondary); border-radius: var(--radius-md); overflow-x: auto; font-size: 14px; line-height: 1.7; }
.article-body pre code { padding: 0; background: none; font-size: inherit; }
.article-body code { padding: 2px 6px; background: var(--color-bg-secondary); border-radius: 4px; font-size: 0.92em; }
.article-body hr { margin: 32px 0; border: 0; border-top: 1px solid var(--color-border-light); }
/* CMS は表を <div class="tableWrapper" style="overflow-x:auto"> で包む。下余白は table ではなくラッパー側に移す */
.article-body .tableWrapper { margin: 0 0 20px; }
.article-body .tableWrapper table { margin: 0; }

.article-nav { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: var(--spacing-lg); }
.article-nav__item { display: flex; flex-direction: column; gap: 6px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px 20px; text-decoration: none; transition: border-color var(--transition-fast), box-shadow var(--transition-normal); }
.article-nav__item:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.article-nav__label { display: flex; align-items: center; gap: 6px; font-size: var(--font-size-small); font-weight: var(--font-weight-bold); color: var(--color-accent-dark); }
.article-nav__label :is(i, svg) { width: 14px; height: 14px; }
.article-nav__title { font-size: 15px; color: var(--color-text-primary); line-height: 1.7; }
.article-nav__date { font-family: var(--font-accent); font-size: var(--font-size-small); font-weight: var(--font-weight-bold); color: var(--color-text-secondary); }

@media (min-width: 768px) {
  .article-body { padding: 40px; }
  .article-body h2 { font-size: 22px; }
  .article-nav { grid-template-columns: 1fr 1fr; }
}

/* フッターナビ: SP は .footer-nav が column 方向のため、flex-basis 180px が
   「高さ 180px」として効いてしまう。症状／疾患グループは SP でハブリンク1本しか
   表示しないので、その下に約130pxの空白が出ていた（全50ページで発生）。
   768px 未満では basis を auto に戻す。 */
@media (max-width: 767px) {
  .footer-nav__group,
  .footer-nav__group--wide { flex: 0 0 auto; }
}

/* ─────────── [ユーザー指定] タッチ端末対応・モバイル調整 ─────────── */
/* ホバー演出（浮き上がり・影・アイコン拡大）はホバーできる端末のみ。タッチ端末では無効化 */
@media (hover: none) {
  .medical-card:hover { transform: none; box-shadow: none; background: var(--color-white); border-color: var(--color-border-light); }
  .medical-card:hover .medical-card__icon { transform: none; background: rgba(0, 153, 204, 0.12); }
  .medical-card:hover .medical-card__link :is(i, svg) { transform: none; }
  .mirai-banner:hover { transform: none; box-shadow: none; }
  .checkup-type-card:hover { box-shadow: none; border-color: var(--color-border-light); }
  .news-item:hover, .btn-primary:hover, .btn-secondary:hover { transform: none; }
  /* タッチ端末ではドロワーナビの hover 色変化を無効化 */
  .drawer-menu nav a:hover, .drawer-accordion__link:hover { color: var(--color-text-primary); }
  .drawer-accordion__list li a:hover { color: var(--color-text-secondary); }
  .drawer-sns__btn:hover { background: var(--color-bg-secondary); color: var(--color-text-secondary); }
}
/* モバイルは診療案内カード名を一回り大きく */
@media (max-width: 767px) {
  .medical-card__name { font-size: 23px; }
}
