/* デモ歯科クリニック（DentHub デモ用の架空医院）共通スタイル */
:root {
  /* 色: 地 60 / 面と罫 30 / 緑 10。純黒・純白は使わない */
  --c-ink: #1e2b29;
  --c-ink-sub: #41504d;
  --c-base: #fbfcfa;
  --c-card: #fefffe;
  --c-surface: #eff5f2;
  --c-tint: #dfeee8;
  --c-line: #c6d6cf;
  --c-line-strong: #93ada3;
  --c-primary: #0a564a;
  --c-primary-deep: #073f36;
  --c-on-primary: #fbfcfa;
  --c-closed: #8f2a21;
  --c-notice-bg: #fff2c7;
  --c-notice-ink: #4f3b00;
  --c-notice-line: #d9b443;
  --c-today: #fff6d9;

  /* 書体: 見出し Zen Kaku Gothic New / 本文 BIZ UDPGothic（医療・UD）。和文フォールバック鎖を省略しない */
  --font-body: "BIZ UDPGothic",
    "Hiragino Kaku Gothic ProN", /* macOS/iOS */
    "Hiragino Sans",
    "Yu Gothic Medium", "游ゴシック Medium", /* Windows 游ゴは Medium 指定 */
    Meiryo, sans-serif;
  --font-head: "Zen Kaku Gothic New",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "BIZ UDPGothic",
    "Yu Gothic Medium", "游ゴシック Medium",
    Meiryo, sans-serif;

  --lh-heading: 1.45;
  --lh-body: 1.85;
  --ls-body: 0.03em;
  --ls-heading: 0.02em;

  /* 余白: 8px 基準 5 段（関連が強いほど小さく） */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 48px;
  --sp-5: 88px;

  /* 角丸 2 段 */
  --r-s: 4px;
  --r-m: 10px;

  --w-content: 1080px;
  --w-text: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--sp-3); }
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-feature-settings: "palt" 1, "kern" 1;
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
  margin: 0;
}
h1, h2 { word-break: auto-phrase; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--c-notice-line); outline-offset: 2px; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; }
.num, .time, .price, td, th { font-variant-numeric: tabular-nums; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.wrap { width: min(100% - 2 * var(--sp-3), var(--w-content)); margin-inline: auto; }
.wrap--text { width: min(100% - 2 * var(--sp-3), var(--w-text)); margin-inline: auto; }

/* ---------- デモ表示の帯（全ページ最上部） ---------- */
.demo-band {
  background: var(--c-notice-bg);
  color: var(--c-notice-ink);
  border-bottom: 2px solid var(--c-notice-line);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  padding: 10px 0;
  text-align: center;
}
.demo-band .wrap { display: flex; gap: var(--sp-1); justify-content: center; align-items: center; flex-wrap: wrap; }
.demo-band__tag { border: 1.5px solid currentColor; border-radius: var(--r-s); padding: 0 6px; font-size: 13px; letter-spacing: 0.08em; }

/* ---------- ヘッダー（帯+営業情報常駐） ---------- */
.site-header { background: var(--c-card); border-bottom: 1px solid var(--c-line); }
.site-header__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-ink); }
.logo__mark { width: 44px; height: 44px; color: var(--c-primary); flex: none; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 25px; letter-spacing: 0.06em; line-height: 1.2; display: block; }
.logo__sub { font-size: 13px; color: var(--c-ink-sub); display: block; letter-spacing: 0.06em; line-height: 1.5; }
.header-info { display: flex; align-items: center; gap: var(--sp-3); }
.header-info__hours { font-size: 13px; line-height: 1.65; color: var(--c-ink-sub); border-left: 1px solid var(--c-line); padding-left: var(--sp-2); }
.header-info__hours b { color: var(--c-ink); font-weight: 700; }
.header-info__tel { text-align: right; line-height: 1.3; }
.header-info__label { font-size: 13px; color: var(--c-ink-sub); }
.header-info__num { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--c-primary-deep); letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; }
.header-info__note { font-size: 13px; color: var(--c-ink-sub); }

