/* ==========================================================================
   KEIZANKAI B — 下地第２脳神経外科 lower page
   Opus 5.5 Creative Retry PoC (Shadow only, not for production)
   Brand tokens are inherited from the live B TOP (read in a real browser);
   layout, composition and components are designed fresh for this page.
   Human Creative Delta: cards reduced to two (facts dock, access panel);
   the middle of the page is carried by type, rules and photography.
   Human Visual + Fact Revision: body copy is set larger and darker for older readers
   (17px PC / 16px phone, medium weight, #34527e), and confirmed facts lead the page:
   hours / phone / address right under the hero, then symptoms, then what the clinic does.
   ========================================================================== */

:root {
  --ink: #0e3a80;
  --ink-mid: #26568f;
  --ink-soft: #4a6a99;
  --text: #34527e;
  --blue: #0071c0;
  --deep: #0a3390;
  --orange: #f9af3e;
  --wash: #f2f7fb;
  --wash-deep: #e8f0f8;
  --line: #dbe4ee;
  --line-soft: #eef3f8;
  --rule: #cfdcea;
  --mist: #a9bed3;
  --num: #6d8db4;      /* large numerals: the pale B blue, deepened to ≥3:1 on white and wash */
  --alert: #d92b40;
  --care: #00785c;
  --plain: #6b6b7d;
  --focus: #d9541f;

  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "Shippori Mincho", serif;
  --sans: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  --script: "Segoe Script", "Brush Script MT", "Snell Roundhand", Georgia, serif;

  /* one grade for every concept photo, so the set reads as one island light */
  --photo-grade: saturate(.86) contrast(.95) brightness(1.05);

  --shell: 1232px;
  --gut: max(20px, calc((100vw - var(--shell)) / 2));
  --hd-h: 87px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 500 17px/1.95 var(--sans);
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
/* Japanese copy breaks at phrase boundaries where supported (Chrome / Edge); other browsers keep normal breaking */
h1, h2, h3, h4, p, dt, dd, li, summary { word-break: auto-phrase; overflow-wrap: break-word; text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp { display: none; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--deep); color: #fff; padding: 10px 16px; font-size: 15px; }
.skip:focus { top: 12px; }

.script { font-family: var(--script); font-weight: 400; color: var(--mist); letter-spacing: .02em; line-height: 1; }

/* ---------- small parts ---------- */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 62px; height: 26px; padding: 0 12px;
  font: 700 12.5px/1 var(--sans); letter-spacing: .08em; color: #fff; background: var(--blue);
  border-radius: 2px; white-space: nowrap;
}
.badge--alert { background: var(--alert); }
.badge--care { background: var(--care); }
.badge--plain { background: var(--plain); }

.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; margin-right: 10px;
  font: 500 13px/1 var(--sans); letter-spacing: .06em; color: var(--ink-soft);
  border: 1px solid #c3d2e2; border-radius: 2px; background: #fff; white-space: nowrap; vertical-align: 2px;
}
.chip--sample { border-style: dashed; border-color: #b7c3d1; color: var(--plain); }

/* One quiet "unknown" glyph for the whole page */
.tbd { display: inline-flex; align-items: center; gap: 9px; margin-right: 10px; font: 600 16px/1.2 var(--serif); letter-spacing: .14em; color: var(--ink-mid); white-space: nowrap; }
.tbd::before { content: "?"; display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; border: 1px dashed #7f9cbc; font: 600 12px/1 var(--serif); letter-spacing: 0; color: var(--ink-mid); }

/* plain, obviously clickable text links inside copy.
   6px visual gap above; the 10px padding widens the tap area and is cancelled by the margins */
.text-link { display: inline-block; font: 600 16px/1.6 var(--sans); letter-spacing: .04em; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; padding-block: 10px; margin-block: -4px -10px; }
.text-link:hover { color: var(--deep); }
/* phone numbers are links everywhere; the number itself is the label */
.tel-link { color: var(--blue); font-family: var(--sans); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.tel-link:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.btn {
  display: inline-flex; align-items: center; gap: 18px; height: 58px; padding: 0 28px 0 32px;
  font: 700 16px/1 var(--sans); letter-spacing: .08em; border-radius: 3px;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn i, .arrow-link i, .sched__cal > i { position: relative; display: inline-block; width: 18px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.btn i::after, .arrow-link i::after, .sched__cal > i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover i, .arrow-link:hover i, .sched__cal:hover > i { transform: translateX(5px); }
.btn--solid { background: var(--deep); color: #fff; box-shadow: 0 10px 24px -14px rgba(10, 51, 144, .7); }
.btn--solid:hover { background: var(--ink); }
.btn--pill { border-radius: 999px; background: #fff; color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
.btn--pill:hover { background: var(--deep); color: #fff; }

.arrow-link { display: inline-flex; align-items: center; gap: 14px; font: 700 15px/1.4 var(--sans); letter-spacing: .08em; color: var(--deep); }
/* larger hit areas for standalone text links, with no change to layout (padding cancelled by margin) */
.arrow-link, .sister__stop { padding-block: 12px; margin-block: -12px; }
.crumb a { display: inline-block; padding-block: 8px; margin-block: -8px; }
.ft__nav a { display: inline-block; padding-block: 4px; margin-block: -4px; }
/* an arrow link on its own line: 12px visual gap above (its 12px padding), the bottom padding cancelled */
.arrow-link--block { display: flex; width: max-content; margin: 0 0 -12px; }

.cta-circle { display: inline-flex; align-items: center; gap: 18px; font: 700 16px/1 var(--sans); letter-spacing: .1em; color: var(--deep); }
.cta-circle__ring { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--deep); transition: background-color .3s var(--ease); }
.cta-circle__ring i { position: relative; width: 18px; height: 1px; background: var(--deep); transition: background-color .3s, transform .3s var(--ease); }
.cta-circle__ring i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--deep); border-right: 1px solid var(--deep); transform: rotate(45deg); }
.cta-circle:hover .cta-circle__ring { background: var(--deep); }
.cta-circle:hover .cta-circle__ring i { background: #fff; transform: translateX(3px); }
.cta-circle:hover .cta-circle__ring i::after { border-color: #fff; }

/* Section heading — the B TOP grammar (orange bar + Mincho + script), extended with a page index number */
.sh { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.sh h2 {
  position: relative; display: flex; align-items: baseline; gap: 16px; padding-left: 22px;
  font: 600 32px/1.4 var(--serif); letter-spacing: .07em; color: var(--ink);
}
.sh h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .14em; width: 4px; background: var(--orange); }
.sh__no { font: 500 15px/1 var(--serif); letter-spacing: .1em; color: var(--ink-soft); transform: translateY(-.35em); }
.sh .script { font-size: 26px; padding-bottom: 6px; }

/* the orange dot that opens a fact label (index rows, symptom groups, service columns, guide items) */
.dotlabel { position: relative; padding-left: 18px; }
.dotlabel::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--orange); }

/* B TOP leaf crops sit on a pale ground; multiply drops that ground so they also read over photos */
.leaf { position: absolute; z-index: 1; pointer-events: none; mix-blend-mode: multiply; }
/* mask, transform and lightness sit on the inner img: opacity/transform/mask on the blended element itself isolate it and the multiply is lost */
.leaf img { display: block; width: 100%; height: auto; filter: brightness(var(--leaf-light, 1.08)); transform: var(--leaf-tf, none); -webkit-mask-image: var(--leaf-mask); mask-image: var(--leaf-mask); }

/* ---------- PoC bar ---------- */
.pocbar { background: var(--deep); color: #fff; font: 500 13px/1.5 var(--sans); letter-spacing: .04em; text-align: center; padding: 8px 20px; }

/* ---------- header (global, same structure as B TOP) ---------- */
.hd { position: relative; z-index: 30; background: #fff; }
.hd__in { display: flex; align-items: center; height: 87px; padding: 0 84px; }
.hd__brand { flex: none; }
.hd__brand img { width: 205px; height: auto; }
.hd__tag { flex: none; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); font: 500 11px/1.75 var(--sans); letter-spacing: .02em; color: var(--ink-soft); }
.hd__nav { margin-left: auto; }
.hd__nav ul { display: flex; }
.hd__nav a { position: relative; display: block; padding: 10px 8px; font: 500 12.5px/1 var(--sans); letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.hd__nav a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hd__nav a:hover::after, .hd__nav a[aria-current]::after { transform: scaleX(1); }
.hd__search { flex: none; display: flex; align-items: center; gap: 4px; margin: 0 14px 0 6px; font-size: 12.5px; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.hd__search svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.hd__tel { flex: none; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 18px; background: var(--blue); color: #fff; border-radius: 3px; white-space: nowrap; }
.hd__tel:hover { background: var(--deep); }
.hd__tel svg { width: 22px; height: 22px; fill: #fff; }
.hd__tel b { display: block; font: 700 17px/1.2 var(--sans); letter-spacing: .04em; }
.hd__tel small { display: block; font-size: 12px; line-height: 1.4; letter-spacing: 0; opacity: .95; }
.hd__menu { display: none; }
.drawer { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; height: 728px; overflow: hidden;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .05  0 0 0 0 .2  0 0 0 0 .45  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #f7fafc 0%, var(--wash) 100%);
}
.hero__rail { position: absolute; left: 0; top: 0; bottom: 0; width: var(--gut); z-index: 2; }
.hero__rail::before { content: ""; position: absolute; left: 50%; top: 64px; height: 250px; width: 1px; background: var(--mist); }
.hero__rail span {
  position: absolute; left: calc(50% + 14px); top: 64px; writing-mode: vertical-rl;
  font: 500 11px/1 var(--sans); letter-spacing: .42em; color: var(--ink-soft);
}

.hero__copy { position: relative; z-index: 3; width: 600px; margin-left: var(--gut); padding-top: 84px; }
.crumb { display: flex; flex-wrap: wrap; font: 500 13px/1.6 var(--sans); letter-spacing: .06em; color: var(--text); }
.hero > .crumb { position: absolute; z-index: 4; left: var(--gut); top: 24px; }
.crumb li:not(:last-child)::after { content: "／"; margin: 0 .7em; color: var(--mist); }
.crumb a { color: var(--ink-mid); }
.crumb a:hover { text-decoration: underline; }

/* "02" = this clinic's index in the 恵山会 network; the sister line below spells that out */
.hero__no {
  position: absolute; z-index: -1; left: 352px; top: 40px;
  font: 500 330px/1 var(--serif); letter-spacing: -.02em; color: rgba(14, 58, 128, .055);
  pointer-events: none; user-select: none;
}
.hero__cat { display: flex; align-items: center; gap: 14px; font: 600 15px/1 var(--serif); letter-spacing: .12em; color: var(--ink); }
.hero__cat .script { font-size: 24px; margin-left: 4px; }
.hero__title { margin-top: 22px; font: 600 76px/1.2 var(--serif); letter-spacing: .07em; color: var(--ink); font-feature-settings: "palt" 1; }
.hero__title span { display: block; }
.hero__title span:first-child { letter-spacing: .12em; }
/* what the clinic is, read right after its name: the departments are the hero's second voice */
.hero__dept { position: relative; display: flex; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-left: 44px; font: 600 26px/1.45 var(--serif); letter-spacing: .1em; color: var(--ink); }
.hero__dept::before { content: ""; position: absolute; left: 0; top: 50%; width: 30px; height: 2px; background: var(--orange); }
.hero__dept span + span::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 .6em; background: var(--mist); vertical-align: -.08em; }
.hero__lead { margin-top: 16px; font: 500 20px/1.8 var(--serif); letter-spacing: .08em; color: var(--ink); }

.sister { margin-top: 18px; padding-top: 16px; max-width: 580px; border-top: 1px solid rgba(169, 190, 211, .7); }
.sister__label { font: 500 13px/1 var(--sans); letter-spacing: .14em; color: var(--text); }
.sister__line { display: flex; flex-wrap: wrap; align-items: center; row-gap: 10px; margin-top: 14px; }
.sister__stop { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.3 var(--serif); letter-spacing: .06em; color: var(--ink-mid); white-space: nowrap; }
a.sister__stop:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.sister__stop b { font: 500 13px/1 var(--serif); letter-spacing: .04em; color: var(--ink-soft); }
.sister__stop em { margin-left: 4px; padding: 4px 7px; font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: .08em; color: #fff; background: var(--deep); border-radius: 2px; }
.sister__node { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink-mid); }
.sister__stop.is-here { color: var(--ink); }
.sister__stop.is-here b { color: var(--orange); }
.sister__stop.is-here .sister__node { background: var(--orange); box-shadow: 0 0 0 4px rgba(249, 175, 62, .25); }
.sister__wire { flex: 0 0 40px; height: 1px; margin: 0 12px; background: var(--mist); }

.hero__cta { display: flex; align-items: center; gap: 36px; margin-top: 26px; }

.hero__photo { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 61%; margin: 0; }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 56%;
  filter: var(--photo-grade);
  transform: scale(1.08); transform-origin: 62% 92%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 9%, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 9%, #000 22%);
}
.hero__hand {
  position: absolute; z-index: 3; right: 296px; top: 52px; transform: rotate(-4deg);
  font: 600 22px/1.65 var(--serif); letter-spacing: .12em; color: var(--ink); text-shadow: 0 0 18px rgba(255,255,255,.9);
}
.hero__hand small { display: block; margin-top: 8px; font: 500 13px/1.4 var(--sans); letter-spacing: .06em; color: var(--ink-mid); }
/* foreground leaves frame the view from the right edge, as on the B TOP hero */
.leaf--hero-a { right: -40px; top: -36px; width: 180px; --leaf-tf: scaleX(-1) rotate(-6deg);
  --leaf-mask: radial-gradient(130% 110% at 100% 0%, #000 42%, transparent 78%); }
.leaf--hero-b { right: -30px; bottom: -20px; width: 150px; --leaf-light: 1.14;
  --leaf-mask: radial-gradient(120% 100% at 100% 100%, #000 40%, transparent 76%); }

/* ==========================================================================
   RECEPTION FACTS — the B TOP news-card position now carries what a patient needs first:
   hours, phone and address, set as plain type on hairlines. The notice line sits under the hours it may change.
   ========================================================================== */
.dock {
  position: relative; z-index: 5;
  width: min(var(--shell), calc(100% - 40px)); margin: -56px auto 0;
  background: #fff; border-radius: 4px;
  box-shadow: 0 24px 48px -28px rgba(14, 58, 128, .35), 0 2px 6px rgba(14, 58, 128, .04);
}
.dock__facts { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr; padding: 30px 0 34px; }
.dfact { padding: 0 36px; border-left: 1px solid var(--line); }
.dfact:first-child { padding-left: 44px; border-left: 0; }
.dfact dt { display: flex; align-items: center; gap: 10px; font: 600 16px/1.4 var(--serif); letter-spacing: .12em; color: var(--ink); }
.dfact dt svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.dfact dd { margin-top: 12px; }
.dfact__hours { display: flex; align-items: baseline; gap: 16px; }
.dfact__hours span { flex: none; font: 600 15px/1 var(--sans); letter-spacing: .1em; color: var(--ink-mid); }
.dfact__hours b { font: 600 27px/1.42 var(--serif); letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.dfact__days { margin-top: 4px; font-size: 16px; line-height: 1.7; }
.dfact .arrow-link { display: flex; width: max-content; margin: 0 0 -12px; }
.dfact__tel { display: inline-block; padding-block: 6px; margin-block: -6px; font-size: 32px; line-height: 1.3; }
.dfact__sub { margin-top: 2px; font-size: 15px; line-height: 1.7; }
.dfact__addr { font: 600 21px/1.6 var(--serif); letter-spacing: .06em; color: var(--ink); }
.dfact__addr span { display: block; font: 500 16px/1.7 var(--sans); letter-spacing: .06em; color: var(--text); }

.dock__notice { display: grid; grid-template-columns: 236px 1fr auto; align-items: center; gap: 24px; padding: 16px 44px 17px; border-top: 1px solid var(--line); }
.dock__label { display: flex; align-items: center; gap: 14px; }
.dock__label-text { font: 600 17px/1 var(--serif); letter-spacing: .08em; color: var(--ink); }
.dock__item { display: flex; align-items: center; gap: 16px; font-size: 16px; line-height: 1.6; }
.dock__item time { flex: none; font-size: 15px; letter-spacing: .06em; }
.dock__item a { color: var(--ink); }
.dock__item a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dock__item .chip { margin: 0; }

/* ==========================================================================
   PAGE INDEX (sticky)
   ========================================================================== */
.pnav { position: sticky; top: 0; z-index: 20; margin-top: 36px; transition: background-color .3s, box-shadow .3s; }
.pnav__in { display: flex; align-items: center; gap: 32px; width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; height: 64px; border-bottom: 1px solid var(--line); }
.pnav.is-stuck { background: rgba(255, 255, 255, .97); box-shadow: 0 10px 24px -20px rgba(14, 58, 128, .5); }
.pnav.is-stuck .pnav__in { border-bottom-color: transparent; }
.pnav__title { font: 600 14px/1 var(--serif); letter-spacing: .14em; color: var(--ink); white-space: nowrap; }
.pnav ol { display: flex; flex: 1; justify-content: space-between; }
.pnav a { position: relative; display: flex; align-items: baseline; gap: 8px; padding: 22px 2px; font: 500 15px/1 var(--sans); letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.pnav a span { font: 500 13px/1 var(--serif); color: var(--ink-soft); }
.pnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pnav a:hover::after, .pnav a.is-active::after { transform: scaleX(1); }

.sec { position: relative; }
main { overflow-x: clip; }

/* soft shoreline edges instead of hard colour bands (B TOP uses the same wave on its photo bands) */
.symptoms::before, .symptoms::after, .sched::before, .sched::after, .qa::before {
  content: ""; position: absolute; left: 0; right: 0; height: 56px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'><path fill='%23ffffff' d='M0 30 C 200 6, 420 52, 720 30 S 1240 4, 1440 26 V56 H0 Z'/></svg>") center / 100% 100% no-repeat;
}
.symptoms::before, .sched::before { top: -1px; transform: scale(-1, -1); }
.symptoms::after, .sched::after { bottom: -1px; }
.qa::before { top: -1px; transform: scaleY(-1); }

/* ==========================================================================
   01 SYMPTOMS — an index of what can be talked about, set in Mincho on rules (no cards, no icons)
   ========================================================================== */
.symptoms { margin-top: 44px; background: var(--wash); padding: 112px 0 136px; overflow: hidden; }
.symptoms__in { position: relative; z-index: 3; display: grid; grid-template-columns: 360px 1fr; column-gap: 72px; width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; }
.symptoms__mark { display: block; margin-top: 12px; font-size: 54px; color: rgba(169, 190, 211, .8); pointer-events: none; }
.symptoms__lead { margin-top: 22px; font: 500 24px/1.85 var(--serif); letter-spacing: .08em; color: var(--ink); }
.symptoms__note { margin-top: 16px; font-size: 16px; line-height: 1.9; }
.symptoms__head .arrow-link { display: flex; width: max-content; margin: 14px 0 -12px; }
/* the 2px ink rule opens the list, as on the timetable and the FAQ */
.symptoms__list { align-self: start; margin-top: 6px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.symptoms__group { display: grid; grid-template-columns: 160px 1fr; align-items: baseline; column-gap: 24px; padding: 30px 0 32px; border-top: 1px solid var(--rule); }
.symptoms__group:first-child { border-top: 0; }
.symptoms__group dt { position: relative; padding-left: 18px; font: 600 17px/1.6 var(--serif); letter-spacing: .1em; color: var(--ink-mid); }
.symptoms__group dt::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--orange); }
.symptoms__group ul { display: flex; flex-wrap: wrap; gap: 6px 34px; }
.symptoms__group li { font: 600 28px/1.5 var(--serif); letter-spacing: .06em; color: var(--ink); }
/* flipped, so the mask origin (0% 0%) lands on the top-right, at the page edge */
.leaf--symptoms { right: -48px; top: 36px; width: 210px; --leaf-tf: scaleX(-1); --leaf-light: 1.06;
  --leaf-mask: radial-gradient(120% 100% at 0% 0%, #000 36%, transparent 76%); }

/* ==========================================================================
   02 SERVICES — photo and copy share their top edge; the photo stands on the ink rule
   that opens the second tier (exams / check-ups / other), so the three read as one composition
   ========================================================================== */
.services { width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; padding: 128px 0 120px; }
.services__top { display: grid; grid-template-columns: 520px 1fr; column-gap: 84px; }
/* the photo bleeds off the left edge (B TOP photo grammar) and is stretched to the copy's height */
.services__visual { position: relative; margin-left: calc(-1 * var(--gut)); min-height: 420px; }
.services__photo { position: absolute; inset: 0; overflow: hidden; }
.services__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; filter: var(--photo-grade);
  -webkit-mask-image: linear-gradient(90deg, #000 66%, rgba(0,0,0,.55) 86%, transparent 100%); mask-image: linear-gradient(90deg, #000 66%, rgba(0,0,0,.55) 86%, transparent 100%); }
.services__script { position: absolute; z-index: 2; right: -40px; bottom: 44px; font: 400 38px/1.3 var(--script); color: var(--mist); text-align: right; pointer-events: none; }
.services__body { padding-bottom: 56px; }
.statement { margin-top: 36px; font: 500 32px/1.72 var(--serif); letter-spacing: .08em; color: var(--ink); }
.services__text { margin-top: 22px; max-width: 34em; }
.index { margin-top: 36px; border-bottom: 1px solid var(--line); }
.index__row { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.index dt { position: relative; padding-left: 18px; font: 600 17px/1.7 var(--serif); letter-spacing: .08em; color: var(--ink); }
.index dt::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--orange); }
.index__val { font: 600 21px/1.6 var(--serif); letter-spacing: .08em; color: var(--ink); }
.index__items { display: flex; flex-wrap: wrap; gap: 2px 28px; }
.index__items li { font: 600 19px/1.7 var(--serif); letter-spacing: .06em; color: var(--ink); }
.index__sub { margin-left: 18px; font-size: 16px; color: var(--text); }

.services__more { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.services__more::before { content: ""; position: absolute; left: calc(-1 * var(--gut)); right: 0; top: 0; height: 2px; background: var(--ink); }
.services__col { padding: 34px 40px 4px; border-left: 1px solid var(--rule); }
.services__col:first-child { padding-left: 0; border-left: 0; }
.services__col h3 { position: relative; padding-left: 18px; font: 600 20px/1.5 var(--serif); letter-spacing: .1em; color: var(--ink); }
.services__col h3::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--orange); }
.services__col ul { margin-top: 12px; }
.services__col li { position: relative; padding: 5px 0 5px 18px; font-size: 17px; line-height: 1.75; color: var(--ink); }
.services__col li::before { content: ""; position: absolute; left: 1px; top: 1.2em; width: 8px; height: 1px; background: var(--ink-soft); }
.services__note { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.9; }

/* ==========================================================================
   03 SCHEDULE — a timetable set in type and rules on the wash, not a card
   ========================================================================== */
.sched { background: var(--wash); padding: 112px 0 150px; overflow: hidden; }
.sched__shade {
  position: absolute; right: 0; top: 0; width: 48%; height: 72%;
  background: url("../img/concept/unsplash-1520618825575-e632cb001d53-w1400-q70.avif") center 30% / cover no-repeat;
  opacity: .3; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%), linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 50%), linear-gradient(180deg, #000 30%, transparent 100%); mask-composite: intersect;
}
/* one grid whose rows are shared by both columns: heading ↔ timetable, key ↔ notes */
.sched__in {
  position: relative; z-index: 3; display: grid; grid-template-columns: 340px 1fr;
  grid-template-areas: "head table" "key notes" "key cal";
  column-gap: 64px; align-items: start;
  width: min(var(--shell), calc(100% - 40px)); margin: 0 auto;
}
.sched__head { grid-area: head; padding-top: 2px; }
.sched__mark { display: block; margin-top: 12px; font-size: 54px; color: rgba(169, 190, 211, .8); pointer-events: none; }
.sched__lead { margin-top: 22px; font: 500 21px/1.9 var(--serif); letter-spacing: .08em; color: var(--ink); }
.sched__key { grid-area: key; padding-top: 30px; border-top: 1px solid var(--rule); }
.sched__src { margin-top: 16px; font-size: 15px; line-height: 1.85; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; letter-spacing: .06em; }
.legend li { display: flex; align-items: center; gap: 8px; }

.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--deep); }
.dash { display: inline-block; width: 16px; height: 2px; background: #9fb6cc; vertical-align: middle; }
.legend .dot { width: 12px; height: 12px; }

.timetable { grid-area: table; width: 100%; border-collapse: collapse; }
.timetable caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.timetable thead th { padding: 0 0 20px; font: 600 21px/1 var(--serif); letter-spacing: .1em; color: var(--ink); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.timetable thead .t-label { text-align: left; font: 600 14px/1 var(--sans); letter-spacing: .12em; color: var(--text); }
.timetable tbody th, .timetable tbody td { height: 112px; border-bottom: 1px solid var(--rule); }
.timetable tbody td { text-align: center; }
.timetable .t-label { width: 290px; text-align: left; }
.t-ampm { display: inline-block; width: 60px; font: 600 17px/1 var(--serif); letter-spacing: .12em; color: var(--ink); }
.t-time { font: 600 34px/1 var(--serif); letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.t-time span { margin: 0 .12em; color: var(--ink-soft); }
.sched__notes { grid-area: notes; display: grid; grid-template-columns: 1fr 1.25fr 1fr; margin-top: 30px; }
.sched__notes > div { padding: 0 26px; border-left: 1px solid var(--rule); }
.sched__notes > div:first-child { padding-left: 0; border-left: 0; }
.sched__notes dt { font: 600 16px/1.6 var(--serif); letter-spacing: .08em; color: var(--ink); }
.sched__notes dd { margin-top: 6px; font-size: 16px; line-height: 1.8; }
.sched__tel { display: inline-block; padding-block: 8px; margin-block: -8px; font-size: 22px; line-height: 1.4; }
.sched__cal { grid-area: cal; display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 16px 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--deep); }
.sched__cal-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.sched__cal-ico .cal-dots { fill: var(--orange); stroke: none; }
.sched__cal b { display: block; font: 600 16px/1.5 var(--serif); letter-spacing: .08em; color: var(--ink); }
.sched__cal small { display: block; font-size: 14px; line-height: 1.7; color: var(--text); }
.sched__cal > i { flex: none; margin-left: auto; }

/* ==========================================================================
   04 FIRST VISIT — heading, copy and a panoramic reception image share one band;
   the visit flow has its own band below (the photo never reaches the route line)
   ========================================================================== */
.first { width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; padding: 120px 0 128px; }
.first__open { display: grid; grid-template-columns: 1fr 560px; column-gap: 72px; align-items: stretch; }
.first__catch { margin-top: 36px; font: 500 32px/1.75 var(--serif); letter-spacing: .08em; color: var(--ink); }
.first__lead { margin-top: 20px; font-size: 17px; line-height: 1.95; }
/* top edge = the heading, bottom edge = the last line of the lead; bleeds to the right page edge */
.first__photo { position: relative; min-height: 300px; margin-right: calc(-1 * var(--gut)); overflow: hidden; }
/* the Human-adopted reception image (CONCEPT_GENERATED) is framed by object-position only:
   anchored left, so the patient's head, the questionnaire and the guiding staff stay clear of the left fade */
.first__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; filter: var(--photo-grade);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 9%, #000 24%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 9%, #000 24%); }
.first__script { display: none; }

.route { position: relative; margin-top: 80px; }
.route__title { display: flex; align-items: center; gap: 20px; font: 600 22px/1.4 var(--serif); letter-spacing: .1em; color: var(--ink); }
.route__title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.route__body { position: relative; margin-top: 4px; }
.route__line { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.route__line path { fill: none; stroke-width: 1.5; }
.route__base { stroke: var(--line); }
.route__draw { stroke: var(--orange); stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.4s var(--ease); }
.route.is-in .route__draw { stroke-dashoffset: 0; }
.route__stops { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.route__stops li { position: relative; padding: 96px 26px 0 calc(50% - 128px); }
.route__node { position: absolute; left: calc(50% - 9px); top: 51px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--deep); }
.route__node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--orange); }
.route__no { display: block; font: 500 40px/1 var(--serif); letter-spacing: .02em; color: var(--num); }
.route__stops h4 { margin-top: 12px; font: 600 21px/1.5 var(--serif); letter-spacing: .08em; color: var(--ink); }
.route__stops p { margin-top: 10px; font-size: 16px; line-height: 1.9; }
.route__note { margin-top: 28px; font-size: 15px; text-align: right; }

/* a static guide (no inputs): what to check before coming, each with a plain link where one helps */
.guide {
  display: grid; grid-template-columns: 300px 1fr; grid-template-areas: "title list" "urgent list"; grid-template-rows: auto 1fr;
  column-gap: 72px; margin-top: 88px; padding-top: 34px; border-top: 2px solid var(--ink);
}
.guide__title { grid-area: title; font: 600 24px/1.5 var(--serif); letter-spacing: .08em; color: var(--ink); }
.guide__list { grid-area: list; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.guide__item { padding: 24px 0 26px; border-top: 1px solid var(--rule); }
.guide__item:nth-child(-n+2) { padding-top: 2px; border-top: 0; }
.guide__item dt { position: relative; padding-left: 18px; font: 600 19px/1.6 var(--serif); letter-spacing: .08em; color: var(--ink); }
.guide__item dt::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--orange); }
.guide__item dd { margin-top: 8px; font-size: 16px; line-height: 1.9; }
.guide__tel { display: inline-block; padding-block: 8px; margin-block: -2px -8px; font-size: 24px; line-height: 1.3; }
.guide__urgent { grid-area: urgent; align-self: start; margin-top: 28px; padding: 2px 0 2px 16px; border-left: 2px solid var(--orange); font-size: 15px; line-height: 1.9; color: var(--ink-mid); }
.guide__urgent b { display: block; margin-bottom: 2px; font: 600 16px/1.5 var(--serif); letter-spacing: .1em; color: var(--ink); }

/* ==========================================================================
   05 ACCESS — road band, heading on the open page, panel offset over the photo edge
   ========================================================================== */
.access { position: relative; display: grid; grid-template-columns: var(--gut) 1fr 456px var(--gut); grid-template-rows: auto auto; padding: 0 0 110px; }
.access__photo { position: relative; grid-column: 1 / -1; grid-row: 1; height: 500px; overflow: hidden; }
.access__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; filter: var(--photo-grade); }
.access__photo::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: -1px; height: 56px; transform: scaleY(-1);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'><path fill='%23ffffff' d='M0 22 C 260 50, 600 6, 900 30 S 1300 46, 1440 24 V56 H0 Z'/></svg>") center / 100% 100% no-repeat;
}
.access__hand {
  position: absolute; z-index: 3; left: 57%; top: 100px; transform: rotate(-4deg);
  font: 600 26px/1.7 var(--serif); letter-spacing: .14em; color: var(--ink); text-shadow: 0 0 22px rgba(255,255,255,.95), 0 0 6px rgba(255,255,255,.8);
}
.access__head { grid-column: 2; grid-row: 2; padding: 56px 72px 0 0; }
.access__lead { margin-top: 26px; font: 600 25px/1.6 var(--serif); letter-spacing: .06em; color: var(--ink); }
.access__lead span { display: block; font: 500 16px/1.7 var(--sans); letter-spacing: .06em; color: var(--text); }
.access__sub { margin-top: 14px; font-size: 16px; line-height: 1.9; }
.access__panel {
  position: relative; z-index: 4; grid-column: 3; grid-row: 1 / 3; align-self: start; margin-top: 330px; padding: 26px 30px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 18px 36px -34px rgba(14, 58, 128, .4);
}
.access__list { border-bottom: 1px solid var(--line); }
.access__list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 2px; border-top: 1px solid var(--line); }
.access__list > div:first-child { border-top: 0; padding-top: 0; }
.access__list dt { display: flex; align-items: center; gap: 12px; font: 600 16px/1.5 var(--serif); letter-spacing: .08em; color: var(--ink-mid); }
.access__list svg { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--ink-soft); stroke-width: 1.3; }
.access__list .tbd { margin: 0; }
.access__tel { display: inline-block; padding-block: 10px; margin-block: -10px; font-size: 20px; line-height: 1.3; }
.access__btns { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }

.map { position: relative; height: 112px; margin-top: 18px; overflow: hidden; border: 1px dashed #bfd0e2; border-radius: 3px; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__bg { fill: #f6f9fc; }
.map__grid path { stroke: rgba(14, 58, 128, .05); stroke-width: 1; }
.map__contours path { fill: none; stroke: rgba(0, 113, 192, .11); stroke-width: 1.2; }
.map__cap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 5px; width: max-content; text-align: center; }
.map__pin svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-mid); stroke-width: 1.3; stroke-dasharray: 3 3; }
.map__t { font: 600 14px/1 var(--serif); letter-spacing: .32em; color: var(--ink-mid); padding-left: .32em; }
.map__s { font-size: 14px; letter-spacing: .04em; }

/* ==========================================================================
   06 FAQ / 07 NEWS
   ========================================================================== */
/* rules and type instead of widgets: a 2px ink rule opens each list, Q / A are Mincho letters,
   the open answer carries the orange heading bar, and the news reads as dated lines. */
.qa { display: grid; grid-template-columns: 1fr 536px; padding: 120px var(--gut) 128px; background: var(--wash); }
.faq { padding-right: 64px; }
.news { padding-left: 52px; border-left: 1px solid var(--rule); }
.faq__list { margin-top: 40px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:first-child { border-top: 0; }
.faq details[open] { box-shadow: inset 3px 0 0 var(--orange); }
.faq summary { position: relative; display: flex; align-items: center; gap: 20px; min-height: 80px; padding: 16px 56px 16px 22px; list-style: none; cursor: pointer; font: 600 18px/1.6 var(--serif); letter-spacing: .06em; color: var(--ink); transition: color .25s; }
.faq summary:hover { color: var(--deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 14px; height: 1.5px; background: var(--ink-mid); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq__q, .faq__qa { flex: none; width: 24px; font: 500 25px/1 var(--serif); text-align: center; }
.faq__q { color: var(--mist); transition: color .25s; }
.faq details[open] .faq__q, .faq summary:hover .faq__q { color: var(--ink-mid); }
.faq__qa { color: var(--orange); }
.faq__a { display: flex; gap: 20px; padding: 0 56px 28px 22px; }
.faq__a p { padding-top: 1px; font-size: 17px; line-height: 1.9; }
.faq__a a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq__a .tbd { display: flex; margin: 0 0 4px; }

.news .sh { align-items: flex-end; }
.news__chip { margin: 0 0 8px auto; }
.news__list { margin-top: 40px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.news__list li { border-top: 1px solid var(--rule); }
.news__list li:first-child { border-top: 0; }
.news__list a { display: grid; grid-template-columns: 98px auto 1fr; align-items: center; gap: 0 16px; padding: 22px 4px; }
.news__list time { font-size: 15px; letter-spacing: .04em; }
.news__list .badge { min-width: 58px; height: 26px; padding: 0 10px; font-size: 12.5px; }
.news__t { font-size: 17px; line-height: 1.7; color: var(--ink); }
.news__list a:hover .news__t { text-decoration: underline; text-underline-offset: 4px; }
.news__foot { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ==========================================================================
   CLOSING
   ========================================================================== */
/* the photo is shown whole (no text over it); the copy sits on the wash below a shoreline edge */
.closing { position: relative; background: var(--wash); }
.closing__photo { position: relative; height: 540px; overflow: hidden; }
.closing__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; filter: var(--photo-grade); }
.closing__photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 72px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'><path fill='%23f2f7fb' d='M0 40 C 260 8, 520 66, 820 36 S 1260 10, 1440 30 V72 H0 Z'/></svg>") center / 100% 100% no-repeat;
}
.closing__in { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 470px; align-items: end; gap: 40px 80px; width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; padding: 36px 0 112px; }
.closing__script { font-size: 32px; }
.closing__title { margin-top: 18px; font: 600 44px/1.6 var(--serif); letter-spacing: .08em; color: var(--ink); }
.closing__text { margin-top: 16px; font-size: 17px; }
.closing__btns { display: grid; gap: 14px; }
.closing__btns .btn { justify-content: space-between; height: 62px; }
.closing__tel { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #c9d7e6; }
.closing__tel-l { font: 600 15px/1 var(--serif); letter-spacing: .12em; color: var(--ink); }
.closing__tel a { display: inline-block; padding-block: 8px; margin-block: -8px; font-size: 26px; line-height: 1.3; }
.closing__tel small { font-size: 15px; }
.medal {
  position: absolute; z-index: 3; right: max(64px, calc(var(--gut) + 20px)); top: 226px;
  display: grid; align-content: center; gap: 18px; width: 262px; height: 262px; padding: 0 0 0 64px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); box-shadow: 0 30px 60px -36px rgba(14, 58, 128, .5);
}
.medal p { position: relative; padding-left: 18px; font: 600 16px/2.1 var(--serif); letter-spacing: .16em; color: var(--ink); }
.medal p::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--mist); }
.medal span { padding-left: 18px; font: 600 11px/1.9 var(--sans); letter-spacing: .32em; color: var(--ink-mid); }

/* ==========================================================================
   NETWORK — stations on the same line grammar as the visit route
   ========================================================================== */
.network { background: var(--wash); padding: 4px 0 150px; overflow: hidden; }
.network::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'><path fill='%23ffffff' d='M0 26 C 300 52, 560 4, 860 28 S 1280 50, 1440 22 V56 H0 Z'/></svg>") center / 100% 100% no-repeat;
}
.network__in { position: relative; z-index: 2; width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; padding-top: 96px; border-top: 1px solid var(--line); }
.network__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px 48px; }
.network__head p { padding-bottom: 6px; font-size: 17px; }
.network__head .arrow-link { margin-bottom: -4px; }
.network__mark { position: absolute; right: 0; top: 30px; font-size: 64px; color: rgba(169, 190, 211, .7); pointer-events: none; }

.line-route { position: relative; margin-top: 72px; }
.line-route__svg { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.line-route__svg path { fill: none; stroke: #c3d3e4; stroke-width: 1.5; }
.stations { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.station > a, .station__wrap { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 104px 8px 10px calc(50% - 100px); min-height: 100%; }
.station__node { position: absolute; left: calc(50% - 8px); top: 52px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink-mid); transition: background-color .3s, box-shadow .3s; }
.station__no { font: 500 34px/1 var(--serif); color: var(--num); }
.station__cat { margin-top: 14px; font: 700 13px/1 var(--sans); letter-spacing: .1em; padding-left: 12px; position: relative; color: var(--blue); }
.station__cat::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; }
.station__cat--care { color: var(--care); }
.station__cat--prev { color: #2f7d5e; }
.station__name { margin-top: 10px; font: 600 18px/1.55 var(--serif); letter-spacing: .02em; color: var(--ink); }
.station__sub { display: block; }
.station__state { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; letter-spacing: .06em; color: var(--text); }
.station__state i { position: relative; width: 14px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.station__state i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.station > a:hover .station__node { background: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); }
.station > a:hover .station__name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.station > a:hover .station__state i { transform: translateX(4px); }
.station.is-here .station__node { left: calc(50% - 13px); top: 47px; width: 26px; height: 26px; background: var(--orange); box-shadow: 0 0 0 7px rgba(249, 175, 62, .22), inset 0 0 0 4px #fff, inset 0 0 0 5.5px var(--orange); }
.station.is-here .station__no { color: var(--orange); }
.station.is-here .station__name { font-size: 21px; }
.station__state--here { padding: 5px 10px; background: var(--deep); color: #fff; font-weight: 700; border-radius: 2px; }
.leaf--net { left: -50px; top: 30px; width: 170px;
  --leaf-mask: radial-gradient(120% 100% at 0% 0%, #000 40%, transparent 76%); }
.leaf--net2 { right: -40px; bottom: 40px; width: 150px; --leaf-tf: scaleX(-1);
  --leaf-mask: radial-gradient(120% 100% at 100% 100%, #000 40%, transparent 76%); }

/* ==========================================================================
   FOOTER (global — same structure as B TOP)
   ========================================================================== */
.ft { background: #fff; }
.ft__in { display: grid; grid-template-columns: 340px 1fr 220px; gap: 40px; width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; padding: 48px 0 28px; }
.ft__org img { width: 181px; }
.ft__addr { margin-top: 20px; font-size: 15px; color: var(--ink-mid); }
.ft__tel { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--blue); }
.ft__tel svg { width: 24px; height: 24px; fill: var(--blue); }
.ft__tel b { display: block; font: 700 26px/1.2 var(--sans); letter-spacing: .04em; }
.ft__tel small { display: block; font-size: 13px; color: var(--ink-mid); }
.ft__nav { display: grid; grid-template-columns: repeat(3, 1fr); }
.ft__nav ul { padding: 4px 0 4px 26px; border-left: 1px solid var(--line); }
.ft__nav li + li { margin-top: 8px; }
.ft__nav a { font-size: 15px; color: var(--ink-mid); }
.ft__nav a:hover { color: var(--ink); text-decoration: underline; }
.ft__island { display: flex; align-items: center; gap: 12px; align-self: start; font: 600 15px/1.7 var(--serif); letter-spacing: .08em; color: var(--ink); }
.ft__bottom { display: flex; align-items: center; justify-content: space-between; width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; padding: 0 0 22px; }
.pagetop { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .08em; color: var(--ink-mid); }
.pagetop span { position: relative; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-mid); }
.pagetop span::after { content: ""; position: absolute; left: 14px; top: 16px; width: 8px; height: 8px; border-top: 1px solid var(--ink-mid); border-left: 1px solid var(--ink-mid); transform: rotate(45deg); }
.ft__copy { font-size: 13px; color: var(--ink-mid); }
.ft__poc { padding: 12px 24px; border-top: 1px dashed var(--line); background: var(--wash); font-size: 13px; line-height: 1.75; letter-spacing: .04em; text-align: center; color: var(--text); }

.sbar { display: none; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   NARROWER DESKTOP: the hero rail lives in the outer gutter, which gets too narrow below ~1400;
   the header drops its tagline below 1366 (B TOP drops it on narrower desktops as well)
   ========================================================================== */
@media (max-width: 1399px) {
  .hero__rail { display: none; }
}
@media (max-width: 1365px) {
  .hd__in { padding: 0 40px; }
  .hd__tag { display: none; }
}

/* ==========================================================================
   TABLET (768–1199): keep desktop grammar, loosen fixed widths
   ========================================================================== */
@media (max-width: 1199px) and (min-width: 768px) {
  .hd__in { padding: 0 24px; }
  .hd__nav a { font-size: 12.5px; padding: 10px 6px; }
  .hd__tel { gap: 10px; padding: 0 14px; }
  .hd__tel b { font-size: 15.5px; }
  .hd__tel small { display: none; }
  .hero { height: auto; min-height: 640px; padding-bottom: 104px; }
  .hero__copy { width: 52%; }
  .hero__title { font-size: 60px; }
  .hero__dept { font-size: 23px; padding-left: 38px; }
  .hero__dept::before { width: 26px; }
  .hero__lead { font-size: 18px; }
  .hero__photo { width: 56%; }
  .hero__hand { display: none; }
  .hero__no { left: 300px; font-size: 260px; }
  .hero__cta { flex-wrap: wrap; gap: 16px 28px; }
  .hero__cta .btn { white-space: nowrap; }
  .dock__facts { grid-template-columns: 1.1fr 1fr 1fr; }
  .dfact { padding: 0 26px; }
  .dfact:first-child { padding-left: 32px; }
  .dfact__hours b { font-size: 24px; }
  .dfact__tel { font-size: 27px; }
  .dfact__addr { font-size: 19px; }
  .dock__notice { grid-template-columns: 1fr auto; gap: 10px 24px; padding: 16px 32px 18px; }
  .dock__label { grid-column: 1 / -1; }
  .pnav__title { display: none; }
  .pnav a { font-size: 14px; letter-spacing: .02em; }
  .sh h2 { font-size: 28px; }
  .symptoms__in { grid-template-columns: 290px 1fr; column-gap: 48px; }
  .symptoms__lead { font-size: 21px; }
  .symptoms__group { grid-template-columns: 1fr; row-gap: 8px; padding: 24px 0 26px; }
  .symptoms__group li { font-size: 25px; }
  .services__top { grid-template-columns: 1fr 1.3fr; column-gap: 48px; }
  .statement { font-size: 24px; }
  .index__row { grid-template-columns: 1fr; gap: 4px; }
  .services__col { padding: 30px 24px 4px; }
  .sched__in { grid-template-columns: 1fr 1fr; grid-template-areas: "head key" "table table" "notes notes" "cal cal"; column-gap: 40px; }
  .sched__mark { font-size: 44px; }
  .sched__key { align-self: end; padding-top: 0; border-top: 0; }
  .timetable { margin-top: 32px; }
  .timetable .t-label { width: 240px; }
  .t-time { font-size: 28px; }
  .first__open { grid-template-columns: 1fr 42%; column-gap: 40px; }
  .first__catch { font-size: 26px; }
  /* narrower photo column: frame the three figures (patient, form, staff) inside it */
  .first__photo img { object-position: 13% 50%; }
  .guide { grid-template-columns: 1fr; grid-template-areas: "title" "list" "urgent"; grid-template-rows: auto; }
  .guide__list { margin-top: 18px; }
  .route__stops li { padding-left: 16px; padding-right: 16px; }
  .access { grid-template-columns: var(--gut) 1fr 380px var(--gut); }
  .access__head { padding-right: 32px; }
  .access__lead { font-size: 21px; }
  .qa { grid-template-columns: 1fr; }
  .faq { padding-right: 0; }
  .news { margin-top: 72px; padding-left: 0; border-left: 0; }
  .medal { display: none; }
  .closing__in { grid-template-columns: 1fr; }
  .network__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; }
  .network__head p { order: 3; flex-basis: 100%; }
  .line-route__svg { display: none; }
  .stations { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .station > a, .station__wrap { padding: 40px 12px 10px 0; }
  .station__node { left: 0; top: 8px; }
  .station.is-here .station__node { left: -5px; top: 3px; }
  .ft__in { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   MENU HEADER (≤1023). B TOP switches at 900; this header carries the same nav plus
   the search label and tel block, which no longer fit below 1024 without overflowing.
   ========================================================================== */
@media (max-width: 1023px) {
  :root { --hd-h: 72px; }
  .hd__in { height: var(--hd-h); padding: 0 12px 0 24px; }
  .hd__brand img { width: 180px; }
  .hd__tag, .hd__nav, .hd__tel { display: none; }
  .hd__search { margin: 0 0 0 auto; width: 44px; height: 44px; justify-content: center; }
  .hd__search span { display: none; }
  .hd__menu { position: relative; display: block; width: 52px; height: 52px; }
  .hd__menu span { position: absolute; left: 14px; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
  .hd__menu span:nth-child(1) { top: 16px; }
  .hd__menu span:nth-child(2) { top: 23px; }
  .hd__menu span:nth-child(3) { top: 30px; }
  .hd__menu em { position: absolute; left: 0; right: 0; bottom: 4px; font: 500 10px/1 var(--sans); font-style: normal; letter-spacing: .04em; color: var(--ink); }
  .hd__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hd__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hd__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* open menu: the header (with its close button) is pinned above the drawer */
  .hd.is-open { position: fixed; top: 0; left: 0; right: 0; z-index: 45; box-shadow: 0 1px 0 var(--line); }
  body.menu-open main { margin-top: var(--hd-h); }
  .drawer { position: fixed; z-index: 44; left: 0; right: 0; top: var(--hd-h); bottom: 0; display: block; padding: 12px 24px 32px; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
  .drawer[hidden] { display: none; }
  .drawer li { border-bottom: 1px solid var(--line); }
  .drawer a { display: block; padding: 18px 4px; font: 600 17px/1.4 var(--serif); letter-spacing: .1em; color: var(--ink); }
  .drawer a[aria-current] { color: var(--deep); }
  .drawer a[aria-current]::after { content: "現在のカテゴリ"; margin-left: 12px; font: 500 12px/1 var(--sans); color: var(--ink-soft); }
  /* this page's sections inside the menu, so a long page can be crossed from anywhere */
  .drawer .drawer__page { margin-top: 28px; }
  .drawer__label { font: 600 13px/1 var(--sans); letter-spacing: .14em; color: var(--text); }
  .drawer .drawer__page ol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .drawer .drawer__page li { border: 0; }
  .drawer .drawer__page ol a { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 12px; font: 500 15px/1.4 var(--sans); letter-spacing: .02em; color: var(--ink); background: var(--wash); border-radius: 3px; }
  .drawer .drawer__page ol a span { font: 500 12px/1 var(--serif); letter-spacing: .04em; color: var(--ink-soft); }
  .drawer .drawer__top { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; padding: 0 2px; font: 600 15px/1.4 var(--sans); letter-spacing: .06em; color: var(--deep); }
  .drawer__top span { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-mid); }
  .drawer__top span::after { content: ""; position: absolute; left: 10px; top: 11px; width: 7px; height: 7px; border-top: 1px solid var(--ink-mid); border-left: 1px solid var(--ink-mid); transform: rotate(45deg); }
  .drawer__tel { margin-top: 24px; padding: 18px 20px !important; background: var(--wash); border-radius: 3px; font-size: 15px !important; }
  .drawer__tel b { display: block; margin-top: 6px; font: 700 28px/1.2 var(--sans); letter-spacing: .04em; color: var(--blue); }
  .drawer__tel small { display: block; margin-top: 4px; font: 500 14px/1.6 var(--sans); letter-spacing: .04em; color: var(--text); }

  /* hero actions stacked, so the circle link's label never lands on the photo */
  .hero__cta { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* facts: hours and phone side by side, the address on its own row */
  .dock__facts { grid-template-columns: 1fr 1fr; padding: 28px 0 30px; }
  .dfact:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 28px; margin: 26px 32px 0; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .dfact:nth-child(3) dd { margin-top: 0; }

  /* page index: the labels alone (the menu carries the numbered index at this width) */
  .pnav a span { display: none; }

  /* first visit: heading and copy, then the window photo across the page, then the flow */
  .first__open { grid-template-columns: 1fr; row-gap: 32px; }
  .first__photo { min-height: 0; height: 300px; margin: 0 calc(-1 * var(--gut)); }
  .first__photo img { -webkit-mask-image: none; mask-image: none; object-position: 50% 65%; }

  /* symptoms: heading above the list */
  .symptoms__in { grid-template-columns: 1fr; row-gap: 36px; }
  .symptoms__head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: end; }
  .symptoms__head .sh, .symptoms__mark { grid-column: 1 / -1; }
  .symptoms__note { margin-top: 0; }
  .symptoms__group { grid-template-columns: 150px 1fr; }

  /* visit flow: two by two, each stop on its own rule (left → right, then the next row) */
  .route__line { display: none; }
  .route__stops { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .route__stops li { padding: 34px 0 30px; border-top: 1px solid var(--rule); }
  .route__stops li:nth-child(-n+2) { border-top-color: transparent; }
  .route__node { left: 0; top: -9px; }
  .route__stops li:nth-child(-n+2) .route__node { top: 22px; }
  .route__stops li:nth-child(-n+2) { padding-top: 56px; }
}

/* ==========================================================================
   MOBILE (≤767) — designed for 390, not a shrunken desktop
   ========================================================================== */
@media (max-width: 767px) {
  html { scroll-padding-top: 16px; }
  body { font-size: 16px; line-height: 1.9; }
  .pc { display: none; }
  .sp { display: inline; }
  .pocbar { font-size: 12px; line-height: 1.6; padding: 6px 16px; text-align: left; }

  /* header (menu behaviour itself is defined in the ≤1023 block) */
  :root { --hd-h: 62px; }
  .hd__in { padding: 0 8px 0 16px; }
  .hd__brand img { width: 150px; }

  /* hero: a shorter photo first, then the name and the two departments */
  .hero { display: flex; flex-direction: column; height: auto; padding-bottom: 62px; overflow: hidden; }
  .hero__rail { display: none; }
  .hero__photo { order: -1; position: relative; width: 100%; height: 196px; flex: none; }
  .hero__photo img { transform: none; object-position: 62% 56%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .hero__hand { right: 18px; top: 84px; font-size: 14px; line-height: 1.6; transform: rotate(-4deg); }
  .hero__hand small { display: none; }
  .hero__copy { width: auto; margin: -56px 20px 0; padding-top: 0; }
  .hero > .crumb { position: static; order: -2; padding: 10px 20px 9px; font-size: 13px; background: #fff; }
  .hero__no { left: auto; right: -14px; top: -30px; font-size: 160px; color: rgba(14, 58, 128, .06); }
  .hero__cat { margin-top: 0; font-size: 14px; gap: 10px; }
  .hero__cat .script { font-size: 19px; }
  .hero__title { margin-top: 14px; font-size: 44px; line-height: 1.24; letter-spacing: .06em; }
  .hero__title span:first-child { letter-spacing: .08em; }
  .hero__dept { margin-top: 12px; padding-left: 32px; font-size: 21px; letter-spacing: .08em; }
  .hero__dept::before { width: 22px; }
  .hero__lead { margin-top: 14px; font-size: 17px; line-height: 1.85; letter-spacing: .06em; }
  .sister { margin-top: 18px; padding-top: 14px; max-width: none; }
  .sister__label { font-size: 13px; }
  .sister__line { margin-top: 12px; }
  .sister__stop { gap: 6px; font-size: 14px; letter-spacing: .02em; }
  .sister__stop b { font-size: 13px; }
  .sister__stop em { display: none; }
  .sister__wire { flex-basis: 16px; margin: 0 8px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 22px; }
  .hero__cta .btn { justify-content: space-between; height: 58px; }
  /* on a phone the facts dock follows at once (with its own アクセス link), so the hero keeps one action */
  .hero__cta .cta-circle { display: none; }
  .leaf--hero-a { right: -54px; top: -40px; width: 130px; --leaf-tf: scaleX(-1) rotate(8deg); }
  .leaf--hero-b { display: none; }

  /* facts: one column; the phone number is the largest tap target on the card */
  .dock { width: auto; margin: -32px 16px 0; }
  .dock__facts { grid-template-columns: 1fr; padding: 4px 20px 0; }
  .dfact, .dfact:first-child, .dfact:nth-child(3) { display: block; margin: 0; padding: 20px 0 22px; border-left: 0; border-top: 1px solid var(--line); }
  .dfact:first-child { border-top: 0; }
  .dfact:nth-child(3) dd { margin-top: 10px; }
  .dfact dt { font-size: 16px; }
  .dfact dd { margin-top: 10px; }
  .dfact__hours { gap: 14px; }
  .dfact__hours b { font-size: 24px; }
  .dfact__days { font-size: 16px; }
  .dfact__tel { font-size: 30px; padding-block: 8px; margin-block: -8px; }
  .dfact__addr { font-size: 19px; }
  .dock__notice { grid-template-columns: 1fr; gap: 10px; padding: 16px 20px 18px; }
  .dock__label { grid-column: auto; }
  .dock__label-text { font-size: 16px; }
  .dock__item { flex-wrap: wrap; gap: 4px 10px; font-size: 16px; line-height: 1.75; }
  .dock__item time { font-size: 14px; }
  .dock__item a { flex-basis: 100%; }
  .dock__notice .arrow-link { justify-self: end; font-size: 14px; }

  /* page index: horizontal chips */
  .pnav { position: relative; margin-top: 24px; }
  .pnav__in { width: auto; height: auto; margin: 0; padding: 0 0 0 16px; border: 0; gap: 0; }
  .pnav__title { display: none; }
  .pnav ol { gap: 8px; overflow-x: auto; padding: 4px 16px 10px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
  .pnav ol::-webkit-scrollbar { display: none; }
  .pnav a { align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; background: var(--wash); border-radius: 999px; }
  .pnav a::after { display: none; }

  .sh { gap: 12px; }
  .sh h2 { font-size: 24px; gap: 12px; padding-left: 16px; }
  .sh h2::before { width: 3px; }
  .sh__no { font-size: 13px; }
  .sh .script { font-size: 19px; padding-bottom: 4px; }
  .tbd { font-size: 15px; }

  .symptoms::before, .symptoms::after, .sched::before, .sched::after, .qa::before { height: 28px; }

  /* symptoms: heading, lead, then the groups — items stay large enough to read without zooming */
  .symptoms { margin-top: 22px; padding: 60px 0 76px; }
  .symptoms__in { display: flex; flex-direction: column; width: auto; margin: 0 20px; }
  .symptoms__head { display: contents; }
  .symptoms__head .sh { order: 1; }
  .symptoms__mark { position: absolute; top: -34px; right: -4px; margin: 0; font-size: 40px; }
  .symptoms__lead { order: 2; margin-top: 16px; font-size: 20px; line-height: 1.8; }
  .symptoms__note { order: 3; margin-top: 10px; font-size: 15px; line-height: 1.85; }
  .symptoms__list { order: 4; margin-top: 24px; }
  .symptoms__head .arrow-link { order: 5; margin: 14px 0 -12px; }
  .symptoms__group { display: block; padding: 18px 0 20px; }
  .symptoms__group dt { font-size: 15px; }
  .symptoms__group ul { margin-top: 6px; gap: 2px 22px; }
  .symptoms__group li { font-size: 21px; line-height: 1.6; }
  .leaf--symptoms { right: -60px; top: 0; width: 140px; }

  /* services: heading, then the photo, then the statement and the facts */
  .services { width: auto; margin: 0 20px; padding: 64px 0 64px; }
  .services__top { display: flex; flex-direction: column; }
  .services__body { display: contents; }
  .services__body .sh { order: 1; }
  .services__visual { order: 2; min-height: 0; height: 240px; margin: 24px -20px 0; }
  .services__photo img { object-position: 42% 52%; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .services__script { right: 18px; bottom: -4px; font-size: 22px; }
  .statement { order: 3; margin-top: 20px; font-size: 22px; line-height: 1.8; letter-spacing: .06em; }
  .services__text { order: 4; margin-top: 14px; }
  .index { order: 5; margin-top: 26px; }
  .index__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .index dt { font-size: 16px; }
  .index__val { font-size: 19px; }
  .index__items { gap: 0 20px; }
  .index__items li { font-size: 18px; }
  .index__sub { margin-left: 12px; font-size: 15px; }
  .services__more { grid-template-columns: 1fr; margin-top: 40px; }
  .services__more::before { left: 0; }
  .services__col, .services__col:first-child { padding: 22px 0 16px; border-left: 0; border-top: 1px solid var(--rule); }
  .services__col:first-child { border-top: 0; }
  .services__col h3 { font-size: 18px; }
  .services__col ul { margin-top: 6px; }
  .services__col li { font-size: 16px; padding: 4px 0 4px 18px; }
  .services__note { margin-top: 18px; font-size: 15px; line-height: 1.85; }

  /* schedule */
  .sched { padding: 56px 0 84px; }
  .sched__shade { width: 100%; height: 240px; opacity: .22; }
  /* phone order: heading → legend → timetable → source note → notes, so the table arrives first */
  .sched__in { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: auto; margin: 0 16px; }
  .sched__head, .sched__key { display: contents; }
  .sched__mark { position: absolute; top: -36px; right: -4px; margin: 0; font-size: 44px; }
  .sched__head .sh { order: 1; padding: 0 4px; }
  .sched__lead { order: 2; margin-top: 14px; padding: 0 4px; font-size: 17px; line-height: 1.85; }
  .legend { order: 3; margin-top: 12px; padding: 12px 4px 0; border-top: 1px solid var(--rule); gap: 8px 18px; font-size: 14px; }
  .timetable { order: 4; margin-top: 14px; }
  .sched__src { order: 5; margin-top: 14px; padding: 0 4px; font-size: 15px; line-height: 1.8; }
  .sched__notes { order: 6; }
  .sched__cal { order: 7; }
  .timetable thead th { padding-bottom: 12px; font-size: 15px; letter-spacing: 0; }
  .timetable thead .t-label { font-size: 13px; letter-spacing: .04em; }
  .timetable .t-label { width: 96px; }
  .timetable tbody th, .timetable tbody td { height: 84px; }
  .t-ampm { display: block; width: auto; font-size: 15px; }
  .t-time { display: block; margin-top: 8px; font-size: 16px; letter-spacing: 0; }
  .t-time span { margin: 0 .06em; }
  .timetable .dot { width: 12px; height: 12px; }
  .timetable .dash { width: 12px; }
  .sched__notes { grid-template-columns: 1fr; margin-top: 16px; }
  .sched__notes > div, .sched__notes > div:first-child { padding: 14px 4px; border-left: 0; border-bottom: 1px dashed var(--rule); }
  .sched__notes dt { font-size: 16px; }
  .sched__notes dd { font-size: 16px; }
  .sched__tel { font-size: 24px; }
  .sched__cal { margin-top: 14px; padding: 14px 4px; }
  .sched__cal b { font-size: 15px; }
  .sched__cal small { font-size: 14px; }

  /* first visit: intro, then the reception image, then the route turns vertical */
  .first { width: auto; margin: 0 20px; padding: 64px 0 64px; }
  .first__open { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .first__catch { margin-top: 20px; font-size: 21px; line-height: 1.8; }
  .first__lead { margin-top: 12px; font-size: 16px; }
  /* the script moves from the heading row onto the image (as Medical Care carries its script on its photo) */
  .first__head .sh .script { display: none; }
  .first__photo { min-height: 0; height: 210px; margin: 0 -20px; }
  /* the Medical Care grammar, written for this image: the photo dissolves into the page along a soft wave
     (Medical Care fades straight down; here the line flows, low under the form and the pen hand, rising to the right),
     and the script rests in the light gathered on the calm right of the counter */
  .first__photo img { object-position: 20% 50%;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 210' preserveAspectRatio='none'><filter id='f' x='-5%' y='-10%' width='110%' height='120%'><feGaussianBlur stdDeviation='6'/></filter><path filter='url(%23f)' fill='%23000' d='M-30 -30 H1030 V146 C 930 152, 820 170, 700 189 C 600 204, 500 208, 400 205 C 290 202, 220 195, 130 196 C 60 197, 10 202, -30 204 Z'/></svg>") 0 0 / 100% 100% no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 210' preserveAspectRatio='none'><filter id='f' x='-5%' y='-10%' width='110%' height='120%'><feGaussianBlur stdDeviation='6'/></filter><path filter='url(%23f)' fill='%23000' d='M-30 -30 H1030 V146 C 930 152, 820 170, 700 189 C 600 204, 500 208, 400 205 C 290 202, 220 195, 130 196 C 60 197, 10 202, -30 204 Z'/></svg>") 0 0 / 100% 100% no-repeat; }
  .first__photo::after {
    content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
    background: radial-gradient(40% 58% at 100% 100%, rgba(255,255,255,.9) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 82%);
  }
  .first__script { display: block; position: absolute; z-index: 2; right: 14px; bottom: 16px; margin: 0; font-size: 24px; white-space: nowrap; transform: rotate(-4deg); transform-origin: 100% 100%; pointer-events: none; }
  .route { margin-top: 44px; }
  .route__title { font-size: 19px; gap: 14px; }
  .route__body { margin-top: 18px; }
  .route__line { display: none; }
  .route__stops { grid-template-columns: 1fr; }
  .route__stops::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 30px; width: 1.5px; background: linear-gradient(var(--orange), var(--line)); }
  .route__stops li, .route__stops li:nth-child(-n+2) { padding: 0 0 26px 44px; border-top: 0; }
  .route__node, .route__stops li:nth-child(-n+2) .route__node { left: 0; top: 6px; }
  .route__no { font-size: 26px; }
  .route__stops h4 { margin-top: 6px; font-size: 19px; }
  .route__stops p { margin-top: 6px; font-size: 16px; }
  .route__note { margin-top: 2px; text-align: left; font-size: 14px; }
  .guide { display: block; margin-top: 48px; padding-top: 24px; }
  .guide__title { font-size: 21px; }
  .guide__list { display: block; margin-top: 10px; }
  .guide__item, .guide__item:nth-child(-n+2) { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
  .guide__item:first-child { border-top: 0; padding-top: 6px; }
  .guide__item dt { font-size: 18px; }
  .guide__item dd { font-size: 16px; }
  .guide__urgent { margin-top: 18px; font-size: 15px; }

  /* access: heading, road photo, then the panel rides up over the photo edge */
  .access { display: block; padding: 0 0 72px; }
  .access__head { padding: 64px 20px 26px; }
  .access__lead { margin-top: 16px; font-size: 20px; }
  .access__sub { font-size: 15px; }
  .access__photo { height: 260px; }
  .access__photo img { object-position: 46% 60%; }
  .access__photo::before { height: 28px; }
  .access__hand { left: auto; right: 18px; top: 46px; font-size: 17px; text-align: right; }
  .access__panel { margin: -56px 16px 0; padding: 18px 18px 18px; }
  .access__list dt { font-size: 15px; }
  .map { height: 104px; }
  .map__s { font-size: 13px; }
  .access__btns { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* faq / news */
  .qa { display: block; padding: 72px 16px 76px; }
  .faq { padding-right: 0; }
  .faq__list, .news__list { margin-top: 28px; }
  .faq summary { min-height: 68px; gap: 14px; padding: 14px 40px 14px 14px; font-size: 16px; }
  .faq summary::before, .faq summary::after { right: 10px; width: 13px; }
  .faq__q, .faq__qa { width: 20px; font-size: 21px; }
  .faq__a { gap: 14px; padding: 0 8px 22px 14px; }
  .faq__a p { font-size: 16px; padding-top: 1px; }
  .news { margin-top: 64px; padding-left: 0; border-left: 0; }
  .news__chip { margin-bottom: 4px; }
  .news__list a { grid-template-columns: auto 1fr; row-gap: 8px; padding: 18px 2px; }
  .news__list time { font-size: 14px; }
  .news__list .badge { justify-self: start; }
  .news__t { grid-column: 1 / -1; font-size: 16px; }

  /* closing: the photo stays whole, copy and actions stack on the wash */
  .closing__photo { height: 280px; }
  .closing__photo img { object-position: 30% 70%; }
  .closing__photo::after { height: 34px; }
  .closing__in { display: block; width: auto; margin: 0 20px; padding: 14px 0 64px; }
  .closing__script { font-size: 22px; }
  .closing__title { margin-top: 12px; font-size: 27px; line-height: 1.65; }
  .closing__text { font-size: 16px; }
  .closing__act { margin-top: 26px; }
  .closing__tel a { font-size: 26px; }
  .closing__tel small { flex-basis: 100%; font-size: 14px; }
  .medal { top: 110px; right: 14px; width: 148px; height: 148px; padding-left: 30px; gap: 8px; }
  .medal p { font-size: 11.5px; line-height: 1.9; padding-left: 12px; letter-spacing: .1em; }
  .medal span { font-size: 8.5px; padding-left: 12px; letter-spacing: .26em; }

  /* network: the route turns vertical, like the visit route above */
  .network { padding: 0 0 96px; }
  .network::after { height: 28px; }
  .network__in { width: auto; margin: 0 20px; padding-top: 56px; }
  .network__head { grid-template-columns: 1fr; gap: 14px; }
  .network__head p { font-size: 16px; }
  .network__mark { top: 14px; right: -4px; font-size: 38px; }
  .line-route { margin-top: 28px; }
  .line-route__svg { display: none; }
  .stations { grid-template-columns: 1fr; }
  .stations::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 26px; width: 1.5px; background: #c3d3e4; }
  .station > a, .station__wrap { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: baseline; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); }
  .station:last-child > a { border-bottom: 0; }
  .station__node { left: 5px; top: 22px; }
  .station.is-here .station__node { left: 0; top: 17px; }
  .station__no { grid-row: 1 / 3; font-size: 24px; }
  .station__cat { margin-top: 0; font-size: 12.5px; }
  .station__name { grid-column: 2; margin-top: 6px; font-size: 17px; line-height: 1.5; }
  .station.is-here .station__name { font-size: 18px; }
  .station__sub { display: inline; margin-left: .45em; }
  .station__state { grid-column: 2; justify-self: start; margin-top: 6px; font-size: 13px; }
  .leaf--net { width: 110px; left: -40px; top: 0; }
  .leaf--net2 { display: none; }

  /* footer */
  .ft__in { grid-template-columns: 1fr; gap: 26px; width: auto; margin: 0 20px; padding: 40px 0 24px; }
  .ft__org img { width: 168px; }
  .ft__addr { font-size: 14px; }
  .ft__tel b { font-size: 24px; }
  .ft__nav { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .ft__nav ul { padding-left: 14px; }
  .ft__nav ul:nth-child(3) { border-left: 1px solid var(--line); }
  .ft__nav a { font-size: 14px; }
  .ft__island { font-size: 14px; }
  .ft__island img { width: 48px; height: 48px; }
  .ft__bottom { width: auto; margin: 0 20px; flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .ft__poc { padding: 12px 16px 84px; font-size: 12px; text-align: left; }

  /* quick bar: hours, call, access + the menu, within thumb reach; the section in view is marked */
  .sbar { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .98); box-shadow: 0 -10px 30px -18px rgba(14, 58, 128, .45); transform: translateY(110%); transition: transform .35s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .sbar.is-on { transform: none; }
  .sbar a, .sbar__menu { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 60px; padding: 9px 0 8px; font: 600 12.5px/1.2 var(--sans); letter-spacing: .02em; color: var(--ink); }
  .sbar > * + * { border-left: 1px solid var(--line-soft); }
  .sbar svg { width: 22px; height: 22px; fill: none; stroke: var(--deep); stroke-width: 1.5; }
  .sbar a.sbar__tel { color: var(--blue); }
  .sbar a.sbar__tel svg { stroke: var(--blue); }
  .sbar a.is-current { color: var(--deep); }
  .sbar a.is-current::before { content: ""; position: absolute; left: 50%; top: 0; width: 28px; height: 2px; margin-left: -14px; background: var(--orange); }
}

/* the narrowest phones: the script stays clear of the form's corner */
@media (max-width: 374px) {
  .first__script { right: 10px; font-size: 21px; transform: rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
  .route__draw { stroke-dashoffset: 0; }
}
