/* ==========================================================================
   歯科さめじま / new2 — 「水面（みなも）」
   携帯端末を第一に組んだ意匠。白磁の地に、水を透かした光。
   外部フォント・外部ライブラリは使わない。iOS のヒラギノ明朝が最も美しく出る。
   ========================================================================== */

/* ---------- 色と寸法の決めごと ---------- */
:root {
  color-scheme: light;

  --aqua-900: #053340;
  --aqua-800: #064B5E;
  --aqua-700: #046B85;
  --aqua-600: #0090B0;   /* ロゴの色 */
  --aqua-500: #22A6C4;
  --aqua-400: #5BC0D6;
  --aqua-300: #8ED3E3;
  --aqua-200: #BFE6EF;
  --aqua-100: #E3F4F8;
  --aqua-050: #F2FAFC;

  --coral: #BF4E37;        /* 予約の札。白文字が 4.5:1 を満たす濃さ */
  --coral-deep: #A44230;
  --coral-soft: #FBE9E4;
  --coral-text: #9E3D28;   /* 珊瑚色の地や白地に置く文字 */

  --accent: #046B85;       /* 水色の文字・見出しの小さな札 */
  --accent-2: #0B7E9A;     /* 水色の印（アイコン） */
  --accent-fill: #046B85;  /* 水色の塗り札の地。白文字が 4.5:1 を満たす */
  --chip-ink: #064B5E;     /* 薄い水色の地に置く文字 */

  --ink: #0E1F26;
  --ink-2: #2E454E;
  --ink-3: #4F646D;
  --line: #D9E4E8;
  --paper: #FAFCFC;
  --paper-2: #F1F6F8;
  --card: #FFFFFF;
  --glass: rgba(255, 255, 255, .88);
  --shadow: 0 18px 50px -24px rgba(6, 75, 94, .35), 0 2px 6px -2px rgba(6, 75, 94, .12);
  --shadow-soft: 0 10px 30px -18px rgba(6, 75, 94, .28);

  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", "Source Han Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --latin: ui-sans-serif, -apple-system, "Helvetica Neue", "Inter", "Segoe UI", sans-serif;

  --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --measure: 40rem;
  --wrap: 1120px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --hd-h: 60px;
  --bar-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}


