:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e3e5e8;
  --accent: #1a6bff;
  --accent-text: #0b5ae6;
  --radius: 18px;
  --max: 1040px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012;
    --bg-soft: #1a1c1f;
    --text: #f2f2f4;
    --muted: #a3a7ad;
    --line: #2c2f33;
    --accent-text: #6fa3ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "PingFang SC", "Noto Sans JP", "Noto Sans SC", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

:lang(ja) body,
body:lang(ja) { line-break: strict; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a[aria-current="page"] { color: var(--text); }
.lang { font-size: 15px; color: var(--muted); }

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 8px 16px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 16px; }
  .lang { margin-left: auto; }
}

/* Hero */
.hero { text-align: center; padding-top: 80px; padding-bottom: 64px; }
.hero .icon { width: 128px; height: 128px; margin: 0 auto 28px; filter: drop-shadow(0 10px 24px rgba(26, 107, 255, 0.28)); }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero .lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 720px; margin: 0 auto 32px; }
.hero .platforms { font-size: 15px; color: var(--muted); margin-top: 18px; }

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--accent-text); border: 1px solid var(--line); }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); margin: 0 0 40px; max-width: 720px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.soft .feature { border-color: transparent; }
.feature h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Download */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.download { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.download h3 { margin: 0 0 4px; font-size: 21px; }
.download .for { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.download p { margin: 0 0 18px; }
.badge-soon {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.req { font-size: 15px; color: var(--muted); margin: 18px 0 0; }

/* Documents (guide, privacy, support) */
.doc { max-width: 760px; padding: 56px 24px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 26px; margin: 48px 0 12px; }
.doc h3 { font-size: 20px; margin: 32px 0 8px; }
.doc li { margin: 6px 0; }
.doc .note {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}
.doc .note p { margin: 0; }
.doc .note p + p { margin-top: 8px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin: 18px 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}
.ui { font-weight: 600; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.doc pre {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 14px 18px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 16px 0;
}
.doc pre code { font-size: 14px; }
.doc .steps ul { padding-left: 20px; margin: 8px 0 0; }
.faq dt { font-weight: 600; margin-top: 24px; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer .legal { width: 100%; margin: 8px 0 0; }
