:root{color-scheme:light}body{margin:0}img{max-width:100%}[hidden]{display:none!important}

/* Layout: corporate site. Sticky header + mega sections on the top page; tool pages with breadcrumb, mode tabs, controls rail (desktop) / pinned controls (phone) */
:root {
  --bg: #FAF8F3; --paper: #FFFFFF; --ink: #141414; --ink-2: #2B2925; --sub: #5E5A52; --mute: #8A8577;
  --line: #E6E1D6; --line2: #EFEBE2; --field: #F4F1EA;
  --gold: #B8964E; --gold-t: #8A6A2B; --gold-soft: #F1E8D3;
  --deep: #141414; --deep-fg: #FAF8F3; --deep-sub: #CFC8B8; --deep-line: #34312B;
  --blue: #0B9A97; --blue-f: #BDE8E4; --blue-bg: #E0F4F2;
  --yel: #C98A12; --yel-f: #F1DCA2; --yel-bg: #F8EDCF;
  --red: #C4553A; --red-f: #EDB8A7; --red-bg: #F7DDD4;
  --def: #7E2E1D; --def-f: #9E4430;
  --neg: #A8402A; --pos: #1F6E55; --shadow: rgba(20,20,20,0.08);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --latin: "Cormorant Garamond", "Noto Serif JP", serif;
  --hh: 72px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #15140F; --paper: #1D1B16; --ink: #F1ECE1; --ink-2: #E2DCCF; --sub: #ABA496; --mute: #8C8578;
  --line: #34312A; --line2: #292620; --field: #25221C;
  --gold: #C9A964; --gold-t: #D8C08A; --gold-soft: #3A3222;
  --deep: #0E0D0A; --deep-fg: #F1ECE1; --deep-sub: #BDB6A8; --deep-line: #2D2A24;
  --blue: #3FCFC6; --blue-f: #1C4A47; --blue-bg: #12302E;
  --yel: #E3AC3E; --yel-f: #6A5522; --yel-bg: #362C17;
  --red: #E37E62; --red-f: #74402F; --red-bg: #3D231B;
  --def: #D0654A; --def-f: #A84A35;
  --neg: #EC8C74; --pos: #63C9A0; --shadow: rgba(0,0,0,0.45); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #15140F; --paper: #1D1B16; --ink: #F1ECE1; --ink-2: #E2DCCF; --sub: #ABA496; --mute: #8C8578;
  --line: #34312A; --line2: #292620; --field: #25221C;
  --gold: #C9A964; --gold-t: #D8C08A; --gold-soft: #3A3222;
  --deep: #0E0D0A; --deep-fg: #F1ECE1; --deep-sub: #BDB6A8; --deep-line: #2D2A24;
  --blue: #3FCFC6; --blue-f: #1C4A47; --blue-bg: #12302E;
  --yel: #E3AC3E; --yel-f: #6A5522; --yel-bg: #362C17;
  --red: #E37E62; --red-f: #74402F; --red-bg: #3D231B;
  --def: #D0654A; --def-f: #A84A35;
  --neg: #EC8C74; --pos: #63C9A0; --shadow: rgba(0,0,0,0.45); color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: 0.02em; }
p { margin: 0; }
a { color: var(--gold-t); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.latin { font-family: var(--latin); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gold-t); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 4px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s; letter-spacing: 0.04em; }
.btn:hover { background: var(--ink-2); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--bg); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #141414; }
.btn.light { background: var(--deep-fg); color: var(--deep); border-color: var(--deep-fg); }
.btn .arr { font-family: var(--latin); font-size: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.topbar { background: var(--deep); color: var(--deep-sub); font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 34px; align-items: center; }
.topbar a { color: var(--deep-fg); text-decoration: none; }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 32px; height: var(--hh); }
.logo { display: inline-flex; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.logo svg { height: 28px; width: auto; display: block; }
nav.gnav { display: flex; gap: 4px; flex: 1; }
nav.gnav a { position: relative; display: flex; align-items: center; height: var(--hh); padding: 0 14px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
nav.gnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
nav.gnav a:hover::after, nav.gnav a[aria-current="page"]::after { transform: scaleX(1); }
.hcta { display: flex; gap: 10px; }
.hcta .btn { min-height: 42px; padding: 0 18px; font-size: 13px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.drawer { display: none; }
@media (max-width: 980px) {
  :root { --hh: 60px; }
  .topbar { display: none; }
  nav.gnav, .hcta { display: none; }
  header.site .wrap { justify-content: space-between; }
  .logo svg { height: 24px; }
  .menu-btn { display: inline-flex; }
  .drawer { display: block; position: fixed; inset: calc(env(safe-area-inset-top, 0px) + var(--hh)) 0 0 0; z-index: 19; background: var(--paper); padding: 16px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
  .drawer a.d { display: flex; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
  .drawer .btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
}

/* ---------- top page ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; right: 0; top: 0; width: 58%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; padding-block: 72px 80px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.45; letter-spacing: 0.05em; margin: 22px 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 70%, var(--gold-soft) 70%); }
.hero .lead { font-size: 16px; line-height: 2; color: var(--sub); max-width: 32em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 13px; color: var(--sub); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.demo { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px var(--shadow); overflow: hidden; }
.demo .dbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.demo .dbar b { font-family: var(--latin); font-size: 13px; letter-spacing: 0.2em; color: var(--gold-t); }
.demo .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.demo .sig { border-radius: 8px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; transition: background .3s; }
.demo .sig .d { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; transition: background .3s; box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent); }
.demo .sig .l { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.3; }
.demo .sig .m { font-size: 13px; color: var(--ink-2); }
.demo .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: 8px; }
.demo .nums div { padding: 10px 12px; border-right: 1px solid var(--line2); }
.demo .nums div:last-child { border-right: 0; }
.demo .nums span { display: block; font-size: 11px; color: var(--sub); }
.demo .nums b { font-size: 17px; font-variant-numeric: tabular-nums; }
.demo .foot { font-size: 11.5px; color: var(--mute); line-height: 1.7; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 48px; gap: 36px; } .hero canvas { width: 100%; opacity: .5; } }

.sec { padding-block: 104px; }
.sec.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head .en { display: block; font-family: var(--latin); font-size: 15px; letter-spacing: 0.3em; color: var(--gold-t); margin-bottom: 12px; text-transform: uppercase; font-weight: 600; }
.sec-head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.5; }
.sec-head p { color: var(--sub); font-size: 15.5px; line-height: 2; max-width: 38em; }
@media (max-width: 860px) { .sec { padding-block: 68px; } .sec-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; } }

/* compare */
.gapviz { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: center; }
.gv-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line2); }
.gv-row .k { font-size: 14px; font-weight: 700; }
.gv-row .k small { display: block; font-weight: 400; font-size: 12px; color: var(--sub); }
.gv-track { position: relative; height: 44px; }
.gv-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.gv-bank { background: var(--line); color: var(--ink); }
.gv-blue { background: var(--blue); color: #FFFFFF; }
.gv-side { border-left: 1px solid var(--gold); padding-left: 24px; }
.gv-side .big { font-family: var(--serif); font-size: 48px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gv-side .big small { font-size: 18px; }
.gv-side p { font-size: 14px; color: var(--sub); margin-top: 10px; }
@media (max-width: 860px) { .gapviz { grid-template-columns: 1fr; gap: 28px; } .gv-row { grid-template-columns: 1fr; gap: 6px; } }

/* modes */
.modes3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.mcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 36px 32px 32px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); transition: background .2s; }
.mcard:last-child { border-right: 0; }
.mcard:hover { background: var(--field); }
.mcard .stage { font-size: 12.5px; color: var(--gold-t); font-weight: 700; letter-spacing: 0.08em; }
.mcard .ic { width: 64px; height: 64px; color: var(--ink); }
.mcard h3 { font-size: 24px; }
.mcard p { font-size: 14px; color: var(--sub); }
.mcard .more { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line2); font-size: 13px; font-weight: 700; }
.mcard .more .arr { font-family: var(--latin); font-size: 20px; color: var(--gold-t); transition: transform .2s; }
.mcard:hover .more .arr { transform: translateX(4px); }
@media (max-width: 860px) { .modes3 { grid-template-columns: 1fr; } .mcard { border-right: 0; border-bottom: 1px solid var(--line); } .mcard:last-child { border-bottom: 0; } }

/* steps */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: st; }
.step { counter-increment: st; padding-top: 22px; border-top: 1px solid var(--ink); }
.step::before { content: "STEP " counter(st, decimal-leading-zero); display: block; font-family: var(--latin); font-size: 14px; letter-spacing: 0.24em; color: var(--gold-t); font-weight: 600; margin-bottom: 10px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--sub); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; gap: 28px; } }

