/* 白波歯科 — design tokens
   ink      藍墨   the hero, the booking band, all body text
   porcelain 青白磁 page ground: a cool, faintly green glaze white, not cream
   celadon  青磁   dentin layer, quiet structure lines
   celadon-deep    links and small emphasis on porcelain
   gum      歯肉   the pulp/gum layer only; never decoration
*/
:root {
  --ink: #142036;
  --ink-2: #1d2c49;
  --ink-soft: #46546d;
  --porcelain: #eef2ec;
  --porcelain-2: #e2e9e2;
  --enamel: #fbfdfb;
  --celadon: #8fbfae;
  --celadon-deep: #2f6b5c;
  --gum: #e58c86;
  --line: #c9d5cc;

  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 34em;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: var(--step-0);
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; line-height: 1.45; margin: 0; letter-spacing: .06em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--enamel); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px;
  font-weight: 700; font-size: var(--step-0); text-decoration: none; letter-spacing: .06em;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-light { background: var(--enamel); color: var(--ink); }
.btn-light:hover { background: var(--celadon); }
.btn-ghost { color: var(--enamel); border: 1px solid rgb(251 253 251 / .4); }
.btn-ghost:hover { border-color: var(--enamel); background: rgb(251 253 251 / .08); }
.btn-lg { font-size: var(--step-1); padding: .9em 1.6em; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  color: var(--enamel);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.site-header.is-solid {
  background: rgb(238 242 236 / .88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { white-space: nowrap; font-family: var(--mincho); font-weight: 800; font-size: 1.3rem; letter-spacing: .14em; }

.brand-en { font-family: var(--mincho); font-size: .8rem; letter-spacing: .04em; opacity: .7; }
@media (max-width: 860px) { .brand-en { display: none; } }

/* order: brand · nav · language · menu button */
.nav { order: 2; margin-left: auto; }
.lang { order: 3; display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; font-size: .78rem; font-weight: 700; }
.lang a { white-space: nowrap; text-decoration: none; padding: 3px 10px; border-radius: 999px; opacity: .75; }
.lang a:hover { opacity: 1; }
.lang a[aria-current] { background: var(--enamel); color: var(--ink); opacity: 1; }
.site-header.is-solid .lang a[aria-current] { background: var(--ink); color: var(--enamel); }
.nav-toggle { order: 4; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: var(--step--1); font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease-out); }
.nav a:hover { background-size: 100% 1px; }
.nav .nav-book { padding: 8px 18px; border-radius: 999px; background: var(--enamel); color: var(--ink); }
.site-header.is-solid .nav-book { background: var(--ink); color: var(--enamel); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header { gap: 10px; }
  .nav-toggle { white-space: nowrap; }
}
@media (max-width: 440px) {
  /* not enough room for brand + language + a labelled button: keep the label for screen readers only */
  .nav-toggle { padding: 8px 10px; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 860px) {
  .lang { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px;
    padding: 6px 14px; font: inherit; font-size: var(--step--1); cursor: pointer;
  }
  .nav {
    position: fixed; inset: 64px 12px auto 12px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--enamel); color: var(--ink); border-radius: 20px; padding: 10px;
    box-shadow: 0 24px 60px -20px rgb(20 32 54 / .45);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s, transform .25s var(--ease-out); }
  .nav a { padding: 14px 16px; font-size: var(--step-0); background: none; border-radius: 12px; }
  .nav a:hover { background: var(--porcelain); }
  .nav .nav-book, .site-header.is-solid .nav-book { margin-top: 6px; text-align: center; background: var(--ink); color: var(--enamel); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  background: radial-gradient(120% 90% at 30% 55%, var(--ink-2), var(--ink) 70%);
  color: var(--enamel);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: 96px var(--gutter) clamp(28px, 5vh, 56px);
  gap: 24px;
}
.strata { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; }

.hero-copy { display: contents; }
.hero-title {
  grid-column: 2; grid-row: 1;
  writing-mode: vertical-rl;
  font-size: clamp(2.6rem, 8.4vh, 6.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .12em;
  align-self: start;
}
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(-.35em); filter: blur(6px); animation: ch-in .9s var(--ease-out) forwards; animation-delay: calc(1.1s + var(--i) * 70ms); }
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }

.hero-lede {
  grid-column: 1 / -1; grid-row: 2;
  justify-self: end; text-align: right;
  max-width: 30em;
  font-size: var(--step-0); line-height: 2.1;
  color: rgb(251 253 251 / .82);
  opacity: 0; animation: fade-in 1s var(--ease-out) 2s forwards;
}
.hero-actions {
  grid-column: 1; grid-row: 2; align-self: end;
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; animation: fade-in 1s var(--ease-out) 2.2s forwards;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-today {
  position: absolute; left: var(--gutter); top: 96px;
  display: flex; align-items: center; gap: 10px;
  font-size: var(--step--1); color: rgb(251 253 251 / .78);
}
.hero-today:empty { display: none; }
.hero-today::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--celadon); box-shadow: 0 0 0 4px rgb(143 191 174 / .25); }
.hero-today.is-closed::before { background: var(--gum); box-shadow: 0 0 0 4px rgb(229 140 134 / .25); }
.strata-tip {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  display: grid; padding-left: 10px; border-left: 2px solid var(--c);
  width: max-content; color: var(--enamel); text-shadow: 0 1px 10px var(--ink), 0 0 2px var(--ink);
  opacity: 0;
}
.strata-tip b { font-family: var(--mincho); font-weight: 700; font-size: 1.15rem; line-height: 1.3; letter-spacing: .08em; }
.strata-tip small { font-size: .72rem; line-height: 1.4; opacity: .7; letter-spacing: .03em; }
.strata-tip p { margin-top: 8px; font-size: .82rem; line-height: 1.75; color: rgb(251 253 251 / .86); }
.hero.is-over-layer { cursor: pointer; }
/* phones: the layer's callout takes the lede's place while it shows */
.hero.is-naming .hero-lede { visibility: hidden; }
.hero-hint { position: absolute; left: var(--gutter); top: 128px; font-size: .75rem; color: rgb(251 253 251 / .42); }
@media (hover: none) { .hero-hint { display: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto; padding-top: 84px; }
  .hero-title { font-size: clamp(2.3rem, 10vw, 3.4rem); grid-row: 1; }
  .hero-lede { grid-row: 2; text-align: left; justify-self: start; font-size: var(--step--1); }
  .hero-lede br { display: none; }
  .hero-actions { grid-column: 1 / -1; grid-row: 3; }
  .hero-today { top: 84px; }
  .hero-hint { display: none; }
}

/* English: Latin text wants no tracking and a horizontal title */
:lang(en) body, body:lang(en) { letter-spacing: 0; line-height: 1.7; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { letter-spacing: 0; line-height: 1.2; }
.hero-title:lang(en) {
  writing-mode: horizontal-tb;
  max-width: 6.5em; text-align: right;
  font-size: clamp(2.6rem, 5.2vw, 4.8rem); line-height: 1.04; letter-spacing: -.01em;
  margin-top: 8vh;
}
.hero-title:lang(en) .ch { transform: translateY(.3em); }
@media (max-width: 860px) {
  .hero-title:lang(en) { grid-column: 1 / -1; text-align: left; max-width: 8em; font-size: clamp(2.4rem, 11vw, 3.2rem); margin-top: 32px; }
}

/* ---------- shared section scaffolding ---------- */
main > section:not(.hero) { padding: clamp(72px, 11vw, 140px) var(--gutter); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-soft); max-width: var(--measure); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- layers ---------- */
.layers {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  background: var(--enamel);
}
.layers-text h2 { font-size: var(--step-3); max-width: 14em; margin-bottom: 20px; }
.layers-text > p { color: var(--ink-soft); max-width: var(--measure); }

.layer-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 20px; }
.layer-picker button {
  font: inherit; font-size: var(--step--1); font-weight: 700; letter-spacing: .06em;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  transition: background-color .2s, color .2s, border-color .2s;
}
.layer-picker button:hover { border-color: var(--ink); }
.layer-picker button[aria-selected="true"] { background: var(--ink); color: var(--enamel); border-color: var(--ink); }

.layer-panel { border-left: 3px solid var(--layer-color, var(--celadon)); padding: 4px 0 4px 20px; max-width: var(--measure); transition: border-color .3s; }
.layer-panel h3 { font-size: var(--step-1); margin-bottom: 6px; }
.layer-panel p { color: var(--ink-soft); }
.layer-panel .layer-care { margin-top: 12px; font-size: var(--step--1); color: var(--ink); font-weight: 700; }
.layer-panel .layer-care span { font-weight: 400; color: var(--ink-soft); margin-left: .6em; }
.layer-panel.is-swapping > * { animation: fade-in .4s var(--ease-out); }

.layers-figure { margin: 0; justify-self: center; width: min(100%, 380px); }
.tooth-section { width: 100%; height: auto; overflow: visible; }
.tooth-section [data-part] { transition: opacity .35s, filter .35s; }
.ts-bg { fill: var(--porcelain); }
.ts-rim { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.ts-gum path { fill: #f3c9c3; }
.ts-gum .ts-bone { fill: #e9ddcf; }
.ts-gum-front path { fill: #eeb1aa; }
.ts-enamel { fill: var(--enamel); stroke: var(--ink); stroke-width: .12; }
.ts-dentin { fill: #f1e6c9; stroke: #c9b98d; stroke-width: .08; }
.ts-pulp { fill: var(--gum); }
.tooth-section[data-active] [data-part] { opacity: .28; }
.tooth-section[data-active="enamel"] .ts-enamel,
.tooth-section[data-active="dentin"] .ts-dentin,
.tooth-section[data-active="pulp"] .ts-pulp,
.tooth-section[data-active="gum"] [data-part="gum"] { opacity: 1; }
/* Enamel sits under dentin, so when enamel is chosen the dentin must still read as a shape */
.tooth-section[data-active="enamel"] .ts-dentin { opacity: .55; }
.tooth-section[data-active="dentin"] .ts-enamel,
.tooth-section[data-active="pulp"] .ts-enamel,
.tooth-section[data-active="pulp"] .ts-dentin { opacity: .5; }

@media (max-width: 860px) {
  .layers { grid-template-columns: 1fr; }
  .layers-figure { order: -1; width: min(70%, 280px); }
}

/* ---------- care ledger ---------- */
.care-list { border-top: 1px solid var(--ink); }
.care-item { border-bottom: 1px solid var(--line); }
.care-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 44px minmax(9em, 1.1fr) 2fr auto 28px; align-items: center; gap: 20px;
  padding: 22px 4px;
  transition: background-color .25s, padding .25s var(--ease-out);
}
.care-item summary::-webkit-details-marker { display: none; }
.care-item summary:hover { background: var(--porcelain-2); padding-left: 14px; }
.care-icon { width: 36px; height: 36px; stroke-width: 1.2; color: var(--celadon-deep); }
.care-name { font-family: var(--mincho); font-weight: 700; font-size: var(--step-1); }
.care-sub { color: var(--ink-soft); font-size: var(--step--1); }
.care-tag { font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--celadon-deep); color: var(--celadon-deep); }
.care-tag-self { border-color: var(--ink); color: var(--ink); }
.care-toggle { width: 22px; height: 22px; transition: transform .35s var(--ease-out); }
.care-item[open] .care-toggle { transform: rotate(45deg); }
.care-item[open] summary .care-icon { color: var(--ink); }

.care-body { display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px; column-gap: 20px; padding: 0 4px 28px; }
.care-body > p { grid-column: 2; grid-row: 1; max-width: var(--measure); }
.care-facts { grid-column: 2; grid-row: 2; align-self: start; margin: 0; display: grid; gap: 12px; }
.care-photo { grid-column: 3; grid-row: 1 / span 2; align-self: start; margin: 0; }
.care-photo img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 16px; background: var(--porcelain-2); }
.care-facts div { border-left: 2px solid var(--celadon); padding-left: 14px; }
.care-facts dt { font-size: .8rem; color: var(--ink-soft); }
.care-facts dd { margin: 0; font-weight: 500; }
.care-item[open] .care-body { animation: fade-in .45s var(--ease-out); }

@media (max-width: 760px) {
  .care-item summary { grid-template-columns: 36px 1fr auto 22px; gap: 4px 14px; }
  .care-icon { width: 30px; height: 30px; }
  .care-sub { grid-column: 2 / -1; grid-row: 2; }
  .care-body { grid-template-columns: 1fr; gap: 20px; }
  .care-body > p, .care-facts, .care-photo { grid-column: 1; grid-row: auto; }
  .care-photo { order: -1; }
}

/* ---------- first visit ---------- */
.first { background: var(--porcelain-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--mincho); font-weight: 800; font-size: 3.2rem; line-height: 1;
  color: var(--enamel); -webkit-text-stroke: 1.2px var(--ink);
}
.steps li::after { content: ""; position: absolute; top: 26px; left: 52px; right: -20px; height: 1px; background: var(--ink); opacity: .25; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--step-1); margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 32px 72px; }
  .steps li::after { top: 56px; bottom: 6px; left: 20px; right: auto; width: 1px; height: auto; }
  .steps li:last-child { padding-bottom: 0; }
}

/* ---------- clinic photos ---------- */
.clinic-photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.clinic-photos figure { margin: 0; }
.clinic-photos img { width: 100%; height: clamp(200px, 24vw, 360px); object-fit: cover; border-radius: 18px; background: var(--porcelain-2); }
.clinic-photos figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 760px) {
  .clinic-photos { grid-template-columns: 1fr 1fr; }
  .clinic-photos figure:first-child { grid-column: 1 / -1; }
  .clinic-photos img { height: 44vw; }
  .clinic-photos figure:first-child img { height: 60vw; }
}

