/* 色と角丸はアプリ本体（App.xaml のデザイントークン）に合わせている */
:root {
  --canvas: #0c0e12;
  --window: #111318;
  --card: #181c22;
  --border: #2a2f37;
  --border-control: #3a414b;
  --accent: #007acc;
  --accent-hover: #1a8fe0;
  --accent-text: #4db3ff;
  --text: #e1e4e8;
  --text-secondary: #9aa0a8;
  --text-muted: #7b838d;
  --heading: #9cdcfe;
  --warning: #ffcc66;
  --radius-card: 8px;
  --radius-control: 4px;
  --font-ui: "Segoe UI", "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ── ヘッダ ── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 14, 18, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--text); }

/* ── ボタン ── */
.button {
  display: inline-block;
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-control);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  transition: background-color 0.15s;
}
.button:hover { background: var(--accent-hover); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.button-small { padding: 7px 16px; font-size: 14px; }
.button-large { padding: 16px 40px; font-size: 18px; }
.button[aria-disabled="true"] { background: #262b33; color: var(--text-muted); pointer-events: none; }

/* ── ヒーロー ── */
.hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--window), var(--canvas) 70%); }
.eyebrow { margin: 0 0 14px; color: var(--accent-text); font-size: 14px; letter-spacing: 0.06em; }
h1 { margin: 0; font-size: clamp(32px, 5.4vw, 54px); line-height: 1.3; letter-spacing: 0.01em; }
.narrow-break { display: none; }
.lead { max-width: 40em; margin: 22px 0 0; color: var(--text-secondary); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.hero-note { color: var(--text-muted); font-size: 14px; }

.shot { margin: 52px 0 0; }
.shot img { border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.shot figcaption { margin-top: 12px; color: var(--text-muted); font-size: 13px; text-align: center; }

/* ── 節 ── */
.section { padding: 76px 0; }
.section-alt { background: var(--window); border-block: 1px solid var(--border); }
h2 { margin: 0 0 30px; font-size: 26px; line-height: 1.4; }
h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.5; color: var(--heading); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 22px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); }
.card p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* ── 始めかた ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 10px;
  color: var(--warning); font-family: Consolas, "Cascadia Mono", monospace; font-size: 30px; font-weight: 700; line-height: 1;
}
.steps p { margin: 0; color: var(--text-secondary); font-size: 15px; }

.sub-heading { margin: 48px 0 14px; color: var(--text); font-size: 19px; }
.specs { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 20px; background: var(--card); }
.specs > div + div { border-top: 1px solid var(--border); }
.specs dt { color: var(--text-muted); font-size: 14px; }
.specs dd { margin: 0; font-size: 15px; }

/* ── ダウンロード ── */
.download { text-align: center; }
.download h2 { margin-bottom: 22px; }
.download-meta { margin: 14px 0 0; color: var(--text-secondary); font-size: 14px; }
.download-help { max-width: 36em; margin: 20px auto 0; color: var(--text-muted); font-size: 13px; }
.notice {
  max-width: 34em; margin: 0 auto 22px; padding: 12px 18px;
  border: 1px solid var(--border-control); border-left: 3px solid var(--warning); border-radius: var(--radius-control);
  background: var(--card); color: var(--warning); font-size: 15px; text-align: left;
}

.footnote { margin: 18px 0 0; color: var(--text-muted); font-size: 14px; }

/* ── よくある質問 ── */
.faq { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.faq details { background: var(--card); }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 600; }
.faq summary:hover { background: #1e2229; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--text-secondary); font-size: 15px; }

/* ── フッタ ── */
.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text); }

/* ── 特定商取引法に基づく表示 ── */
.legal h1 { margin-bottom: 30px; font-size: clamp(24px, 4vw, 32px); }
.legal-list > div { grid-template-columns: 210px 1fr; }

/* ── 404 ── */
.not-found { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 18px; }
.not-found p { margin: 0; color: var(--text-secondary); }

/* ── 幅の狭い画面 ── */
@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .header-inner .button { margin-left: auto; }
}
@media (max-width: 560px) {
  .grid, .grid-2, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .section { padding: 56px 0; }
  .narrow-break { display: inline; }
  .specs > div { grid-template-columns: 1fr; gap: 2px; }
  .button-large { display: block; padding-inline: 16px; }
}

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