/* Mune: custom homes in Tsukuba. Cedar, charcoal and white with a tatami green accent. */
@font-face { font-family: "Kaisei Tokumin"; src: url("/live/mune/fonts/kaisei-tokumin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kaisei Tokumin"; src: url("/live/mune/fonts/kaisei-tokumin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "LINE Seed JP"; src: url("/live/mune/fonts/line-seed-jp-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LINE Seed JP"; src: url("/live/mune/fonts/line-seed-jp-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --white: #FFFFFF;
  --plaster: #F1F2EF;
  --ink: #23272A;
  --tatami: #A3B551;
  --cedar: #4A3B2F;
  --stone: #5E6563;
  --rule: #DADDD8;
  --mincho: "Kaisei Tokumin", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "LINE Seed JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --bar: 68px;
  --gut: clamp(16px, 4vw, 56px);
  --stack: 52px;
  color-scheme: light;
}
html { background: var(--white); scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); }
body { background: var(--white); color: var(--ink); font: 400 16px/1.7 var(--gothic); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[lang="ja"] { line-break: strict; word-break: keep-all; overflow-wrap: anywhere; }
img { height: auto; }
::selection { background: var(--tatami); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
small { font-size: 0.82em; }

/* ---------- letter roll (buttons and links only) ---------- */
.roll { display: inline-flex; vertical-align: top; }
.roll__l { display: inline-flex; flex-direction: column; height: 1.3em; line-height: 1.3em; overflow: hidden; }
.roll__l > span { display: block; white-space: pre; transition: transform 0.42s cubic-bezier(0.65, 0, 0.25, 1); transition-delay: calc(var(--i) * 16ms); }
:is(a, button):is(:hover, :focus-visible) .roll__l > span { transform: translateY(-100%); }

/* ---------- long bar ---------- */
.bar { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--rule); }
.bar__in { height: var(--bar); display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding: 0 calc(var(--gut) + var(--stack)) 0 var(--gut); }
.bar__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.bar__mark { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--ink); color: var(--white); font: 800 20px/1 var(--mincho); border-radius: 4px; }
.bar__name { display: flex; flex-direction: column; font: 800 20px/1 var(--mincho); letter-spacing: 0.01em; }
.bar__name small { font: 400 11.5px/1.4 var(--gothic); color: var(--stone); letter-spacing: 0.08em; margin-top: 3px; }
.bar__nav { display: flex; gap: clamp(10px, 1.5vw, 22px); margin-left: auto; }
.bar__nav a { text-decoration: none; font-size: 13.5px; white-space: nowrap; padding: 6px 0; }
.bar__nav a [lang="ja"] { font-weight: 700; margin-right: 4px; }
.bar__tel { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; flex: none; }
.bar__tel-n { font: 800 18px/1.1 var(--mincho); letter-spacing: 0.02em; }
.bar__tel-h { font-size: 11.5px; color: var(--stone); }
.bar__book { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--tatami); color: var(--ink); font-weight: 700; font-size: 14px; }
.bar__book [lang="ja"] { margin-right: 6px; }
.bar__menu { display: none; height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: var(--white); border-radius: 4px; font-weight: 700; font-size: 13px; }
@media (max-width: 1480px) { .bar__tel-h { display: none; } }
@media (max-width: 1240px) { .bar__nav a [lang="ja"] { display: none; } }
@media (max-width: 1020px) {
  .bar__menu { display: block; margin-left: auto; }
  .bar__nav { display: none; position: absolute; left: 0; right: 0; top: var(--bar); flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 6px var(--gut) 14px; }
  .bar__nav.is-open { display: flex; }
  .bar__nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
  .bar__nav a [lang="ja"] { display: inline; }
  .bar__tel { order: 3; }
}
@media (max-width: 640px) {
  :root { --bar: 60px; --stack: 36px; }
  .bar__in { gap: 10px; padding-right: var(--gut); }
  .bar__tel-n { font-size: 0; }
  .bar__tel { width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 4px; display: grid; place-items: center; }
  .bar__tel::before { content: "TEL"; font: 700 11px/1 var(--gothic); }
  .bar__book { height: 40px; padding: 0 12px; font-size: 13px; }
  .bar__book .roll { display: none; }
  .bar__book::after { content: "予約"; }
  .bar__book [lang="ja"] { display: none; }
  .bar__name small { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 4px; font: 700 15px/1 var(--gothic); text-decoration: none; border: 1px solid var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--line { background: transparent; color: var(--ink); }
.btn--tatami { background: var(--tatami); border-color: var(--tatami); color: var(--ink); }
.eyebrow { font-size: 13px; letter-spacing: 0.04em; color: var(--stone); margin-bottom: 14px; }
.eyebrow [lang="ja"] { color: var(--ink); font-weight: 700; margin-right: 8px; }
.h2 { font: 800 clamp(30px, 3.6vw, 52px)/1.12 var(--mincho); letter-spacing: -0.01em; max-width: 20ch; }

/* ---------- build sequence ---------- */
.build { position: relative; display: grid; grid-template-columns: minmax(340px, 38%) 1fr; }
.build__steps { grid-column: 1; grid-row: 1; padding: 0 clamp(20px, 3vw, 48px) 0 var(--gut); }
.build__stage { grid-column: 2; grid-row: 1; position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); overflow: hidden; background: #E8EDEF; }
.build__canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.build__ticks { position: absolute; inset: 0; pointer-events: none; font: 700 11px/1 var(--gothic); color: var(--ink); }
.build__ticks span { position: absolute; transform: translate(-50%, -170%); }
.build__rail { position: absolute; left: 20px; top: 20px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font: 700 11px/1 var(--gothic); }
.build__rail li { width: 38px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(35, 39, 42, 0.25); background: var(--white); color: var(--stone); border-radius: 3px; }
.build__rail li.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.build__plotlabel { position: absolute; left: 20px; bottom: 18px; font-size: 12px; background: var(--white); padding: 8px 12px; border: 1px solid var(--rule); border-radius: 3px; }
.is-dragging, .is-dragging * { cursor: grabbing !important; }
.build__canvas.can-grab { cursor: grab; }

.step { min-height: calc(96svh - var(--bar)); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 56px 0; max-width: 520px; }
.step--hero { min-height: calc(100svh - var(--bar)); justify-content: center; padding-top: 40px; }
.step__kicker { font-size: 13px; color: var(--stone); letter-spacing: 0.03em; }
.step__kicker [lang="ja"] { font: 800 15px/1 var(--mincho); color: var(--ink); margin-right: 4px; }
.step__h1 { font: 800 clamp(38px, 4.3vw, 66px)/1.08 var(--mincho); letter-spacing: -0.015em; }
.step__ja { font: 500 clamp(18px, 1.7vw, 24px)/1.5 var(--mincho); }
.step__lead { font-size: 17px; max-width: 46ch; color: var(--ink); }
.step__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.step__n { font: 700 13px/1 var(--gothic); letter-spacing: 0.06em; color: var(--stone); }
.step__n [lang="ja"] { font: 800 15px/1 var(--mincho); color: var(--ink); margin-left: 6px; }
.step__h2 { font: 800 clamp(28px, 2.8vw, 40px)/1.15 var(--mincho); }
.step p:not([class]) { font-size: 16.5px; max-width: 46ch; }
.spec { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: 14.5px; max-width: 46ch; }
.spec [lang="ja"] { flex: none; font: 800 15px/1.4 var(--mincho); padding: 6px 12px; background: var(--tatami); border-radius: 3px; }
.step__photo { margin: 6px 0 0; }
.step__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.step__photo figcaption { font-size: 12.5px; color: var(--stone); margin-top: 8px; }
.step__still { display: none; margin: 8px 0 0; }

.sunctl { display: grid; gap: 14px; padding: 16px 0 4px; border-top: 1px solid var(--ink); }
.sunctl__seasons { display: flex; gap: 6px; }
.sunctl__seasons button { height: 38px; padding: 0 14px; border: 1px solid var(--ink); background: var(--white); border-radius: 4px; font-weight: 700; font-size: 13px; }
.sunctl__seasons button[aria-checked="true"] { background: var(--ink); color: var(--white); }
.sunctl__time { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: 13px; color: var(--stone); }
.sunctl__time output { font: 800 22px/1 var(--mincho); color: var(--ink); min-width: 3.4em; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--tatami); border: 2px solid var(--ink); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--tatami); border: 2px solid var(--ink); }
.sunctl__read { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.sunctl__read div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sunctl__read dt { font-size: 12px; color: var(--stone); }
.sunctl__read dd { margin: 2px 0 0; font: 800 20px/1.2 var(--mincho); }

@media (max-width: 900px) {
  .build { display: block; }
  .build__stage { position: sticky; top: var(--bar); height: 46svh; z-index: 3; border-bottom: 1px solid var(--rule); }
  .build__steps { position: relative; z-index: 1; padding: 0 calc(var(--gut) + var(--stack)) 0 var(--gut); }
  .step, .step--hero { min-height: 0; padding: 40px 0 56px; max-width: none; }
  .step--hero { padding-top: 28px; }
  .build__rail { left: 10px; top: 10px; flex-direction: row; }
  .build__rail li { width: 26px; height: 20px; }
  .build__plotlabel { left: 10px; bottom: 10px; font-size: 11px; }
}

/* static mode: photos instead of the scene */
.is-static .build { display: block; }
.is-static .build__stage { display: none; }
.is-static .build__steps, .no-webgl .build__steps { padding: 0 calc(var(--gut) + var(--stack)) 0 var(--gut); }
.is-static .step, .no-webgl .step { min-height: 0; padding: 56px 0; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(28px, 4vw, 64px); row-gap: 16px; align-content: start; align-items: start; border-bottom: 1px solid var(--rule); }
.is-static .step > *, .no-webgl .step > * { grid-column: 1; }
.is-static .step__photo, .is-static .step__still, .no-webgl .step__photo, .no-webgl .step__still { grid-column: 2; grid-row: 1 / span 9; margin: 0; }
@media (max-width: 900px) { .is-static .step, .no-webgl .step { display: flex; } }
.is-static .step__still { display: block; }
.is-static .step__still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.no-webgl .build { display: block; }
.no-webgl .build__stage { display: none; }
.no-webgl .step__still { display: block; }

/* ---------- plan builder ---------- */
.plan { padding: clamp(72px, 9vw, 128px) calc(var(--gut) + var(--stack)) clamp(72px, 9vw, 120px) var(--gut); background: var(--plaster); border-top: 1px solid var(--rule); }
.plan__head { max-width: 760px; margin-bottom: 40px; }
.plan__lead { margin-top: 16px; font-size: 17px; max-width: 60ch; }
.plan__grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.plan__form { display: grid; gap: 14px; }
.grp { margin: 0; padding: 18px 18px 20px; border: 1px solid var(--rule); background: var(--white); border-radius: 4px; display: grid; gap: 12px; min-width: 0; }
.grp legend { float: left; width: 100%; padding: 0 0 4px; font: 800 18px/1.2 var(--mincho); display: flex; align-items: center; gap: 8px; }
.grp legend [lang="ja"] { color: var(--stone); font-weight: 500; }
.grp__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--white); font: 700 12px/1 var(--gothic); }
.grp__note { font-size: 12.5px; color: var(--stone); }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.seg__l { flex: 1 0 100%; font-size: 13px; color: var(--stone); }
.seg label { position: relative; }
.seg input, .unit input, .plots input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label > span { display: inline-grid; place-items: center; min-width: 42px; height: 38px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 4px; font-size: 14px; font-weight: 700; background: var(--white); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.seg input:focus-visible + span, .unit input:focus-visible + span, .plots input:focus-visible + .plot { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg--wide label { flex: 1; }
.seg--wide label > span { width: 100%; }
.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.field { display: grid; gap: 6px; position: relative; }
.field label { font-size: 13px; color: var(--stone); }
.field input, .field select { height: 44px; border: 1px solid var(--rule); border-radius: 4px; padding: 0 12px; font: 400 16px var(--gothic); color: var(--ink); background: var(--white); width: 100%; min-width: 0; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--ink); background: #F6F7F1; }
.field__help { font-size: 12px; color: var(--stone); }
.field .unit input { width: 1px; height: 1px; padding: 0; border: 0; }
.field__err { font-size: 13px; font-weight: 700; color: var(--ink); }
.field__err:empty { display: none; }
.field__err:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--tatami); margin-right: 8px; font-size: 12px; }
.field--unit { grid-template-columns: 1fr auto; }
.field--unit label, .field--unit .field__help, .field--unit .field__err { grid-column: 1 / -1; }
.unit { display: flex; gap: 4px; }
.unit label > span { display: inline-grid; place-items: center; width: 46px; height: 44px; border: 1px solid var(--rule); border-radius: 4px; font-weight: 700; cursor: pointer; }
.unit input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.field--yen { grid-template-columns: 1fr auto; align-items: center; }
.field--yen label, .field--yen .field__err { grid-column: 1 / -1; }
.field__u { font-size: 14px; padding-left: 6px; }
.plots__list { display: grid; gap: 6px; }
.plots label { display: block; cursor: pointer; }
.plot { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 4px; }
.plot b { font: 800 16px/1.3 var(--mincho); }
.plot b [lang="ja"] { font-weight: 500; color: var(--stone); margin-left: 6px; }
.plot span { font-size: 12.5px; color: var(--stone); }
.plot em { font-style: normal; font-weight: 700; text-align: right; grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.plots input:checked + .plot { border-color: var(--ink); background: var(--plaster); }

.sheet { position: sticky; top: calc(var(--bar) + 16px); background: var(--white); border: 1px solid var(--ink); border-radius: 4px; padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 18px; }
.sheet__for { font-size: 12.5px; color: var(--stone); }
.sheet__name { font: 800 clamp(34px, 4vw, 56px)/1.05 var(--mincho); margin-top: 6px; }
.sheet__sub { font-size: 14.5px; margin-top: 8px; }
.sheet__draw { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sheet__draw figure { margin: 0; }
.sheet__draw figcaption { font: 700 12px/1 var(--gothic); margin-bottom: 8px; display: flex; justify-content: space-between; color: var(--stone); }
.sheet__draw svg { width: 100%; height: auto; }
.sheet__sun { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--plaster); border-radius: 4px; font-size: 14.5px; }
.sheet__sun b { font: 800 22px/1 var(--mincho); white-space: nowrap; }
.sheet__checks { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.sheet__checks li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.sheet__checks li i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 12px/1 var(--gothic); }
.sheet__checks li.ok i { background: var(--tatami); }
.sheet__checks li.no i { background: var(--ink); color: var(--white); }
.sheet__checks li.no { font-weight: 700; }
.sheet__checks small { color: var(--stone); font-size: 12.5px; text-align: right; }
.sheet__fixes:empty { display: none; }
.sheet__fixes { display: grid; gap: 8px; padding: 14px 0 4px; border-top: 1px solid var(--ink); }
.sheet__fixes p { font-size: 14px; font-weight: 700; }
.fix { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.fix button { flex: none; height: 34px; padding: 0 12px; border: 1px solid var(--ink); background: var(--white); border-radius: 4px; font-weight: 700; font-size: 13px; }
.fix small { color: var(--stone); }
.sheet__cost { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet__cost td { padding: 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sheet__cost td:first-child [lang="ja"] { color: var(--stone); margin-right: 8px; font-size: 12.5px; }
.sheet__cost td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.sheet__cost tr.t td { border-bottom: 1px solid var(--ink); font-weight: 700; font-size: 15.5px; }
.sheet__cost tr.g td:last-child { font-weight: 700; }
.sheet__pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay { padding: 12px 0 0; border-top: 1px solid var(--ink); }
.pay p { font-size: 12.5px; color: var(--stone); }
.pay b { display: block; font: 800 26px/1.15 var(--mincho); margin: 4px 0; font-variant-numeric: tabular-nums; }
.pay small { color: var(--stone); }
.sheet__notes { font-size: 13.5px; max-width: 58ch; }
.sheet__notes:empty { display: none; }
.sheet__home { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: center; padding-top: 16px; border-top: 1px solid var(--ink); }
.sheet__home p { font-size: 14px; }
.sheet__home b { font: 800 19px/1.3 var(--mincho); display: block; }
@media (max-width: 980px) {
  .plan__grid { grid-template-columns: 1fr; }
  .sheet { position: static; }
}
@media (max-width: 480px) {
  .sheet__pay { grid-template-columns: 1fr; }
  .sheet__home { grid-template-columns: 1fr; }
}

/* ---------- houses ledger ---------- */
.houses { padding: clamp(72px, 9vw, 128px) calc(var(--gut) + var(--stack)) clamp(56px, 7vw, 96px) var(--gut); }
.sec-head { margin-bottom: 36px; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger thead th { text-align: left; font: 700 12px/1.2 var(--gothic); color: var(--stone); padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink); }
.ledger td, .ledger tbody th { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; text-align: left; font-weight: 400; }
.ledger__ph { width: clamp(150px, 22vw, 300px); }
.ledger__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.ledger__fam { display: block; font: 800 clamp(24px, 2.4vw, 34px)/1.1 var(--mincho); }
.ledger__who { display: block; font-size: 13px; color: var(--stone); margin-top: 4px; }
.ledger__line { display: block; font-size: 14.5px; margin-top: 8px; max-width: 34ch; }
.ledger td b { font: 800 clamp(22px, 2vw, 30px)/1 var(--mincho); }
.ledger td small { display: block; color: var(--stone); font-size: 12.5px; margin-top: 6px; }
.ledger__yen { font: 800 clamp(18px, 1.6vw, 24px)/1 var(--mincho); font-variant-numeric: tabular-nums; white-space: nowrap; }
.houses__note { font-size: 13px; color: var(--stone); margin-top: 16px; max-width: 68ch; }
@media (max-width: 760px) {
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td, .ledger tbody th { display: block; width: auto; }
  .ledger tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .ledger td, .ledger tbody th { padding: 0; border: 0; }
  .ledger__ph, .ledger tbody th { grid-column: 1 / -1; width: auto; }
  .ledger__yen { font-size: 17px; white-space: normal; }
}

/* ---------- parks and the region map ---------- */
.parks { padding: clamp(56px, 7vw, 96px) calc(var(--gut) + var(--stack)) clamp(72px, 9vw, 128px) var(--gut); background: var(--plaster); border-top: 1px solid var(--rule); }
.parks__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.map { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 12px; }
.map svg { width: 100%; height: auto; }
.map .pk { cursor: pointer; }
.map .pk circle.ring { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.map .pk circle.dot { fill: var(--ink); }
.map .pk.is-on circle.ring { fill: var(--tatami); }
.map .pk:focus-visible circle.ring { stroke-width: 4; }
.map .pk:focus { outline: none; }
.map text { font-family: var(--gothic); }
.parks__cards { display: grid; gap: 12px; }
.park { border: 1px solid var(--rule); background: var(--white); border-radius: 4px; overflow: hidden; }
.park.is-on { border-color: var(--ink); }
.park__head { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; text-align: left; padding: 16px 18px; background: transparent; border: 0; }
.park__head b { font: 800 19px/1.3 var(--mincho); }
.park__head span { font-size: 13px; color: var(--stone); grid-column: 1; }
.park__head em { font-style: normal; grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; font-size: 13px; }
.park__body { display: none; padding: 0 18px 18px; gap: 14px; }
.park.is-on .park__body { display: grid; }
.park__body img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.park__homes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.park__homes li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.park__homes li b { font-weight: 700; }
.park__facts { font-size: 13.5px; color: var(--stone); max-width: 68ch; }
@media (max-width: 900px) { .parks__grid { grid-template-columns: 1fr; } }

/* ---------- request stack ---------- */
.stack { position: fixed; right: 0; top: calc(var(--bar) + 18px); z-index: 50; display: flex; flex-direction: row-reverse; align-items: flex-start; }
.stack__tabs { display: flex; flex-direction: column; gap: 4px; width: var(--stack); }
.stack__tab { width: var(--stack); padding: 14px 0; border: 1px solid var(--ink); border-right: 0; border-radius: 4px 0 0 4px; background: var(--white); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stack__tab [lang="ja"] { writing-mode: vertical-rl; font: 700 14.5px/1 var(--gothic); letter-spacing: 0.12em; }
.stack__tab small { writing-mode: vertical-rl; font-size: 11.5px; color: var(--stone); letter-spacing: 0.06em; }
.stack__tab--key { background: var(--tatami); border-color: var(--tatami); }
.stack__tab--key small { color: var(--ink); }
.stack__tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stack__tab[aria-selected="true"] small { color: var(--white); }
.stack__panels { width: min(400px, calc(100vw - var(--stack) - 24px)); }
.panel { background: var(--white); border: 1px solid var(--ink); border-radius: 4px 0 4px 4px; max-height: calc(100svh - var(--bar) - 40px); overflow: auto; overscroll-behavior: contain; padding: 20px; display: grid; gap: 14px; }
.panel[hidden] { display: none; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel__head h2 { font: 800 21px/1.25 var(--mincho); }
.panel__head h2 [lang="ja"] { display: block; font-size: 13px; color: var(--stone); font-weight: 500; }
.panel__x { flex: none; width: 36px; height: 36px; border: 1px solid var(--rule); background: var(--white); border-radius: 4px; font-size: 18px; line-height: 1; }
.panel form { display: grid; gap: 12px; }
.panel form[hidden] { display: none; }
.slots label > span small { display: block; font-size: 11.5px; font-weight: 400; }
.slots label > span { flex-direction: column; height: 46px; line-height: 1.15; }
.panel .seg__l { flex-basis: 100%; }
.panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel textarea { min-height: 72px; border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; font: 400 15px/1.5 var(--gothic); resize: vertical; }
.panel__plan { font-size: 13.5px; padding: 10px 12px; background: var(--plaster); border-radius: 4px; }
.panel__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.panel__send { height: 50px; border: 0; border-radius: 4px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 15px; }
.panel__fine { font-size: 12px; color: var(--stone); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days label > span { min-width: 0; width: 100%; height: 50px; padding: 0; display: grid; place-items: center; line-height: 1.15; font-size: 12px; }
.days label > span b { font-size: 15px; }
.days input:disabled + span { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.slots label > span { min-width: 72px; }
.conf { display: grid; gap: 12px; }
.conf__stamp { display: inline-grid; place-items: center; width: 54px; height: 54px; border: 2px solid var(--ink); border-radius: 50%; font: 800 15px/1 var(--mincho); background: var(--tatami); }
.conf h3 { font: 800 22px/1.25 var(--mincho); }
.conf dl { margin: 0; border-top: 1px solid var(--ink); }
.conf dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.conf dt { color: var(--stone); }
.conf dd { margin: 0; font-weight: 700; }
.conf__next { font-size: 14.5px; }
.conf__again { justify-self: start; height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: var(--white); border-radius: 4px; font-weight: 700; font-size: 13px; }
@media (max-width: 640px) {
  .stack { top: auto; bottom: auto; top: calc(var(--bar) + 8px); }
  .stack__tabs { width: 34px; }
  .stack__tab { width: 34px; padding: 10px 0; gap: 0; }
  .stack__tab small { display: none; }
  .stack__tab [lang="ja"] { font-size: 12.5px; }
  .stack__panels { width: calc(100vw - 34px - 8px); }
  .panel { max-height: calc(100svh - var(--bar) - 24px); }
}

/* ---------- footer ---------- */
.foot { background: var(--cedar); color: var(--white); padding: clamp(56px, 7vw, 96px) calc(var(--gut) + var(--stack)) 28px var(--gut); }
.foot__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 4vw, 64px); }
.foot__logo { display: flex; align-items: center; gap: 12px; font: 800 20px/1.3 var(--mincho); margin-bottom: 14px; }
.foot__logo .bar__mark { background: var(--white); color: var(--cedar); }
.foot__co p { font-size: 14px; }
.foot__lic { margin: 20px 0 0; font-size: 13px; }
.foot__lic div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.foot__lic dd { margin: 0; }
.foot__parks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot__parks li { border-top: 1px solid var(--white); padding-top: 14px; font-size: 13.5px; display: grid; gap: 6px; align-content: start; }
.foot__parks b { font: 800 17px/1.3 var(--mincho); }
.foot__parks a { color: var(--white); }
.foot__small { margin-top: 48px; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); max-width: 62ch; }
@media (max-width: 900px) { .foot__in { grid-template-columns: 1fr; } .foot__parks { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .roll__l > span { transition: none; } }
