:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --card: #ffffff;
  --ink: #0c1b26;
  --ink-soft: #4a5c6a;
  --ink-faint: #5f6f7a;
  --line: #e1e7eb;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: #eef2ff;
  --glow: rgba(99, 102, 241, 0.16);
  --shadow: 0 1px 2px rgba(12, 27, 38, 0.05), 0 10px 30px rgba(12, 27, 38, 0.06);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f19;
    --bg-soft: #10162a;
    --card: #141b2e;
    --ink: #e8eef2;
    --ink-soft: #a5b4bf;
    --ink-faint: #7e8f9a;
    --line: #222b45;
    --accent: #a5b4fc;
    --accent-strong: #c7d2fe;
    --accent-soft: #1e1b4b;
    --glow: rgba(129, 140, 248, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-soft: #10162a;
  --card: #141b2e;
  --ink: #e8eef2;
  --ink-soft: #a5b4bf;
  --ink-faint: #7e8f9a;
  --line: #222b45;
  --accent: #a5b4fc;
  --accent-strong: #c7d2fe;
  --accent-soft: #1e1b4b;
  --glow: rgba(129, 140, 248, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ja) body, body:lang(ja) { line-height: 1.8; font-feature-settings: "palt" 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4 { letter-spacing: 0.01em; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4, .contact p { text-wrap: balance; }
/* Japanese breaks between phrases, not inside words, where the browser can (Chrome, Edge). */
:lang(ja) :is(h1, h2, h3, h4, p, .lead, .eyebrow, summary) { word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 16px; }
/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: 0.08em; font-size: 15px; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.lang {
  font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.lang:hover { color: var(--ink); border-color: var(--ink-faint); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
:lang(ja) .eyebrow { letter-spacing: 0.12em; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600;
  background: var(--accent); color: #fff;
  transition: background 0.15s ease;
}
.button:hover { background: var(--accent-strong); color: #fff; }
.ctas { display: inline-flex; flex-wrap: wrap; gap: 12px; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover { background: var(--bg-soft); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button:not(.ghost) { color: #0b0a2e; } }
:root[data-theme="dark"] .button:not(.ghost) { color: #0b0a2e; }
/* Sections */
section.block { padding: 96px 0; }
section.soft { background: var(--bg-soft); }
.section-title { font-size: clamp(30px, 4.4vw, 44px); font-weight: 720; letter-spacing: -0.025em; margin-bottom: 48px; }
:lang(ja) .section-title { letter-spacing: 0.02em; }

/* The brand in the header: the app's icon and name */
.brand { letter-spacing: 0; font-size: 16px; }
.brand img { border-radius: 22.5%; }

/* Hero */
.p-hero { padding: 64px 0 40px; overflow: hidden; background: radial-gradient(60% 70% at 70% 0%, var(--glow), transparent 70%); }
.p-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.p-hero h1 { font-size: clamp(34px, 4.6vw, 50px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.12; margin: 14px 0 20px; }
.p-hero h1:lang(ja) { font-size: clamp(28px, 3.9vw, 42px); letter-spacing: 0; line-height: 1.3; }
.p-hero .lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--ink-soft); max-width: 520px; }
.p-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.p-hero-img { width: 100%; height: auto; max-width: 620px; justify-self: end; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e2a400; }

/* Features */
.p-feature { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.p-feature + .p-feature { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.p-feature:nth-child(even) .p-feature-copy { order: 2; }
.p-feature h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 720; letter-spacing: -0.02em; line-height: 1.2; }
.p-feature p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); max-width: 460px; }
.p-shot { width: 340px; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }

/* Privacy principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.principle svg { width: 28px; height: 28px; color: var(--accent); }
.principle h3 { font-size: 19px; font-weight: 700; margin: 16px 0 8px; }
.principle p { color: var(--ink-soft); font-size: 16px; }
.p-more { margin-top: 32px; font-weight: 600; }

/* Questions */
.p-faq { max-width: 760px; }
.p-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.p-faq details:first-of-type { border-top: 1px solid var(--line); }
.p-faq summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; font-size: 22px; line-height: 1; }
.p-faq details[open] summary::after { content: "−"; }
.p-faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Closing */
.contact { text-align: center; }
.contact .p-cta { justify-content: center; margin-top: 0; }

/* The privacy policy */
.doc { padding: 56px 0 88px; }
.doc article { max-width: 720px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 720; letter-spacing: -0.02em; line-height: 1.25; }
.doc-date { margin-top: 12px; font-size: 14px; color: var(--ink-faint); }
.doc-intro { margin-top: 28px; font-size: 17px; }
.doc h2 { margin-top: 44px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.doc p, .doc li { line-height: 1.8; color: var(--ink-soft); }
.doc h2 + p, .doc h2 + ul { margin-top: 12px; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.3em; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc a { overflow-wrap: anywhere; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--ink-faint); }
footer .foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .foot-row > a:last-child { margin-left: auto; }
footer a { color: var(--ink-soft); }

@media (max-width: 860px) {
  .p-hero { padding-top: 40px; }
  .p-hero-grid { grid-template-columns: 1fr; }
  .p-hero-img { justify-self: center; }
  .p-feature { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .p-feature-copy, .p-feature:nth-child(even) .p-feature-copy { order: 0; justify-self: stretch; }
  .p-shot { width: min(100%, 320px); }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  section.block { padding: 72px 0; }
  .section-title { margin-bottom: 32px; }
  footer .foot-row > a:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