.gnav { background: var(--c-primary); }
.gnav__list { list-style: none; display: grid; grid-template-columns: repeat(8, auto); justify-content: space-between; }
.gnav__item { position: relative; }
.gnav__link {
  display: block; padding: 13px 14px; color: var(--c-on-primary); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; line-height: 1.5;
  border-bottom: 3px solid transparent;
}
.gnav__link:hover, .gnav__link:focus-visible { color: var(--c-on-primary); background: var(--c-primary-deep); }
.gnav__link[aria-current="page"] { border-bottom-color: var(--c-notice-line); }
.gnav__sub {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 260px;
  background: var(--c-card); border: 1px solid var(--c-line); border-top: 3px solid var(--c-primary);
  list-style: none; padding: var(--sp-1) 0;
}
.gnav__item:hover .gnav__sub, .gnav__item:focus-within .gnav__sub { display: block; }
.gnav__sub a { display: block; padding: 8px 18px; color: var(--c-ink); text-decoration: none; font-size: 15px; }
.gnav__sub a:hover { background: var(--c-surface); color: var(--c-primary-deep); }

.menu-btn { display: none; }
.sp-tel { display: none; }
.drawer[hidden] { display: none; }

/* ---------- 下層ページの見出し帯・パンくず ---------- */
.page-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: var(--sp-4) 0 var(--sp-3); }
.page-head__label { font-size: 13px; letter-spacing: 0.16em; color: var(--c-primary); font-weight: 700; margin-bottom: 6px; }
.page-head h1 { font-size: 34px; }
.page-head__lead { margin-top: var(--sp-2); max-width: 46em; color: var(--c-ink-sub); }
.crumb { font-size: 13px; color: var(--c-ink-sub); padding: 10px 0; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumb li + li::before { content: "›"; margin: 0 8px; color: var(--c-line-strong); }
.crumb a { color: var(--c-ink-sub); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: var(--sp-3); }
.toc a {
  display: inline-block; padding: 5px 14px; border: 1px solid var(--c-line-strong); border-radius: 999px;
  text-decoration: none; color: var(--c-primary-deep); background: var(--c-card); font-size: 14px; line-height: 1.6;
}
.toc a:hover { background: var(--c-tint); }

/* ---------- セクション（密度に応じて余白を変える） ---------- */
.sec { padding: var(--sp-5) 0; }
.sec--mid { padding: 64px 0; }
.sec--tight { padding: var(--sp-4) 0; }
.sec--surface { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.sec__title { font-size: 28px; margin-bottom: var(--sp-3); }
.sec__title--line { display: flex; align-items: center; gap: var(--sp-2); }
.sec__title--line::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.sec__en { display: block; font-family: var(--font-body); font-size: 13px; letter-spacing: 0.2em; color: var(--c-primary); margin-bottom: 4px; font-weight: 700; }
.sec__lead { margin-bottom: var(--sp-3); max-width: 46em; }
.h3 { font-size: 21px; margin: var(--sp-4) 0 var(--sp-2); padding-left: 14px; border-left: 4px solid var(--c-primary); }
.h3:first-child { margin-top: 0; }
.h4 { font-size: 17px; margin: var(--sp-3) 0 var(--sp-1); color: var(--c-primary-deep); }
.prose { max-width: 46em; }
.prose p + p { margin-top: 1em; }
.prose ul.dots, ul.dots { list-style: none; margin: var(--sp-1) 0; }
ul.dots li { position: relative; padding-left: 1.2em; }
ul.dots li + li { margin-top: 4px; }
ul.dots li::before { content: ""; position: absolute; left: 0.2em; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }
.note { font-size: 14px; color: var(--c-ink-sub); margin-top: var(--sp-2); line-height: 1.8; }
.note--block { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-s); padding: var(--sp-2) 20px; }
.callout { border: 1px solid var(--c-line-strong); background: var(--c-card); border-radius: var(--r-m); padding: var(--sp-3); margin-top: var(--sp-3); }
.callout__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 6px; color: var(--c-primary-deep); }

