/* ============================================================
   BCB 出口戦略プログラム — 半日無料体験
   World: 設計図. A cyanotype (青焼き) that develops into a white
   working drawing. One accent: 朱 (shu), the brandkit seal (was JIS exit green).
   Mobile-first (390×844 primary). Raised type floor for 40–70.
   ============================================================ */

:root {
  /* reference — brandkit v2 (2026-09-20). Variable names kept from the 設計図 build;
     values now come from v2/brandkit: Ink / Paper / Line / Blueprint / Shu. */
  --cyan: #0E2A47;          /* brandkit Ink — Prussian blue ground */
  --cyan-2: #0A2139;
  --pale: #F4F1EA;          /* brandkit Paper on Ink · 12.9:1 */
  --pale-2: #C9D6E3;        /* brandkit Line, secondary on Ink · 9.8:1 */
  --pale-line: rgba(201, 214, 227, .55);
  --pale-grid: rgba(201, 214, 227, .075);
  --pale-grid-2: rgba(201, 214, 227, .14);

  --paper: #F4F1EA;         /* brandkit Paper — drafting paper, never pure white */
  --paper-2: #E9E4D8;
  --ink: #0E2A47;           /* brandkit Ink on Paper · 12.9:1 */
  --ink-2: #3E5068;         /* 7.3:1 */
  --ink-line: rgba(14, 42, 71, .5);
  --ink-grid: rgba(14, 42, 71, .06);
  --ink-grid-2: rgba(14, 42, 71, .12);

  /* the one accent is now 朱 (shu), the seal. Name kept: --exit = the booking action. */
  --exit: #D1432E;          /* white on it 4.6:1 */
  --exit-deep: #B23621;
  --exit-bright: #F07A5E;   /* shu text on Ink · 5.3:1 */
  --exit-ink: #B23621;      /* shu text on Paper · 5.4:1 */
  --exit-tint: rgba(209, 67, 46, .10);

  /* brandkit type: BIZ UDPGothic for all Japanese (no Mincho); IBM Plex for Latin and figures */
  --mincho: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --gothic: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Yu Gothic", monospace;
  --latin: "IBM Plex Sans", "BIZ UDPGothic", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--gothic);
  font-size: 18px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- browser surfaces carry the world ---- */
