/* Blancare Dental Clinic — スタイル
   配色は白・黒・グレーのみ。文字はすべて Noto Sans JP。
   レイアウト: 1 ページ縦スクロール。各セクションは最大幅 1120px の中央寄せ。 */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --fg-soft: #424245;
  --fg-muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --btn: #1d1d1f;
  --btn-fg: #ffffff;

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --max: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 64px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; text-wrap: balance; letter-spacing: 0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.section { padding-block: 96px; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.section__head--center { align-items: center; text-align: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); }
.section__title { font-size: clamp(28px, 4vw, 40px); }
.lead { max-width: 40em; color: var(--fg-soft); font-size: 17px; }
.note { font-size: 13px; color: var(--fg-muted); line-height: 1.8; }
.prose { display: flex; flex-direction: column; gap: 1.2em; max-width: 44em; color: var(--fg-soft); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose h3 { color: var(--fg); font-size: 22px; margin-top: 0.6em; }
.prose h4 { color: var(--fg); font-size: 17px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--btn); border-radius: 0;
  transition: background-color .2s, color .2s, opacity .2s;
}
.btn--primary { background: var(--btn); color: var(--btn-fg); }
.btn--primary:hover { opacity: .82; }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--btn-fg); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ヘッダー */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 13px; font-weight: 500; color: var(--fg-soft); text-decoration: none; letter-spacing: 0.04em; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--fg); position: relative; transition: transform .25s, background-color .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--fg); transition: transform .25s, top .25s; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ヒーロー */
.hero { position: relative; overflow: hidden; padding-block: 104px 72px; text-align: center; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: 0; }
.hero__bg.is-missing { display: none; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 38%, rgba(255,255,255,.35) 60%, rgba(255,255,255,0) 78%); }
.hero.has-photo { padding-block: 140px 96px; text-align: left; }
.hero.has-photo .hero__bg { object-position: 74% 50%; }
.hero.has-photo .hero__inner { align-items: flex-start; }
.hero.has-photo .hero__kicker { justify-content: flex-start; }
.hero.has-photo .hero__kicker span:first-child { padding-left: 0; }
.hero.has-photo .hero__title { font-size: clamp(36px, 4.6vw, 60px); }
.hero.has-photo .hero__actions { justify-content: flex-start; }
.hero.has-photo .hero__facts { margin-top: 64px; max-width: 700px; background: rgba(255,255,255,.88); }
.hero__inner { position: relative; z-index: 1; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; position: relative; z-index: 1; }
.hero__kicker { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 13px; font-weight: 500; color: var(--fg-muted); letter-spacing: 0.12em; }
.hero__kicker span { padding: 0 18px; border-left: 1px solid var(--line); line-height: 1.4; white-space: nowrap; }
.hero__kicker span:first-child { border-left: 0; }
.hero__title { font-size: clamp(36px, 6.2vw, 72px); line-height: 1.25; letter-spacing: -0.005em; }
.hero__sub { font-size: clamp(17px, 2vw, 22px); color: var(--fg-soft); font-weight: 400; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 56px; width: 100%; max-width: 860px;
}
.hero__facts li { list-style: none; padding: 22px 12px; font-size: 14px; font-weight: 500; color: var(--fg-soft); }
.hero__facts li + li { border-left: 1px solid var(--line); }
.hero__facts strong { display: block; font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: 0.02em; line-height: 1.3; margin-bottom: 4px; }