/* 表 */
.tbl { width: 100%; border-collapse: collapse; background: var(--c-card); font-size: 15px; line-height: 1.7; }
.tbl th, .tbl td { border: 1px solid var(--c-line); padding: 10px 14px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--c-tint); font-family: var(--font-head); font-weight: 700; }
.tbl tbody th { background: var(--c-surface); font-weight: 700; width: 30%; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl-scroll { overflow-x: auto; }

/* 診療時間表 */
.hours { width: 100%; border-collapse: collapse; background: var(--c-card); text-align: center; font-size: 15px; line-height: 1.5; }
.hours th, .hours td { border-bottom: 1px solid var(--c-line); padding: 10px 4px; }
.hours thead th { font-family: var(--font-head); font-weight: 700; border-bottom: 2px solid var(--c-primary); }
.hours tbody th { text-align: left; font-weight: 700; white-space: nowrap; padding-left: 8px; }
.hours .on { color: var(--c-primary); font-weight: 700; font-size: 17px; }
.hours .off { color: var(--c-closed); font-weight: 700; }
.hours .is-today { background: var(--c-today); }
.hours-text { margin-top: 12px; font-size: 15px; line-height: 1.8; }
.hours-text dt { font-weight: 700; float: left; clear: left; min-width: 7em; }
.hours-text dd { margin: 0 0 2px 7em; }

/* 手順（初診の流れ等） */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; border-left: 2px solid var(--c-tint); margin-left: 18px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--sp-3) 36px; }
.steps > li::before {
  content: counter(step); position: absolute; left: -19px; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-on-primary); font-weight: 700; display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.steps h3, .steps .step__title { font-size: 18px; padding-top: 4px; margin-bottom: 4px; }
.steps .step__time { font-size: 13px; color: var(--c-primary-deep); font-weight: 700; margin-left: 8px; font-family: var(--font-body); }

/* FAQ（開閉せず全部見せる） */
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); padding: 18px 0; }
.faq__q, .faq__a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.faq__q { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.6; }
.faq__a { margin-top: 8px; }
.faq__q::before, .faq__a::before { font-family: var(--font-head); font-weight: 700; width: 30px; height: 30px; border-radius: var(--r-s); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.faq__q::before { content: "Q"; background: var(--c-primary); color: var(--c-on-primary); }
.faq__a::before { content: "A"; background: var(--c-tint); color: var(--c-primary-deep); }
.faq__a > div > p + p, .faq__a > div > ul { margin-top: 0.6em; }
.faq-cat { font-size: 22px; margin: var(--sp-4) 0 var(--sp-2); display: flex; align-items: baseline; gap: 12px; }
.faq-cat:first-of-type { margin-top: 0; }
.faq-cat small { font-size: 13px; color: var(--c-ink-sub); font-family: var(--font-body); font-weight: 400; }

/* 料金の行（内容・費用・期間・回数・リスクを同じ文字サイズで並記） */
.price-item { display: grid; grid-template-columns: 260px 1fr; gap: 0; border: 1px solid var(--c-line); border-radius: var(--r-m); background: var(--c-card); margin-top: var(--sp-2); overflow: hidden; }
.price-item__head { background: var(--c-surface); padding: 18px 20px; border-right: 1px solid var(--c-line); }
.price-item__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.5; }
.price-item__price { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--c-primary-deep); margin-top: 6px; line-height: 1.4; }
.price-item__price small { font-size: 14px; font-weight: 400; color: var(--c-ink-sub); margin-left: 2px; }
.price-item__unit { font-size: 14px; color: var(--c-ink-sub); }
.price-item__body { padding: 16px 20px; }
.price-item__body dl { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 6px 14px; font-size: 15px; line-height: 1.75; }
.price-item__body dt { font-weight: 700; color: var(--c-primary-deep); }
.price-item__body dd { margin: 0; }

/* 診療メニュー（TOP・診療案内） */
.menu-list { list-style: none; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-4); }
.menu-list li { border-bottom: 1px solid var(--c-line); }
.menu-list a { display: grid; grid-template-columns: 44px 1fr 20px; gap: 14px; align-items: start; padding: 18px 4px; text-decoration: none; color: var(--c-ink); }
.menu-list a:hover { background: var(--c-surface); }
.menu-list__icon { width: 44px; height: 44px; border-radius: var(--r-m); background: var(--c-tint); color: var(--c-primary); display: grid; place-items: center; }
.menu-list__icon .icon { width: 26px; height: 26px; }
.menu-list__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.5; display: block; }
.menu-list__desc { font-size: 14px; color: var(--c-ink-sub); line-height: 1.7; display: block; margin-top: 2px; }
.menu-list__arrow { color: var(--c-primary); margin-top: 6px; }

