/*
 * quizmake のホームページ。
 *
 * 配色・角丸・フォントはアプリ本体（src/constants.js の COLORS）と同じ値を使う。
 * アプリ側を変えたときは、ここの :root も合わせて直す。
 */

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --body: #475569;
  --sub: #64748b;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --card-border: #eef2f7;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --blue-pale: #93c5fd;
  --green-light: #ecfdf5;
  --green-dark: #166534;
  --radius-card: 20px;
  --radius-btn: 12px;
  --page: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  background: var(--card);
  color: var(--blue);
  border-color: var(--border);
}

.btn-lg {
  min-height: 52px;
  padding: 0 32px;
  font-size: 16px;
}

/* ---------- 共通のセクション ---------- */

section {
  padding: 72px 0;
}

section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.5;
}

.lead {
  margin: 0 0 40px;
  color: var(--sub);
  font-size: 15px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ---------- ヒーロー ---------- */

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

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 42px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  color: var(--blue);
}

.hero p {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--body);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ---------- アプリの見本（画像ではなくHTMLで作る） ---------- */

.mock {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 22px;
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--sub);
}

.mock-chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  font-weight: 700;
  color: var(--body);
}

.mock-q {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 18px;
}

.mock-u {
  border-bottom: 2px solid var(--blue);
  font-weight: 700;
}

.mock-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
}

.mock-choice.correct {
  border-color: #10b981;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
}

.mock-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.mock-choice.correct .mock-letter {
  background: #10b981;
  color: #fff;
}

/* 虫食いマーカー */
.marker {
  display: inline-block;
  padding: 0 6px;
  margin: 0 4px;
  background: var(--blue);
  color: transparent;
  line-height: 1.35;
}

.marker.open {
  background: var(--blue-light);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--blue-pale);
}

.marker .idx {
  display: inline-block;
  position: relative;
  top: -4px;
  margin-right: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 11px;
  vertical-align: baseline;
  color: #fff;
}

.marker.open .idx {
  color: var(--text);
}

/* ---------- 特長 ---------- */

.feature h3 {
  margin: 14px 0 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--sub);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 20px;
}

/* ---------- 使い方 ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding-top: 12px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--sub);
}

/* ---------- 動画 ---------- */

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  border: 1px dashed var(--muted);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* ---------- 料金 ---------- */

.price {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.price .amount {
  font-size: 44px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
  margin: 8px 0 4px;
}

.price ul {
  text-align: left;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.price li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14.5px;
  color: var(--body);
}

.price li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  color: var(--blue);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 0;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '＋';
  float: right;
  color: var(--blue);
  font-weight: 700;
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--sub);
}

/* ---------- 想い ---------- */

.story {
  background: var(--blue-light);
}

/* 見出しが短い語ではなく問いかけの文なので、他の見出しより少し小さくする */
.story h2 {
  font-size: 26px;
  line-height: 1.6;
}

.story .card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.story p {
  font-size: 15.5px;
  color: var(--body);
}

/* ---------- 最後のCTA ---------- */

.cta {
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  margin-bottom: 8px;
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 32px 0;
  font-size: 13px;
  color: var(--sub);
}

.site-footer .wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--sub);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

/* ---------- 画面が狭いとき ---------- */

@media (max-width: 900px) {
  .hero .wrap,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .story h2 {
    font-size: 21px;
  }

  section {
    padding: 56px 0;
  }

  .site-nav a {
    display: none;
  }
}

/* ---------- 規約・ポリシーのページ ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal .back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.legal h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

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

.legal h2 {
  font-size: 17px;
  margin: 36px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal p,
.legal li {
  font-size: 14.5px;
  color: var(--body);
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .note {
  background: var(--blue-light);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}

.legal .note p {
  margin: 0;
  color: var(--text);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--bg);
  font-weight: 700;
  white-space: nowrap;
}
