:root {
  --paper: #f4f1e8;
  --surface: #e9e4d6;
  --ink: #2a2925;
  --ink-soft: #625d4f;
  --line: #cfc8b6;
  --green: #3f7a2f;
  --bar: #bdb5a0;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", "IBM Plex Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
body:lang(ja) { line-height: 1.85; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, .lede, .section-head p, .fine { text-wrap: balance; }
body:lang(ja) h1, body:lang(ja) h2 { word-break: keep-all; overflow-wrap: anywhere; }
body:lang(ja) .lede, body:lang(ja) .section-head p, body:lang(ja) .fine { word-break: auto-phrase; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1040px, 100% - 48px); margin-inline: auto; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.topnav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.topnav a { text-decoration: none; color: var(--ink-soft); }
.topnav a:hover, .topnav a.active { color: var(--ink); }
.topnav a.active { font-weight: 600; }

.hero { padding: 56px 0 8px; text-align: center; }
.hero-icon { width: 120px; height: 120px; margin: 0 auto 22px; }
.hero h1 {
  font-size: clamp(36px, 6.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 700;
}
.lede { max-width: 620px; margin: 18px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #47453d; }
.btn.secondary { border-color: var(--line); color: var(--ink); }
.btn.secondary:hover { background: var(--surface); border-color: var(--bar); }

section.block { padding-top: 104px; }
.section-head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.num { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--green); }
h2 { margin-top: 4px; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.25; letter-spacing: -.02em; }
.section-head p:last-child { margin-top: 12px; color: var(--ink-soft); }

.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
.keys span { white-space: nowrap; }
kbd {
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.media { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.media video { width: 100%; aspect-ratio: 8 / 5; }
.shot { width: 100%; }

.subfeature {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 820px;
  margin: 24px auto 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
}
.subfeature img { width: 100%; border-radius: 8px; }
.subfeature h3 { font-size: 20px; line-height: 1.4; }
.subfeature p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
body:lang(ja) .subfeature p { word-break: auto-phrase; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { padding: 28px; border-radius: 12px; background: var(--surface); }
.saving { display: flex; align-items: baseline; gap: 10px; }
.saving strong { font-size: 44px; line-height: 1.1; letter-spacing: -.02em; color: var(--green); }
.saving span { font-weight: 600; }
.bar-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 70px; align-items: center; gap: 10px; margin-top: 12px; font-family: var(--mono); font-size: 14px; }
.bar-row:first-of-type { margin-top: 20px; }
.track { height: 10px; }
.fill { display: block; height: 100%; border-radius: 3px; background: var(--bar); }
.bar-row.after .fill { background: var(--green); }
.bar-row b { text-align: right; font-weight: 600; }
.fine { margin-top: 16px; text-align: center; font-size: 14px; color: var(--ink-soft); }

footer { margin-top: 104px; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

.legal { max-width: 720px; padding: 28px 0 80px; }
.legal h1 { font-size: 40px; line-height: 1.2; }
.legal h2 { margin-top: 34px; font-size: 24px; }
.legal p, .legal ul { margin-top: 10px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 28px; }
  .hero-icon { width: 96px; height: 96px; }
  body:lang(ja) .hero h1 { font-size: 30px; }
  body:lang(ja) h2 { font-size: 25px; }
  .actions .btn { width: 100%; }
  section.block { padding-top: 72px; }
  .compare { grid-template-columns: 1fr; }
  .subfeature { grid-template-columns: 1fr; gap: 14px; }
  footer { margin-top: 72px; }
}