/* ---------- hours ---------- */
.hours { background: var(--porcelain); }
.hours .section-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hours .section-head p { margin-inline: auto; }
.hours-card {
  max-width: 760px; margin-inline: auto;
  background: var(--enamel); border-radius: 28px;
  padding: clamp(18px, 4vw, 40px) clamp(12px, 4vw, 44px) clamp(18px, 3vw, 28px);
  box-shadow: 0 1px 0 rgb(20 32 54 / .04), 0 24px 60px -28px rgb(20 32 54 / .28);
}
.hours-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: center; table-layout: fixed; }
.hours-table th, .hours-table td { padding: 18px 2px; }
.hours-table thead th:first-child, .hours-table tbody th { width: 30%; }
.hours-table thead th { font-family: var(--mincho); font-size: var(--step-1); font-weight: 700; padding-top: 30px; position: relative; }
.hours-table tbody tr + tr > * { border-top: 1px dashed var(--line); }
.hours-table tbody th { text-align: left; padding-left: 4px; font-weight: 400; }
.hours-table tbody th b { display: block; font-size: var(--step--1); color: var(--ink-soft); font-weight: 700; letter-spacing: .08em; }
.hours-table tbody th span { display: block; font-size: var(--step-1); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: .02em; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--celadon-deep); vertical-align: middle; }
.dot.half { background: linear-gradient(90deg, var(--celadon-deep) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--celadon-deep); }
.hours-table td.off, .off-mark { color: rgb(229 140 134 / .9); font-weight: 700; font-size: var(--step--1); }
/* today: one tall pill down the column, labelled on top */
.hours-table .is-today { background: var(--porcelain); }
.hours-table thead .is-today { border-radius: 16px 16px 0 0; color: var(--ink); }
.hours-table tbody tr:last-child .is-today { border-radius: 0 0 16px 16px; }
.hours-table thead .is-today::before {
  content: "今日"; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  font-family: var(--gothic); font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--enamel); white-space: nowrap;
}
.hours-table:lang(en) thead .is-today::before { content: "Today"; letter-spacing: .04em; }
.hours-legend { list-style: none; margin: 18px 0 0; padding: 16px 4px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-size: var(--step--1); color: var(--ink-soft); }
.hours-legend li { display: flex; align-items: center; gap: 8px; }
.hours-legend .dot { width: 11px; height: 11px; }
.hours-note { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 560px) {
  .hours-table thead th:first-child, .hours-table tbody th { width: 27%; }
  .hours-table thead th { font-size: var(--step-0); }
  .hours-table tbody th span { font-size: .78rem; white-space: normal; }
  .hours-table th, .hours-table td { padding: 14px 1px; }
  .dot { width: 11px; height: 11px; }
  .hours-table:lang(en) thead th { font-size: .78rem; }
}