/* お知らせ */
.news { padding-block: 0 96px; }
.news__box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 12px 56px; align-items: baseline; }
.news__list { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1 1 420px; min-width: 0; }
.news__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 28px; font-size: 15px; align-items: baseline; }
.news__list time { color: var(--fg-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* コンセプト */
.concept__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.concept__title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 20px; }
.concept__sign { margin-top: 28px; font-weight: 600; color: var(--fg); }
.concept__sign small { display: block; font-weight: 400; font-size: 13px; color: var(--fg-muted); }

/* 写真枠（画像が届くまでの表示） */
.photo { position: relative; background: var(--line-soft); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after {
  content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--fg-muted); letter-spacing: 0.06em; padding: 16px; text-align: center; pointer-events: none; opacity: 0;
}
.photo.is-missing img { visibility: hidden; }
.photo.is-missing::after { opacity: 1; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--landscape { aspect-ratio: 4 / 3; }
.photo--wide { aspect-ratio: 16 / 9; }

/* ホワイトニング */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.case figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.case__no { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--fg-muted); }
.case__meta { font-size: 15px; font-weight: 500; word-break: keep-all; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 48px; }
.compare > div { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.compare h4 { font-size: 15px; letter-spacing: 0.06em; color: var(--fg-muted); font-weight: 600; }
.compare p { font-size: 15px; color: var(--fg-soft); }
.compare strong { font-size: 20px; color: var(--fg); font-weight: 700; display: block; line-height: 1.4; }

.steps { counter-reset: step; margin-top: 40px; list-style: none; border-top: 2px solid var(--fg); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 320px) minmax(0, 1fr); gap: 12px 40px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.steps li::before { counter-increment: step; content: "0" counter(step); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--fg-muted); padding-top: 6px; }
.steps h4 { font-size: 18px; line-height: 1.6; }
.steps p { font-size: 14.5px; color: var(--fg-soft); line-height: 1.85; }
.steps__body { display: flex; flex-direction: column; gap: 10px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; list-style: none; }
.features li { background: var(--bg); padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.features .num { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--fg-muted); }
.features h4 { font-size: 18px; }

.accordion { margin-top: 56px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-size: 18px; font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg);
  transform: rotate(45deg); margin-right: 6px; transition: transform .25s;
}
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion__body { padding: 0 4px 28px; display: flex; flex-direction: column; gap: 1em; max-width: 46em; color: var(--fg-soft); font-size: 15.5px; }

.disclaimer { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }

