/* KIRITSU｜規律 販売ページ
   色はここの変数だけで変えられる（黒地に緑にする時は --bg と --surface を変える） */
:root {
  --bg: #10141a;
  --bg-soft: #141a21;
  --surface: #1c232c;
  --surface-2: #232c37;
  --line: #2e3945;
  --text: #e8edf2;
  --muted: #98a3ae;
  --accent: #46cd78;
  --accent-ink: #0d1a12;
  --warn: #e8b04a;
  --danger: #e55a5a;
  --radius: 12px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

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

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

/* ---------- 上の帯 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 20, 26, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo small { font-size: 0.82em; font-weight: 400; letter-spacing: 0.06em; color: var(--muted); }
@media (max-width: 420px) {
  .logo { font-size: 14px; letter-spacing: 0.04em; }
  .topbar .btn-small { padding: 8px 12px; font-size: 13px; }
}
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
}
.topbar nav a:hover { color: var(--text); }
@media (max-width: 880px) {
  .topbar nav { display: none; }
}
.topbar .btn-small { white-space: nowrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5adb8a; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { padding: 9px 18px; font-size: 14px; }
/* 有料版の受付前（押せない） */
.btn.is-soon { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ---------- 区切り ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg-soft); }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 12px;
}
h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.45;
  margin: 0 0 20px;
}
.lead { color: var(--muted); max-width: 680px; margin: 0 0 40px; }

/* ---------- 最初の画面 ---------- */
.hero {
  padding: 110px 0 96px;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(70, 205, 120, 0.14), transparent 60%),
    var(--bg);
}
.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.25;
  margin: 0 0 24px;
  letter-spacing: 0.04em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text);
  margin: 0 0 36px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------- 悩み ---------- */
.pains {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.pains li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 48px;
  position: relative;
}
.pains li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 27px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 3px;
}
.callout {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--text);
  max-width: 720px;
}

/* ---------- 3つの段階 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- こんな人におすすめ ---------- */
.for-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.for-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 52px;
  position: relative;
  color: var(--muted);
}
.for-list li b { color: var(--text); }
.for-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.for-list li.feature {
  grid-column: 1 / -1;
  background: rgba(70, 205, 120, 0.08);
  border-color: rgba(70, 205, 120, 0.4);
}
.for-list li.feature span { display: block; }
.for-list li.feature b { font-size: 18px; }
.for-list li.feature .sub { margin-top: 6px; }

/* ---------- 画面と動画 ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.025) 12px 24px),
    var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  padding: 16px;
}
.video { aspect-ratio: 16 / 9; width: 100%; display: block; background: #000; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.shot-note { color: var(--muted); font-size: 12px; margin: 0 0 22px; }
.shot-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #000; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.shot figure { margin: 0; }
.shot .placeholder { aspect-ratio: 4 / 3; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.shot figcaption b { color: var(--text); display: block; }

/* ---------- 機能表 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
thead th { background: var(--surface-2); font-size: 14px; }
tbody tr:last-child td { border-bottom: none; }
th.col, td.col { text-align: center; width: 88px; white-space: nowrap; }
td small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 2px; }
.yes { color: var(--accent); font-weight: 700; }
.no { color: var(--line); }
tr.group td {
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
@media (max-width: 640px) {
  table { min-width: 0; }
  th, td { padding: 12px 10px; font-size: 14px; }
  th.col, td.col { width: 52px; padding: 12px 4px; }
  thead th.col { font-size: 12px; }
}
.highlight {
  margin-top: 24px;
  background: rgba(70, 205, 120, 0.08);
  border: 1px solid rgba(70, 205, 120, 0.35);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.highlight b { color: var(--accent); }

/* ---------- 有料版でできること ---------- */
.paid-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.paid-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.paid-card h4 { margin: 0 0 10px; font-size: 18px; }
.paid-card p { margin: 0 0 10px; color: var(--muted); }
.paid-card p:last-child { margin-bottom: 0; }
.paid-card p b { color: var(--text); }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  border: 1px solid rgba(70, 205, 120, 0.5);
  background: rgba(70, 205, 120, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 14px;
}

