
:root {
  --sky-top: #38bdf8;
  --sky-mid: #bae6fd;
  --sky-bot: #fef3c7;
  --car: #ef4444;
  --car-dark: #b91c1c;
  --road: #075985;
  --road-lit: #0369a1;
  --ink: #0f172a;
  --ink-soft: #334155;
  --card: #ffffff;
  --line: #dbeafe;
  --pad: 20px;
  --radius: 18px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--sky-mid);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.lang-ja { font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif; }
.lang-ko { font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--road); }

body.page-index { position: relative; }
.langpick { position: absolute; top: 10px; right: 12px; z-index: 10; font-size: 14px; }
.langpick summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); color: #04283d;
  border: 1px solid rgba(4, 40, 61, .14);
  line-height: 1.3;
}
.langpick summary::-webkit-details-marker { display: none; }
.langpick ul {
  position: absolute; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  min-width: 190px; max-height: 70vh; overflow: auto;
  background: #fff; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .2);
}
.langpick li a, .langpick li span {
  display: block; padding: 7px 12px; border-radius: 10px;
  color: #04283d; text-decoration: none; white-space: nowrap;
}
.langpick li a:hover, .langpick li a:focus-visible { background: #f0f9ff; }
.langpick [aria-current] { font-weight: 700; background: #e0f2fe; }

@media (max-width: 719px) { body.page-index .hero { padding-top: 52px; } }

.foot-langs { margin-top: 12px; font-size: 13px; line-height: 1.9; opacity: .9; }
.foot-langs [aria-current] { font-weight: 700; }

.page { margin: 0; }

.hero {
  padding: 34px var(--pad) 40px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(255,255,255,.75), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bot) 100%);
}
.hero .appicon {
  width: 96px; height: 96px; margin: 0 auto 12px;
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(7, 89, 133, .28);
}
.appname {
  margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .02em;
  color: var(--road);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 8vw, 40px); line-height: 1.25; font-weight: 800;
}
.lead { margin: 0 auto 20px; max-width: 34em; font-size: 17px; }
.note { margin: 14px auto 0; max-width: 34em; font-size: 15px; color: var(--ink-soft); }

.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.btn {
  display: inline-block; width: 100%; max-width: 320px;
  padding: 15px 22px;
  border-radius: 999px;
  font-size: 17px; font-weight: 700; line-height: 1.3;
  text-align: center; text-decoration: none;
}
.btn-play {
  background: var(--car-dark); color: #fff;
  border: 3px solid var(--car);
  box-shadow: 0 4px 0 rgba(127, 29, 29, .55);
}
.btn-ghost {
  background: #fff; color: var(--road);
  border: 3px solid var(--road-lit);
}
.btn-appstore {
  background: var(--road); color: #fff;
  border: 3px solid var(--road-lit);
  box-shadow: 0 4px 0 rgba(3, 44, 71, .55);
}

.shot {
  padding: 30px var(--pad);
  background: linear-gradient(180deg, var(--sky-bot) 0%, #ffffff 70%);
}
.shot img {
  width: 100%; max-width: 268px; margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
}

section { margin: 0; }
.how, .parents, .close { padding: 34px var(--pad); }
.how { background: #fff; }
h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.35; font-weight: 800; text-align: center; }

.steps { counter-reset: s; list-style: none; margin: 0 auto; padding: 0; max-width: 30em; }
.steps li {
  counter-increment: s; position: relative;
  margin: 0 0 14px; padding: 14px 16px 14px 58px;
  background: #f0f9ff; border-radius: var(--radius);
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 14px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--road-lit); color: #fff;
  font-weight: 800; font-size: 16px; line-height: 30px; text-align: center;
}

.parents { background: var(--sky-mid); }
.facts { list-style: none; margin: 0 auto 18px; padding: 0; max-width: 32em; }
.facts li {
  margin: 0 0 10px; padding: 14px 16px;
  background: var(--card); border-radius: var(--radius);
  border-left: 6px solid var(--road-lit);
}
.more { margin: 0; text-align: center; }
.more a { font-weight: 700; }

.close { background: #fff; text-align: center; }
.close .lead { margin-bottom: 20px; }

.foot {
  padding: 22px var(--pad) 30px;
  background: var(--road); color: #e0f2fe;
  font-size: 15px; text-align: center;
}
.foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.policy-body { max-width: 44em; margin: 0 auto; padding: 30px var(--pad); background: #fff; }
.policy-body h1 { font-size: 26px; line-height: 1.3; margin: 0 0 14px; }
.policy-body h2 { font-size: 19px; text-align: left; margin: 26px 0 8px; }
.policy-body .lead { margin-bottom: 8px; }
table.policy { width: 100%; border-collapse: collapse; margin: 6px 0 8px; }
table.policy th, table.policy td {
  text-align: left; vertical-align: top; padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
table.policy th { width: 32%; font-weight: 700; color: var(--road); }
.eff { color: var(--ink-soft); font-size: 15px; }
.back { max-width: 44em; margin: 0 auto; padding: 0 var(--pad) 26px; background: #fff; }
.back a { font-weight: 700; }
.page-privacy body, .page-privacy { background: #fff; }

@media (max-width: 559px) {
  table.policy, table.policy tbody, table.policy tr,
  table.policy th, table.policy td { display: block; width: auto; }
  table.policy tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.policy th { border: 0; padding: 0 0 2px; }
  table.policy td { border: 0; padding: 0; }
}

@media (min-width: 720px) {
  body { font-size: 18px; }
  .hero { padding: 52px var(--pad) 60px; }
  .hero .appicon { width: 120px; height: 120px; }
  .cta { flex-direction: row; justify-content: center; }
  .btn { width: auto; min-width: 260px; }
  .how, .parents, .close { padding: 52px var(--pad); }
  h2 { font-size: 26px; }
  .shot img { max-width: 320px; }
  .steps { max-width: 34em; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: transform .12s ease; }
  .btn-play:active, .btn-appstore:active { transform: translateY(2px); }
}