/* 予約・相談の帯 */
.reserve { background: var(--c-primary-deep); color: var(--c-on-primary); padding: var(--sp-4) 0; }
.reserve__inner { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); align-items: center; }
.reserve__title { font-size: 24px; color: var(--c-on-primary); }
.reserve p { margin-top: 8px; font-size: 15px; }
.reserve__tel { border: 1px solid var(--c-on-primary); border-radius: var(--r-m); padding: 14px 24px; text-align: center; line-height: 1.4; }
.reserve__tel-label { font-size: 13px; letter-spacing: 0.08em; }
.reserve__tel-num { font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: 0.04em; display: block; margin-top: 2px; }
.reserve__tel-note { font-size: 13px; display: block; margin-top: 4px; }

/* 関連リンク */
.related { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--c-line-strong); border-radius: var(--r-s); text-decoration: none; background: var(--c-card); color: var(--c-primary-deep); font-size: 15px; line-height: 1.5; }
.related a:hover { background: var(--c-tint); }

/* ---------- TOP ---------- */
.fv { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: 56px 0 64px; }
.fv__grid { display: grid; grid-template-columns: 1fr 440px; gap: var(--sp-4); align-items: start; }
.fv__area { font-size: 15px; font-weight: 700; color: var(--c-primary-deep); display: flex; align-items: center; gap: 6px; }
.fv__catch { font-size: 38px; line-height: 1.5; margin-top: 12px; }
.fv__lead { margin-top: var(--sp-2); font-size: 17px; }
.fv__facts { list-style: none; margin-top: var(--sp-3); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fv__facts li { display: flex; gap: 10px; align-items: flex-start; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-s); padding: 10px 14px; font-size: 15px; line-height: 1.6; }
.fv__facts .icon { color: var(--c-primary); margin-top: 2px; }
.fv__facts b { display: block; font-family: var(--font-head); }
.fv__reserve { margin-top: var(--sp-3); font-size: 15px; }

/* Signature: 診察券の形をした診療時間カード */
.card-ticket { background: var(--c-card); border: 1px solid var(--c-line-strong); border-radius: var(--r-m); overflow: hidden; }
.card-ticket__head { background: var(--c-primary); color: var(--c-on-primary); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-ticket__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; }
.card-ticket__kind { font-size: 13px; letter-spacing: 0.16em; border: 1px solid var(--c-on-primary); border-radius: var(--r-s); padding: 0 8px; }
.card-ticket__body { padding: 14px 20px 18px; }
.card-ticket__rows { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; line-height: 1.7; }
.card-ticket__rows dt { font-weight: 700; color: var(--c-primary-deep); }
.card-ticket__rows dd { margin: 0; }
.card-ticket__fill { border-top: 1px dashed var(--c-line-strong); margin-top: 12px; padding-top: 10px; font-size: 13px; color: var(--c-ink-sub); display: flex; gap: 20px; flex-wrap: wrap; }

.news-list { list-style: none; border-top: 1px solid var(--c-line); }
.news-list li { border-bottom: 1px solid var(--c-line); }
.news-list a, .news-list .news-row { display: grid; grid-template-columns: 110px 96px 1fr; gap: 12px; padding: 14px 4px; text-decoration: none; color: var(--c-ink); align-items: baseline; }
.news-list a:hover { background: var(--c-surface); }
.news-date { font-size: 14px; color: var(--c-ink-sub); }
.news-cat { font-size: 13px; border: 1px solid var(--c-primary); color: var(--c-primary-deep); border-radius: var(--r-s); text-align: center; padding: 0 6px; line-height: 1.7; }

.first-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-4); }
.first-grid .tbl { margin-top: 12px; }