/* ---------- faq ---------- */
.faq { background: var(--enamel); }
.faq-list { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--mincho); color: var(--celadon-deep); margin-right: 14px; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 24px 30px; color: var(--ink-soft); max-width: var(--measure); }
.faq details[open] p { animation: fade-in .4s var(--ease-out); }

/* ---------- director ---------- */
.director { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.director-photo { margin: 0; }
/* arched top: the shape of a dental mirror's handle end, and of the tooth crown */
.director-photo img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 999px 999px 20px 20px; }
.director-text { max-width: 40rem; border-left: 1px solid var(--ink); padding-left: clamp(20px, 4vw, 48px); }
@media (max-width: 760px) { .director { grid-template-columns: 1fr; } .director-photo { width: min(72%, 320px); } }
.director-text h2 { font-size: var(--step-3); margin-bottom: 24px; }
.director blockquote { margin: 0; font-family: var(--mincho); font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); line-height: 2.2; }
.director-name { margin-top: 28px; font-weight: 700; }
.director-name span { display: block; font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- access ---------- */
.access { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; background: var(--porcelain-2); }
.access-map { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: var(--porcelain-2); }
.access-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.access-text h2 { font-size: var(--step-3); margin-bottom: 24px; }
.access-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.access-list li { display: flex; gap: 14px; align-items: flex-start; }
.access-list .icon { margin-top: .3em; color: var(--celadon-deep); }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }

