/* ============================================================
   components.css — 使い回す部品（ボタン・カード・図版枠・表・フォーム）
   セクション固有の見た目は sections.css に置く。
   ============================================================ */

/* ── ボタン ─────────────────────────────
   🚨 申し込みの導線はテキストリンクにしない。必ずこの枠付きボタンを使う。 */
.btn {
  display: inline-block;
  padding: 22px 56px;
  background: var(--blue);
  color: var(--on-blue);
  border: none;
  border-radius: var(--r-pill);
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: transform .18s ease, background-color .18s ease;
}
.btn:hover {
  background: var(--blue-deep);
  color: var(--on-blue);
  transform: translateY(-2px);
}
.btn--full { width: 100%; padding: 22px 32px; font-size: 19px; }

/* ── タグ（ヒーローの3つ） ── */
.tag {
  padding: 8px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.6;
}

/* ── カード ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card--pad { padding: clamp(28px, 3.6vw, 40px); }

/* ── 図版（SVGの図解を入れる枠） ── */
.figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}
.figure svg { width: 100%; height: auto; }

.figure-cap {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
  text-align: center;
}

/* 実写を後から入れる場所（顔写真など）。ストライプの下地で「未設置」と分かる */
.photo-slot {
  background-color: var(--blue-light);
  background-image: repeating-linear-gradient(135deg, var(--stripe) 0 8px, transparent 8px 16px);
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-mute);
}
.photo-slot--round {
  width: 150px;
  height: 150px;
  flex: none;
  border-radius: var(--r-pill);
}
.photo-slot--avatar {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: var(--r-pill);
  background-color: var(--purple-light);
  font-size: 9.5px;
  line-height: 1.5;
  padding: 6px;
}

/* ── 表 ── */
.table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 16.5px;
}
.table th,
.table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  background: var(--blue-light);
  font-size: 15.5px;
  font-weight: 800;
}
.table tbody tr:last-child td { border-bottom: none; }
.table .t-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.table .row-make td {
  background: var(--accent-soft);
  font-weight: 700;
}

/* ── チェックの並び（悩みリスト） ── */
.check-list {
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 17px;
  line-height: 1.9;
}
.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.6;
}
.check-list li.is-key {
  padding: 22px 26px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  font-size: 18px;
  font-weight: 700;
}

/* ── 点の並び（実績） ── */
.dot-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dot-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 17px;
  line-height: 1.9;
}
.dot-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--blue);
}
.dot-list b { font-variant-numeric: tabular-nums; }

/* ── フォーム ─────────────────────────── */
.form {
  margin: clamp(38px, 5vw, 52px) auto 0;
  max-width: 640px;
  padding: clamp(30px, 4vw, 42px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  text-align: left;
}
.form h3 { margin: 0 0 10px; font-size: 21px; font-weight: 800; line-height: 1.6; }
.form-desc { margin: 0 0 32px; font-size: 15.5px; color: var(--text-sub); line-height: 1.9; }

.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.field-label { font-size: 17px; font-weight: 700; line-height: 1.8; }
.field-hint {
  display: block;
  font-size: 14.5px;
  color: var(--text-mute);
  font-weight: 400;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 15px 16px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
}
.textarea { min-height: 96px; resize: vertical; }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 15px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 16.5px;
  line-height: 1.8;
  cursor: pointer;
}
.choice:hover { border-color: var(--blue); }
.choice input {
  margin: 7px 0 0;
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.agree {
  padding: 24px 26px;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  margin-bottom: 30px;
}
.agree p { margin: 0 0 16px; font-size: 16px; line-height: 1.95; }
.agree label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.8;
  cursor: pointer;
}
.agree input {
  margin: 6px 0 0;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.submit-area { display: grid; gap: 16px; }
.submit-note {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.9;
}
.sent-msg {
  margin: 0;
  padding: 20px 22px;
  background: var(--blue-light);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
}
