:root {
  color-scheme: dark;
  --background: #0f1119;
  --background-deep: #0b0d14;
  --surface: #171a27;
  --surface-hover: #1e2132;
  --border: #292c3e;
  --text: #f4f1fa;
  --muted: #a7abc2;
  --subtle: #8389a4;
  --violet: #b49aff;
  --violet-strong: #8666f2;
  --mint: #5ce0b0;
  --salmon: #ff8b9a;
  --amber: #ffcf7a;
  --rounding: .85rem;
  --width: 72rem;
  font-family: "Barlow", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 500;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; color: var(--text); background: var(--background); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--violet); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { word-break: auto-phrase; text-wrap: balance; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; padding: .1em .4em; border-radius: .35rem; background: #232638; color: #ddd3ff; word-break: break-all; }
:focus-visible { outline: 2px solid #c7aeff; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 20; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .6rem 1rem; border-radius: .4rem; background: var(--surface); color: var(--text); }
.skip:focus { transform: none; }
.container { width: min(100% - 2.5rem, var(--width)); margin-inline: auto; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: #0f1119d9; backdrop-filter: blur(14px); border-bottom: 1px solid #1f2232; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; flex: none; }
.brand-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: linear-gradient(145deg, #1c1830, #12101e); border: 1px solid #4b3b82; box-shadow: 0 4px 20px #986aff2c; }
.brand-mark svg { width: 1.75rem; height: 1.75rem; display: block; }
.brand strong { font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; }
.site-nav { display: flex; gap: .25rem; margin-left: auto; }
.site-nav a { padding: .45rem .7rem; border-radius: .5rem; color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: #1a1d2a; }
.menu-button { display: none; margin-left: auto; width: 2.6rem; height: 2.6rem; border: 1px solid var(--border); border-radius: .6rem; background: var(--surface); color: var(--text); cursor: pointer; }
.menu-button svg { width: 1.2rem; height: 1.2rem; margin: auto; }

/* ボタン */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .75rem 1.25rem; border-radius: .65rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.button:hover { background: var(--surface-hover); }
.button svg { width: 1.15rem; height: 1.15rem; flex: none; }
.button.primary { border-color: transparent; background: linear-gradient(145deg, #c3a6ff, #9572ff); color: #1b1233; box-shadow: 0 8px 30px #9a74ff40; }
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px #9a74ff60; }
.button.large { padding: 1rem 1.6rem; font-size: 1.05rem; }
.button.small { padding: .5rem .9rem; font-size: .88rem; }

/* ヒーロー */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4rem; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 46rem; background: radial-gradient(closest-side, #7b55ff38, transparent 70%), radial-gradient(closest-side at 80% 30%, #5ce0b014, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; margin: 0 auto 1.4rem; padding: .35rem .85rem; border: 1px solid #3c315b; border-radius: 999px; background: #1d1830; color: #ddccff; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.eyebrow span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.hero h1 { font-size: clamp(1.85rem, 6.4vw, 4rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #d6c5ff, #9d7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 40rem; margin: 1.4rem auto 0; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem; }
.download-meta { margin-top: 1rem; color: var(--subtle); font-size: .88rem; }
.download-meta strong { color: var(--muted); }
.invite-note { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; padding: .45rem .9rem; border-radius: .55rem; background: #2a2236; color: #e9dcff; font-size: .88rem; }
.invite-note svg { width: 1rem; height: 1rem; color: var(--violet); flex: none; }
.window { border: 1px solid #2d3046; border-radius: 1rem; overflow: hidden; background: var(--background-deep); box-shadow: 0 30px 80px #00000080, 0 0 0 1px #ffffff06 inset; }
.window-bar { display: flex; align-items: center; gap: .4rem; height: 2.1rem; padding: 0 .9rem; background: #151826; border-bottom: 1px solid #23263a; }
.window-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #34384f; }
.window-bar span { margin-left: .6rem; color: var(--subtle); font-size: .75rem; font-weight: 700; letter-spacing: .05em; }
.hero-shot { max-width: 62rem; margin: 0 auto; }

/* セクション */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--background-deep); border-block: 1px solid #1b1e2c; }
.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.section-head .kicker { color: var(--violet); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { margin-top: .5rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.3; }
.section-head p { margin-top: 1rem; color: var(--muted); }

/* 機能 */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature { position: relative; padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); }
.feature .icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.1rem; border-radius: .65rem; background: #282139; color: #c3a6ff; }
.feature .icon svg { width: 1.3rem; height: 1.3rem; }
.feature.mint .icon { background: #173129; color: var(--mint); }
.feature.salmon .icon { background: #34202a; color: var(--salmon); }
.feature h3 { font-size: 1.08rem; font-weight: 800; }
.feature p { margin-top: .5rem; color: var(--muted); font-size: .94rem; }
.badge { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: .4rem; background: #3a2f17; color: var(--amber); font-size: .72rem; font-weight: 700; vertical-align: .15em; }

/* 画面 */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; width: fit-content; margin: 0 auto 1.6rem; padding: .3rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); }
.tabs button { padding: .5rem 1rem; border: 0; border-radius: .5rem; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: #282139; color: #ddccff; box-shadow: 0 0 0 1px #3c315b inset; }
.gallery { max-width: 62rem; margin: 0 auto; }
.gallery figcaption { margin-top: 1rem; color: var(--muted); text-align: center; font-size: .95rem; }
.fine { color: var(--subtle); font-size: .82rem; text-align: center; margin-top: .6rem; }

/* 安全性 */
.safety { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.safety-item { display: flex; gap: 1rem; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); }
.safety-item .check { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: #173129; color: var(--mint); }
.safety-item .check svg { width: 1.05rem; height: 1.05rem; }
.safety-item h3 { font-size: 1.02rem; font-weight: 800; }
.safety-item p { margin-top: .35rem; color: var(--muted); font-size: .93rem; }
.callout { display: flex; gap: .9rem; margin-top: 1.5rem; padding: 1.1rem 1.3rem; border: 1px solid #4a3a1c; border-radius: var(--rounding); background: #221c10; color: #f3e3c2; font-size: .93rem; }
.callout svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--amber); margin-top: .15rem; }

/* はじめ方 */
.steps { display: grid; gap: 1rem; max-width: 50rem; margin: 0 auto; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 1.4rem 1.5rem 1.4rem 4.6rem; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 1.4rem; top: 1.35rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: linear-gradient(145deg, #c3a6ff, #9572ff); color: #1b1233; font-weight: 800; }
.steps h3 { font-size: 1.05rem; font-weight: 800; }
.steps p { margin-top: .4rem; color: var(--muted); font-size: .94rem; }
.steps .button { margin-top: .9rem; }
.smartscreen { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin-top: .9rem; padding: 1rem 1.1rem; border-radius: .6rem; background: #10131d; border: 1px solid #23263a; font-size: .9rem; color: var(--muted); }
.smartscreen b { color: var(--text); white-space: nowrap; }

/* 動作環境 */
.spec { width: 100%; max-width: 50rem; margin: 3rem auto 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--rounding); overflow: hidden; background: var(--surface); font-size: .94rem; }
.spec caption { padding-bottom: 1rem; font-size: 1.2rem; font-weight: 800; text-align: left; }
.spec th, .spec td { padding: .9rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 11rem; color: var(--muted); font-weight: 700; background: #141725; }

/* FAQ */
.faq { max-width: 50rem; margin: 0 auto; display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: .6rem; height: .6rem; flex: none; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .94rem; }
.faq details > div p + p { margin-top: .6rem; }

/* 更新履歴 */
.changelog { max-width: 50rem; margin: 0 auto; display: grid; gap: .8rem; }
.release { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 1.4rem; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); }
.release.latest { border-color: #4b3b78; background: linear-gradient(135deg, #211b36, var(--surface) 60%); }
.release-version strong { display: block; font-size: 1.15rem; font-weight: 800; }
.release-version small { color: var(--subtle); }
.release-version .tag { display: inline-block; margin-top: .3rem; padding: .05rem .5rem; border-radius: .4rem; background: #173129; color: var(--mint); font-size: .72rem; font-weight: 700; }
.release ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .94rem; }

/* CTA */
.cta { text-align: center; }
.cta-box { padding: 3.5rem 2rem; border: 1px solid #3c315b; border-radius: 1.2rem; background: radial-gradient(circle at 50% 0%, #6d4bff33, transparent 60%), var(--surface); }
.cta-box h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
.cta-box p { margin-top: .8rem; color: var(--muted); }
.cta-box .hero-actions { margin-top: 1.8rem; }

/* フッター */
.site-footer { padding: 3rem 0 2.5rem; border-top: 1px solid #1f2232; background: var(--background-deep); color: var(--subtle); font-size: .85rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.legal { margin-top: 1.8rem; display: grid; gap: .5rem; line-height: 1.65; }

/* 規約などの文書ページ */
.doc { max-width: 48rem; padding: 4rem 0 5rem; }
.doc h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800; }
.doc .updated { margin-top: .6rem; color: var(--subtle); font-size: .9rem; }
.doc h2 { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: 1.25rem; font-weight: 800; }
.doc h3 { margin-top: 1.5rem; font-size: 1.05rem; font-weight: 800; }
.doc p, .doc li { color: #cfd1e0; font-size: .97rem; }
.doc p { margin-top: .9rem; }
.doc ul, .doc ol { margin: .8rem 0 0; padding-left: 1.4rem; }
.doc li + li { margin-top: .35rem; }
.doc table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: .92rem; }
.doc th, .doc td { padding: .7rem .8rem; border: 1px solid var(--border); text-align: left; vertical-align: top; color: #cfd1e0; }
.doc th { background: #141725; color: var(--muted); }
.draft { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px solid #4a3a1c; border-radius: var(--rounding); background: #221c10; color: #f3e3c2; font-size: .93rem; }

/* 狭い画面 */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-button { display: grid; }
  .site-nav { position: absolute; top: 4.25rem; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: .6rem 1.25rem 1rem; background: #0f1119f5; border-bottom: 1px solid #1f2232; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .6rem; }
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .features, .safety { grid-template-columns: minmax(0, 1fr); }
  .release { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .spec th { width: 7.5rem; }
  .steps li { padding: 1.3rem 1.2rem 1.3rem 4rem; }
  .steps li::before { left: 1rem; }
  .smartscreen { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .faq summary::after { transition: none; }
}

/* 文書ページの見出しの戻るリンク（狭い画面でも出す） */
.site-nav.static { display: flex; position: static; flex-direction: row; margin-left: auto; padding: 0; background: none; border: 0; }