/* ---------- 機能を動画で見る ---------- */
.clips-title { font-size: 20px; margin: 48px 0 16px; }
.clips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 640px) {
  .clips { grid-template-columns: 1fr; }
}
.clip { margin: 0; }
.clip video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.clip figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.clip figcaption b { color: var(--text); margin-right: 8px; }
.tag-free, .tag-paid {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 8px;
  margin-right: 8px;
  vertical-align: 1px;
}
.tag-free { background: var(--accent); color: var(--accent-ink); }
.tag-paid { background: var(--warn); color: #241a05; }
.clip figcaption::after { content: ""; display: block; }

/* ---------- 作った人の話 ---------- */
.story-body { max-width: 680px; }
.story-body p { margin: 0 0 1.4em; }
.story-body strong { color: var(--accent); }
.story-body .mark { font-style: normal; font-weight: 700; color: var(--text); border-bottom: 2px solid var(--accent); }
.story-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.story-list li {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 18px;
  margin-bottom: 10px;
  color: var(--muted);
}
.story-list li b { display: block; color: var(--text); }
.story-body .signature { margin: 2em 0 0.6em; font-weight: 700; font-size: 18px; }
.story-body .signature span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.story-body .story-note { color: var(--muted); font-size: 13px; }

/* ---------- 価格 ---------- */
.launch {
  background: linear-gradient(135deg, rgba(70, 205, 120, 0.18), rgba(70, 205, 120, 0.05));
  border: 1px solid rgba(70, 205, 120, 0.45);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.launch .tag {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 8px;
}
.launch .price { font-size: clamp(30px, 5vw, 42px); font-weight: 700; line-height: 1.3; }
.launch .price small { font-size: 16px; color: var(--muted); font-weight: 400; }
.launch p { margin: 6px 0 0; color: var(--muted); }
.seats {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 22px;
  white-space: nowrap;
}
.seats b { display: block; font-size: 28px; color: var(--accent); }
@media (max-width: 640px) {
  .launch { grid-template-columns: 1fr; }
  .seats { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
  .seats b { display: inline; }
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.plan h3 { margin: 0 0 6px; font-size: 17px; color: var(--muted); }
.plan .price { font-size: 30px; font-weight: 700; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.plan.free .price { color: var(--accent); }
.plan { display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan p { margin-bottom: 18px; }
.launch .btn { margin-top: 16px; }
.price-notes { color: var(--muted); font-size: 14px; padding-left: 1.2em; margin: 0 0 30px; }
.center { text-align: center; }

/* ---------- よくある質問 ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- 最後の呼びかけ ---------- */
.final { text-align: center; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--muted); margin: 0 0 30px; }

/* ---------- 法律まわりのページ ---------- */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.45; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 13px; margin: 0 0 32px; }
.doc h2 { font-size: 20px; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin-bottom: 6px; }
.doc .muted { color: var(--muted); }
.doc dl { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc dl > div { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.doc dl > div:last-child { border-bottom: none; }
.doc dt { background: var(--surface); padding: 14px 16px; font-weight: 700; font-size: 15px; }
.doc dd { margin: 0; padding: 14px 16px; font-size: 15px; }
@media (max-width: 640px) {
  .doc dl > div { grid-template-columns: 1fr; }
  .doc dt { padding-bottom: 6px; }
  .doc dd { padding-top: 6px; }
}
.doc .steps-list { counter-reset: s; list-style: none; padding: 0; }
.doc .steps-list li {
  counter-increment: s;
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.doc .steps-list li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}
.back { display: inline-block; margin-top: 40px; }

/* 下書きの目印（公開前にすべて消す） */
.draft-banner {
  background: rgba(232, 176, 74, 0.12);
  border: 1px solid rgba(232, 176, 74, 0.5);
  color: var(--warn);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin: 0 0 28px;
}
.todo {
  background: rgba(232, 176, 74, 0.18);
  color: var(--warn);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
}

/* ---------- 一番下 ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  color: var(--muted);
  font-size: 13px;
}
footer .disclaimer { max-width: 760px; margin: 0 0 22px; line-height: 1.8; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
footer .links a { color: var(--muted); }
footer .links a:hover { color: var(--text); }
.doc code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 14px; word-break: break-all; }

/* ---------- 入れ方・申し込み後のページ ---------- */
.doc .placeholder { aspect-ratio: 16 / 9; margin: 12px 0 4px; }
.doc .steps-list li .placeholder { margin-top: 12px; }
.doc .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
}
.doc .box.accent { border-color: rgba(70, 205, 120, 0.55); background: rgba(70, 205, 120, 0.07); }
.doc .box p:first-child { margin-top: 0; }
.doc .box p:last-child { margin-bottom: 0; }
.doc .install-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc .install-cta > div { flex: 1 1 320px; }
.doc .install-cta p { margin: 0 0 4px; }
.doc .path-box { margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
.doc .path-box b { color: var(--accent); }
.doc .mshot { margin: 14px 0 18px; }
.doc .mshot img { display: block; max-width: 100%; height: auto; background: #000; border: 1px solid var(--line); border-radius: 8px; }
.doc .mshot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.doc .toc ol { margin: 0; columns: 2; column-gap: 32px; }
.doc .toc li { break-inside: avoid; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
.doc .table-wrap { margin: 12px 0 16px; }
.doc .table-wrap table { min-width: 520px; }
.doc td, .doc th { font-size: 14px; vertical-align: top; }
.keybox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid rgba(70, 205, 120, 0.55);
  border-radius: var(--radius);
  padding: 18px;
  margin: 12px 0 8px;
}
.keybox .key {
  flex: 1 1 260px;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(18px, 4.6vw, 24px);
  letter-spacing: 0.04em;
  color: var(--accent);
  word-break: break-all;
}
.keybox.waiting .key { color: var(--muted); font-family: inherit; font-size: 16px; letter-spacing: 0; }