/* ---------- book ---------- */
.book {
  background: var(--ink); color: var(--enamel); text-align: center;
  position: relative; overflow: hidden;
}
.book::before { /* a white wave line along the top, the logo's own wave */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24' viewBox='0 0 80 24'%3E%3Cpath d='M0 12c10-10 20-10 30 0s20 10 30 0 15-8 20-6' fill='none' stroke='%238fbfae' stroke-width='1.4' opacity='.6'/%3E%3C/svg%3E") repeat-x 0 0 / 80px 24px;
  animation: drift 12s linear infinite;
}
@keyframes drift { to { background-position: 80px 0; } }
.book h2 { font-size: clamp(2rem, 1.2rem + 3.5vw, 3.6rem); margin-bottom: 16px; }
.book p { color: rgb(251 253 251 / .75); max-width: 32em; margin: 0 auto; }
.book-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgb(251 253 251 / .6); padding: 40px var(--gutter) 96px; font-size: var(--step--1); border-top: 1px solid rgb(251 253 251 / .1); display: grid; gap: 8px; }
.site-footer .brand-name { color: var(--enamel); }
.site-footer .copy { margin-top: 12px; }

/* ---------- floating book button (phones) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: none; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--ink); color: var(--enamel); text-decoration: none; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgb(20 32 54 / .6);
  transform: translateY(140%); transition: transform .4s var(--ease-out);
}
.fab.is-shown { transform: none; }
@media (max-width: 860px) { .fab { display: inline-flex; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