.greeting { display: grid; grid-template-columns: 80px 1fr; gap: var(--sp-4); }
.greeting__title { writing-mode: vertical-rl; font-size: 30px; letter-spacing: 0.3em; color: var(--c-primary-deep); border-right: 1px solid var(--c-line); padding-right: 0; margin: 0; }
.greeting__name { margin-top: var(--sp-3); font-family: var(--font-head); font-weight: 700; }

.policy { list-style: none; counter-reset: pol; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); }
.policy li { counter-increment: pol; padding-top: 14px; border-top: 2px solid var(--c-primary); }
.policy h3 { font-size: 19px; display: flex; gap: 10px; align-items: baseline; }
.policy h3::before { content: counter(pol, decimal-leading-zero); font-family: var(--font-body); font-size: 15px; color: var(--c-primary); letter-spacing: 0.08em; }
.policy p { margin-top: 8px; font-size: 15px; }

.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.access-dl { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.access-dl dt { font-weight: 700; color: var(--c-primary-deep); }
.access-dl dd { margin: 0; }

/* スタッフ・設備 */
.staff { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.staff li { border: 1px solid var(--c-line); border-radius: var(--r-m); padding: 18px 20px; background: var(--c-card); }
.staff__role { font-size: 13px; color: var(--c-primary-deep); font-weight: 700; letter-spacing: 0.06em; }
.staff__name { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin-top: 2px; }
.staff p { font-size: 15px; margin-top: 6px; }

/* ---------- フッター（連絡先大型） ---------- */
.site-footer { background: var(--c-surface); border-top: 3px solid var(--c-primary); padding: var(--sp-4) 0 var(--sp-3); }
.footer-main { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--sp-4); }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.footer-name .logo__mark { width: 36px; height: 36px; }
.footer-tel { margin-top: var(--sp-2); font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--c-primary-deep); line-height: 1.2; letter-spacing: 0.04em; }
.footer-tel small { display: block; font-family: var(--font-body); font-size: 14px; color: var(--c-ink-sub); font-weight: 400; letter-spacing: 0.03em; margin-top: 4px; }
.footer-addr { margin-top: var(--sp-2); font-size: 15px; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--sp-4); padding-top: var(--sp-2); border-top: 1px solid var(--c-line); font-size: 14px; }
.footer-nav a { color: var(--c-ink); }
.footer-nav--sub { margin-top: 8px; padding-top: 0; border-top: 0; font-size: 13px; }
.footer-nav--sub a { color: var(--c-ink-sub); }
.footer-demo { margin-top: var(--sp-3); font-size: 13px; color: var(--c-ink-sub); }
.copyright { margin-top: 6px; font-size: 13px; color: var(--c-ink-sub); }

/* ---------- 960px 以下 ---------- */
@media (max-width: 960px) {
  .header-info, .gnav { display: none; }
  .site-header__top { padding: 10px 0; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__name { font-size: 20px; }
  .logo__sub { font-size: 12px; }
  .menu-btn {
    display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; min-width: 56px;
    background: var(--c-primary); color: var(--c-on-primary); border: 0; border-radius: var(--r-s);
    font-family: var(--font-body); font-size: 12px; font-weight: 700; line-height: 1.2; cursor: pointer;
  }
  .menu-btn .icon { width: 24px; height: 24px; }
  .sp-tel { display: block; background: var(--c-tint); font-size: 14px; line-height: 1.6; padding: 8px 0; border-bottom: 1px solid var(--c-line); }
  .sp-tel b { font-family: var(--font-head); font-size: 17px; color: var(--c-primary-deep); letter-spacing: 0.04em; }
  .drawer { position: fixed; inset: 0; z-index: 50; background: var(--c-base); overflow-y: auto; padding: var(--sp-2) var(--sp-3) var(--sp-4); }
  .drawer__top { display: flex; justify-content: space-between; align-items: center; }
  .drawer__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
  .drawer__list { list-style: none; margin-top: var(--sp-2); border-top: 1px solid var(--c-line); }
  .drawer__list a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); font-weight: 700; font-size: 16px; }
  .drawer__list .drawer__sub a { padding-left: 22px; font-weight: 400; font-size: 15px; }
  .drawer__info { margin-top: var(--sp-3); font-size: 14px; background: var(--c-surface); padding: var(--sp-2); border-radius: var(--r-m); }
  .drawer__info b { font-size: 20px; font-family: var(--font-head); color: var(--c-primary-deep); }

  .fv__grid, .first-grid, .access-grid, .footer-main { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: 1fr; }
  .policy, .staff { grid-template-columns: 1fr; }
  .price-item { grid-template-columns: 1fr; }
  .price-item__head { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .reserve__inner { grid-template-columns: 1fr; }
}

