/* I'm OK — landing page v2 (prototype). Light, calm, large type. Tokens first. */

:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --ink: #17201b;
  --muted: #56615a;
  --line: #dfe3dc;
  --brand: #ffe600;
  --brand-ink: #17201b;
  --line-green: #06c755;
  --ok: #1d7f49;
  --ok-surface: #e3f3e8;
  --alert: #cf3f2a;
  --band: #14201a;
  --band-ink: #eef2ec;
  --band-muted: #a9b8ae;
  --shadow: 0 1px 2px rgba(23, 32, 27, .06), 0 12px 32px rgba(23, 32, 27, .08);

  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1511;
    --surface: #18211b;
    --ink: #f0f4ee;
    --muted: #a9b5ac;
    --line: #2b362e;
    --ok: #6fd39a;
    --ok-surface: #17301f;
    --alert: #ff8a73;
    --band: #0a0f0c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1511;
  --surface: #18211b;
  --ink: #f0f4ee;
  --muted: #a9b5ac;
  --line: #2b362e;
  --ok: #6fd39a;
  --ok-surface: #17301f;
  --alert: #ff8a73;
  --band: #0a0f0c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  font-feature-settings: "palt";
  word-break: auto-phrase;   /* Chrome/Edge: break Japanese at phrase boundaries */
  line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.35; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.trial em { font-style: normal; font-weight: 400; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.ph { display: inline-block; }           /* keeps Japanese phrases from breaking mid-word */
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* language: both languages are in the HTML; CSS shows one */
html[lang="ja"] [data-l="en"], html[lang="en"] [data-l="ja"] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { min-height: 44px; font-family: var(--font-head); font-weight: 900; font-size: 24px; letter-spacing: .02em; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.logo b { background: var(--brand); color: var(--brand-ink); border-radius: 8px; padding: 5px 7px 4px; font-weight: 900; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 16px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 2px; }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 14px; background: var(--surface); }
.lang button { font: inherit; border: 0; background: transparent; color: var(--muted); padding: 5px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
html[lang="ja"] .lang [data-set="ja"], html[lang="en"] .lang [data-set="en"] { background: var(--ink); color: var(--bg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 17px/1 var(--font-head);
  min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.yellow { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- hero ---------- */
.hero { padding-block: 72px 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { font: 700 15px/1.4 var(--font-head); letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.28; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--brand) 62%); padding-inline: 2px; }
.hero .lead { margin-top: 26px; font-size: 20px; color: var(--muted); max-width: 30em; }
.hero .cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .assure { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* hero art: one phone + one LINE bubble */
.art { position: relative; min-height: 560px; display: grid; place-items: center; }
.art::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; background: color-mix(in srgb, var(--brand) 28%, var(--bg)); }
.phone { position: relative; width: 292px; aspect-ratio: 292 / 596; border-radius: 44px; background: #0b0d0c; padding: 10px; box-shadow: 0 24px 60px rgba(23, 32, 27, .28); }
.phone .screen { height: 100%; border-radius: 35px; background: #000; color: #f3f3f1; padding: 22px 16px 16px; overflow: hidden; font-family: var(--font-body); }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 99px; background: #000; }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.app-logo { font: 900 15px/1 var(--font-head); display: inline-flex; gap: 3px; align-items: center; }
.app-logo b { background: var(--brand); color: #000; border-radius: 6px; padding: 4px 5px 3px; }
.app-lang { font-size: 10px; border: 1px solid #333; border-radius: 99px; padding: 4px 9px; color: #cfcfcb; }
.app-label { margin: 22px 0 9px; font-size: 11px; color: #8d8d89; }
.card { background: #161716; border: 1px solid #262826; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.card .who { font: 700 17px/1.2 var(--font-head); display: flex; align-items: center; justify-content: space-between; }
.chip { font: 700 11px/1 var(--font-body); padding: 6px 10px; border-radius: 99px; }
.chip.ok { background: #153a24; color: #7fe3a5; }
.chip.wait { background: #262826; color: #b9b9b5; }
.card .last { margin-top: 12px; font-size: 11px; color: #9a9a96; line-height: 1.3; }
.card .time { font: 700 26px/1.1 var(--font-head); color: #fff; margin-top: 3px; letter-spacing: .01em; }
.card .sched { margin-top: 6px; font-size: 11px; color: #8d8d89; }
.card.dim .time { color: #8d8d89; font-size: 17px; }
.bubble {
  position: absolute; left: -2%; bottom: 7%; width: 232px;
  background: var(--surface); color: var(--ink); border-radius: 20px; padding: 14px 14px 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.bubble .from { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bubble .from i { width: 18px; height: 18px; border-radius: 5px; background: var(--line-green); display: inline-block; }
.bubble .msg { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.bubble .tap { margin-top: 10px; background: var(--line-green); color: #fff; border-radius: 12px; text-align: center; padding: 10px; font: 700 15px/1.2 var(--font-head); display: flex; justify-content: center; gap: 8px; align-items: center; }
.bubble .tap svg { width: 18px; height: 18px; }
.art .tag { position: absolute; font: 700 12px/1 var(--font-head); background: var(--ink); color: var(--bg); padding: 7px 12px; border-radius: 99px; white-space: nowrap; }
.art .tag.a { right: 1%; top: 8%; }
.art .tag.b { left: 2%; bottom: 31%; }

/* ---------- sections ---------- */
section { padding-block: 88px; }
.sec-head { max-width: 40em; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 19px; }
.kicker { font: 700 14px/1 var(--font-head); letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; display: block; }

/* how it works: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { counter-increment: s; }
.step figure { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); aspect-ratio: 840 / 757; }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { margin-top: 22px; font-size: 21px; display: flex; gap: 12px; align-items: baseline; }
.step h3::before { content: counter(s); font: 700 15px/1 var(--font-head); background: var(--ink); color: var(--bg); width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); }
.step p { margin-top: 8px; color: var(--muted); font-size: 17px; line-height: 1.75; }

/* no app needed */
.noapp { background: var(--surface); border-block: 1px solid var(--line); }
.noapp .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.noapp h2 { font-size: clamp(28px, 3.6vw, 40px); }
.noapp .sub { margin-top: 16px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 16px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; font: 700 19px/1.4 var(--font-head); }
.ticks svg { width: 28px; height: 28px; flex: none; color: var(--ok); }

/* alert band */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.band h2 { font-size: clamp(28px, 3.6vw, 42px); }
.band .sub { margin-top: 18px; color: var(--band-muted); font-size: 19px; max-width: 28em; }
.band .small { margin-top: 22px; font-size: 15px; color: var(--band-muted); border-left: 3px solid var(--brand); padding-left: 14px; }
.lock { justify-self: center; width: min(360px, 100%); border-radius: 36px; padding: 34px 20px 28px; background: linear-gradient(160deg, #26362d, #101a14); border: 1px solid #2f4036; text-align: center; }
.lock .date { font-size: 14px; color: #b5c4ba; }
.lock .clock { font: 700 64px/1.1 var(--font-head); letter-spacing: .01em; margin: 4px 0 26px; color: #fff; }
.notif { text-align: left; background: rgba(245, 247, 244, .94); color: #111; border-radius: 20px; padding: 14px 16px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.notif .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #000; font: 900 12px/1 var(--font-head); display: grid; place-items: center; }
.notif b { font: 700 14.5px/1.45 var(--font-body); display: block; }
.notif span { font-size: 14px; line-height: 1.55; color: #333; display: block; margin-top: 3px; }
.lock .appcard { margin-top: 16px; text-align: left; background: #0e1410; border: 1px solid #25332a; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; font: 700 16px/1.2 var(--font-head); }
.lock .appcard .chip.alert { background: #3b1a14; color: #ff9d88; display: inline-flex; align-items: center; gap: 8px; }
.lock .appcard .chip.alert i { background: #e5533d; color: #fff; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 10px; display: inline-grid; place-items: center; }

/* reasons */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.reason { padding: 30px 30px 6px 0; }
.reason + .reason { padding-left: 30px; border-left: 1px solid var(--line); }
.reason h3 { font-size: 21px; }
.reason p { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.75; }

/* pricing */
.pricing { background: var(--surface); border-block: 1px solid var(--line); }
.pricing .sec-head { margin-inline: auto; text-align: center; }
.trial { display: flex; justify-content: center; margin: -10px auto 36px; }
.trial > span { display: inline-flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 10px 22px; font: 700 16px/1.4 var(--font-head); }
.plans { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; max-width: 820px; margin-inline: auto; align-items: stretch; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: 26px; padding: 34px 32px; display: flex; flex-direction: column; }
.plan.main { background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.plan .name { font: 700 20px/1.2 var(--font-head); }
.plan .badge { position: absolute; top: -15px; right: 26px; background: var(--brand); color: var(--brand-ink); font: 700 13px/1 var(--font-head); padding: 8px 14px; border-radius: 99px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; font-family: var(--font-head); }
.price .yen { font-size: 26px; font-weight: 700; }
.price .num { font-size: 58px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.price .per { font-size: 18px; color: var(--muted); }
.plan .equiv { margin-top: 8px; color: var(--muted); font-size: 16px; min-height: 1.6em; }
.plan .save { align-self: flex-start; margin-top: 10px; font: 700 14px/1 var(--font-head); background: var(--ok-surface); color: var(--ok); border-radius: 99px; padding: 7px 12px; }
.plan ul { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; font-size: 16.5px; line-height: 1.6; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan .fine { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 0; font: 700 19px/1.5 var(--font-head); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--font-body); color: var(--muted); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 26px; color: var(--muted); font-size: 17.5px; max-width: 40em; }

/* final cta + footer */
.final { text-align: center; }
.final h2 { font-size: clamp(28px, 3.8vw, 42px); }
.final p { margin: 16px auto 30px; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.final .stores { justify-content: center; }
.badge { display: inline-block; line-height: 0; border-radius: 8px; }
.badge img { height: 52px; width: auto; display: block; }
.badge:hover { transform: translateY(-1px); }
.badge:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 52px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 8px 12px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: 18px; font-size: 13.5px; width: 100%; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  section { padding-block: 64px; }
  .hero { padding-block: 40px 56px; }
  .hero .wrap, .noapp .wrap, .band .wrap { grid-template-columns: 1fr; gap: 40px; }
  .art { min-height: 520px; }
  .steps { grid-template-columns: 1fr; gap: 40px; max-width: 520px; margin-inline: auto; }
  .reasons { grid-template-columns: 1fr; }
  .reason, .reason + .reason { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .nav { display: none; }
  .site-header .wrap { gap: 12px; }
  .site-header .btn { margin-left: auto; }
  .lang { order: 3; }
}
@media (max-width: 520px) {
  .site-header .btn.small { padding: 0 14px; }
  .site-header .wrap { gap: 8px; }
  .logo { font-size: 22px; }
  .lang button { padding: 5px 12px; }
  .hero .lead { font-size: 18px; }
  .bubble { left: 0; width: 210px; }
  .art .tag.a { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}

/* ---------- variant: dark header + hero (body stays light) ---------- */
.site-header.dark { background: color-mix(in srgb, var(--band) 92%, transparent); border-bottom-color: #25332a; color: var(--band-ink); }
.site-header.dark .nav a { color: var(--band-muted); }
.site-header.dark .nav a:hover { color: #fff; }
.site-header.dark .lang { background: transparent; border-color: #2f4036; }
.site-header.dark .lang button { color: var(--band-muted); }
html[lang="ja"] .site-header.dark .lang [data-set="ja"], html[lang="en"] .site-header.dark .lang [data-set="en"] { background: var(--brand); color: var(--brand-ink); }
.site-header.dark .btn { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.hero.dark { background: var(--band); color: var(--band-ink); }
.hero.dark .eyebrow, .hero.dark .assure { color: var(--band-muted); }
.hero.dark .lead { color: var(--band-muted); }
.hero.dark h1 em { background: none; color: var(--brand); padding: 0; }
.hero.dark .btn.ghost { color: var(--band-ink); border-color: #3a4c40; }
.hero.dark .art::before { background: color-mix(in srgb, var(--brand) 13%, var(--band)); }
.hero.dark .phone { box-shadow: 0 0 0 1px #2c3b32, 0 28px 70px rgba(0, 0, 0, .55); }
.hero.dark .art .tag { background: var(--brand); color: var(--brand-ink); }

/* very small phones: the store badges are right below, so drop the header button */
@media (max-width: 400px) {
  .site-header .btn.small { display: none; }
  .lang { margin-left: auto; }
  .badge img { height: 48px; }
}

/* touch: no double-tap zoom delay on controls, 44px+ targets */
a, button, summary { touch-action: manipulation; }
.faq summary { min-height: 44px; }