::selection { background: var(--exit); color: #fff; }
.cyan ::selection { background: var(--exit-bright); color: var(--cyan-2); }
:focus-visible { outline: 3px solid var(--exit); outline-offset: 3px; }
.cyan :focus-visible { outline-color: var(--exit-bright); }
input, textarea, select { caret-color: var(--exit); accent-color: var(--exit); }
html { scrollbar-color: var(--ink-2) var(--paper-2); }
a { color: inherit; text-underline-offset: .22em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--exit); color: #fff; padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
strong, b { font-weight: 700; }
em { font-style: normal; }

/* ============================================================
   Sheet frame · 表題欄 top and bottom
   ============================================================ */
.frame-top {
  background: var(--cyan-2); color: var(--pale);
  border-bottom: 1.5px solid var(--pale-line);
  font-size: 12.5px; line-height: 1.5; letter-spacing: .06em;
}
.frame-top dl {
  display: grid; grid-template-columns: repeat(4, auto) 1fr;
  max-width: var(--wrap); margin: 0 auto;
}
.frame-top dl > div { padding: 8px 12px; border-right: 1px solid var(--pale-line); min-width: 0; }
.frame-top dl > div:last-child { border-right: 0; }
.frame-top dt { color: var(--pale-2); font-size: 10.5px; letter-spacing: .14em; }
.frame-top dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.frame-top__prog { text-align: right; }
@media (max-width: 519px) {
  .frame-top dl { grid-template-columns: 1fr 1fr; }
  .frame-top dl > div:nth-child(2), .frame-top dl > div:nth-child(4) { border-right: 0; }
  .frame-top dl > div:nth-child(n+3) { border-top: 1px solid var(--pale-line); }
  .frame-top__prog { grid-column: 1 / -1; text-align: left; }
}

.frame-bottom {
  background: var(--paper-2); color: var(--ink-2);
  border-top: 1.5px solid var(--ink); padding: 26px 0 96px;
  font-size: 13px; line-height: 1.75;
}
.frame-bottom__tb { display: grid; grid-template-columns: 1fr; border: 1px solid var(--ink-line); margin-bottom: 18px; }
.frame-bottom__tb > div { padding: 8px 12px; border-bottom: 1px solid var(--ink-line); display: grid; grid-template-columns: 6em 1fr; gap: 12px; }
.frame-bottom__tb > div:last-child { border-bottom: 0; }
.frame-bottom__tb dt { font-size: 11px; letter-spacing: .14em; color: var(--ink-2); padding-top: 3px; }
.frame-bottom__tb dd { color: var(--ink); }
.frame-bottom__legal { max-width: 70ch; }
.frame-bottom__c { margin-top: 12px; font-size: 12px; letter-spacing: .06em; }
@media (min-width: 760px) {
  .frame-bottom { padding-bottom: 40px; }
  .frame-bottom__tb { grid-template-columns: repeat(3, 1fr); }
  .frame-bottom__tb > div { border-bottom: 0; border-right: 1px solid var(--ink-line); grid-template-columns: 1fr; gap: 2px; }
  .frame-bottom__tb > div:last-child { border-right: 0; }
}

/* ============================================================
   Cyanotype ground · 方眼 grid
   ============================================================ */
.cyan {
  background-color: var(--cyan);
  background-image:
    linear-gradient(var(--pale-grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--pale-grid-2) 1px, transparent 1px),
    linear-gradient(var(--pale-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pale-grid) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 8px 8px, 8px 8px;
  color: var(--pale);
}
.cyan + .cyan { border-top: 1.5px solid var(--pale-line); }

/* ============================================================
   Type
   ============================================================ */
.h1 {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(1.75rem, 7.2vw, 2.95rem);
  line-height: 1.34; letter-spacing: -.02em; text-wrap: balance;
  margin: 10px 0 18px;
}
.h1 em { color: var(--exit-bright); }
.h2 {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(1.5rem, 5.6vw, 2.5rem);
  line-height: 1.38; letter-spacing: -.02em; text-wrap: balance;
  margin: 0 0 16px;
}
.h2--sm { font-size: clamp(1.3rem, 4.6vw, 1.9rem); }
.lede { font-size: 1.02em; max-width: 36em; color: var(--pale-2); margin-bottom: 26px; }
.lede strong { color: var(--pale); }
.lede--ink { color: var(--ink-2); }
.lede--ink strong { color: var(--ink); }
.note { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); max-width: 44em; margin-top: 12px; }
.note--cyan { color: var(--pale-2); }
h3 { font-family: var(--gothic); font-weight: 700; font-size: 1.12em; line-height: 1.5; }

.hero__time, .turn__time {
  font-size: 12.5px; letter-spacing: .16em; font-variant-numeric: tabular-nums;
  color: var(--pale-2); margin-bottom: 6px;
}
.turn__time { color: var(--ink-2); }

/* ============================================================
   Hero · 現況図
   ============================================================ */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 26px; }

.plan { margin: 0; }
.plan__svg { display: block; width: 100%; height: auto; }
.plan figcaption { font-size: 12px; letter-spacing: .08em; color: var(--pale-2); margin-top: 8px; line-height: 1.6; }

/* drawing vocabulary */
.wall { fill: none; stroke: var(--pale); stroke-width: 2; }
.part { stroke: var(--pale-line); stroke-width: 1.2; }
.furn { fill: none; stroke: var(--pale-line); stroke-width: 1; stroke-dasharray: 3 2; }
.room { fill: var(--pale-2); font-family: var(--gothic); font-size: 12px; letter-spacing: .1em; }
.hatch-line { stroke: var(--pale-2); stroke-width: .9; }
.hatch-line--ink { stroke: var(--ink-2); }
.door-missing { fill: none; stroke: var(--exit-bright); stroke-width: 1.6; stroke-dasharray: 4 3; }
.door-drawn { fill: var(--exit); stroke: var(--exit); stroke-width: 1; }
.label { font-family: var(--gothic); font-size: 12px; letter-spacing: .12em; fill: var(--pale); }
.label--warn { fill: var(--exit-bright); font-weight: 700; }
.label--exit { fill: var(--exit-ink); font-weight: 700; font-size: 11px; }
.leader { stroke: var(--exit-bright); stroke-width: .9; }
.dim { stroke: var(--pale-2); stroke-width: 1; }
.tick { stroke: var(--pale-2); stroke-width: 1; }
.dim--ink { stroke: var(--ink-2); }
.dimlabel { font-family: var(--gothic); font-size: 11.5px; letter-spacing: .12em; fill: var(--pale-2); }
.dimlabel--ink { fill: var(--ink-2); }
.area { font-family: var(--gothic); font-size: 12.5px; letter-spacing: .1em; fill: var(--pale); font-weight: 700; }

