:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #1b1f24;
  --muted: #5b6470;
  --border: #e1e5ea;
  --accent: #3b5bdb;
  --accent-hover: #324fc4;
  --accent-ink: #ffffff;
  --positive: #2ecc71;
  --negative: #e74c3c;
  --warn-bg: #fff8e6;
  --warn-border: #f0c36d;
  --todo-bg: #ffe066;
  --todo-text: #1b1f24;
  --error: #c92a2a;
  --radius: 12px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1e222b;
    --text: #e8eaed;
    --muted: #9aa3ad;
    --border: #2a2f39;
    --accent: #7b93ff;
    --accent-hover: #93a7ff;
    --accent-ink: #0f1115;
    --warn-bg: #2a2412;
    --warn-border: #7a6224;
    --todo-bg: #b38f00;
    --todo-text: #0f1115;
    --error: #ff8787;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 未入力箇所。公開前にすべて置き換える（`grep -rn 要入力 site/` で検索） */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 4px;
  padding: 0 0.3em;
  font-weight: 700;
}

/* ---------- ヘッダー・フッター ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand span { color: var(--accent); }

.site-footer {
  margin-top: 64px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer-links a { color: var(--muted); }

.footer-note { margin: 0 0 8px; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }

.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 14px; }

.btn:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- LP ---------- */

.hero { padding: 56px 0 40px; }

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.lead { margin: 0 0 24px; font-size: 17px; color: var(--muted); }
.lead strong { color: var(--text); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

.fine { font-size: 13px; color: var(--muted); margin: 0; }

section { padding: 40px 0; }

section h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 3.5vw, 30px);
  line-height: 1.4;
}

.section-lead { margin: -8px 0 24px; color: var(--muted); }

.pain-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.pain-list li {
  padding: 12px 16px 12px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.pain-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: var(--accent);
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.card p { margin: 0; color: var(--muted); }

.card .num {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.note {
  margin: 20px 0 0;
  padding: 14px 18px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child th, tr:last-child td { border-bottom: none; }
thead th { background: var(--surface-2); font-size: 14px; }
tbody th { white-space: nowrap; }

/* Discord Embed 風のサンプル表示（テーマに関係なくDiscordの配色） */
.embed-sample {
  background: #313338;
  color: #dbdee1;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.embed-sample .bot { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.embed-sample .avatar { width: 32px; height: 32px; border-radius: 50%; background: #5865f2; flex: none; }
.embed-sample .bot-name { color: #f2f3f5; font-weight: 700; }
.embed-sample .bot-tag { background: #5865f2; color: #fff; font-size: 10px; padding: 0 4px; border-radius: 3px; font-weight: 700; }

.embed {
  background: #2b2d31;
  border-left: 4px solid var(--positive);
  border-radius: 4px;
  padding: 10px 14px 12px;
}

.embed.negative { border-left-color: var(--negative); }
.embed + .embed { margin-top: 10px; }
.embed-title { color: #f2f3f5; font-weight: 700; margin-bottom: 4px; }
.embed-field-name { color: #f2f3f5; font-weight: 700; font-size: 13px; margin-top: 8px; }
.embed-footer { color: #b5bac1; font-size: 11px; margin-top: 10px; }

.pricing {
  max-width: 560px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.price { margin: 0 0 16px; font-size: 18px; }
.price strong { font-size: 36px; }

.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: 6px; }
.check-list li::before { content: "・"; position: absolute; left: 0.3em; color: var(--accent); font-weight: 800; }

.steps { display: grid; gap: 16px; counter-reset: step; }

.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step h3 { margin: 0 0 8px; font-size: 18px; }

.step h3::before {
  counter-increment: step;
  content: "STEP " counter(step);
  display: inline-block;
  margin-right: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  vertical-align: 2px;
}

.step p { margin: 0 0 12px; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
}

details + details { margin-top: 10px; }
summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
details > :not(summary) { margin: 0 0 14px; color: var(--muted); }
details ol { padding-left: 1.4em; }

/* 申込フォーム */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; }

.form-field input[type="text"] {
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  letter-spacing: 0.04em;
}

.consent { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; border: none; }
.consent legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--accent); }

.form-error { color: var(--error); font-weight: 700; margin: 0 0 12px; min-height: 1.8em; }

.disclaimer {
  padding: 24px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
}

.disclaimer h2 { font-size: 20px; margin-bottom: 12px; }
.disclaimer ul { margin: 0; padding-left: 1.3em; }
.disclaimer li + li { margin-top: 6px; }

/* ---------- 規約・法定表記ページ ---------- */

.doc { max-width: 800px; padding-top: 40px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); line-height: 1.4; }
.doc .meta { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.doc h2 { margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: 20px; }
.doc p { margin: 0 0 12px; }

.doc .toc {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

.doc .toc ol { margin: 0; padding-left: 1.4em; columns: 2 240px; }

.doc ol.clauses { padding-left: 1.6em; }
.doc ol.clauses > li { margin-bottom: 10px; }

.doc ol.items { list-style: none; counter-reset: item; padding-left: 0.5em; margin: 8px 0; }
.doc ol.items > li { counter-increment: item; padding-left: 2.6em; position: relative; margin-bottom: 4px; }
.doc ol.items > li::before { content: "（" counter(item) "）"; position: absolute; left: 0; }

.doc .emphasis { font-weight: 700; }

.doc table { min-width: 0; }
.doc tbody th { width: 30%; background: var(--surface-2); white-space: normal; font-size: 15px; }

.doc .callout {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  font-size: 15px;
}

@media (max-width: 760px) {
  .hero { padding-top: 36px; }
  .hero .container { grid-template-columns: 1fr; gap: 28px; }
  .cta-row .btn { flex: 1 1 100%; }
  .doc tbody th, .doc tbody td { display: block; width: 100%; }
  .doc tbody th { border-bottom: none; padding-bottom: 4px; }
  .doc tbody td { padding-top: 4px; }
}