/* signals */
.sig-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.sig-table th, .sig-table td { text-align: left; vertical-align: top; padding: 22px 24px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sig-table th { width: 180px; font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.sig-table td.mean { color: var(--sub); width: 34%; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; vertical-align: 0; }
.d-blue { background: var(--blue); } .d-yel { background: var(--yel); } .d-red { background: var(--red); } .d-def { background: var(--def); }
.f-blue { background: var(--blue-f); } .f-yel { background: var(--yel-f); } .f-red { background: var(--red-f); } .f-def { background: var(--def-f); }
.s-blue { background: var(--blue-bg); } .s-yel { background: var(--yel-bg); } .s-red { background: var(--red-bg); }
.formula { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; color: var(--sub); }
.formula b { font-family: var(--serif); color: var(--ink); font-size: 16px; }
@media (max-width: 760px) { .sig-table, .sig-table tbody, .sig-table tr, .sig-table th, .sig-table td { display: block; width: auto; } .sig-table th { padding-bottom: 4px; border-bottom: 0; } .sig-table td { padding-top: 4px; } .sig-table td.mean { width: auto; padding-top: 0; } }

/* cases */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.case .top { padding: 22px 24px 18px; border-bottom: 1px solid var(--line2); }
.case .tag { font-size: 12px; color: var(--gold-t); font-weight: 700; letter-spacing: 0.06em; }
.case h3 { font-size: 19px; margin-top: 4px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: 13px; }
.case dt { color: var(--sub); } .case dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.case .res { padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case .res .s { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.case .res p { font-size: 13.5px; color: var(--ink-2); }
.case .res .open { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer; padding-left: 0; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 980px) { .cases { grid-template-columns: 1fr; } }

/* promise + profile */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.promise { padding: 32px 28px 8px 0; }
.promise .n { font-family: var(--latin); font-size: 42px; color: var(--gold); line-height: 1; }
.promise h3 { font-size: 21px; margin: 12px 0 8px; }
.promise p { font-size: 14px; color: var(--sub); }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } .promise { padding: 24px 0 0; } }
.deep { background: var(--deep); color: var(--deep-fg); }
.deep .sec-head p, .deep p { color: var(--deep-sub); }
.deep .sec-head .en { color: var(--gold); }
.profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.monogram { aspect-ratio: 1; max-width: 100%; border: 1px solid var(--deep-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.monogram .k { font-family: var(--serif); font-size: 64px; color: var(--deep-fg); line-height: 1; }
.monogram .e { font-family: var(--latin); font-size: 12px; letter-spacing: 0.3em; color: var(--gold); }
.profile h3 { font-size: 28px; color: var(--deep-fg); }
.profile .role { color: var(--gold); font-size: 13.5px; margin: 6px 0 20px; }
.profile .bio { font-size: 15px; line-height: 2.05; max-width: 40em; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.creds span { border: 1px solid var(--deep-line); padding: 6px 14px; font-size: 12.5px; color: var(--deep-fg); }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; gap: 24px; } .monogram { width: 140px; } }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 12px; padding: 24px 4px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--latin); color: var(--gold-t); font-size: 22px; line-height: 1.3; }
.faq summary .pm { position: relative; width: 16px; height: 16px; margin-top: 6px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 0 4px 26px; color: var(--ink-2); font-size: 14.5px; line-height: 2; }
.faq .a::before { content: "A"; font-family: var(--latin); color: var(--mute); font-size: 22px; line-height: 1.3; }

/* cta band */
.cta-band { background: var(--paper); border-top: 1px solid var(--line); }
.cta-band .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cta-item { padding: 56px 40px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-item + .cta-item { border-left: 1px solid var(--line); }
.cta-item h3 { font-size: 24px; }
.cta-item p { color: var(--sub); font-size: 14px; margin-bottom: 8px; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-item { padding: 40px 0; } .cta-item + .cta-item { border-left: 0; border-top: 1px solid var(--line); } }

/* footer */
footer.site { background: var(--deep); color: var(--deep-sub); padding-block: 64px 40px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--deep-line); }
footer.site .logo { color: var(--deep-fg); }
footer.site h4 { font-family: var(--latin); font-size: 13px; letter-spacing: 0.24em; color: var(--gold); margin-bottom: 14px; text-transform: uppercase; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer.site a { color: var(--deep-fg); text-decoration: none; font-size: 13.5px; }
footer.site a:hover { text-decoration: underline; }
footer.site .about { font-size: 13px; line-height: 1.9; margin-top: 18px; max-width: 26em; }
footer.site .legal { padding-top: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.9; }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 22px 34px; }
.crumb { font-size: 12.5px; color: var(--mute); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--sub); text-decoration: none; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.5; margin-top: 18px; }
.page-head p { color: var(--sub); margin-top: 8px; max-width: 44em; }
.tabs { display: flex; gap: 0; margin-top: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { display: flex; flex-direction: column; padding: 12px 22px 14px; color: var(--sub); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a small { font-size: 11.5px; }
.tabs a b { font-family: var(--serif); font-size: 16px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.page-body { padding-block: 32px 96px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 6px; padding: 14px 18px; margin-bottom: 22px; font-size: 14px; }
.notice a { font-weight: 700; color: var(--ink); }

.tool { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: "ctrl main"; gap: 32px; align-items: start; }
.tool .main { grid-area: main; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tool .ctrl { grid-area: ctrl; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hh) + 20px); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.ctrl .ttl { font-family: var(--latin); font-size: 13px; letter-spacing: 0.24em; color: var(--gold-t); }
@media (max-width: 900px) {
  .tool { grid-template-columns: 1fr; grid-template-areas: "main" "ctrl"; gap: 16px; }
  .tool .ctrl { position: sticky; top: auto; bottom: 0; border-radius: 12px 12px 0 0; margin-left: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(20px, env(safe-area-inset-right, 0px))); padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); box-shadow: 0 -10px 24px var(--shadow); gap: 4px; z-index: 10; }
  .tool .ctrl .desk { display: none; }
}
.slider { display: flex; flex-direction: column; gap: 2px; }
.slider .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.slider label { font-size: 13px; font-weight: 700; }
.slider output { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slider output small { font-size: 12px; font-weight: 500; margin-left: 6px; }
.slider input[type=range] { width: 100%; height: 30px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chips button { min-height: 38px; border-radius: 4px; border: 1px solid var(--line); background: var(--paper); font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; padding: 0 2px; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toggle2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.toggle2 button { min-height: 40px; border-radius: 4px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 13px; cursor: pointer; }
.toggle2 button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.linkbtn { align-self: flex-start; background: none; border: 0; color: var(--gold-t); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 32px; padding: 0; }
.ctrl .cond { font-size: 12px; color: var(--sub); line-height: 1.8; border-top: 1px solid var(--line2); padding-top: 12px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stepper button { width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--line); background: var(--field); font-size: 20px; cursor: pointer; }
.stepper output { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px; min-width: 0; }
.card h2 { font-size: 19px; margin-bottom: 12px; }
.card h2 small { font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--sub); margin-left: 6px; }
.signal { border-radius: 6px; padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.signal .when { font-size: 13px; color: var(--ink-2); }
.signal .head { display: flex; align-items: center; gap: 16px; }
.signal .dotb { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.signal .label { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: 0.04em; line-height: 1.35; }
.signal .msg { font-size: 15.5px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line2); }
.kv:last-child { border-bottom: 0; }
.kv > span { font-size: 14px; color: var(--sub); }
.kv b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv b.big { font-size: 28px; }
.note { font-size: 12.5px; color: var(--sub); line-height: 1.85; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1080px) { .grid2 { grid-template-columns: 1fr; } }
.dark-card { background: var(--deep); color: var(--deep-fg); border-color: var(--deep); }
.dark-card h2 { color: var(--deep-fg); }
.dark-card p { font-size: 14.5px; line-height: 1.95; color: var(--deep-sub); }
.dark-card p b { color: var(--deep-fg); }

.band-wrap { position: relative; height: 96px; margin-top: 6px; }
.bank { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bank span { font-size: 11px; font-weight: 700; white-space: nowrap; }
.bank i { display: block; width: 100%; height: 10px; border: 2px solid var(--ink); border-bottom: 0; }
.bar { position: absolute; top: 34px; left: 0; right: 0; height: 30px; display: flex; overflow: hidden; border-radius: 2px; }
.bar span { display: block; height: 100%; transition: width .4s; }
.ticks { position: absolute; top: 72px; left: 0; right: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--sub); }
.legend-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--line2); align-items: baseline; }
.legend-row:last-child { border-bottom: 0; }
.legend-row .n { font-weight: 700; }
.legend-row .r { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.legend-row .p { grid-column: 2 / 4; display: flex; justify-content: space-between; background: var(--field); border-radius: 4px; padding: 7px 12px; font-size: 13px; }
.legend-row .p b { font-variant-numeric: tabular-nums; }
.legend-row .t { grid-column: 2 / 4; font-size: 13px; color: var(--sub); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 14px; }
.cmp div { border: 1px solid var(--deep-line); padding: 14px 16px; }
.cmp span { display: block; font-size: 12px; color: var(--deep-sub); }
.cmp b { font-size: 22px; font-variant-numeric: tabular-nums; }
.map { display: grid; grid-template-columns: 44px repeat(11, minmax(0, 1fr)); gap: 3px; }
.map .yl { font-size: 11px; color: var(--sub); text-align: right; padding-right: 4px; align-self: center; font-variant-numeric: tabular-nums; }
.map button { height: 28px; border: 0; border-radius: 2px; padding: 0; cursor: pointer; position: relative; }
.map button.me { box-shadow: inset 0 0 0 2px var(--ink); }
.map button.me::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); }
.map button.up { box-shadow: inset 0 0 0 2px var(--ink); background-image: repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--ink) 25%, transparent) 4px 5px); }
.map .xl { font-size: 10px; color: var(--sub); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; margin-top: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.srow { display: grid; grid-template-columns: 14px 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.srow:last-child { border-bottom: 0; }
.bars { position: relative; height: 210px; display: flex; align-items: flex-end; gap: 1px; border-bottom: 1px solid var(--sub); }
.bars i { flex: 1; border-radius: 1px 1px 0 0; transition: height .3s; }
.bars i.sel { outline: 2px solid var(--ink); }
.bars .ok { background: var(--blue); } .bars .ng { background: var(--red-f); }
.bars .line { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
.bars .line span { position: absolute; right: 0; bottom: 4px; font-size: 11px; font-weight: 700; background: var(--paper); padding: 0 4px; }
.xt { display: flex; justify-content: space-between; font-size: 11px; color: var(--sub); margin-top: 6px; }
.result { margin-top: 12px; padding: 14px 16px; border-radius: 4px; font-weight: 700; }
.cond-list { display: flex; flex-direction: column; gap: 12px; }
.cond-list div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.cond-list b { font-size: 12px; background: var(--ink); color: var(--bg); text-align: center; height: 26px; line-height: 26px; border-radius: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* wizard */
.wiz { max-width: 640px; margin: 0 auto; }
.wiz .prog { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wiz .prog i { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.wiz .count { font-size: 12.5px; color: var(--sub); margin: 10px 0 30px; display: flex; justify-content: space-between; }
.wiz .q { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.5; }
.wiz .why { color: var(--sub); margin-top: 10px; font-size: 14.5px; }
.wiz .inbox { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.wiz input[type=number] { flex: 1; min-width: 0; height: 64px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); padding: 0 18px; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wiz .unit { font-size: 16px; color: var(--sub); white-space: nowrap; }
.wiz .where { margin-top: 14px; font-size: 13px; color: var(--sub); background: var(--field); padding: 12px 14px; border-radius: 4px; }
.wiz .alt { margin-top: 14px; }
.wiz .nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.wiz .done { text-align: left; }

/* doc pages */
.doc { max-width: 820px; }
.doc h2 { font-size: 22px; margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc p, .doc li { font-size: 15px; line-height: 2; color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--field); width: 34%; }
.tblwrap { overflow-x: auto; }

/* ---------- HOME (cinematic) ---------- */
body.is-home .topbar, body.is-home header.site { display: none; }
.h-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: max(680px, 100svh); background: var(--paper); }
.h-left { min-width: 0; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 26px) clamp(24px, 4.5vw, 72px) 48px max(24px, env(safe-area-inset-left, 0px)); padding-left: max(clamp(24px, 4.5vw, 72px), env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, #FBF9F4 0%, var(--paper) 100%); }
.h-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.h-nav nav { display: flex; gap: 24px; font-size: 13px; letter-spacing: 0.08em; }
.h-nav nav a { color: var(--ink-2); text-decoration: none; }
.h-nav nav a:hover { color: var(--gold-t); }
.h-nav .pill { margin-left: auto; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; padding: 9px 18px; border-radius: 999px; font-size: 13px; letter-spacing: 0.06em; transition: background .2s, color .2s; }
.h-nav .pill:hover { background: var(--ink); color: var(--paper); }
.h-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 40px 8px; max-width: 640px; }
.h-logo { margin: 0; color: var(--ink); line-height: 0; }
.h-logo svg { width: min(640px, 100%); height: auto; display: block; }
.h-rule { width: 64px; height: 1px; background: var(--gold); margin: 30px 0 26px; transform-origin: left; }
.h-title { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.5; letter-spacing: 0.08em; color: var(--ink); margin: 0; }
.h-title span { position: relative; white-space: nowrap; }
.h-title span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.32em; background: var(--gold-soft); z-index: -1; }
.h-title { position: relative; z-index: 0; }
.h-lead { margin-top: 16px; font-family: var(--serif); font-weight: 700; font-size: clamp(16px, 1.35vw, 19px); color: var(--gold-t); letter-spacing: 0.06em; }
.h-sub { margin-top: 14px; font-family: var(--serif); font-size: 14.5px; line-height: 2.1; color: var(--ink-2); letter-spacing: 0.03em; }
.ib { display: inline-block; }
.h-concept .body p, .h-sub, .h-lead { word-break: keep-all; overflow-wrap: anywhere; }
.h-form { margin-top: 30px; width: 100%; background: #FFFFFF; border: 1px solid var(--gold); border-radius: 4px; padding: 22px 24px 18px; box-shadow: 0 18px 44px rgba(138,106,43,0.16), 0 0 0 6px rgba(184,150,78,0.08); position: relative; }
.h-form-head { display: flex; align-items: center; gap: 12px; }
.h-form .tag { font-family: var(--latin); font-size: 11.5px; font-weight: 600; letter-spacing: 0.3em; color: #FFFFFF; background: var(--gold); padding: 3px 10px 3px 12px; border-radius: 2px; }
.h-form label { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; font-family: var(--serif); }
.h-form .row { display: flex; align-items: stretch; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.h-form .in { flex: 1; min-width: 200px; display: flex; align-items: baseline; gap: 10px; background: var(--field); border: 1px solid var(--line); border-radius: 3px; padding: 4px 16px; transition: border-color .2s, box-shadow .2s; }
.h-form .in:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,78,0.22); }
.h-form input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; color: var(--ink); font-family: var(--serif); font-size: 50px; font-weight: 700; padding: 0; font-variant-numeric: tabular-nums; line-height: 1.3; }
.h-form input:focus { outline: none; }
.h-form .in span { font-size: 17px; color: var(--sub); font-weight: 700; }
.h-form button { min-height: 72px; padding: 0 30px; border: 0; border-radius: 3px; background: var(--gold); color: #141414; font-weight: 700; font-size: 16px; letter-spacing: 0.1em; cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.h-form button:hover { background: var(--ink); color: #FFFFFF; }
.h-form p { margin-top: 12px; font-size: 12px; color: var(--sub); letter-spacing: 0.03em; line-height: 1.8; }
.h-right { position: relative; overflow: hidden; background: #0E0D0A; min-height: 320px; }
.h-slides, .h-slides div, .h-shade { position: absolute; inset: 0; }
.h-slides div { background-size: cover; background-position: center; opacity: 0; transform: scale(1.1); transition: opacity 1.8s ease, transform 9s linear; }
.h-slides div.on { opacity: 1; transform: scale(1); }
.h-shade { background: linear-gradient(90deg, rgba(10,9,6,0.25) 0%, rgba(10,9,6,0) 30%, rgba(10,9,6,0) 70%, rgba(10,9,6,0.35) 100%); }
.h-dots { position: absolute; z-index: 2; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 28px; display: flex; gap: 8px; }
.h-dots button { width: 28px; height: 2px; padding: 0; border: 0; background: rgba(247,244,236,0.4); cursor: pointer; pointer-events: auto; }
.h-dots button[aria-current="true"] { background: #C9A964; }
.h-count { position: absolute; z-index: 2; left: 40px; bottom: 26px; display: flex; align-items: center; gap: 12px; font-family: var(--latin); font-size: 15px; letter-spacing: 0.18em; color: rgba(247,244,236,0.7); }
.h-count b { font-weight: 600; color: #F7F4EC; }
.h-count i { display: block; width: 36px; height: 1px; background: rgba(247,244,236,0.5); }
.h-cap { display: none; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.h-logo { animation: rise 1.3s cubic-bezier(.2,.7,.2,1) .2s both; }
.h-rule { animation: draw 1.1s cubic-bezier(.6,0,.2,1) .8s both; }
.h-title { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) 1.0s both; }
.h-lead { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) 1.2s both; }
.h-sub { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) 1.35s both; }
.h-form { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) 1.6s both; }
.h-right { animation: fadein 2s ease .1s both; }
@media (max-width: 960px) {
  .h-hero { display: flex; flex-direction: column; min-height: 0; }
  .h-left, .h-body { display: contents; }
  .h-nav { order: 1; padding: calc(env(safe-area-inset-top, 0px) + 16px) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
  .h-nav nav { display: none; }
  .h-logo { order: 2; padding: 30px max(20px, env(safe-area-inset-right, 0px)) 30px max(20px, env(safe-area-inset-left, 0px)); }
  .h-logo svg { width: 100%; max-width: 440px; }
  .h-rule, .h-lead { display: none; }
  .h-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .h-right { order: 3; height: min(132vw, 760px); min-height: 0; animation: none; clip-path: inset(0 0 0 0); }
  .h-slides div { background-position: center 30%; }
  .h-shade { background: linear-gradient(180deg, rgba(10,9,6,0.55) 0%, rgba(10,9,6,0) 22%, rgba(10,9,6,0) 40%, rgba(10,9,6,0.55) 66%, rgba(10,9,6,0.88) 100%); }
  .h-count { left: max(20px, env(safe-area-inset-left, 0px)); top: 20px; bottom: auto; font-size: 14px; }
  .h-dots { top: 27px; bottom: auto; right: max(20px, env(safe-area-inset-right, 0px)); gap: 6px; }
  .h-dots button { width: 18px; }
  .h-cap { display: block; position: absolute; z-index: 2; left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); bottom: 92px; color: #F7F4EC; }
  .h-cap::before { content: ""; display: block; width: 48px; height: 1px; background: #C9A964; margin-bottom: 18px; }
  .h-cap .t { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(25px, 7.4vw, 34px); line-height: 1.55; letter-spacing: 0.08em; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
  .h-cap .l { margin: 14px 0 0; font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.8; letter-spacing: 0.06em; color: #E2C98F; word-break: keep-all; }
  .h-cap { animation: rise 1.3s cubic-bezier(.2,.7,.2,1) .6s both; }
  .h-form { order: 4; z-index: 3; width: auto; margin: -64px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); padding: 18px 16px 14px; box-shadow: 0 22px 48px rgba(20,16,8,0.22), 0 0 0 6px rgba(184,150,78,0.10); }
  .h-form label { font-size: 14.5px; }
  .h-form input { font-size: 40px; }
  .h-form button { width: 100%; min-height: 60px; }
  .h-sub { order: 5; margin: 0; padding: 36px max(20px, env(safe-area-inset-right, 0px)) 52px max(20px, env(safe-area-inset-left, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .h-slides div { transition: none; transform: none; } }

.h-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #0E0D0A; }
.h-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; padding: 40px 36px; color: #F7F4EC; text-decoration: none; overflow: hidden; isolation: isolate; }
.h-card .img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.h-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,9,6,0.15) 0%, rgba(10,9,6,0.35) 45%, rgba(10,9,6,0.9) 100%); transition: background .6s; }
.h-card:hover .img { transform: scale(1.06); }
.h-card:hover::before { background: linear-gradient(180deg, rgba(10,9,6,0.05) 0%, rgba(10,9,6,0.25) 45%, rgba(10,9,6,0.85) 100%); }
.h-card + .h-card { border-left: 1px solid rgba(247,244,236,0.14); }
.h-card .st { font-size: 13px; letter-spacing: 0.14em; color: #D9BE82; font-weight: 700; }
.h-card h3 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: 0.1em; margin: 10px 0 10px; color: #FFFFFF; }
.h-card p { font-size: 14.5px; color: rgba(247,244,236,0.85); letter-spacing: 0.04em; }
.h-card .go { margin-top: 26px; display: flex; align-items: center; gap: 14px; font-family: var(--latin); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; }
.h-card .go i { width: 44px; height: 44px; border: 1px solid rgba(247,244,236,0.6); border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; transition: background .3s, color .3s, border-color .3s; }
.h-card:hover .go i { background: #C9A964; border-color: #C9A964; color: #141414; }
@media (max-width: 900px) { .h-modes { grid-template-columns: 1fr; } .h-card { min-height: 380px; padding: 32px max(20px, env(safe-area-inset-right, 0px)) 32px max(20px, env(safe-area-inset-left, 0px)); } .h-card + .h-card { border-left: 0; border-top: 1px solid rgba(247,244,236,0.14); } }

.h-state { position: relative; color: #F7F4EC; text-align: center; padding-block: 150px; overflow: hidden; isolation: isolate; }
.h-state .img { position: absolute; inset: -10% 0; z-index: -2; background-size: cover; background-position: center; }
.h-state::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,9,6,0.72); }
.h-state h2 { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.5; letter-spacing: 0.08em; color: #FFFFFF; }
.h-nums { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: end; max-width: 880px; margin: 64px auto 0; }
.h-num span { display: block; font-size: 13px; letter-spacing: 0.12em; color: rgba(247,244,236,0.75); }
.h-num b { display: block; white-space: nowrap; font-family: var(--serif); font-size: clamp(28px, 3.6vw, 48px); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 6px; color: #FFFFFF; }
.h-num b small { font-size: 0.4em; margin-left: 4px; }
.h-num.blue b { color: #8FD8B7; }
.h-vs { font-family: var(--latin); font-size: 22px; color: #C9A964; letter-spacing: 0.2em; }
.h-state .cap { margin-top: 30px; font-size: 13px; color: rgba(247,244,236,0.7); }
.h-state .btn { margin-top: 40px; }
@media (max-width: 760px) { .h-state { padding-block: 96px; } .h-nums { grid-template-columns: 1fr; gap: 18px; } }

.h-concept { background: #FFFFFF; padding-block: 130px; border-top: 1px solid var(--line); }
.h-concept .wrap { max-width: 860px; text-align: center; }
.h-concept .copy-en { font-family: var(--latin); font-size: 14px; letter-spacing: 0.4em; color: var(--gold-t); text-transform: uppercase; font-weight: 600; }
.h-concept h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.5; letter-spacing: 0.1em; margin: 16px 0 44px; }
.h-concept .body { text-align: left; max-width: 40em; margin: 0 auto; }
.h-concept .body p { font-family: var(--serif); font-size: 16.5px; line-height: 2.3; color: var(--ink-2); letter-spacing: 0.04em; }
.h-concept .body p + p { margin-top: 24px; }
.h-concept .pull { margin-top: 56px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: 0.14em; color: var(--ink); display: inline-block; padding-top: 28px; border-top: 1px solid var(--gold); }
@media (max-width: 900px) { .h-concept { padding-block: 84px; } }

.h-trust { background: var(--paper); padding-block: 96px; }
.h-trust .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.h-trust .item { border-top: 1px solid var(--gold); padding-top: 24px; }
.h-trust h3 { font-size: 22px; letter-spacing: 0.1em; }
.h-trust p { margin-top: 10px; font-size: 14.5px; color: var(--sub); line-height: 2; }
.h-sign { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); padding: 28px 32px; }
.h-sign .who { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.h-sign .who small { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--sub); margin-top: 2px; }
@media (max-width: 860px) { .h-trust .grid { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .h-slides div { transition: none; transform: none; } }


/* ---------- tool pages: HOME tone ---------- */
header.site { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.topbar { background: var(--bg); color: var(--sub); border-bottom: 1px solid var(--line2); }
.topbar a { color: var(--ink-2); }
nav.gnav a { font-family: var(--serif); letter-spacing: 0.06em; }
.hcta .btn:not(.line) { background: var(--gold); border-color: var(--gold); color: #141414; }

.p-hero { position: relative; overflow: hidden; background: #0E0D0A; color: #F7F4EC; isolation: isolate; }
.ph-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 60%; animation: kb 18s ease-out both; }
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,9,6,0.86) 0%, rgba(10,9,6,0.62) 45%, rgba(10,9,6,0.18) 100%), linear-gradient(0deg, rgba(10,9,6,0.55) 0%, rgba(10,9,6,0) 40%); }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.p-hero .wrap { padding-block: 22px 72px; min-height: 440px; display: flex; flex-direction: column; }
.p-hero .crumb, .p-hero .crumb a { color: rgba(247,244,236,0.7); }
.ph-body { margin-top: auto; padding-top: 64px; max-width: 760px; }
.ph-en { display: flex; align-items: center; gap: 14px; font-family: var(--latin); font-size: 15px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: #E2C98F; }
.ph-en b { font-weight: 600; color: #F7F4EC; letter-spacing: 0.1em; }
.ph-en i { display: block; width: 40px; height: 1px; background: #C9A964; }
.ph-who { margin-top: 18px; font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; color: #E2C98F; }
.p-hero h1 { margin-top: 8px; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.5; letter-spacing: 0.08em; color: #F7F4EC; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.ph-lead { margin-top: 18px; font-family: var(--serif); font-size: 15.5px; line-height: 2.1; letter-spacing: 0.04em; color: rgba(247,244,236,0.86); word-break: keep-all; }
.ph-tabs { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; }
.ph-tabs .tabs { margin-top: 0; border-bottom: 0; }
.tabs a { flex-direction: row; align-items: baseline; gap: 10px; padding: 20px 28px 18px 0; margin-right: 28px; border-bottom-width: 1px; }
.tabs a i { font-style: normal; font-family: var(--latin); font-size: 22px; font-weight: 600; color: var(--mute); line-height: 1; }
.tabs a small { font-size: 12px; letter-spacing: 0.08em; }
.tabs a b { font-size: 17px; letter-spacing: 0.1em; }
.tabs a[aria-current="page"] i { color: var(--gold); }
.tabs a[aria-current="page"] { border-bottom: 2px solid var(--gold); }
.ph-tabs .tabs a { margin-bottom: 0; }

.lim-body { padding-block: 48px 120px; }
.notice { background: transparent; border: 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 2px; font-family: var(--serif); font-size: 14px; letter-spacing: 0.03em; }
.notice a { color: var(--gold-t); text-decoration: none; border-bottom: 1px solid var(--gold); }
@media (min-width: 901px) { .tool { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; } }
.tool .main { gap: 28px; }
.tool .ctrl { border-radius: 2px; border-color: var(--line); border-top: 2px solid var(--gold); padding: 26px 24px 22px; gap: 18px; box-shadow: 0 18px 44px var(--shadow); }
.ctrl .ttl { font-size: 14px; letter-spacing: 0.3em; font-weight: 600; }
.slider label { font-family: var(--serif); font-size: 14px; letter-spacing: 0.06em; }
.slider output { font-family: var(--serif); font-size: 26px; letter-spacing: 0.02em; }
.slider input[type=range] { accent-color: var(--gold); }
.chips button { border-radius: 2px; font-family: var(--serif); }
.chips button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #141414; }
.linkbtn { color: var(--gold-t); font-family: var(--serif); }

.lim-hero { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 36px 40px 28px; box-shadow: 0 24px 60px var(--shadow); }
.lh-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.lh-k { display: inline-flex; align-items: center; gap: 2px; font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; color: var(--ink-2); }
.lh-k .dot { width: 10px; height: 10px; }
.lh-v { margin-top: 6px; font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--ink); letter-spacing: 0.02em; }
.lh-v b { font-size: clamp(56px, 6.4vw, 88px); font-weight: 700; color: var(--blue); letter-spacing: 0; margin: 0 4px; }
.lh-pay { margin-top: 14px; font-family: var(--serif); font-size: 15px; color: var(--sub); letter-spacing: 0.06em; }
.lh-pay b { font-size: 22px; color: var(--ink); }
.lh-side { border-left: 1px solid var(--line); padding-left: 28px; padding-bottom: 6px; }
.lh-bank { margin-top: 6px; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); color: var(--ink-2); line-height: 1.2; }
.lh-bank small { font-size: 15px; margin-left: 2px; }
.lh-gap { margin-top: 10px; font-family: var(--serif); font-size: 14px; color: var(--sub); letter-spacing: 0.06em; }
.lh-gap b { color: var(--neg); font-size: 17px; }
.lband { position: relative; height: 112px; margin-top: 30px; }
.lb-bank { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lb-bank span { font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--ink-2); font-family: var(--serif); letter-spacing: 0.06em; }
.lb-bank i { display: block; width: 100%; height: 10px; border: 1px solid var(--ink); border-bottom: 0; }
.lb-bar { position: absolute; top: 36px; left: 0; right: 0; height: 18px; display: flex; overflow: hidden; }
.lb-bar span { display: block; height: 100%; transition: width .4s; }
.lb-mark { position: absolute; top: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left .4s; }
.lb-mark i { display: block; width: 2px; height: 34px; background: var(--gold); }
.lb-mark span { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--gold-t); white-space: nowrap; font-family: var(--serif); }
.lb-ticks { position: absolute; top: 88px; left: 0; right: 0; display: flex; justify-content: space-between; font-family: var(--latin); font-weight: 600; font-size: 14px; color: var(--sub); }
.lb-ticks small { font-family: var(--sans); font-size: 10.5px; margin-left: 2px; }
.lh-cond { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line2); font-size: 12.5px; color: var(--sub); }
.lh-cond a { color: var(--gold-t); }

.lsec { padding-top: 36px; }
.lsec-h { margin-bottom: 20px; }
.lsec-h .en { display: block; font-family: var(--latin); font-size: 14px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-t); }
.lsec-h h2 { margin-top: 6px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: 0.08em; line-height: 1.5; }
.lsec-h p { margin-top: 8px; font-size: 14px; color: var(--sub); line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; }
.br.sp, br.sp { display: none; }
.lrows { border-top: 1px solid var(--ink); }
.lrow { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px; grid-template-areas: "n p y" "n t t"; gap: 4px 20px; padding: 22px 0 20px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.lrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.r-blue::before { background: var(--blue); } .r-yel::before { background: var(--yel); } .r-red::before { background: var(--red); } .r-def::before { background: var(--def); }
.lr-n { grid-area: n; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: 0.1em; display: flex; align-items: center; }
.lr-n .dot { display: none; }
.lr-p { grid-area: p; font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.3; }
.lr-p small { font-size: 14px; margin-left: 2px; }
.lr-p span, .lr-y span { display: block; font-family: var(--sans); font-weight: 400; font-size: 11.5px; color: var(--sub); letter-spacing: 0.06em; }
.lr-y { grid-area: y; text-align: right; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.3; padding-right: 20px; }
.lr-t { grid-area: t; font-size: 13.5px; color: var(--sub); }
.r-blue .lr-p { color: var(--blue); }
.lsec > .note { margin-top: 14px; }

.lsec-dark { background: var(--deep); color: var(--deep-fg); padding: 44px 40px 34px; margin-top: 36px; }
.lsec-dark .lsec-h .en { color: #C9A964; }
.lsec-dark .lsec-h h2 { color: var(--deep-fg); }
.lsec-dark .lsec-h p, .lsec-dark .note { color: var(--deep-sub); }
.wlist { border-top: 1px solid var(--deep-line); }
.wrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--deep-line); }
.wn { font-family: var(--latin); font-size: 24px; font-weight: 600; color: #C9A964; line-height: 1; }
.wk b { display: block; font-family: var(--serif); font-size: 16px; letter-spacing: 0.06em; }
.wk small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--deep-sub); line-height: 1.7; }
.wv { font-family: var(--serif); font-size: 24px; white-space: nowrap; }
.wv small { font-size: 13px; margin-left: 2px; }
.lsec-dark .neg { color: #EC8C74; } .lsec-dark .pos { color: #63C9A0; }
.wsum { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0 6px; }
.wsum span { font-family: var(--serif); font-weight: 700; letter-spacing: 0.08em; }
.wsum b { font-family: var(--serif); font-size: 34px; color: #E2C98F; }
.wsum b small { font-size: 15px; margin-left: 2px; }
.lsec-dark .note { margin-top: 16px; }

.lnext { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 36px; }
.ln-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 8px; min-height: 300px; padding: 32px 32px 28px; text-decoration: none; border: 1px solid var(--line); }
.ln-photo { color: #F7F4EC; background: #0E0D0A; border-color: #0E0D0A; justify-content: flex-end; }
.ln-photo .img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ln-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,9,6,0.85) 0%, rgba(10,9,6,0.35) 60%, rgba(10,9,6,0.15) 100%); }
.ln-photo:hover .img { transform: scale(1.05); }
.ln-fp { background: var(--paper); color: var(--ink); justify-content: flex-end; border-top: 2px solid var(--gold); }
.ln-en { font-family: var(--latin); font-size: 14px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: #E2C98F; }
.ln-fp .ln-en { color: var(--gold-t); }
.ln-card b { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: 0.1em; line-height: 1.5; }
.ln-t { font-size: 13.5px; line-height: 1.9; opacity: 0.86; }
.ln-go { margin-top: 14px; display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; }
.ln-go i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--latin); font-size: 18px; transition: background .3s, color .3s; }
.ln-photo:hover .ln-go i { background: #F7F4EC; color: #141414; }
.ln-fp:hover .ln-go i { background: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
  .p-hero .wrap { min-height: 0; padding-block: 16px 44px; }
  .ph-body { padding-top: 120px; }
  .p-hero::after { background: linear-gradient(0deg, rgba(10,9,6,0.9) 0%, rgba(10,9,6,0.55) 55%, rgba(10,9,6,0.25) 100%); }
  .ph-lead br { display: none; }
  .p-hero h1 { font-size: clamp(22px, 6.6vw, 28px); letter-spacing: 0.06em; }
  .tabs a { padding: 16px 18px 14px 0; margin-right: 16px; gap: 6px; flex-wrap: wrap; }
  .tabs a small { display: none; }
  .tabs a b { font-size: 15px; letter-spacing: 0.06em; }
  .tabs a i { font-size: 18px; }
  .lim-body { padding-block: 28px 40px; }
  .lim-hero { padding: 26px 20px 20px; }
  .lh-top { grid-template-columns: 1fr; gap: 22px; }
  .lh-side { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .lband { height: 104px; }
  .lb-ticks { font-size: 12px; }
  .lrow { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "p" "y" "t"; padding: 18px 0 16px 18px; gap: 6px; }
  .lr-p { font-size: 24px; }
  .lr-y { text-align: left; font-size: 16px; padding-right: 14px; display: flex; align-items: baseline; gap: 10px; }
  .lr-y span { display: inline; }
  .lr-p span { margin-bottom: 2px; }
  .lr-t { padding-right: 14px; }
  .lsec-dark { margin-left: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(20px, env(safe-area-inset-right, 0px))); padding: 40px max(20px, env(safe-area-inset-right, 0px)) 30px max(20px, env(safe-area-inset-left, 0px)); }
  br.sp { display: inline; }
  .wrow { grid-template-columns: 34px minmax(0, 1fr); }
  .wv { grid-column: 2; font-size: 21px; }
  .wsum b { font-size: 28px; }
  .lnext { grid-template-columns: 1fr; }
  .ln-card { min-height: 240px; padding: 26px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) { .ph-img { animation: none; } }

.backlink { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; color: var(--gold-t); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.backlink i { font-style: normal; font-family: var(--latin); font-size: 18px; transition: transform .2s; }
.backlink:hover i { transform: translateX(-4px); }
.page-head .crumb + .backlink { display: flex; width: fit-content; }

.lim-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 44px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.li-head .en { display: block; font-family: var(--latin); font-size: 14px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-t); }
.li-head h2 { margin-top: 6px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.55; letter-spacing: 0.08em; }
.li-head p { margin-top: 14px; font-family: var(--serif); font-size: 15px; line-height: 2.05; color: var(--ink-2); letter-spacing: 0.03em; word-break: keep-all; overflow-wrap: anywhere; }
.li-head p + p { margin-top: 8px; }
.li-sig { margin: 0; border-top: 1px solid var(--ink); }
.li-sig > div { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.li-sig > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.li-sig dt { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: 0.1em; }
.li-sig dd { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; padding-right: 16px; }
.li-sig .r-blue dt { color: var(--blue); }
@media (max-width: 900px) {
  .lim-intro { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; margin-bottom: 24px; }
  .li-sig > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0 14px 18px; }
}

/* round 3 */
.topbar { display: none !important; }
@media (min-width: 961px) {
.h-body { padding-block: 20px 4px; }
.h-logo svg { width: min(560px, 100%); }
.h-rule { margin: 24px 0 20px; }
.h-title { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.5; }
.h-sub { margin-top: 14px; font-size: 14px; line-height: 2; }
.h-form { margin-top: 22px; padding: 18px 22px 14px; }
.h-form .row { margin-top: 12px; }
.h-form input { font-size: 44px; }
.h-form button { min-height: 64px; }
.h-form p { margin-top: 10px; line-height: 1.7; }
.h-left { padding-bottom: 28px; }
}
.yrs { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yrs > span { font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; flex: 0 1 190px; }
.seg button { min-height: 36px; border: 0; border-left: 1px solid var(--line); background: var(--paper); font-family: var(--serif); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0 6px; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #141414; }
.lh-bank { white-space: nowrap; font-size: clamp(22px, 2.2vw, 30px); }
@media (min-width: 901px) { .lh-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lr-p, .lr-y, .wv, .wsum b { white-space: nowrap; }
@media (max-width: 960px) {
  .h-form-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .h-cap { bottom: 96px; }
}
@media (max-width: 900px) {
  .lb-ticks small { display: none; }
  .lb-ticks span:last-child::after { content: "万円"; font-family: var(--sans); font-size: 10px; position: absolute; right: 0; top: 18px; }
  .lh-bank { font-size: clamp(16px, 4.9vw, 26px); letter-spacing: 0; }
  .lh-bank small { font-size: 12px; }
  .p-hero { contain: paint; }
  .wrow { grid-template-columns: minmax(0, 1fr); }
  .wv { grid-column: 1; }
}
@media (min-width: 901px) { .wrow { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 961px) and (max-height: 760px) {
  .h-left { padding-top: 18px; padding-bottom: 18px; }
  .h-body { padding-block: 8px 0; }
  .h-logo svg { width: min(460px, 100%); }
  .h-rule { margin: 18px 0 14px; }
  .h-title { font-size: clamp(22px, 2vw, 28px); }
  .h-sub { margin-top: 10px; font-size: 13.5px; line-height: 1.85; }
  .h-form { margin-top: 16px; padding: 14px 20px 12px; }
  .h-form input { font-size: 38px; }
  .h-form button { min-height: 56px; }
}

/* round 4 */
@media (min-width: 961px) {
  .h-body { padding-block: 12px 0; }
  .h-logo svg { width: min(600px, 100%); }
  .h-rule { margin: 34px 0 30px; }
  .h-sub { margin-top: 18px; }
  .h-form { margin-top: 34px; }

}
@media (min-width: 961px) and (max-height: 820px) {
  .h-left { padding-top: 20px; padding-bottom: 16px; }
  .h-logo svg { width: min(540px, 100%); }
  .h-rule { margin: 26px 0 22px; }
  .h-title { font-size: clamp(22px, 2.1vw, 30px); }
  .h-sub { margin-top: 14px; font-size: 13.5px; line-height: 1.9; }
  .h-form { margin-top: 26px; padding: 14px 20px 12px; }
  .h-form input { font-size: 38px; }
  .h-form button { min-height: 56px; }
}
@media (min-width: 961px) and (max-height: 700px) {
  .h-logo svg { width: min(460px, 100%); }
  .h-rule { margin: 18px 0 14px; }
  .h-form { margin-top: 16px; }
}
.li-ref { margin-top: 18px !important; padding: 14px 16px; background: var(--paper); border-left: 2px solid var(--gold); font-family: var(--sans) !important; font-size: 13px !important; line-height: 1.9 !important; color: var(--sub) !important; }
.rstack { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.pbox { background: var(--paper); border: 1px solid var(--gold); padding: 18px 22px; box-shadow: 0 0 0 5px rgba(184,150,78,0.08); }
.pbox label { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; }
.pb-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; margin-top: 10px; align-items: stretch; }
.pb-row button { min-width: 84px; border: 1px solid var(--line); background: var(--paper); font-family: var(--serif); font-weight: 700; font-size: 14px; cursor: pointer; border-radius: 2px; }
.pb-row button:hover { border-color: var(--gold); }
.pb-in { display: flex; align-items: baseline; gap: 10px; background: var(--field); border: 1px solid var(--line); padding: 2px 16px; }
.pb-in:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,78,0.2); }
.pb-in input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; }
.pb-in input:focus { outline: none; }
.pb-in span { font-weight: 700; color: var(--sub); }
.ch-verdict { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line2); }
.ch-dot { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; margin-top: 12px; box-shadow: 0 0 0 7px var(--blue-bg); }
.v-yel .ch-dot { box-shadow: 0 0 0 7px var(--yel-bg); } .v-red .ch-dot { box-shadow: 0 0 0 7px var(--red-bg); }
.ch-label { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: 0.08em; line-height: 1.3; }
.v-blue .ch-label { color: var(--blue); } .v-yel .ch-label { color: var(--yel); } .v-red .ch-label { color: var(--red); }
.ch-msg { margin-top: 6px; font-family: var(--serif); font-size: 15.5px; color: var(--ink-2); }
.ch-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 4px; }
.ch-kpi div { padding: 18px 16px 6px 0; }
.ch-kpi div + div { padding-left: 16px; border-left: 1px solid var(--line2); }
.ch-kpi span { display: block; font-size: 12px; color: var(--sub); letter-spacing: 0.04em; }
.ch-kpi b { display: block; margin-top: 4px; font-family: var(--serif); font-size: 21px; white-space: nowrap; }
.mapbox { background: var(--paper); border: 1px solid var(--line); padding: 22px 24px; }
.lrow .lr-p { font-size: 22px; }
@media (max-width: 900px) {
  .ch-kpi { grid-template-columns: 1fr 1fr; }
  .ch-kpi div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ch-kpi div:nth-child(n+3) { border-top: 1px solid var(--line2); }
  .ch-kpi b { font-size: 18px; }
  .pbox { padding: 16px; }
  .pb-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pb-in { grid-column: 1 / -1; grid-row: 1; }
  .pb-row button { min-height: 44px; }
  .pb-in input { font-size: 34px; }
  .mapbox { padding: 16px 14px; }
}

/* round 5 */
@media (min-width: 961px) {
  .h-rule { margin: clamp(26px, 4.4vh, 48px) 0 clamp(22px, 3.8vh, 40px); }
  .h-sub { margin-top: clamp(16px, 2.6vh, 28px); }
  .h-form { margin-top: clamp(30px, 6.2vh, 68px); }
}
@media (min-width: 961px) and (max-height: 820px) {
  .h-rule { margin: 30px 0 24px; }
  .h-form { margin-top: 40px; }
}
@media (min-width: 961px) and (max-height: 700px) {
  .h-rule { margin: 18px 0 14px; }
  .h-form { margin-top: 18px; }
}
.ex-label { font-size: clamp(24px, 2.8vw, 36px) !important; }
.li-plain > div::before { background: var(--gold); }
.li-plain dt { color: var(--ink); }
.bars { height: 230px; border-bottom-color: var(--line); }
.bars .ok { background: var(--blue); }
.bars .line { background: var(--gold); }
.bars .line span { color: var(--gold-t); font-family: var(--serif); }
.xt { font-family: var(--serif); }
.toggle2 button { border-radius: 2px; font-family: var(--serif); }
.toggle2 button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #141414; }
.h-why { max-width: 760px; margin: 56px auto 0; padding-top: 44px; border-top: 1px solid rgba(201,169,100,0.5); }
.h-why p { font-family: var(--serif); font-size: 16px; line-height: 2.2; letter-spacing: 0.05em; color: rgba(247,244,236,0.9); word-break: keep-all; overflow-wrap: anywhere; }
.h-why p + p { margin-top: 22px; }
.h-why .h-why-last { margin-top: 34px; font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: 0.12em; color: #E2C98F; }
.h-num.blue b { color: #6FD6CF; }
@media (max-width: 760px) { .h-why { margin-top: 40px; padding-top: 32px; } .h-why p { font-size: 15px; line-height: 2.05; } .h-why p br { display: none; } }
/* CTA shine: a light sweep across the button once every 5s */
.h-form button { position: relative; overflow: hidden; isolation: isolate; }
.h-form button::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 35%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.15) 65%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg) translateX(0); animation: cta-shine 5s ease-in-out 2.4s infinite; }
@keyframes cta-shine { 0%, 78% { transform: skewX(-18deg) translateX(0); opacity: 0; } 80% { opacity: 1; } 96% { transform: skewX(-18deg) translateX(420%); opacity: 1; } 100% { transform: skewX(-18deg) translateX(420%); opacity: 0; } }
.h-form button:hover::after { animation-play-state: paused; opacity: 0; }
/* SP first view: logo up, headline on top of photo, compact form over photo */
@media (max-width: 960px) {
  .h-nav { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .h-nav .pill { padding: 7px 14px; font-size: 12px; }
  .h-logo { padding-top: 10px; padding-bottom: 16px; }
  .h-logo svg { max-width: 320px; }
  .h-right { height: min(104vw, 440px); }
  .h-shade { background: linear-gradient(180deg, rgba(10,9,6,0.72) 0%, rgba(10,9,6,0.38) 34%, rgba(10,9,6,0) 58%, rgba(10,9,6,0.25) 100%); }
  .h-cap { top: 40px; bottom: auto; }
  .h-cap::before { margin-bottom: 12px; }
  .h-cap .t { font-size: clamp(23px, 6.6vw, 30px); line-height: 1.5; }
  .h-dots { top: 16px; bottom: auto; right: max(20px, env(safe-area-inset-right, 0px)); }
  .h-form { margin-top: -124px; padding: 14px 14px 10px; }
  .h-form-head { flex-direction: row; align-items: center; gap: 10px; }
  .h-form .tag { flex-shrink: 0; font-size: 10.5px; padding: 3px 8px 3px 10px; letter-spacing: 0.24em; }
  .h-form label { font-size: 13px; line-height: 1.55; letter-spacing: 0.03em; }
  .h-form .row { margin-top: 10px; gap: 8px; flex-wrap: nowrap; }
  .h-form .in { min-width: 0; padding: 2px 12px; }
  .h-form input { font-size: 32px; }
  .h-form .in span { font-size: 14px; }
  .h-form button { width: auto; flex-shrink: 0; min-height: 56px; padding: 0 14px; font-size: 14px; letter-spacing: 0.06em; }
  .h-form p { margin-top: 8px; font-size: 10.5px; line-height: 1.6; }
  .h-sub { padding-top: 28px; }
}
.h-rule { display: none !important; }
.h-cap::before { display: none !important; }
@media (min-width: 961px) { .h-title { margin-top: clamp(30px, 5vh, 52px); } }
/* merged simulation */
.sim-main #r-asm { order: 1; } .sim-main #r-limit { order: 2; } .sim-main #pbox { order: 3; } .sim-main #r-check { order: 4; } .sim-main #r-next { order: 9; }
.sim-main.hp #pbox { order: 2; } .sim-main.hp #r-check { order: 3; } .sim-main.hp #r-limit { order: 4; }
#r-check:empty { display: none; }
.sim-sub { margin: 20px 0 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.asm { background: var(--paper); border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); padding: 16px 20px 14px; }
.asm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.asm-head b { font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em; color: var(--gold-t); }
.asm-head span { font-size: 12.5px; color: var(--sub); }
.asm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin-top: 12px; }
.asm-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.asm-f > span:first-child { font-size: 12px; color: var(--sub); font-weight: 700; }
.ai { display: flex; align-items: baseline; gap: 6px; border-bottom: 1px solid var(--line); }
.ai input { width: 100%; min-width: 0; border: 0; background: transparent; font-family: var(--serif); font-weight: 700; font-size: 20px; padding: 2px 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.ai input:focus { outline: none; } .ai:focus-within { border-bottom-color: var(--gold); }
.ai i { font-style: normal; font-size: 12px; color: var(--sub); white-space: nowrap; }
.asm-ro b { font-family: var(--serif); font-size: 20px; padding: 2px 0; border-bottom: 1px solid transparent; }
.asm-note { margin-top: 10px; font-size: 12px; line-height: 1.8; color: var(--sub); }
.pb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pb-opt { font-size: 12px; color: var(--sub); }
#c-pclear { margin-top: 8px; font-size: 12.5px; }
.pb-in input::placeholder { color: var(--mute); font-weight: 500; font-size: 0.7em; }
#e-sell-o small { margin-left: 8px; }
@media (max-width: 900px) { .asm-grid { grid-template-columns: 1fr 1fr; } .asm { padding: 14px 16px 12px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
