:root {
  --bg: #0f172a;
  --bg-deep: #070b16;
  --surface: #1e293b;
  --line: rgba(248, 250, 252, 0.14);
  --text: #f8fafc;
  --muted: #b6c2d2;
  --primary: #38bdf8;
  --volt: #d6f24a;
  --gradient: linear-gradient(135deg, #0ea5e9, #2563eb);
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
html[lang="ja"] body { line-break: strict; word-break: auto-phrase; }
html[lang="ko"] body { word-break: keep-all; }
img { display: block; max-width: 100%; }
a { color: var(--primary); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 2; background: linear-gradient(rgba(7, 11, 22, 0.8), rgba(7, 11, 22, 0)); }
.legal-page .site-header { position: static; background: none; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.lang { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.lang a { display: block; padding: 4px 9px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--text); background: rgba(248, 250, 252, 0.12); }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: min(100svh, 820px); overflow: hidden; background: var(--bg-deep); }
.hero-photo { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-deep) 34%, rgba(7, 11, 22, 0.55) 58%, rgba(7, 11, 22, 0) 80%), linear-gradient(0deg, var(--bg-deep), rgba(7, 11, 22, 0) 22%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 72px; }
.hero-copy { max-width: 620px; }
.hero-copy .lead, .hero-copy .cta-note { max-width: 520px; }
.phrase { display: inline-block; }
.eyebrow { margin: 0 0 14px; color: var(--volt); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
h1 { margin: 0 0 20px; font-size: clamp(28px, 4.4vw, 52px); line-height: 1.22; letter-spacing: -0.01em; }
.lead { margin: 0 0 30px; color: #dbe4ef; font-size: 18px; }
.cta { display: inline-block; padding: 14px 26px; border-radius: 12px; background: var(--gradient); color: #fff; font-weight: 700; text-decoration: none; transition: transform 0.15s ease, filter 0.15s ease; }
.cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cta-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 88px 0; background: var(--bg); }
.section.deep { background: var(--bg-deep); }
h2 { margin: 0 0 14px; font-size: clamp(27px, 3.6vw, 38px); line-height: 1.3; }
.section-lead { max-width: 640px; margin: 0 0 40px; color: var(--muted); }

/* Analysis split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: center; }
.features { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.features li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.features h3 { margin: 0 0 4px; font-size: 18px; }
.features p { margin: 0; color: var(--muted); }

/* Phone mock */
.phone { padding: 10px; border: 1px solid var(--line); border-radius: 38px; background: #020409; box-shadow: 0 30px 70px rgba(14, 165, 233, 0.18); }
.screen { overflow: hidden; border-radius: 29px; background: var(--bg); }
.screen-thumb { position: relative; height: 188px; overflow: hidden; }
.screen-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.play { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(15, 23, 42, 0.72); }
.play::after { content: ""; position: absolute; top: 14px; left: 18px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.screen-body { padding: 16px; }
.screen-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.next { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: #1f3a55; }
.next small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.next strong { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; }
.evidence { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.time { flex: none; padding: 1px 7px; border-radius: 6px; background: rgba(56, 189, 248, 0.16); color: var(--primary); font-variant-numeric: tabular-nums; font-weight: 700; }
.mock-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid var(--primary); }
.steps li::before { content: counter(step); display: block; margin-bottom: 8px; color: var(--primary); font-size: 30px; font-weight: 700; line-height: 1.2; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

/* Plans */
.table-scroll { overflow-x: auto; }
.plans { width: 100%; min-width: 460px; border-collapse: collapse; }
.plans th, .plans td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.plans thead th { font-size: 18px; }
.plans thead th:last-child { color: var(--primary); }
.plans tbody th { color: var(--muted); font-weight: 400; }
.plans-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* Privacy band */
.privacy-band { position: relative; overflow: hidden; }
.privacy-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0.32; }
.privacy-band .wrap { position: relative; }
.privacy-band ul { max-width: 660px; margin: 0 0 22px; padding-left: 20px; }
.privacy-band li { margin-bottom: 8px; }
.closing { padding: 88px 0; background: var(--bg-deep); text-align: center; }
.closing p { margin: 0 0 26px; color: var(--muted); }

/* Footer */
.site-footer { padding: 32px 0 44px; border-top: 1px solid var(--line); background: var(--bg-deep); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); }
.site-footer p { margin: 0; }

/* Legal */
.legal { max-width: 780px; padding-top: 44px; padding-bottom: 80px; }
.legal h1 { margin-bottom: 10px; font-size: clamp(30px, 4.4vw, 42px); }
.legal .meta { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.legal h2 { margin: 42px 0 12px; padding-top: 8px; font-size: 21px; line-height: 1.45; }
.legal h3 { margin: 24px 0 8px; font-size: 17px; }
.legal p, .legal li { color: #dfe7f1; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.toc { padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: 3px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); }
.table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal thead th { background: var(--surface); white-space: nowrap; }
.legal tr:last-child td { border-bottom: 0; }

/* Language chooser */
.chooser { display: grid; place-content: center; gap: 16px; min-height: 100svh; padding: 24px; text-align: center; }
.chooser ul { display: flex; justify-content: center; gap: 18px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-photo { position: relative; width: 100%; height: 62vw; min-height: 320px; max-height: 480px; object-position: 50% 8%; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
  .hero::after { display: none; }
  .hero .wrap { margin-top: -40px; padding-top: 0; padding-bottom: 56px; }
  h1 { font-size: clamp(28px, 8vw, 44px); }
  .lead { font-size: 17px; }
  .section, .closing { padding: 64px 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .phone-col { max-width: 340px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand span { font-size: 14px; }
  .lang a { padding: 4px 7px; }
}

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