/* 共通スタイル（全ページ共通） */
:root {
  --fg: #1d2330;
  --muted: #5b6475;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --line: #d8dde6;
  --accent: #1a5fd0;
  --accent-fg: #ffffff;
  --ok: #19703a;
  --ok-bg: #e8f6ec;
  --warn: #8a5a00;
  --warn-bg: #fff6df;
  --bad: #b3261e;
  --bad-bg: #fdecea;
  --radius: 10px;
  --max: 920px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-block: 10px; }
.site-name { font-weight: 700; color: var(--fg); text-decoration: none; }
.site-header nav a { margin-inline-start: 12px; font-size: .95rem; }
.privacy-note { font-size: .85rem; color: var(--ok); background: var(--ok-bg); padding: 2px 10px; border-radius: 999px; }

/* 本文 */
main { padding-block: 24px 48px; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.35; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 40px 0 12px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.small { font-size: .875rem; color: var(--muted); }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); }
.card + .card { margin-top: 12px; }

button, .button {
  font: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  text-decoration: none;
}
button.secondary { background: var(--bg); color: var(--accent); }
button:disabled { opacity: .5; cursor: not-allowed; }

select { font: inherit; min-height: 44px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); max-width: 100%; }

/* 使い方3ステップ */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px 14px 56px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; inset-inline-start: 14px; inset-block-start: 14px;
  inline-size: 30px; block-size: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: grid; place-items: center; font-weight: 700;
}

/* よくある質問 */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 12px; }
.faq details > div { padding-bottom: 12px; }

/* 関連ツール・一覧 */
.tool-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tool-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tool-list .name { font-weight: 700; display: block; }
.tool-list .soon { color: var(--muted); }
.badge { display: inline-block; font-size: .75rem; padding: 0 8px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); vertical-align: middle; }

/* 誘導枠 */
.cta { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cta .card { background: var(--bg-soft); border: none; }
.cta h3 { margin-top: 0; }

/* 動画枠 */
.video-frame {
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

/* フッター */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .875rem; color: var(--muted); }
.site-footer .wrap { padding-block: 20px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
