:root {
  --paper: #F6F1E7;
  --paper-2: #EEE6D6;
  --card: #FFFDF8;
  --ink: #17202E;
  --ink-2: #4A5263;
  --line: #DCD2BF;
  --accent: #C2471C;      /* persimmon (柿色) — white text passes AA */
  --accent-ink: #A83C16;
  --accent-soft: #F7DCCB;
  --indigo: #1B2742;
  --indigo-2: #26365C;
  --sage: #DDE5D2;
  --ok: #2F6B4F;
  --radius: 18px;
  --head: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.8; letter-spacing: .02em;
  font-feature-settings: "palt" 1;
}
img, svg { display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: .03em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
/* The hidden attribute must win over component display rules (.done is display:grid). */
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.sp { display: inline; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  font-family: var(--body); font-size: 16px; letter-spacing: .04em;
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 8px 20px -10px rgba(194,71,28,.7);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn-lg { padding: 16px 26px; font-size: 17px; min-height: 56px; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.brand, .lang-switch button, .site-header .btn { white-space: nowrap; }
@media (max-width: 420px) {
  html[lang="en"] .site-header .brand { font-size: 16px; letter-spacing: .01em; gap: 6px; }
  html[lang="en"] .site-header .brand-mark { width: 24px; height: 24px; }
  html[lang="en"] .header-actions { gap: 6px; }
  html[lang="en"] .site-header .btn-sm { padding: 7px 11px; font-size: 13px; letter-spacing: .02em; }
}
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 2px; }
.lang-switch button { font: inherit; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: 6px 8px; min-height: 28px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand.small { font-size: 16px; }
.brand.small .brand-mark { width: 22px; height: 22px; }

/* Hero */
.hero { padding: 36px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -40% auto auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 65%); opacity: .8; pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(46px, 13vw, 92px); line-height: 1.1; margin: 20px 0 20px; letter-spacing: .02em; }
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 34em; }
.lede strong { color: var(--ink); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.hero-cta { margin-top: 28px; display: grid; gap: 12px; }
.hero-cta .btn { width: 100%; }
.fine { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* Phone illustration */
.phone-wrap { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.phone {
  background: var(--card); border: 1px solid var(--line); border-radius: 34px; padding: 18px 16px 16px;
  box-shadow: 0 40px 60px -40px rgba(23,32,46,.45), 0 0 0 8px var(--ink), 0 0 0 9px #000;
  min-height: 520px; display: flex; flex-direction: column; gap: 12px;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pill { background: var(--sage); color: var(--ink); padding: 3px 10px; border-radius: 999px; }
.mic-row { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 16px; padding: 10px 12px; }
.mic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; animation: pulse 1.6s ease-out infinite; }
.mic svg { width: 22px; height: 22px; }
.wave { display: flex; align-items: center; gap: 4px; height: 32px; flex: 1; }
.wave i { flex: 1; max-width: 6px; height: 30%; background: var(--ink); border-radius: 4px; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.85s; }
.transcript { font-size: 14px; line-height: 1.75; color: var(--ink); min-height: 7.2em; }
.transcript .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.arrow { font-size: 12px; font-weight: 700; color: var(--accent-ink); text-align: center; letter-spacing: .1em; }
.record { margin: 0; display: grid; gap: 6px; }
.record > div { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; align-items: baseline; background: var(--paper); border-radius: 10px; padding: 8px 10px; transition: opacity .35s ease, transform .35s ease; }
.record dt { font-size: 11px; font-weight: 700; color: var(--accent-ink); }
.record dd { margin: 0; font-size: 13px; line-height: 1.5; }
.phone-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; font-size: 13px; font-weight: 700; text-align: center; transition: opacity .35s ease; }
.phone-actions span { border-radius: 999px; padding: 10px; }
.phone-actions .ghost { border: 1px solid var(--line); color: var(--ink-2); }
.phone-actions .ok { background: var(--ink); color: var(--paper); }
.phone.is-playing .record > div:not(.in) { opacity: 0; transform: translateY(6px); }
.phone.is-playing:not(.is-done) .phone-actions { opacity: .25; }
.phone:not(.is-listening) .mic { animation: none; }
.phone:not(.is-listening) .wave i { animation-play-state: paused; }
.phone-wrap figcaption { font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 22px; }
@keyframes wave { 0%,100% { height: 25%; } 50% { height: 95%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(194,71,28,.45); } 100% { box-shadow: 0 0 0 14px rgba(194,71,28,0); } }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
section { scroll-margin-top: 70px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: 12px; }
section h2 { font-size: clamp(28px, 7.4vw, 46px); line-height: 1.3; }
.section-lede { margin-top: 16px; color: var(--ink-2); max-width: 40em; }

.problem { background: var(--indigo); color: #EEF0F5; padding: 64px 0; }
.problem .kicker { color: #F2A27F; }
.facts { display: grid; gap: 14px; margin-top: 32px; }
.fact { background: var(--indigo-2); border-radius: var(--radius); padding: 22px 20px; border: 1px solid rgba(255,255,255,.08); }
.fact .num { font-family: var(--head); font-size: 44px; line-height: 1; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.fact .num small { font-size: 18px; margin-left: 4px; color: #F2A27F; }
.fact h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.fact p { font-size: 14px; color: #C9CFDC; }
.fact .src { font-size: 11px; color: #95A0B8; margin-top: 10px; }

.benefits { padding: 72px 0; }
.benefit-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.benefit-list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.b-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 24px; }
html[lang="en"] .b-icon { font-size: 13px; letter-spacing: .04em; }
.benefit-list h3 { font-size: 20px; margin-bottom: 6px; }
.benefit-list p { color: var(--ink-2); font-size: 15px; }
.note { display: block; font-size: 12px; margin-top: 8px; color: var(--ink-2); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps b { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--head); font-size: 18px; }
.steps span { font-weight: 700; font-size: 17px; }
.steps small { color: var(--ink-2); font-size: 13px; line-height: 1.7; }

.subsidy { background: var(--sage); padding: 64px 0; }
.subsidy-grid { display: grid; gap: 28px; }
.subsidy p { margin-top: 14px; color: #33402F; }
.subsidy strong { color: var(--ink); font-size: 1.15em; }
.calc { background: var(--card); border-radius: var(--radius); padding: 22px 20px; box-shadow: 0 30px 40px -34px rgba(23,32,46,.5); align-self: start; }
.calc-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--ink-2) !important; margin-top: 0 !important; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.calc-row b { font-variant-numeric: tabular-nums; }
.calc-row.total { border-bottom: 0; font-size: 18px; }
.calc-row.total b { color: var(--accent-ink); font-family: var(--head); font-size: 26px; }
.calc-note { font-size: 11px !important; color: var(--ink-2) !important; }

/* Pricing + form */
.start { padding: 72px 0 56px; }
.signup { margin-top: 28px; }
.tiers { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.tiers legend { font-weight: 700; margin-bottom: 12px; font-size: 15px; }
.tier { position: relative; display: block; cursor: pointer; }
.tier input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tier-card { display: grid; gap: 6px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 18px 18px 52px; position: relative; transition: border-color .15s, box-shadow .15s; }
.tier-card::before { content: ""; position: absolute; left: 18px; top: 24px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink-2); background: var(--card); }
.tier input:checked + .tier-card { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tier input:checked + .tier-card::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, var(--card) 50%); }
.tier input:focus-visible + .tier-card { outline: 3px solid var(--accent); outline-offset: 3px; }
.tier.featured .tier-card { border-color: var(--ink); }
.badge { position: absolute; top: -12px; right: 16px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.tier-name { font-family: var(--head); font-weight: 700; font-size: 18px; }
.tier-price { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tier-price small { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.tier-who { font-size: 13px; color: var(--ink-2); }
.tier-feats { display: grid; gap: 4px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.tier-feats span { font-size: 14px; padding-left: 20px; position: relative; line-height: 1.6; }
.tier-feats span::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.tax { font-size: 12px; color: var(--ink-2); margin-top: 10px; }

.form-box { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; display: grid; gap: 14px; }
.field-label { font-weight: 700; font-size: 15px; }
.field-row { display: grid; gap: 10px; }
.field-row input { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; min-height: 56px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.field-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; line-height: 1.7; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.no-data { font-size: 13px; background: var(--paper); border-radius: 12px; padding: 10px 12px; border-left: 4px solid var(--ok); }
.form-msg { font-size: 14px; font-weight: 700; color: #A3261B; min-height: 0; }
.form-msg:empty { display: none; }

.done { margin-top: 28px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px 20px; display: grid; gap: 12px; text-align: center; }
.done:focus { outline: none; }
.done-check { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.done h3 { font-size: 22px; }
.done > p { color: var(--ink-2); }
.done-actions { margin-top: 8px; }
.done-actions .btn { width: 100%; }
.founding { margin-top: 16px; padding-top: 20px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.founding h4 { font-size: 17px; }
.founding p { font-size: 14px; color: var(--ink-2); }
.reserve-msg { background: var(--accent-soft); color: var(--ink) !important; border-radius: 12px; padding: 12px 14px; text-align: left; font-weight: 500; }
.direct { margin-top: 20px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* FAQ + privacy */
.faq { padding: 64px 0; border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; font-weight: 700; padding: 14px 32px 14px 0; position: relative; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--accent-ink); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.privacy { padding: 48px 0 120px; background: var(--paper-2); }
.privacy h2 { font-size: 22px; margin-bottom: 16px; }
.privacy p { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.privacy b { color: var(--ink); }

.site-footer { background: var(--ink); color: #C9CFDC; font-size: 12px; padding: 28px 0 100px; }
.footer-inner { display: grid; gap: 10px; }
.site-footer .brand { color: #fff; }

/* Mobile sticky CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 35%); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.show { transform: none; }

@media (min-width: 720px) {
  .sp { display: none; }
  .wrap { padding: 0 32px; }
  .hero-cta .btn { width: auto; }
  .hero-cta { justify-items: start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr auto; }
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 24px; }
  .steps li { border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 20px; }
  .done-actions .btn { width: auto; }
  .founding { justify-items: center; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .benefit-list { grid-template-columns: repeat(3, 1fr); }
  .benefit-list li { grid-template-columns: 1fr; }
  .subsidy-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
  .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .tiers legend { grid-column: 1 / -1; }
  .tier, .tier-card { height: 100%; }
  .tier-card { align-content: start; }
  .problem, .benefits, .subsidy, .start, .faq { padding-top: 96px; padding-bottom: 96px; }
  .sticky-cta { display: none; }
  .footer-inner { grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
  .site-footer { padding-bottom: 28px; }
  .privacy { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- status pages (confirmed.html, unsubscribe.html) */
.status-page { padding: 40px 0 64px; min-height: 62vh; }
.status-card { margin-top: 0; }
.status-card h1 { font-size: 22px; line-height: 1.45; word-break: auto-phrase; text-wrap: balance; }
.status-card > p { color: var(--ink-2); }
.status-card form .btn, .status-card .btn { width: 100%; }
.status-contact { margin-top: 18px; text-align: center; }
.status-footer { padding-bottom: 28px; }
@media (min-width: 640px) { .status-card form .btn, .status-card .btn { width: auto; } }