/* lines draw themselves — hidden only once JS has claimed the element */
.rv:not(.in) .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.rv.in .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
.rv.in .part.draw { animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* calculator */
.calc {
  border: 1.5px solid var(--pale-line); padding: 18px 16px 16px;
  background: rgba(10, 33, 57, .55);
}
.calc__label { display: block; font-weight: 700; font-size: 1em; line-height: 1.6; margin-bottom: 12px; }
.calc__field {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  border: 1.5px solid var(--pale); background: var(--cyan-2);
}
.calc__yen, .calc__unit { padding: 0 14px; color: var(--pale-2); font-size: 1em; }
.calc__field input {
  width: 100%; min-width: 0; border: 0; background: transparent; color: var(--pale);
  font-family: var(--gothic); font-size: 1.9em; font-weight: 700; padding: 8px 0; text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc__field input::placeholder { color: rgba(185, 204, 227, .55); }
.calc__field input:focus-visible { outline: none; }
.calc__field:focus-within { outline: 3px solid var(--exit-bright); outline-offset: 3px; }
.calc__hint { font-size: 12.5px; color: var(--pale-2); margin-top: 8px; letter-spacing: .04em; }

.calc__out { margin-top: 18px; border-top: 1px solid var(--pale-line); }
.calc__row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--pale-line);
}
.calc__row dt { font-size: .92em; color: var(--pale-2); }
.calc__row dt small { font-size: 11.5px; letter-spacing: .1em; margin-left: .3em; }
.calc__row dd { font-size: 1.25em; font-weight: 700; white-space: nowrap; }
.calc__row--design dd { color: var(--exit-bright); }
.calc__row--gap { border-bottom: 0; }
.calc__row--gap dt { color: var(--pale); font-weight: 700; }
.calc__row--gap dd { font-size: 1.55em; color: var(--exit-bright); }

/* digits change as a physical event */
.tick { animation: tick .32s var(--ease); }
@keyframes tick {
  0% { transform: translateY(.45em); opacity: 0; filter: blur(2px); }
  100% { transform: none; opacity: 1; filter: none; }
}
.num { display: inline-block; }

.kick { font-family: var(--mincho); font-size: 1.12em; line-height: 1.7; }
.kick strong { color: var(--exit-bright); }
@media (max-width: 419px) { .kick { font-size: 1em; } }

