:root {
    --red: #d9381e;
    --red-dark: #b42d16;
    --ink: #0f172a;
    --ink-2: #1e293b;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #ffffff;
    --soft: #f8fafc;
    --gold: #facc15;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--paper); color: var(--text);
    font-family: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
    font-size: 16px; line-height: 1.75; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.num { font-family: 'Oswald', 'Noto Sans JP', sans-serif; letter-spacing: .02em; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 23, 42, .92); backdrop-filter: blur(8px); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.top nav { display: flex; gap: 8px; align-items: center; }
.top nav a.link { font-size: 13px; color: #cbd5e1; text-decoration: none; padding: 6px 8px; }
.top nav a.link:hover { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; border-radius: 12px; padding: 14px 22px; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(217, 56, 30, .7); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn[aria-disabled="true"] { background: #94a3b8; box-shadow: none; cursor: not-allowed; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(217, 56, 30, .35), transparent 60%), var(--ink); color: #fff; padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold); border: 1px solid rgba(250, 204, 21, .4); border-radius: 999px; padding: 4px 12px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 50px); line-height: 1.3; margin: 18px 0 16px; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--red); background: linear-gradient(transparent 62%, rgba(250, 204, 21, .25) 0); }
.hero p.lead { color: #cbd5e1; font-size: 17px; margin: 0 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .price-hint { font-size: 13px; color: #94a3b8; }

/* the zone board drawing */
.board { background: #0b1222; border: 1px solid #22304a; border-radius: 20px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: #94a3b8; margin-bottom: 12px; }
.board-head b { color: #fff; font-size: 14px; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; position: relative; }
.cell { aspect-ratio: 1 / 1; border-radius: 8px; background: #16213a; display: grid; place-items: center; font-size: 12px; color: #64748b; }
.cell b { display: block; font-size: 18px; color: #fff; line-height: 1; }
.cell.in { border: 1px solid #475569; }
.h1c { background: #3b1f24; } .h2c { background: #6b2419; } .h3c { background: #b8321b; } .h4c { background: var(--red); }
.plate { width: 46%; margin: 12px auto 0; height: 22px; background: #e2e8f0; clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%); }
.board-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: #111a2e; border-radius: 10px; padding: 8px 10px; }
.stat span { display: block; font-size: 11px; color: #94a3b8; }
.stat b { font-size: 20px; color: #fff; }

/* sections */
section { padding: 72px 0; }
.sec-title { text-align: center; margin-bottom: 40px; }
.sec-title small { display: block; color: var(--red); font-weight: 700; letter-spacing: .14em; font-size: 12px; }
.sec-title h2 { font-size: clamp(24px, 3.6vw, 32px); margin: 6px 0 8px; line-height: 1.4; }
.sec-title p { color: var(--muted); margin: 0; }
.soft { background: var(--soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feat .ic { width: 40px; height: 40px; border-radius: 10px; background: #fdecea; color: var(--red); display: grid; place-items: center; margin-bottom: 12px; }
.feat h3 { font-size: 17px; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
.features.two { grid-template-columns: repeat(2, 1fr); }
a.feat:hover { border-color: var(--red); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 24px 22px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: 'Oswald', sans-serif; display: grid; place-items: center; font-size: 17px; }
.step h3 { margin: 6px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.price-card { max-width: 520px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 22px; padding: 34px 30px; text-align: center; position: relative; overflow: hidden; }
.price-card::after { content: ''; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; border-radius: 50%; border: 18px solid rgba(217, 56, 30, .25); }
.price-card .amount { font-size: 54px; line-height: 1.1; margin: 8px 0 2px; }
.price-card .note { color: #94a3b8; font-size: 13px; }
.price-card ul { text-align: left; list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 8px; font-size: 15px; }
.price-card li { padding-left: 26px; position: relative; }
.price-card li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.price-card .btn { width: 100%; position: relative; z-index: 1; }
.fine { font-size: 12px; color: #94a3b8; margin-top: 12px; position: relative; z-index: 1; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

footer { background: var(--ink); color: #94a3b8; font-size: 13px; padding: 28px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: #cbd5e1; }

/* simple pages (thanks, law) */
.page { padding: 48px 0 72px; min-height: calc(100dvh - 60px - 80px); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; max-width: 680px; margin: 0 auto; }
.card h1 { font-size: 26px; margin: 0 0 8px; line-height: 1.4; }
.card .sub { color: var(--muted); margin: 0 0 22px; }
.code-box { background: var(--ink); color: #fff; border-radius: 14px; padding: 18px; text-align: center; margin: 18px 0; }
.code-box span { display: block; font-size: 12px; color: #94a3b8; }
.code-box b { display: block; font-size: clamp(30px, 8vw, 42px); letter-spacing: .12em; margin: 4px 0 10px; color: var(--gold); word-break: break-all; }
.howto { padding-left: 1.3em; margin: 0; display: grid; gap: 8px; }
.howto li { padding-left: 4px; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.alert.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.info { background: #f1f5f9; color: #334155; border: 1px solid var(--line); }
.spinner { width: 28px; height: 28px; border: 3px solid #e2e8f0; border-top-color: var(--red); border-radius: 50%; animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
table.law { width: 100%; border-collapse: collapse; font-size: 14px; }
table.law th, table.law td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
table.law th { width: 34%; color: var(--ink-2); background: var(--soft); font-weight: 700; }
.todo { color: var(--red); font-weight: 700; }

@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
    .features, .steps, .features.two { grid-template-columns: 1fr; }
    .steps { gap: 28px; }
    .top nav a.link { display: none; }
    section { padding: 56px 0; }
}
@media (max-width: 520px) {
    table.law th, table.law td { display: block; width: 100%; }
    table.law th { border-bottom: 0; padding-bottom: 4px; }
    .card { padding: 22px 18px; }
}

/* ---------- manual / guide pages ---------- */
.doc-hero { background: var(--ink); color: #fff; padding: 40px 0 36px; }
.doc-hero h1 { margin: 6px 0 6px; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.35; }
.doc-hero p { margin: 0; color: #cbd5e1; }
.doc-tabs { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.doc-tabs a { text-decoration: none; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #e2e8f0; }
.doc-tabs a.on { background: #fff; color: var(--ink); border-color: #fff; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding: 36px 0 80px; }
.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100dvh - 96px); overflow: auto; font-size: 13px; }
.toc b { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; text-decoration: none; color: var(--ink-2); padding: 5px 10px; border-left: 2px solid var(--line); }
.toc a:hover { border-left-color: var(--red); color: var(--red); }
.toc a.sub { padding-left: 22px; color: var(--muted); font-size: 12px; }
.doc article { min-width: 0; }
.doc h2 { font-size: 24px; margin: 52px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); scroll-margin-top: 76px; line-height: 1.4; }
.doc h2:first-child { margin-top: 0; }
.doc h2 .no { font-family: 'Oswald', sans-serif; color: var(--red); margin-right: 10px; }
.doc h3 { font-size: 18px; margin: 30px 0 8px; scroll-margin-top: 76px; }
.doc p, .doc li { font-size: 15px; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc kbd, .doc .ui { display: inline-block; font: inherit; font-size: 13px; font-weight: 700; background: var(--soft); border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: 6px; padding: 0 7px; line-height: 1.7; white-space: nowrap; }
.shot { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin: 14px 0 6px; }
.shot.rev { grid-template-columns: 300px minmax(0, 1fr); }
.shot.wide { grid-template-columns: 1fr; }
.shot figure { margin: 0; }
.shot img, figure.full img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: zoom-in; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .5); }
.shot figcaption, figure.full figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }
figure.full { margin: 14px 0 8px; }
.note { border-left: 4px solid var(--gold); background: #fffbeb; padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: 14px; margin: 12px 0; }
.note.tip { border-color: #10b981; background: #ecfdf5; }
.terms { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.terms th, .terms td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.terms th { white-space: nowrap; color: var(--ink); width: 1%; }
.terms thead th { background: var(--soft); font-size: 12px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(2, 6, 23, .88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; }
@media (max-width: 900px) {
    .doc { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
    .toc { position: static; max-height: none; background: var(--soft); border-radius: 12px; padding: 14px; margin-bottom: 20px; }
    .shot, .shot.rev { grid-template-columns: 1fr; }
    .shot img { max-width: 420px; margin: 0 auto; }
    .shot.rev figure { order: 2; }
    .terms th { white-space: normal; width: 30%; }
}

/* ---------- question form ---------- */
.ask { max-width: 760px; margin: 28px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.ask h3 { margin: 0 0 4px; font-size: 18px; }
.ask p.hint { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 4px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 15px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; background: var(--soft); width: 100%; color: var(--text); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(217, 56, 30, .35); border-color: var(--red); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask .msg { margin-top: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; gap: 0; } }

/* ---------- subscription plans ---------- */
.bill-toggle { display: flex; justify-content: center; gap: 0; margin: 0 auto 22px; background: #e2e8f0; border-radius: 999px; padding: 4px; width: max-content; max-width: 100%; }
.bill-toggle button { font: inherit; font-weight: 700; font-size: 14px; border: 0; background: transparent; color: var(--ink-2); padding: 9px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bill-toggle button.on { background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.bill-toggle .save { font-size: 11px; color: #fff; background: var(--red); border-radius: 999px; padding: 1px 8px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 18px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px 24px; display: flex; flex-direction: column; }
.plan.rec { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .6); }
.plan .badge { position: absolute; top: -12px; right: 20px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 900; border-radius: 999px; padding: 3px 12px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .pnote { margin: 2px 0 12px; font-size: 13px; color: var(--muted); }
.plan.rec .pnote { color: #94a3b8; }
.plan .amount { font-size: 44px; line-height: 1.1; }
.plan .per { font-size: 13px; color: var(--muted); }
.plan.rec .per { color: #94a3b8; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 6px; font-size: 14px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.plan.rec li::before { border-color: var(--gold); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-common { max-width: 698px; margin: 24px auto 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.plan-common li { padding-left: 24px; position: relative; }
.plan-common li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 11px; height: 6px; border-left: 2px solid #10b981; border-bottom: 2px solid #10b981; transform: rotate(-45deg); }
.fine.center { text-align: center; color: var(--muted); max-width: 698px; margin: 18px auto 0; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* plan comparison */
.cmp-wrap { max-width: 698px; margin: 26px auto 0; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.cmp thead th { background: var(--soft); font-size: 13px; }
.cmp thead th:last-child { background: var(--ink); color: #fff; }
.cmp td.y { color: #059669; font-weight: 700; }
.cmp td.n { color: #94a3b8; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
@media (max-width: 520px) { .cmp th, .cmp td { padding: 8px 6px; font-size: 12.5px; } }
.cmp thead th { white-space: nowrap; }
.cmp td { width: 24%; white-space: nowrap; }
@media (max-width: 520px) { .cmp td { width: 22%; } .cmp thead th { font-size: 12px; padding: 8px 4px; } }