/* ---------- 600px 以下 ---------- */
@media (max-width: 600px) {
  :root { --sp-4: 36px; --sp-5: 56px; }
  body { font-size: 16px; }
  .wrap, .wrap--text { width: min(100% - 2 * var(--sp-2), var(--w-content)); }
  .demo-band { font-size: 14px; text-align: left; }
  .demo-band .wrap { justify-content: flex-start; }
  .fv { padding: 32px 0 40px; }
  .fv__catch { font-size: 26px; }
  .fv__lead { font-size: 16px; }
  .fv__facts { grid-template-columns: 1fr; }
  .page-head { padding: 28px 0 20px; }
  .page-head h1 { font-size: 26px; }
  .sec__title { font-size: 23px; }
  .h3 { font-size: 19px; }
  .sec--mid { padding: 44px 0; }
  .greeting { grid-template-columns: 1fr; gap: var(--sp-2); }
  .greeting__title { writing-mode: horizontal-tb; font-size: 23px; letter-spacing: 0.1em; border-right: 0; }
  .news-list a, .news-list .news-row { grid-template-columns: auto auto; gap: 4px 10px; }
  .news-list .news-title { grid-column: 1 / -1; }
  .hours { font-size: 14px; }
  .hours th, .hours td { padding: 9px 1px; }
  .hours tbody th { padding-left: 4px; font-size: 13px; }
  .hours .on { font-size: 15px; }
  .hours-text dt { float: none; }
  .hours-text dd { margin-left: 0; margin-bottom: 6px; }
  .access-dl, .price-item__body dl { grid-template-columns: 1fr; gap: 2px; }
  .access-dl dd, .price-item__body dd { margin-bottom: 8px; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 8px 10px; }
  .tbl tbody th { width: 38%; }
  .reserve__tel-num { font-size: 26px; }
  .footer-tel { font-size: 28px; }
  .faq__q { font-size: 16px; }
  .card-ticket__body { padding: 12px 14px 16px; }
}

/* 診察券の裏面の「次回のご予約」欄（飾り。文字は CSS だけで出し、本文としては読ませない） */
.card-ticket__fill::before { content: "次回のご予約　　　月　　　日（　　）　　　時　　　分"; letter-spacing: 0.04em; }

/* 3 列以上の表は、スマホでは 1 行を 1 枚のカードにして縦に並べる（data-label は build.py が付ける） */
@media (max-width: 600px) {
  .tbl--stack { border-collapse: separate; background: transparent; }
  .tbl--stack thead { display: none; }
  .tbl--stack tbody, .tbl--stack tr, .tbl--stack th, .tbl--stack td { display: block; width: auto; }
  .tbl--stack tr { border: 1px solid var(--c-line); border-radius: var(--r-s); background: var(--c-card); margin-bottom: 10px; overflow: hidden; }
  .tbl--stack tbody th, .tbl--stack td { border: 0; border-bottom: 1px solid var(--c-line); }
  .tbl--stack tr > :last-child { border-bottom: 0; }
  .tbl--stack tbody th { background: var(--c-surface); width: auto; }
  .tbl--stack td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--c-primary-deep); line-height: 1.6; }
  .tbl--stack .r { text-align: left; white-space: normal; }
}

/* 番号付きの手順（短い箇条） */
ol.num-list { list-style: decimal; padding-left: 1.6em; margin: var(--sp-1) 0 var(--sp-2); }
ol.num-list li + li { margin-top: 4px; }
ol.num-list li::marker { color: var(--c-primary); font-weight: 700; }
.price-item__name, .staff__name { word-break: auto-phrase; }
.tbl:not(.tbl--stack) { max-width: 880px; }

.nw { white-space: nowrap; }