/* ---- the exit sign ---- */
.cta { display: grid; gap: 10px; }
.exit {
  display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  min-height: 62px; padding: 10px 22px 10px 14px;
  background: var(--exit); color: #fff; text-decoration: none;
  font-family: var(--gothic); font-weight: 700; font-size: 19px; letter-spacing: .04em;
  border: 0; border-radius: 6px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28), inset 0 0 0 2px rgba(255, 255, 255, .55);
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.exit:hover { background: var(--exit-deep); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(255, 255, 255, .6); }
.exit:active { transform: translateY(0); }
.exit:disabled { opacity: .55; cursor: default; transform: none; }
.exit__fig { width: 34px; height: 34px; fill: #fff; }
.exit--full { width: 100%; }
.exit--sm { min-height: 48px; font-size: 16px; padding: 6px 16px 6px 10px; gap: 10px; }
.exit--sm .exit__fig { width: 26px; height: 26px; }
.day .exit { box-shadow: 0 6px 18px rgba(18, 33, 59, .22), inset 0 0 0 2px rgba(255, 255, 255, .55); }
.cta__sub { font-size: 13.5px; color: var(--pale-2); letter-spacing: .04em; }

/* ---- the probe: the slider is dragged, the rung is measured ----
   Secondary to .exit by construction. The exit sign books the day; this only
   answers "which rung am I on". Outlined in drawing ink so the one accent
   colour stays reserved for the booking action. */
.probe__wrap { margin-top: 26px; }
.probe {
  display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 20px 10px 14px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  font-family: var(--gothic); font-weight: 700; font-size: 17px; letter-spacing: .03em;
  border: 1.5px solid var(--ink-line); border-radius: 6px;
  transition: border-color .18s var(--ease), background .18s var(--ease),
              transform .18s var(--ease);
}
.probe:hover { border-color: var(--ink); background: #fff; transform: translateY(-1px); }
.probe:active { transform: translateY(0); }
.probe:focus-visible { outline: 3px solid var(--exit-ink); outline-offset: 2px; }
.probe__fig { width: 26px; height: 26px; stroke: var(--exit-ink); fill: none; stroke-width: 1.7; }
.probe__sub { margin-top: 9px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
@media (max-width: 419px) { .probe { font-size: 16px; width: 100%; } }
.cta__sub--ink { color: var(--ink-2); }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; letter-spacing: .08em; color: var(--pale-2); }
.badges li::before { content: ""; display: inline-block; width: .5em; height: .5em; background: var(--exit-bright); margin-right: .6em; vertical-align: .05em; }

.hero__sheet { display: grid; gap: 22px; }
@media (min-width: 760px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto auto 1fr; grid-template-areas:
    "h1 sheet" "lede sheet" "kick sheet" "cta sheet" "badges sheet" ". sheet"; column-gap: 48px; row-gap: 16px; align-items: start; }
  .h1 { grid-area: h1; margin-top: 0; }
  .hero .lede { grid-area: lede; }
  .hero__sheet { grid-area: sheet; }
  .kick { grid-area: kick; }
  .hero .cta { grid-area: cta; }
  .badges { grid-area: badges; }
}

/* ============================================================
   改訂履歴 · the revision table
   ============================================================ */
.rev { padding: 56px 0 60px; }
.revtable { width: 100%; border-collapse: collapse; border: 1.5px solid var(--pale-line); font-size: .96em; }
.revtable caption { text-align: left; font-size: 12px; letter-spacing: .14em; color: var(--pale-2); padding: 0 0 8px; }
.revtable th { font-size: 11px; letter-spacing: .14em; font-weight: 400; color: var(--pale-2); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--pale-line); }
.revtable td { padding: 16px 12px; vertical-align: top; border-bottom: 1px solid var(--pale-line); }
.revtable tr:last-child td { border-bottom: 0; }
.revtable__n { font-variant-numeric: tabular-nums; color: var(--exit-bright); font-weight: 700; width: 3em; }
.revtable td b { display: block; font-size: 1.08em; line-height: 1.5; margin-bottom: 6px; }
.revtable td p { color: var(--pale-2); font-size: .95em; }
.revtable__src { font-size: 12px; letter-spacing: .06em; color: var(--pale-2); white-space: nowrap; }
@media (max-width: 599px) {
  .revtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .revtable tr { display: grid; grid-template-columns: 3em 1fr; }
  .revtable__src { grid-column: 2; padding-top: 0; white-space: normal; }
  .revtable__src::before { content: "根拠　"; }
  .revtable td { border-bottom: 0; }
  .revtable tr { border-bottom: 1px solid var(--pale-line); }
  .revtable tr:last-child { border-bottom: 0; }
}

/* ============================================================
   現況表 · figures
   ============================================================ */
.stats { padding: 52px 0 64px; }
.figs { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--pale-line); }
.fig { padding: 16px 14px 14px; border-right: 1px solid var(--pale-line); border-bottom: 1px solid var(--pale-line); }
.fig:nth-child(2n) { border-right: 0; }
.fig:nth-last-child(-n+2) { border-bottom: 0; }
.fig dt { font-size: 12.5px; line-height: 1.5; color: var(--pale-2); min-height: 2.9em; }
.fig dd.num { font-size: clamp(1.7rem, 7vw, 2.6rem); font-weight: 700; line-height: 1.1; margin-top: 8px; letter-spacing: -.02em; }
.fig dd.num small { font-size: .5em; font-weight: 400; margin-left: .15em; letter-spacing: 0; }
.fig .src { font-size: 11px; letter-spacing: .08em; color: var(--pale-2); margin-top: 6px; }
.stats__close { margin-top: 26px; max-width: 38em; font-size: 1.04em; }
.stats__close strong { color: var(--exit-bright); }
@media (min-width: 760px) {
  .figs { grid-template-columns: repeat(4, 1fr); }
  .fig:nth-child(2n) { border-right: 1px solid var(--pale-line); }
  .fig:last-child { border-right: 0; }
  .fig { border-bottom: 0; }
}