/* ---------- 下ごしらえ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hd-h) + 12px);
  background: var(--paper);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--aqua-200); color: var(--aqua-900); }

.skip {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--aqua-700); color: #fff; font-weight: 700;
  transition: top .2s;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }

/* ---------- 文字 ---------- */
.kicker {
  font-family: var(--latin);
  font-size: .74rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.kicker--bare::before { display: none; }

.display, h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 8.2vw, 3.6rem); line-height: 1.22; }
h2 { font-size: clamp(1.55rem, 6vw, 2.4rem); line-height: 1.3; }
h3 { font-size: clamp(1.15rem, 4.4vw, 1.4rem); line-height: 1.45; }
.lead { font-size: 1.06rem; line-height: 1.95; color: var(--ink-2); text-wrap: pretty; }
p  { text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.num { font-family: var(--serif); font-variant-numeric: lining-nums; letter-spacing: 0; }
em { font-style: normal; color: var(--accent); font-weight: 600; }
strong { font-weight: 700; }

/* ---------- 区画 ---------- */
.section { padding-block: clamp(56px, 12vw, 120px); }
.section--tight { padding-block: clamp(36px, 8vw, 72px); }
.section--paper { background: var(--paper-2); }
.section--aqua { background: linear-gradient(180deg, var(--aqua-050), var(--paper) 70%); }
.section + .section--paper, .section--paper + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 6vw, 48px); }
.sec-head .lead { max-width: var(--measure); }
.below { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* ---------- 押せるもの ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, filter .18s;
  will-change: transform;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn { white-space: nowrap; max-width: 100%; }
/* 文言の長い釦は折り返して、横のはみ出しを防ぐ */
.btn--ghost { white-space: normal; text-align: left; justify-content: flex-start; padding-block: 8px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--reserve { background: var(--coral); color: #fff; box-shadow: 0 12px 28px -12px rgba(174, 74, 51, .7); }
.btn--reserve:hover { background: var(--coral-deep); }
.btn--aqua { background: var(--accent-fill); color: #fff; box-shadow: 0 12px 28px -12px rgba(4, 107, 133, .6); }
.btn--aqua:hover { background: var(--aqua-800); }
.btn--glass { background: var(--glass); color: var(--ink); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.5); }
.btn--line { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn--line:hover { border-color: var(--aqua-400); color: var(--accent); }
.btn--ghost { color: var(--accent); padding-inline: 8px; }
.btn--ghost::after { content: "→"; transition: transform .2s; }
.btn--ghost:hover::after { transform: translateX(4px); }
.btn--sm { --h: 42px; padding-inline: 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 160px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--chip-ink);
  background: var(--aqua-100); border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.chip:active { transform: scale(.96); }
.chip:hover { background: var(--aqua-200); }
.chip--tag { min-height: 30px; padding-inline: 12px; font-size: .78rem; font-weight: 600; background: var(--paper-2); color: var(--ink-2); border-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 画面上部の帯 ---------- */
.hd {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
  view-transition-name: hd;
}
.hd__in { height: var(--hd-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hd__logo { display: inline-flex; align-items: center; height: 100%; view-transition-name: logo; }
.hd__logo img { height: 30px; width: auto; }
.hd__acts { display: flex; align-items: center; gap: 8px; }
.hd__tel { display: none; }
.hd__menu {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 16px; border-radius: 999px;
  font-family: var(--latin); font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  background: var(--glass); color: var(--ink); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hd__menu i { display: block; width: 18px; height: 10px; position: relative; }
.hd__menu i::before, .hd__menu i::after { content: ""; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.hd__menu i::before { top: 0; } .hd__menu i::after { bottom: 0; }
@media (min-width: 900px) {
  .hd__tel { display: inline-flex; }
  .hd__nav { display: flex; gap: 26px; font-size: .92rem; font-weight: 600; }
  .hd__nav a { position: relative; padding: 6px 0; }
  .hd__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: currentColor; transition: right .25s var(--ease); }
  .hd__nav a:hover::after, .hd__nav a[aria-current]::after { right: 0; }
}
@media (max-width: 899px) { .hd__nav { display: none; } }

/* ---------- 画面下の帯（携帯だけ） ---------- */
.bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 49;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 -1px 0 var(--line);
  view-transition-name: bar;
  transform: translateY(0);
  transition: transform .3s var(--ease);
}
.bar .btn { --h: 46px; font-size: .95rem; }
.bar.is-hidden { transform: translateY(calc(100% + 4px)); }
@media (min-width: 900px) { .bar { display: none; } }

/* ---------- 主画面：写真の下に、白地の言葉 ---------- */
.hero { position: relative; isolation: isolate; display: grid; background: var(--paper); overflow: clip; }
.hero__media { position: relative; height: min(58svh, 560px); min-height: 340px; overflow: clip; background: var(--aqua-100); }
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 36% 50%; transform: scale(1.06); animation: hero-in 2.6s var(--ease-out) forwards; }
@keyframes hero-in { to { transform: scale(1); } }
.hero__fx { position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; opacity: .45; pointer-events: none; }
.hero__veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, var(--paper) 0%, rgba(250, 252, 252, .75) 10%, rgba(250, 252, 252, 0) 30%); }
.hero__body { position: relative; z-index: 3; margin-top: -44px; padding-block: 0 clamp(36px, 8vw, 64px); display: grid; gap: 18px; }
.hero h1 { font-size: clamp(2.15rem, 9.4vw, 4.2rem); line-height: 1.18; color: var(--ink); }
.hero h1 .hl { color: var(--accent); }
.hero h1 .row { display: block; }
.hero h1 .row:nth-child(1) { animation: rise .9s var(--ease-out) .15s both; }
.hero h1 .row:nth-child(2) { animation: rise .9s var(--ease-out) .32s both; }
.hero h1 .row:nth-child(3) { animation: rise .9s var(--ease-out) .49s both; }
.hero .lead { max-width: 30rem; animation: rise .9s var(--ease-out) .7s both; }
.hero__acts { animation: rise .9s var(--ease-out) .85s both; }
@media (max-width: 479px) { .hero__acts .btn { flex-basis: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 4vw, 64px); width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; padding-top: calc(var(--hd-h) + 32px); padding-bottom: 24px; min-height: min(86svh, 860px); }
  .hero__media { order: 2; height: min(72vh, 720px); min-height: 480px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
  .hero__media img { object-position: 50% 50%; }
  .hero__veil { display: none; }
  .hero__body { order: 1; margin-top: 0; padding-block: 24px; width: auto; }
}

/* 受付中の札 */
.now {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 0 16px 0 12px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  width: fit-content;
}
.hero .now { animation: rise .9s var(--ease-out) .6s both; }
.now i { width: 9px; height: 9px; border-radius: 50%; background: #2E9E5E; box-shadow: 0 0 0 0 rgba(46, 158, 94, .5); }
.now[data-state="open"] i { animation: pulse 2s infinite; }
.now[data-state="closed"] i { background: #D0655A; }
.now[data-state="soon"] i { background: #D9A400; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 158, 94, .45); } 70% { box-shadow: 0 0 0 9px rgba(46, 158, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 158, 94, 0); } }

/* ---------- 数字の帯 ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.facts > div { background: var(--paper); padding: 22px 16px; display: grid; gap: 4px; }
.facts .num { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1; color: var(--accent); display: flex; align-items: baseline; gap: 4px; }
.facts .num small { font-family: var(--sans); font-size: .9rem; color: var(--ink-3); }
.facts .lab { font-size: .82rem; color: var(--ink-3); letter-spacing: .04em; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 札（カード） ---------- */
.card { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-soft); overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card--pad { padding: clamp(20px, 5vw, 32px); }
.photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--1x1 { aspect-ratio: 1 / 1; }
.photo--4x5 { aspect-ratio: 4 / 5; }
.photo--5x6 { aspect-ratio: 5 / 6; }

/* ---------- 横に流す棚 ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  padding-block: 8px 20px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail--sm { grid-auto-columns: min(62vw, 250px); }
.rail-prog { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-inline: 2px; }
.rail-prog i { display: block; height: 100%; width: 30%; background: var(--aqua-600); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .12s linear; }
@media (min-width: 900px) {
  .rail { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .rail--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail-prog { display: none; }
}

/* ---------- 現れ方（スクロールで） ---------- */
.rv { opacity: 0; transform: translateY(18px); filter: blur(5px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); }
.rv.in { opacity: 1; transform: none; filter: blur(0); }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
@supports (animation-timeline: view()) {
  .rv, .rv.in { opacity: 1; transform: none; filter: none; transition: none; animation: rv-in linear both; animation-timeline: view(); animation-range: entry 8% entry 42%; }
  .rv-d1, .rv-d2, .rv-d3 { animation-delay: 0s; }
}
@keyframes rv-in { from { opacity: 0; transform: translateY(18px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- お知らせ ---------- */
.news { display: grid; }
.news a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background .15s; }
.news a:first-child { border-top: 1px solid var(--line); }
.news a:hover { background: var(--paper-2); }
.news time { font-family: var(--latin); font-size: .8rem; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.news span { font-size: .96rem; line-height: 1.6; }
.news i { color: var(--ink-3); font-style: normal; }
.news .badge { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-text); margin-inline-start: 6px; vertical-align: 2px; }

/* ---------- 理念 ---------- */
.concept { display: grid; gap: 28px; }
.concept__item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.concept__no { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent-2); font-variant-numeric: lining-nums; padding-top: 4px; }
.concept__item h3 { margin-bottom: 8px; }
.concept__item h3 em { display: block; font-size: 1.28em; color: var(--accent); }
.concept__item p { color: var(--ink-2); }
.concept__note { font-size: .86rem; color: var(--ink-3); line-height: 1.8; }
.policy { counter-reset: p; display: grid; gap: 0; }
.policy li { counter-increment: p; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.12rem; }
.policy li:last-child { border-bottom: 0; }
.policy li::before { content: "0" counter(p); font-family: var(--latin); font-size: .74rem; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
@media (min-width: 900px) { .concept { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }

/* ---------- 柱の札 ---------- */
.pillar { display: grid; gap: 14px; }
.pillar .photo { aspect-ratio: 1 / 1; border-radius: var(--r-md); }
.pillar h3 { font-size: 1.15rem; }
.pillar p { font-size: .92rem; color: var(--ink-2); line-height: 1.85; }

/* ---------- 特徴 ---------- */
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-soft); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.feat .photo { border-radius: 12px; box-shadow: none; }
.feat .kicker { font-size: .66rem; letter-spacing: .18em; }
.feat .kicker::before { display: none; }
.feat h3 { font-size: 1.02rem; }
.feat p { font-size: .86rem; line-height: 1.7; color: var(--ink-2); }
@media (min-width: 720px) { .feats { grid-template-columns: repeat(4, 1fr); } .feat { padding: 14px; } .feat h3 { font-size: 1.1rem; } .feat p { font-size: .88rem; } }

/* ---------- 流れ ---------- */
.flow { display: grid; position: relative; padding-inline-start: 34px; }
.flow::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--aqua-300), var(--aqua-600)); }
.flow li { position: relative; padding: 0 0 26px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; left: -29px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--aqua-600); box-shadow: 0 0 0 5px var(--paper); }
.flow .step { font-family: var(--latin); font-size: .7rem; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.flow h3 { font-size: 1.12rem; margin: 2px 0 6px; }
.flow p { font-size: .92rem; color: var(--ink-2); line-height: 1.8; }
.flow .opt { display: inline-block; font-size: .68rem; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--line); margin-inline-start: 8px; vertical-align: 3px; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* ---------- 症例（見比べ） ---------- */
.cmp { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: var(--shadow); }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-drag: none; }
.cmp__before { clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0); }
.cmp__line { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 2px; background: #fff; translate: -1px 0; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.cmp__knob { position: absolute; top: 50%; left: var(--p, 50%); translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28); display: grid; place-items: center; pointer-events: none; color: var(--aqua-700); }
.cmp__knob svg { width: 20px; height: 20px; }
.cmp__tag { position: absolute; top: 12px; font-family: var(--latin); font-size: .66rem; font-weight: 700; letter-spacing: .22em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); pointer-events: none; }
.cmp__tag--b { left: 12px; } .cmp__tag--a { right: 12px; }
.cmp input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.cmp:has(input:focus-visible) { outline: 3px solid var(--aqua-500); outline-offset: 3px; }
.spec { display: grid; gap: 0; font-size: .9rem; }
.spec > div { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--ink-3); font-size: .82rem; font-weight: 600; padding-top: 2px; }
.spec dd { margin: 0; color: var(--ink-2); line-height: 1.75; }
.spec .price { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.note-jiyu { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--coral-text); background: var(--coral-soft); padding: 4px 10px; border-radius: 999px; }
.case { display: grid; gap: 18px; }
@media (min-width: 900px) { .case { grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; } }

/* ---------- お悩み ---------- */
.trouble-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trouble-grid a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; line-height: 1.4; transition: border-color .15s, transform .15s, box-shadow .15s; }
.trouble-grid a:active { transform: scale(.97); }
.trouble-grid a:hover { border-color: var(--aqua-400); box-shadow: var(--shadow-soft); }
.trouble-grid svg { width: 26px; height: 26px; color: var(--accent-2); }
@media (min-width: 720px) { .trouble-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .trouble-grid { grid-template-columns: repeat(4, 1fr); } }

/* 開く札（お悩み別） */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 4px; font-family: var(--serif); font-size: 1.18rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg.ic { width: 28px; height: 28px; color: var(--accent-2); }
.acc summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: transform .3s var(--ease), background .2s; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; background: var(--ink-2); border-radius: 2px; }
.acc summary .pm::before { width: 12px; height: 1.5px; } .acc summary .pm::after { width: 1.5px; height: 12px; transition: transform .3s var(--ease); }
.acc details[open] summary .pm { background: var(--aqua-100); }
.acc details[open] summary .pm::after { transform: rotate(90deg); }
.acc .body { padding: 0 4px 22px 46px; display: grid; gap: 14px; color: var(--ink-2); }
.acc .body p { font-size: .95rem; }
.acc .body .lab { font-size: .76rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
@media (prefers-reduced-motion: no-preference) {
  .acc details::details-content { opacity: 0; translate: 0 -6px; transition: opacity .35s var(--ease), translate .35s var(--ease), content-visibility .35s allow-discrete; }
  .acc details[open]::details-content { opacity: 1; translate: 0 0; }
}

/* ---------- スタッフ ---------- */
.staff-lead { display: grid; gap: 18px; }
.staff-lead .photo { border-radius: var(--r-lg); }
.staff-lead .role { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.staff-lead .name { font-family: var(--serif); font-size: 1.7rem; line-height: 1.3; }
.staff-lead .name small { display: block; font-family: var(--latin); font-size: .7rem; letter-spacing: .26em; color: var(--ink-3); margin-top: 4px; }
.staff-lead p { font-size: .95rem; color: var(--ink-2); }
@media (min-width: 720px) { .staff-lead { grid-template-columns: minmax(0, 300px) 1fr; gap: 36px; align-items: center; } }
.person { display: grid; gap: 10px; }
.person .photo { aspect-ratio: 5 / 6; border-radius: var(--r-md); }
.person .role { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.person .name { font-family: var(--serif); font-size: 1.22rem; line-height: 1.3; }
.person .name small { display: block; font-family: var(--latin); font-size: .68rem; letter-spacing: .2em; color: var(--ink-3); margin-top: 2px; }
.person p { font-size: .88rem; color: var(--ink-2); line-height: 1.8; }
.person--text .photo { display: none; }
.people { display: grid; gap: 28px; }
@media (min-width: 720px) { .people { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 診療時間 ---------- */
.hours { display: grid; gap: 10px; }
.hours table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: center; }
.hours th { font-weight: 600; color: var(--ink-3); font-size: .78rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.05rem; }
.hours th:first-child, .hours td:first-child { text-align: left; font-family: var(--sans); font-size: .86rem; white-space: nowrap; padding-inline-end: 8px; }
.hours .sat { color: var(--accent); } .hours .off { color: var(--ink-3); opacity: .7; }
.hours .today th, .hours .today td { color: var(--aqua-800); }
.hours th.today { background: var(--aqua-100); border-radius: 8px 8px 0 0; }
.hours .today-col { background: var(--aqua-050); }
.hours .foot { font-size: .82rem; color: var(--ink-3); display: grid; gap: 2px; }

/* ---------- アクセス ---------- */
.access { display: grid; gap: 26px; }
.addr { display: grid; gap: 4px; }
.addr .zip { font-family: var(--latin); font-size: .78rem; letter-spacing: .1em; color: var(--ink-3); }
.addr .line1 { font-family: var(--serif); font-size: 1.28rem; line-height: 1.5; }
.ways { display: grid; gap: 0; }
.ways > div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ways > div:last-child { border-bottom: 0; }
.ways svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--aqua-100); color: var(--chip-ink); }
.ways b { display: block; font-size: .95rem; }
.ways p { font-size: .86rem; color: var(--ink-2); line-height: 1.75; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--aqua-100); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .map__ph { display: grid; gap: 12px; justify-items: center; padding: 24px; color: var(--chip-ink); }
.map .map__ph svg { width: 44px; height: 44px; }
.map.is-loaded .map__ph { display: none; }
@media (min-width: 900px) { .access { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .map { aspect-ratio: 1 / 1; } }

/* ---------- 誘導帯：淡い水色の地 ---------- */
.cta {
  position: relative; isolation: isolate; overflow: clip; color: var(--ink);
  background: linear-gradient(135deg, var(--aqua-100), var(--aqua-050) 70%);
  border: 1px solid var(--aqua-200);
  border-radius: var(--r-lg); padding: clamp(28px, 7vw, 56px) clamp(20px, 5vw, 48px);
  display: grid; gap: 18px;
}
.cta::before { content: ""; position: absolute; inset: -40% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(0, 144, 176, .16), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-10%, -6%) scale(1); } to { transform: translate(14%, 10%) scale(1.15); } }
.cta p { color: var(--ink-2); }
.cta .tel { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .04em; }

/* ---------- 足元：淡い地 ---------- */
.ft { background: var(--aqua-050); color: var(--ink-2); border-top: 1px solid var(--line); padding-block: clamp(48px, 9vw, 80px) 28px; }
.ft__grid { display: grid; gap: 32px; }
.ft__brand { display: grid; gap: 14px; }
.ft__brand img { width: 120px; height: auto; }
.ft__brand p { font-size: .86rem; line-height: 1.8; }
.ft__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: .92rem; }
.ft__nav a { padding: 6px 0; color: var(--ink); }
.ft__nav a:hover { color: var(--accent); }
.ft__meta { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--latin); font-size: .74rem; letter-spacing: .12em; color: var(--ink-3); }
.ft .social { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.ft .social svg { width: 20px; height: 20px; }
.ft .hours th.today, .ft .hours .today-col { background: var(--aqua-100); }
@media (min-width: 900px) { .ft__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ---------- 品書き（メニュー） ---------- */
dialog.menu {
  position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: calc(100dvh - 24px);
  border: 0; padding: 0; background: var(--paper); color: var(--ink);
  border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  overflow: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
dialog.menu::backdrop { background: rgba(226, 238, 242, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.menu[open] { animation: sheet-in .42s var(--ease-out); }
dialog.menu[open]::backdrop { animation: fade .3s ease; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.menu__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 12px auto 0; }
.menu__in { padding: 16px var(--gutter) 22px; display: grid; gap: 18px; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__top img { height: 40px; width: auto; }
.menu__close { width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; }
.menu__close svg { width: 18px; height: 18px; }
.menu__list { display: grid; }
.menu__list a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.22rem; }
.menu__list a small { font-family: var(--latin); font-size: .62rem; letter-spacing: .24em; color: var(--ink-3); text-transform: uppercase; }
.menu__list a[aria-current] { color: var(--accent); }
.menu__acts { display: grid; gap: 10px; }
.menu__hours { font-size: .84rem; color: var(--ink-2); display: grid; gap: 2px; }
.menu__sub { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--ink-3); }
@media (min-width: 900px) {
  dialog.menu { inset: 0 0 0 auto; width: min(420px, 100%); max-height: none; height: 100dvh; border-radius: 0; }
  @keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
}

/* ---------- ページ頭 ---------- */
.phead { padding: calc(var(--hd-h) + env(safe-area-inset-top, 0px) + clamp(28px, 7vw, 64px)) 0 clamp(28px, 6vw, 48px); background: linear-gradient(180deg, var(--aqua-050), var(--paper)); }
.phead .wrap { display: grid; gap: 12px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .76rem; color: var(--ink-3); }
.crumb a { color: var(--accent); }
.crumb span { opacity: .6; }
.phead h1 { font-size: clamp(1.9rem, 7.4vw, 3.2rem); }
.phead .lead { max-width: var(--measure); }

/* ---------- 本文 ---------- */
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1em; max-width: var(--measure); font-size: 1rem; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: .6em; font-size: clamp(1.35rem, 5vw, 1.9rem); }
.prose h3 { color: var(--ink); margin-top: .4em; }
.prose ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5em; padding-inline-start: 1.2em; list-style: disc; }
.prose .warn { border-radius: var(--r-md); padding: 16px 18px; background: var(--coral-soft); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.prose .warn b { color: var(--coral-text); }

/* ---------- 誤り ---------- */
.err { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 20px; }
.err .num { font-size: clamp(5rem, 24vw, 10rem); line-height: 1; color: var(--aqua-200); }

/* ---------- 画面の移り変わり ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 380ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
::view-transition-group(hd), ::view-transition-group(bar), ::view-transition-group(logo) { animation-duration: 0s; }

/* ---------- 動きを控える設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; filter: none; animation: none; }
  .hero__fx { display: none; }
  .hero__media img { transform: none; }
}

/* ---------- 印刷 ---------- */
@media print {
  .hd, .bar, .hero__fx, dialog, .skip { display: none !important; }
  body { padding: 0; color: #000; background: #fff; }
  .hero__media { height: 320px; }
  .rv { opacity: 1; transform: none; filter: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ---------- 見比べの操作（読み上げ用に残す） ---------- */
.cmp input[type="range"] { position: absolute; left: 0; bottom: 0; width: 100%; height: 44px; margin: 0; opacity: 0; }
.cmp input[type="range"]:focus-visible { opacity: 1; }

/* ---------- ちょっとした知らせ ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 18px + env(safe-area-inset-bottom, 0px)); translate: -50% 12px; z-index: 60; padding: 10px 18px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .88rem; opacity: 0; transition: opacity .25s, translate .25s var(--ease-out); pointer-events: none; }
.toast.on { opacity: 1; translate: -50% 0; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- 症例の札（トップの棚に並べる） ---------- */
.casecard { display: grid; gap: 12px; align-content: start; background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 12px; }
.casecard .cmp { border-radius: 12px; box-shadow: none; }
.casecard h3 { font-size: 1.08rem; }
.casecard .note-jiyu { font-size: .72rem; }
.spec--sm { font-size: .84rem; }
.spec--sm > div { grid-template-columns: 6.4em 1fr; padding: 7px 0; gap: 8px; }
.spec--sm dt { font-size: .76rem; }
.spec--sm dd { line-height: 1.65; }
.rail--case { grid-auto-columns: min(84vw, 380px); }
@media (min-width: 900px) { .rail--case { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 矯正の区画（トップ） ---------- */
.ortho { display: grid; gap: 22px; background: var(--card); border: 1px solid var(--aqua-200); border-radius: var(--r-lg); padding: clamp(20px, 5vw, 36px); box-shadow: var(--shadow-soft); }
.ortho .photo { border-radius: var(--r-md); max-width: 360px; }
.ortho__points { display: grid; gap: 10px; }
.ortho__points li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--ink-2); line-height: 1.75; }
.ortho__points svg { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: var(--aqua-100); color: var(--chip-ink); }
.ortho__quote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.8; color: var(--ink); border-inline-start: 3px solid var(--aqua-300); padding-inline-start: 14px; }
.ortho__who { display: flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--ink-3); }
.ortho__who b { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
@media (min-width: 900px) { .ortho { grid-template-columns: minmax(0, 320px) 1fr; gap: 40px; align-items: center; } }

/* ---------- 見比べの表（保険と自費など） ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; min-width: 520px; }
.compare th, .compare td { padding: 14px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.compare thead th { font-size: .8rem; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare thead th.is-main { color: var(--accent); }
.compare tbody th { width: 8.5em; font-size: .78rem; font-weight: 700; color: var(--ink-3); background: var(--paper-2); white-space: nowrap; }
.compare td b { display: block; font-family: var(--serif); font-size: 1.06rem; font-weight: 500; line-height: 1.4; margin-bottom: 5px; color: var(--ink); }
.compare td span { display: block; font-size: .84rem; line-height: 1.7; color: var(--ink-2); }
.compare td.is-main { background: var(--aqua-050); }
.compare td.is-main b { color: var(--accent); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th:first-child { width: 8.5em; }

/* ---------- 料金表 ---------- */
.fee { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; }
.fee tr > * { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.fee tr:last-child > * { border-bottom: 0; }
.fee .kind { width: 3.2em; }
.fee .kind span { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.fee .kind .jihi { background: var(--coral-soft); color: var(--coral-text); }
.fee .kind .hoken { background: var(--aqua-100); color: var(--chip-ink); }
.fee .name { font-weight: 600; color: var(--ink); }
.fee .name small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.fee .price { text-align: right; white-space: nowrap; font-family: var(--serif); font-size: 1.04rem; color: var(--ink); }
.fee .price small { display: block; font-family: var(--sans); font-size: .76rem; color: var(--ink-3); white-space: normal; margin-top: 3px; }
@media (max-width: 479px) {
  .fee { font-size: .9rem; }
  .fee tr > * { padding: 10px 6px; }
  .fee .price { font-size: .98rem; }
}

.feeblock { display: grid; gap: 10px; }
.feeblock + .feeblock { margin-top: clamp(22px, 5vw, 34px); }
.feeblock > h3 { font-size: 1.14rem; }
.feeblock .card { padding: 4px 14px; }
.feenote { font-size: .82rem; line-height: 1.8; color: var(--ink-3); }
.feenote b { color: var(--ink-2); }

/* 料金のとびら */
.feegrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feegrid a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.feegrid a:active { transform: scale(.98); }
.feegrid a:hover { border-color: var(--aqua-400); box-shadow: var(--shadow-soft); }
.feegrid svg.ic { width: 48px; height: 48px; padding: 10px; border-radius: 14px; background: var(--aqua-100); color: var(--chip-ink); }
.feegrid b { display: block; font-family: var(--serif); font-size: 1.16rem; font-weight: 500; }
.feegrid span { display: block; font-size: .84rem; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }
.feegrid i { color: var(--ink-3); }
@media (min-width: 720px) { .feegrid { grid-template-columns: 1fr 1fr; } }

/* 頁内の区分切替 */
.feetabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 5vw, 36px); }
.feetabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.feetabs a:hover { border-color: var(--aqua-400); color: var(--accent); }
.feetabs a[aria-current] { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
