:root {
  --paper: #f4ecd9;
  --surface: #fbf6ea;
  --navy: #1b2c4e;
  --navy-soft: #32476d;
  --orange: #dd6a1e;
  --orange-ink: #a94810;
  --rule: #d8cba9;
  --muted: #6f6857;
  --white: #fffdf6;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
.site-header {
  min-height: 72px;
  padding: calc(12px + env(safe-area-inset-top)) clamp(20px, 5vw, 64px) 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: var(--paper);
  border-bottom: 3px solid var(--orange);
}
.site-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.site-brand span { font-size: 1.15rem; font-weight: 800; letter-spacing: .035em; }
.site-brand small { margin-top: 4px; color: #c7b68e; font-size: .68rem; letter-spacing: .025em; }
.header-app-link { font-size: .88rem; font-weight: 700; text-underline-offset: 4px; }

main { overflow: hidden; }
.hero {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 650px;
  padding: clamp(48px, 7vw, 86px) 0 clamp(64px, 9vw, 106px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .82fr);
  align-items: center;
  gap: clamp(44px, 8vw, 108px);
}
.hero-copy { max-width: 650px; }
.hero-intro, .section-heading > p, .price-main > p:first-child {
  margin: 0 0 15px;
  color: var(--orange-ink);
  font-size: .84rem;
  font-weight: 800;
}
.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -.045em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-lead { max-width: 600px; margin: 28px 0 0; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--navy-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta {
  min-height: 52px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
  border-radius: 5px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.cta-primary { background: var(--navy); color: var(--paper); }
.cta-secondary { background: transparent; color: var(--navy); }
.cta-disabled { cursor: not-allowed; opacity: .72; }
.sales-pending { margin: 12px 0 0; color: #d8cba9; font-size: .78rem; line-height: 1.6; }
.hero-terms { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }

.score-sheet {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 28px rgba(27, 44, 78, .12);
}
.sheet-head, .sheet-player { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sheet-head { padding: 13px 16px; background: var(--navy); color: var(--paper); font-weight: 800; }
.sheet-head span:last-child { color: #c7b68e; font-size: .72rem; }
.sheet-player { padding: 15px 16px 11px; border-bottom: 1px solid var(--rule); font-size: .82rem; }
.sheet-player strong { font-family: var(--mono); }
.sheet-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.sheet-stats div { min-height: 100px; padding: 13px 16px 16px; border-bottom: 1px solid var(--rule); }
.sheet-stats div:nth-child(odd) { border-right: 1px solid var(--rule); }
.sheet-stats dt { color: var(--muted); font-size: .77rem; }
.sheet-stats dd { margin: 6px 0 0; font: 800 1.65rem/1.1 var(--mono); }
.sheet-stats .sheet-focus { background: rgba(221, 106, 30, .08); }
.sheet-stats .sheet-focus dd { color: var(--orange); font-size: 2.1rem; }
.score-sheet > p { margin: 0; padding: 16px; color: var(--muted); font-size: .78rem; }

.section-rule, .features, .price, .faq { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.section-rule { border-top: 1px solid var(--rule); }
.reason {
  padding: clamp(72px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(320px, 1fr);
  gap: clamp(40px, 8vw, 100px);
}
.section-heading h2 { margin: 0; font-size: clamp(1.75rem, 3.7vw, 3.2rem); line-height: 1.35; letter-spacing: -.035em; }
.section-heading.compact { max-width: 680px; }
.section-heading.compact h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.reason-copy { padding-top: 30px; color: var(--navy-soft); font-size: 1.04rem; }
.reason-copy p { margin: 0 0 20px; }

.features { padding: 20px 0 clamp(82px, 11vw, 140px); }
.feature-ledger { margin-top: 45px; border-top: 2px solid var(--navy); }
.feature-ledger article {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 12px;
  border-bottom: 1px solid var(--rule);
}
.feature-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--navy);
  border-radius: 50%;
  font-weight: 800;
}
.feature-ledger h3 { margin: 0 0 7px; font-size: 1.05rem; }
.feature-ledger p { max-width: 700px; margin: 0; color: var(--muted); }
.feature-note { max-width: 760px; margin: 16px 12px 0; color: var(--muted); font-size: .78rem; }

.steps { padding: clamp(72px, 9vw, 110px) 0; }
.steps ol { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); }
.steps li { min-height: 225px; padding: 25px 24px; border-right: 1px solid var(--rule); background: rgba(251, 246, 234, .48); }
.steps li:last-child { border-right: 0; }
.steps li > span { color: var(--orange); font: 800 1.05rem/1 var(--mono); }
.steps strong { display: block; margin-top: 44px; font-size: 1.03rem; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }

.price {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.1fr);
  border: 1px solid var(--navy);
  background: var(--surface);
}
.price-main { padding: clamp(34px, 6vw, 68px); background: var(--navy); color: var(--paper); }
.price-main h2 { margin: 0; font: 800 clamp(4rem, 8vw, 6.6rem)/1 var(--mono); letter-spacing: -.07em; }
.price-main h2 span { display: block; margin-bottom: 10px; font: 700 .85rem/1.2 sans-serif; letter-spacing: 0; }
.price-main h2 small { margin-left: 8px; font: 700 .9rem/1.2 sans-serif; letter-spacing: 0; }
.price-renew { margin: 20px 0 10px; color: #d8cba9; font-size: .88rem; }
.price-device {
  margin: 0 0 25px;
  padding: 12px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(244, 236, 217, .35);
  border-bottom: 1px solid rgba(244, 236, 217, .35);
  color: var(--paper);
}
.price-device strong { font-size: 1.02rem; }
.price-device span { color: #d8cba9; font-size: .78rem; white-space: nowrap; }
.cta-light { width: 100%; background: var(--paper); color: var(--navy); border-color: var(--paper); }
.price-main .cta-primary { width: 100%; background: var(--orange-ink); border-color: var(--orange-ink); color: #fff; }
.price-conditions { padding: clamp(34px, 6vw, 64px); }
.price-conditions h3 { margin: 0 0 20px; font-size: 1.03rem; }
.price-conditions ul { margin: 0 0 22px; padding-left: 1.2rem; color: var(--navy-soft); font-size: .88rem; }
.price-conditions li + li { margin-top: 8px; }
.price-conditions > a { color: var(--navy); font-size: .86rem; font-weight: 700; text-underline-offset: 4px; }

.faq { padding: clamp(90px, 11vw, 140px) 0; }
.faq-list { margin-top: 42px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { padding: 21px 38px 21px 4px; font-weight: 700; cursor: pointer; }
.faq details p { max-width: 760px; margin: -5px 0 24px 4px; color: var(--muted); }

.closing { padding: clamp(70px, 10vw, 110px) 20px; background: var(--orange-ink); color: #fff; text-align: center; }
.closing p { margin: 0 0 8px; font-size: .88rem; font-weight: 700; }
.closing h2 { margin: 0 auto 30px; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.4; letter-spacing: -.025em; }
.closing .cta { min-width: 260px; }

footer { padding: 38px clamp(20px, 5vw, 64px) calc(38px + env(safe-area-inset-bottom)); background: var(--navy); color: var(--paper); }
.footer-brand { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand span { color: #c7b68e; font-size: .7rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-size: .82rem; }
footer nav a { text-underline-offset: 4px; }
footer > p { margin: 32px 0 0; color: #c7b68e; font-size: .7rem; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.cta:not(.cta-disabled):active { transform: translateY(1px); }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 58px; }
  .score-sheet { width: min(440px, calc(100% - 14px)); margin: 0 auto; }
  .reason { grid-template-columns: 1fr; gap: 20px; }
  .reason-copy { padding-top: 0; }
  .steps ol { grid-template-columns: 1fr; }
  .steps li { min-height: 0; display: grid; grid-template-columns: 35px 1fr; gap: 14px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .steps li:last-child { border-bottom: 0; }
  .steps strong { margin-top: 0; }
  .price { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header { min-height: 65px; padding-left: 16px; padding-right: 16px; }
  .header-app-link { font-size: .78rem; }
  .hero, .section-rule, .features, .price, .faq { width: min(100% - 32px, 1040px); }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.055em; }
  .hero-actions { flex-direction: column; }
  .hero-actions .cta { width: 100%; }
  .score-sheet { box-shadow: 0 10px 22px rgba(27, 44, 78, .12); }
  .sheet-stats div { min-height: 88px; padding: 12px; }
  .sheet-stats dd { font-size: 1.35rem; }
  .sheet-stats .sheet-focus dd { font-size: 1.7rem; }
  .feature-ledger article { grid-template-columns: 52px minmax(0, 1fr); gap: 15px; padding-left: 4px; padding-right: 4px; }
  .feature-mark { width: 44px; height: 44px; }
  .price-main, .price-conditions { padding: 32px 24px; }
  .price-main h2 { font-size: clamp(3.6rem, 19vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta:active { transform: none; }
}