/* ============================================================
   The drawing develops · cyanotype → white
   ============================================================ */
.day {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--ink-grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-grid-2) 1px, transparent 1px),
    linear-gradient(var(--ink-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-grid) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 8px 8px, 8px 8px;
  color: var(--ink);
  border-top: 1.5px solid var(--ink);
}
.day.pre::before {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--cyan); opacity: 1;
}
.day.dev::before {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

/* ============================================================
   計画図 · formula, area, floors
   ============================================================ */
.turn { padding: 52px 0 60px; }
.formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em;
  font-family: var(--mincho); font-weight: 700; font-size: clamp(1.5rem, 6.6vw, 2.9rem);
  letter-spacing: -.02em; line-height: 1.3; margin: 8px 0 18px; text-wrap: balance;
}
.formula i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.formula b { color: var(--exit-ink); position: relative; }
.formula b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--exit); }

.area { display: grid; gap: 22px; margin: 28px 0 34px; }
.area__draw { border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .5); padding: 8px 6px 4px; }
.area__svg { display: block; width: 100%; height: auto; }
.base { stroke: var(--ink); stroke-width: 2; }
.ghost { fill: none; stroke: var(--ink-line); stroke-width: 1; stroke-dasharray: 3 3; }
.ghost15 { fill: url(#hatch2); fill-opacity: .28; stroke: var(--ink-line); stroke-width: 1.2; stroke-dasharray: 5 3; }
.roomfill { fill: var(--exit-tint); transition: y .28s var(--ease), height .28s var(--ease); }
.roomline { fill: none; stroke: var(--ink); stroke-width: 1.6; transition: y .28s var(--ease), height .28s var(--ease); }
.door-drawn { transition: y .28s var(--ease), height .28s var(--ease); }
.area__val { font-family: var(--gothic); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; fill: var(--ink); }
@media (prefers-reduced-motion: reduce) { .roomfill, .roomline, .door-drawn { transition: none; } }

.area__lab { display: block; font-weight: 700; margin-bottom: 10px; line-height: 1.6; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -14px;
  background: var(--exit); border: 3px solid #fff; border-radius: 4px;
  box-shadow: 0 3px 10px rgba(18, 33, 59, .3); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; background: var(--exit); border: 3px solid #fff; border-radius: 4px;
  box-shadow: 0 3px 10px rgba(18, 33, 59, .3); cursor: grab;
}
input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.rungs { list-style: none; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; color: var(--ink-2); margin-top: -4px; padding: 0 6px; }
.area__read {
  display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: 10px 12px;
  margin-top: 14px; padding: 12px 14px; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .55);
}
.area__read span { font-size: 12px; letter-spacing: .12em; color: var(--ink-2); }
.area__read b { font-size: 1.35em; font-weight: 700; white-space: nowrap; }
.area__read b:last-child { color: var(--exit-ink); }
.area__ex { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
@media (min-width: 760px) {
  .area { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 36px; }
}

/* 断面図 · floors */
.floors { list-style: none; border: 1.5px solid var(--ink); border-bottom-width: 3px; }
.floors li {
  display: grid; grid-template-columns: 4.2em 1fr; grid-template-areas: "m name" "m body"; column-gap: 12px; row-gap: 2px;
  padding: 12px 14px 12px 12px; border-bottom: 1px solid var(--ink-line); cursor: pointer;
  transition: background .2s var(--ease);
}
.floors li:last-child { border-bottom: 0; }
.floors li b { grid-area: m; font-size: 1.35em; letter-spacing: -.02em; font-variant-numeric: tabular-nums; align-self: start; color: var(--ink-2); }
.floors li span { grid-area: name; font-weight: 700; }
.floors li p { grid-area: body; font-size: .93em; color: var(--ink-2); line-height: 1.65; }
.floors li.is-on { background: var(--exit-tint); }
.floors li.is-on b { color: var(--exit-ink); }
.floors li.is-on span::after { content: "　← いま、ここ"; font-size: .8em; color: var(--exit-ink); letter-spacing: .06em; }
.floors li:hover { background: rgba(209, 67, 46, .05); }
.turn__pos { margin-top: 30px; max-width: 40em; color: var(--ink-2); }

/* ============================================================
   工程表 · 設計者 · 声
   ============================================================ */
.day1, .who, .voices, .faq { padding: 52px 0 56px; border-top: 1px solid var(--ink-line); }
.steps { list-style: none; counter-reset: none; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 6.5em 1fr; grid-template-areas: "n h" "n p"; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ink-line); }
.steps__n { grid-area: n; font-size: 12px; letter-spacing: .14em; color: var(--exit-ink); padding-top: .45em; }
.steps h3 { grid-area: h; }
.steps p { grid-area: p; color: var(--ink-2); font-size: .95em; }

.who__block { border: 1.5px solid var(--ink); padding: 20px 18px; background: rgba(255, 255, 255, .5); }
.who__name { font-family: var(--mincho); font-weight: 700; font-size: 1.7em; letter-spacing: .04em; line-height: 1.3; }
.who__name span { display: block; font-family: var(--gothic); font-weight: 400; font-size: .5em; letter-spacing: .12em; color: var(--ink-2); }
.who__role { margin-top: 8px; font-size: .95em; line-height: 1.7; }
.who__facts { margin-top: 16px; border-top: 1px solid var(--ink-line); }
.who__facts > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ink-line); font-size: .93em; }
.who__facts > div:last-child { border-bottom: 0; }
.who__facts dt { font-size: 11.5px; letter-spacing: .12em; color: var(--ink-2); padding-top: .35em; }