/* 料金 */
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 22px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--fg-muted); border-bottom: 1px solid var(--fg); padding-block: 14px; }
.price-table th[scope="row"] { font-size: 18px; font-weight: 700; width: 28%; }
.price-table .num { font-size: 15px; }
.price-table .num--campaign { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.price-table .tax { font-size: 13px; font-weight: 400; color: var(--fg-muted); margin-left: 4px; }
.price-table .per { display: block; font-size: 13px; color: var(--fg-muted); margin-top: 6px; }
.price-table .regular { color: var(--fg-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.price-table .tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; padding: 3px 8px; border: 1px solid var(--fg); margin-bottom: 10px; }
.price__note { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }

/* 医師・スタッフ */
.doctors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.doctor { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; }
.doctor__role { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--fg-muted); }
.doctor__name { font-size: 24px; margin: 4px 0 16px; }
.doctor dl { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 6px 12px; font-size: 14.5px; line-height: 1.7; }
.doctor dt { color: var(--fg-muted); }
.doctor dd { margin: 0; color: var(--fg-soft); }
.doctor__msg { margin-top: 16px; font-size: 14.5px; color: var(--fg-soft); }
.doctor__msg b { font-weight: 600; color: var(--fg); display: block; font-size: 12px; letter-spacing: 0.1em; margin-bottom: 4px; }

.lecturer { margin-top: 72px; padding: 40px; border: 1px solid var(--line); display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; align-items: center; }
.lecturer__name { font-size: 22px; margin: 4px 0 10px; }
.lecturer p { font-size: 14.5px; color: var(--fg-soft); }

.staff { margin-top: 72px; }
.staff__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.staff__card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.staff__name { font-size: 16px; font-weight: 600; }
.staff__name small { font-weight: 500; color: var(--fg-muted); font-size: 12px; letter-spacing: 0.1em; margin-right: 10px; }
.staff__card p { font-size: 14.5px; color: var(--fg-soft); }


/* 円形の人物写真・症例・説明画像 */
.photo--circle { aspect-ratio: 1 / 1; border-radius: 50%; width: 100%; }
.photo--circle img { border-radius: 50%; }
.photo--case { aspect-ratio: 5 / 6; background: #fff; border: 1px solid var(--line-soft); }
.photo--case img { object-fit: cover; object-position: center; }
.case__ba { font-size: 12px; color: var(--fg-muted); letter-spacing: 0.04em; }
.feature-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.legend { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg-soft); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend__key { display: inline-block; width: 28px; height: 4px; border-radius: 2px; flex: none; }
.legend__key--yellow { background: #f2c94c; }
.legend__key--black { background: #1d1d1f; }
.feature-point { margin-top: 20px; font-weight: 600; color: var(--fg); }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.cmp { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.cmp__pair { display: flex; align-items: center; gap: 16px; }
.cmp__shot { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--fg-muted); letter-spacing: 0.06em; width: 120px; }
.photo--tooth { aspect-ratio: 150 / 214; border: 1px solid var(--line-soft); background: #fff; }
.photo--tooth img { object-fit: cover; }
.cmp__arrow { width: 22px; height: 22px; flex: none; margin-bottom: 26px; background: var(--fg); clip-path: polygon(0 32%, 55% 32%, 55% 10%, 100% 50%, 55% 90%, 55% 68%, 0 68%); }
.cmp figcaption { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.6; max-width: 300px; }
.feature-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-fig figcaption { font-size: 13px; color: var(--fg-muted); line-height: 1.7; }
.feature-fig--wide { margin-top: 48px; max-width: 720px; }
.photo--enamel { aspect-ratio: 796 / 485; }
.photo--compare img { object-fit: contain; background: #fff; }
.photo--compare { aspect-ratio: 705 / 399; background: #fff; border: 1px solid var(--line-soft); }
.concept__photo { margin: 0; display: flex; justify-content: center; }
.concept__photo .photo--circle { max-width: 320px; }
.doctor .photo--circle { width: 180px; }
.lecturer .photo--circle { width: 140px; }
.staff__card { align-items: center; text-align: center; }
.staff__photo { width: 160px; }
.staff__card p { text-align: left; }

/* 感染対策 */
.safety__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.safety__point { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line); }
.safety__point:last-child { border-bottom: 1px solid var(--line); }
.safety__point svg { flex: none; width: 28px; height: 28px; margin-top: 4px; }
.safety__point h4 { font-size: 17px; margin-bottom: 4px; }
.safety__point p { font-size: 14.5px; color: var(--fg-soft); }

/* Instagram */
.insta { text-align: center; }
.insta__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.insta__handle { font-size: 15px; color: var(--fg-muted); letter-spacing: 0.04em; }
.insta__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; margin-top: 16px; align-items: start; }
/* Instagram 公式埋め込み（embed.js 読み込み前・読み込めない環境では、リンク付きのカードとして表示） */
.insta__grid .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
.insta__grid blockquote.instagram-media:not(.instagram-media-rendered) { aspect-ratio: 4 / 5; border: 1px solid var(--line); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; padding: 24px; }
.insta__grid blockquote.instagram-media:not(.instagram-media-rendered) a { font-size: 14px; color: var(--fg-soft); text-decoration: underline; text-underline-offset: 4px; }

/* アクセス */
.access__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.access__photos { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 4fr); gap: 24px; margin-bottom: 56px; }
.access__photo { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.access__photo figcaption { font-size: 13px; color: var(--fg-muted); letter-spacing: 0.04em; }
.photo--interior { aspect-ratio: 3 / 2; }
.photo--exterior { aspect-ratio: 2 / 3; }
.photo--exterior img { object-position: 50% 100%; }
.access dl { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 14px 16px; font-size: 15px; margin-top: 8px; }
.access dt { color: var(--fg-muted); }
.access dd { margin: 0; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 8px; font-size: 14.5px; }
.hours th, .hours td { text-align: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.hours th:first-child, .hours td:first-child { text-align: left; white-space: nowrap; }
.hours thead th { font-weight: 600; font-size: 13px; color: var(--fg-muted); border-bottom: 1px solid var(--fg); }
.hours .on { font-size: 18px; line-height: 1; }
.hours .off { color: var(--fg-muted); font-size: 12px; }
.access__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.map { aspect-ratio: 4 / 3; background: var(--line-soft); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__link { position: absolute; left: 16px; bottom: 16px; background: var(--bg); padding: 8px 14px; font-size: 13px; text-decoration: none; border: 1px solid var(--line); }

/* フッター */
.footer { background: var(--fg); color: #f5f5f7; padding-block: 56px 40px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.footer__brand { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #a1a1a6; }
.footer__brand strong { color: #f5f5f7; font-size: 16px; letter-spacing: 0.08em; font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; list-style: none; }
.footer__links a { color: #d2d2d7; text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 12px; color: #a1a1a6; width: 100%; margin-top: 12px; }

/* スマホ下部の予約バー */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line-soft);
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  gap: 10px;
}
.mobile-bar .btn { flex: 1 1 0; min-height: 48px; padding: 0 12px; }

/* 読み込み時のゆっくりした出現（ヒーローのみ） */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__inner > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__inner > :nth-child(2) { animation-delay: .08s; }
.hero__inner > :nth-child(3) { animation-delay: .16s; }
.hero__inner > :nth-child(4) { animation-delay: .24s; }
.hero__inner > :nth-child(5) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .hero__inner > * { animation: none; } }

/* レスポンシブ */
@media (max-width: 1100px) {
  .doctors { grid-template-columns: 1fr; }
  .insta__grid { grid-template-columns: 1fr; max-width: 540px; }
}
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases, .staff__grid { gap: 20px; }
  .case__meta { font-size: 14px; }
  .case__ba { font-size: 11px; }
  .staff__photo { width: 140px; }
}
@media (max-width: 700px) {
  .cases, .staff__grid { grid-template-columns: 1fr; gap: 32px; }
  .staff__photo { width: 160px; }
}
@media (max-width: 820px) {
  .section { padding-block: 72px; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 0 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px var(--gutter-r) 14px var(--gutter-l); font-size: 16px; border-top: 1px solid var(--line-soft); }
  .menu-btn { display: inline-flex; }
  .header__cta .btn { display: none; }
  .hero { padding-block: 64px 48px; }
  /* スマホでは写真を上に置き、文字はその下に */
  .hero.has-photo { padding-block: 0 48px; text-align: center; }
  .hero.has-photo::before { display: none; }
  .hero.has-photo .hero__bg { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 70% 55%; margin-bottom: 40px; }
  .hero.has-photo .hero__inner { align-items: center; }
  .hero.has-photo .hero__kicker { justify-content: center; }
  .hero.has-photo .hero__kicker span:first-child { padding-left: 18px; }
  .hero.has-photo .hero__actions { justify-content: center; }
  .hero.has-photo .hero__facts { margin-top: 40px; background: none; }
  .hero__facts { grid-template-columns: 1fr; border: 0; margin-top: 40px; }
  .hero__facts li { border-top: 1px solid var(--line); padding: 16px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-align: left; }
  .hero__facts li:last-child { border-bottom: 1px solid var(--line); }
  .hero__facts li + li { border-left: 0; }
  .hero__facts strong { margin: 0; font-size: 18px; }
  .concept__grid, .safety__grid, .access__grid { grid-template-columns: 1fr; gap: 40px; }
  .access__photos { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .photo--exterior { aspect-ratio: 4 / 5; }
  .concept__photo { order: -1; }
  .concept__photo .photo--circle { max-width: 240px; }
  .feature-split { grid-template-columns: 1fr; gap: 28px; }
  .feature-fig { max-width: 460px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .steps li::before { padding-top: 0; }
  .cmp-grid { grid-template-columns: 1fr; gap: 36px; }
  .compare { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; }
  .doctor .photo--circle { width: 160px; }
  .lecturer { grid-template-columns: 1fr; padding: 28px; }
  .lecturer .photo--circle { width: 120px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .cmp__shot { width: 104px; }
  .features li { padding: 22px 20px; }
  .price-table th[scope="row"] { width: auto; font-size: 16px; }
  .price-table th, .price-table td { padding: 16px 8px; }
  .price-table .num--campaign { font-size: 22px; }
  /* 料金表はスマホでは縦積みにする */
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tr { border-bottom: 1px solid var(--line); padding: 20px 0 16px; }
  .price-table th[scope="row"] { border: 0; padding: 0 0 12px; font-size: 20px; }
  .price-table td { border: 0; padding: 8px 0; display: flex; flex-direction: column; gap: 4px; }
  .price-table td::before { content: attr(data-label); font-size: 12px; color: var(--fg-muted); letter-spacing: 0.08em; flex: none; }
  .price-table td > span { text-align: left; }
  .price-table .num { white-space: nowrap; }
  .price-table .per { margin-top: 2px; }
  .price-table .num--campaign { font-size: 26px; }
  .hero__kicker { display: grid; grid-template-columns: auto auto; justify-content: center; row-gap: 6px; }
  .hero__kicker span:first-child { padding-left: 0 !important; }
  .hero__kicker span:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding: 0; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .btn { white-space: normal; }
}
