html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

:root {
  --bg: #eef3ea;
  --bg-2: #f7faf4;
  --ink: #17362c;
  --muted: #4d6358;
  --line: #cfd9c8;
  --card: #ffffff;
  --forest: #21543c;
  --forest-deep: #16392a;
  --moss: #6d8468;
  --sun: #e07a14;
  --sun-ink: #8a4300;
  --banner: #1d4634;
  --banner-text: #eef5e8;
  --focus: #c56a12;
  --shadow: #244b2e18;
  --radius: 14px;
  --wrap: min(1120px, calc(100% - 48px));
  --space: clamp(1.15rem, 2.4vw, 1.7rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121c17;
    --bg-2: #18241e;
    --ink: #e6efe4;
    --muted: #adc0b3;
    --line: #33463c;
    --card: #1b2922;
    --forest: #8fbf9f;
    --forest-deep: #b7d8c2;
    --moss: #9ab39f;
    --sun: #f0a04a;
    --sun-ink: #ffd19a;
    --banner: #244d38;
    --banner-text: #eef5e8;
    --focus: #f0a04a;
    --shadow: #00000055;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 650;
}
h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}
h3 { font-size: 1.2rem; line-height: 1.4; }
p { color: var(--muted); }
a {
  color: inherit;
  text-underline-offset: 0.28em;
  overflow-wrap: anywhere;
}
a:hover { color: var(--forest); }
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  top: -120px;
  left: 12px;
  padding: 12px 16px;
  background: var(--card);
  z-index: 8;
}
.skip:focus { top: 10px; }

.wrap,
main { width: var(--wrap); margin-inline: auto; }
main { display: block; padding-block: 0 2rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 6;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 650;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff8ef;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav [aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--forest);
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 48px;
}
.kicker {
  font-size: 0.95rem;
  color: var(--moss);
  margin-bottom: 14px;
}
.lead {
  font-size: 1.2rem;
  max-width: 40rem;
  line-height: 1.8;
  margin-top: 18px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}
.button,
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  min-width: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  touch-action: manipulation;
}
.button {
  background: var(--forest);
  color: #fff;
}
.button:hover { background: var(--forest-deep); color: #fff; }
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.store-badge {
  background: #111;
  color: #fff;
  padding: 8px 18px 8px 14px;
  border-radius: 10px;
  text-align: left;
  line-height: 1.15;
}
.store-badge:hover { color: #fff; background: #000; }
.store-badge small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.86;
}
.store-badge strong { font-size: 1.05rem; }
.store-badge svg { width: 22px; height: 22px; flex: 0 0 auto; }
.note, figcaption { font-size: 0.82rem; color: var(--moss); }
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink);
  background: color-mix(in srgb, #d7ead4 70%, var(--card));
  border-radius: 999px;
  padding: 8px 14px;
}
.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8a4a;
}

.hero-art {
  background:
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--sun) 28%, transparent), transparent 28%),
    linear-gradient(180deg, #dfe8d6, #c9d6c2);
  border-radius: 140px 140px 22px 22px;
  padding: 34px 42px 22px;
  text-align: center;
}
.hero-art .screen {
  width: min(260px, 100%);
  margin-inline: auto;
  border-radius: 22px;
  box-shadow: 0 18px 40px var(--shadow);
  border: 1px solid #d5dece;
  background: #fff;
}
.hero-art figure { margin: 0; }
.hero-art figcaption { margin-top: 14px; }

.rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 18px;
  -webkit-overflow-scrolling: touch;
}
.rail span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 0.86rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.proof {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof > div { padding: 28px 22px 28px 0; }
.proof strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
}
.proof p { margin-top: 6px; font-size: 0.95rem; }

.section { padding: 64px 0; }
.section-heading { max-width: 40rem; margin-bottom: 28px; }

.steps {
  display: grid;
  gap: 28px;
}
.step {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.1fr;
  gap: 28px;
  align-items: center;
  padding-block: 12px;
}
.step:nth-child(even) { direction: rtl; }
.step:nth-child(even) > * { direction: ltr; }
.step figure {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.step img.screen {
  width: min(220px, 100%);
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.step img.widget {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.step h3 { margin-bottom: 8px; }

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.bento .wide { grid-column: 1 / -1; }
.card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card p:last-child { margin-bottom: 0; }
.card .meta {
  color: var(--moss);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.banner {
  padding: 40px;
  background: var(--banner);
  color: var(--banner-text);
  border-radius: 18px;
}
.banner p { color: #d7e4d2; }
.banner a { color: #fff; }

.two, .topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.topics a.card {
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.topics a.card:hover { border-color: var(--forest); }
.page-head { padding: 56px 0 24px; max-width: 46rem; }
.page-head h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--moss);
  margin-bottom: 18px;
}
.crumbs a { color: var(--moss); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.article { max-width: 50rem; }
.article section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.article h2 {
  font-size: 1.45rem;
  scroll-margin-top: 108px;
}
.article h3 { font-size: 1.1rem; margin: 16px 0 8px; }

.table-wrap { overflow-x: auto; }
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--card);
  border-radius: 12px;
  text-align: start;
}
th, td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  min-width: 104px;
}
th { font-size: 0.95rem; }
td, tbody th { font-variant-numeric: tabular-nums; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
}
details p { margin-top: 12px; }

.contact {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.gallery figure { margin: 0; }
.gallery img {
  max-height: 480px;
  width: auto;
  margin-inline: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.gallery figcaption { margin-top: 10px; }

.facts {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 10px 18px;
  margin: 18px 0 0;
}
.facts dt { color: var(--moss); font-size: 0.92rem; }
.facts dd { margin: 0; }

.contents {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 16px 0 28px;
}
.contents h2 { font-size: 1.1rem; margin-bottom: 8px; }
.contents ol {
  columns: 2;
  padding-left: 1.2rem;
  margin: 0;
  column-gap: 32px;
}
.contents li { break-inside: avoid; }

.policy-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 28px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
  margin-top: 48px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer a {
  display: inline-block;
  padding: 8px 12px 8px 0;
  min-height: 44px;
}
.footer .note { max-width: 44rem; }
.price {
  font-size: 2.4rem;
  color: var(--ink);
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.price small { font-size: 0.95rem; color: var(--muted); }

.notice {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.digest, .cite {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 8px 0 28px;
  max-width: 50rem;
}
.digest h2, .cite h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.digest ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}
.digest li { margin: 6px 0; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 22px;
  max-width: 48rem;
}
.split h3 { margin-bottom: 8px; }
.topic-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.topic-list a {
  display: grid;
  gap: 4px;
  text-decoration: none;
  padding: 16px 12px 16px 0;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}
.topic-list a:hover { color: var(--forest); }
.topic-list span { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 860px) {
  .hero, .step, .step:nth-child(even), .bento, .two, .topics, .proof, .facts, .split, .topic-list {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .hero { gap: 28px; padding: 40px 0; }
  .hero-art { max-width: 420px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 0; }
  .contents ol { columns: 1; }
  .banner { padding: 24px; }
}

@media (max-width: 520px) {
  :root { --wrap: calc(100% - 32px); }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { max-height: 560px; }
  .lead { font-size: 1.05rem; }
  .nav { gap: 8px; }
  .site-nav { gap: 14px; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