.quotes { list-style: none; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.quotes li { padding: 18px 0 18px 20px; border-bottom: 1px solid var(--ink-line); position: relative; }
.quotes li::before { content: ""; position: absolute; left: 0; top: 26px; width: 12px; height: 1px; background: var(--ink); }
.quotes blockquote p { font-size: 1em; }
.quotes__by { margin-top: 8px; font-weight: 700; font-size: .95em; }
.quotes__by span { display: block; font-weight: 400; font-size: .85em; color: var(--ink-2); letter-spacing: .04em; }
@media (min-width: 760px) {
  .quotes { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .who__block { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 32px; padding: 26px 24px; }
  .who__facts { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; border-top: 0; }
}

/* ============================================================
   表題欄 · offer · 検印欄 form
   ============================================================ */
.offer { padding: 60px 0 64px; border-top: 1.5px solid var(--ink); }
.titleblock { display: grid; grid-template-columns: 1fr; border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .6); margin: 22px 0; }
.titleblock > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ink-line); }
.titleblock > div:last-child { border-bottom: 0; }
.titleblock dt { font-size: 11.5px; letter-spacing: .14em; color: var(--ink-2); padding-top: .4em; }
.titleblock dd { font-weight: 700; }
.titleblock dd span { display: block; font-weight: 400; font-size: .85em; color: var(--ink-2); }
.why { max-width: 40em; margin: 0 0 28px; }
.why h3 { margin-bottom: 6px; }
.why p { color: var(--ink-2); font-size: .97em; }

