:root {
  --bg: #ffffff;
  --fg: #111114;
  --muted: #6e6e76;
  --line: #e6e6ea;
  --card: #f6f6f8;
  --accent: #2f6df6;
  --accent-fg: #ffffff;
  --maxw: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --fg: #f2f2f5;
    --muted: #9a9aa4;
    --line: #26262c;
    --card: #17171c;
    --accent: #7fb0ff;
    --accent-fg: #0e0e11;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--card); padding: 2px 6px; border-radius: 6px; }

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

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; font-size: 18px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav.site a { text-decoration: none; color: var(--muted); margin-left: 20px; font-size: 14px; }
nav.site a:hover { color: var(--fg); }

.hero { padding: 80px 0 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.3; font-weight: 700; }
.hero p.lead { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 32em; }
.hero p.sub-en { margin-top: 8px; color: var(--muted); font-size: 14px; }
.hero .shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.platforms { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.pill { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.btnrow { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
.btn.ghost { border: 1px solid var(--line); }

section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 26px; margin-bottom: 8px; }
section p.intro { color: var(--muted); margin-bottom: 28px; max-width: 44em; }
section h3 { font-size: 18px; margin: 0 0 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card .num { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.flow .step { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.flow .step strong { display: block; font-size: 16px; }
.flow .step span { color: var(--muted); font-size: 14px; }

ul.list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 24px; }
ul.list li { padding-left: 1.4em; position: relative; color: var(--fg); font-size: 15px; }
ul.list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; width: 32%; }
.tablewrap { overflow-x: auto; }

.note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; color: var(--muted); font-size: 14px; }

article.doc { max-width: 760px; padding: 48px 0 24px; }
article.doc h1 { font-size: 32px; margin-bottom: 8px; }
article.doc .date { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
article.doc h2 { font-size: 20px; margin: 32px 0 8px; }
article.doc p, article.doc li { margin-bottom: 10px; }
article.doc ul { padding-left: 1.4em; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { text-decoration: none; margin-right: 16px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 32px; }
  .hero h1 { font-size: 32px; }
  nav.site a { margin-left: 14px; }
}