.form { border: 2px solid var(--ink); background: #fff; padding: 0 0 20px; }
.form__head { padding: 14px 16px; border-bottom: 1.5px solid var(--ink); background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form__head p { font-size: 13px; color: var(--ink-2); letter-spacing: .06em; }
/* 検印 box: empty until a valid submission stamps it */
.kenin {
  position: relative; flex: 0 0 auto; width: 64px; height: 64px;
  border: 1.5px solid var(--ink); background: #fff; display: grid; place-items: center;
}
.kenin i { font-style: normal; font-size: 10px; letter-spacing: .18em; color: var(--ink-2); position: absolute; top: 3px; left: 5px; }
.kenin__seal { width: 50px; height: 50px; opacity: 0; transform: scale(1.35) rotate(-12deg); }
.kenin__seal circle { fill: none; stroke: var(--exit); stroke-width: 2.5; }
.kenin__seal circle + circle { stroke-width: 1; }
.kenin__seal text { fill: var(--exit); font-family: var(--mincho); font-weight: 700; font-size: 26px; }
.kenin.is-stamped .kenin__seal { opacity: 1; transform: rotate(-8deg); transition: opacity .32s var(--ease), transform .32s var(--ease); }
@media (prefers-reduced-motion: reduce) { .kenin.is-stamped .kenin__seal { transition: none; } }
.f { padding: 14px 16px 0; display: grid; gap: 6px; }
.f label { font-weight: 700; font-size: .95em; }
.f label i { font-style: normal; font-weight: 400; font-size: .75em; color: var(--exit-ink); letter-spacing: .1em; margin-left: .5em; border: 1px solid currentColor; padding: 0 .4em; }
.f input, .f select {
  width: 100%; min-height: 52px; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1.5px solid var(--ink-2); background: #fff; border-radius: 0;
}
.f input:focus-visible, .f select:focus-visible { outline: 3px solid var(--exit); outline-offset: 2px; border-color: var(--exit); }
.f input[aria-invalid="true"] { border-color: #B3261E; }
.f__err { font-size: 13px; color: #B3261E; }
.form__legal { padding: 16px 16px 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.form .exit--full { margin: 16px 16px 0; width: calc(100% - 32px); }
.form__done { margin: 14px 16px 0; padding: 12px 14px; border: 1.5px solid var(--exit); color: var(--exit-ink); font-weight: 700; background: var(--exit-tint); }
.form.is-done .f, .form.is-done .form__legal { opacity: .55; }
@media (min-width: 760px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div:nth-child(odd) { border-right: 1px solid var(--ink-line); }
  .titleblock > div:nth-last-child(2) { border-bottom: 0; }
  .offer .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; grid-template-areas: "h h" "tb form" "why form"; align-items: start; }
  .offer .h2 { grid-area: h; }
  .titleblock { grid-area: tb; grid-template-columns: 1fr; margin-top: 0; }
  .titleblock > div:nth-child(odd) { border-right: 0; }
  .titleblock > div:nth-last-child(2) { border-bottom: 1px solid var(--ink-line); }
  .why { grid-area: why; }
  .form { grid-area: form; position: sticky; top: 20px; }
}

/* ============================================================
   注記 · last
   ============================================================ */
.faq details { border-bottom: 1px solid var(--ink-line); }
.faq details:first-of-type { border-top: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; position: relative; padding-right: 2em; }
.faq summary::-webkit-details-marker { display: none; }
/* drawn plus: two 1.5px strokes in the drawing's weight; the vertical stroke retracts when open */
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; background: var(--exit-ink);
  transition: transform .2s var(--ease);
}
.faq summary::before { width: 14px; height: 1.5px; transform: translateY(-50%); }
.faq summary::after { width: 1.5px; height: 14px; right: 10.25px; transform: translateY(-50%); }
.faq details[open] summary::after { transform: translateY(-50%) scaleY(0); }
.faq details p { padding: 0 0 16px; color: var(--ink-2); font-size: .97em; max-width: 44em; }

.last { padding: 64px 0 72px; border-top: 1.5px solid var(--ink); }
.last .cta { margin-top: 8px; }

/* ============================================================
   Reveal · sticky bar
   ============================================================ */
.rv:not(.in) { opacity: 0; transform: translateY(10px); }
.rv.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.plan.rv:not(.in) { opacity: 1; transform: none; }
.quotes li.rv.in:nth-child(2), .steps li.rv.in:nth-child(2), .floors li.rv.in:nth-child(2) { transition-delay: .08s; }
.quotes li.rv.in:nth-child(3), .steps li.rv.in:nth-child(3), .floors li.rv.in:nth-child(3) { transition-delay: .16s; }
.quotes li.rv.in:nth-child(4), .steps li.rv.in:nth-child(4), .floors li.rv.in:nth-child(4) { transition-delay: .24s; }
.quotes li.rv.in:nth-child(5) { transition-delay: .32s; }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1.5px solid var(--ink);
  box-shadow: 0 -8px 24px rgba(18, 33, 59, .12);
}
.bar p { line-height: 1.3; }
.bar p b { display: block; font-size: 15px; }
.bar p span { font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.bar[hidden] { display: none; }
@media (min-width: 760px) { .bar { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv.in, .exit, .floors li { transition: none !important; animation: none !important; }
  .rv:not(.in) { opacity: 1; transform: none; }
  .rv .draw, .rv.in .draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .tick { animation: none; }
  .day.pre::before { display: none; }
}

/* ---- fix round 1: example state, ghost label state, clock cell ---- */
.calc__ex { font-size: 12.5px; letter-spacing: .04em; color: var(--exit-bright); margin-top: 16px; }
.calc__ex[hidden] { display: none; }
.calc__out { margin-top: 8px; }
.ghost15 { transition: fill-opacity .28s var(--ease), stroke-opacity .28s var(--ease); }
.ghost15.is-built { fill-opacity: 0; stroke-opacity: .35; }
#clock { font-variant-numeric: tabular-nums; }
