/* PEPP 6 Skills 完全診断シート — style.css
 * Brand tokens reused from LINE_ASSETS_README.md (CURRENT) — not invented here.
 * Mobile-first: base rules target small screens; desktop refinements in @media.
 */

:root {
  --navy: #0e2a3a;
  --red: #c0392b;
  --cream-1: #fcfbf8;
  --cream-2: #f5f1e8;
  --cream-3: #ede4d4;
  --sand: #e3d7c0;

  --text: var(--navy);
  --muted: #5b6b73;
  --bg: var(--cream-1);
  --surface: #ffffff;
  --border: var(--cream-3);

  --radius: 14px;
  --tap-min: 48px;
  --maxw: 560px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .logo-link { display: inline-block; line-height: 0; text-decoration: none; }
.site-header .logo { display: block; height: 36px; width: auto; }
.brand {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

.app {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 18px 48px;
}

.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--muted);
}

/* ---- typography ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  margin: 0 0 6px;
}
.title {
  font-family: "Noto Serif JP", serif;
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--navy);
}
.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}
.section-title {
  font-size: 19px;
  line-height: 1.5;
  margin: 4px 0 12px;
  color: var(--navy);
}
.body-text {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 16px;
}
.body-text.muted { color: var(--muted); font-size: 13px; }

.meta-list {
  list-style: none;
  padding: 14px 16px;
  margin: 0 0 24px;
  background: var(--cream-2);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 2;
}

/* ---- progress ---- */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.progress {
  flex: 1;
  height: 8px;
  background: var(--cream-3);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--red);
  transition: width 0.25s ease;
}
.progress-label {
  font-size: 12px;
  color: var(--muted);
  min-width: 36px;
  text-align: right;
}

/* ---- buttons ---- */
.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:active { opacity: 0.85; }
.btn-large { font-size: 16px; padding: 16px 22px; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.row-split { margin-top: 24px; }
.row-split .btn { flex: 1; }

/* ---- banner (resume) ---- */
.banner {
  background: var(--cream-2);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.banner .row .btn { flex: 1; }

/* ---- scene select ---- */
.scene-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.scene-btn {
  text-align: left;
  padding: 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  min-height: var(--tap-min);
  cursor: pointer;
}
.scene-btn.selected,
.scene-btn:active {
  border-color: var(--navy);
  background: var(--cream-2);
}

/* ---- block / checkbox list ---- */
.block-lead {
  background: var(--cream-2);
  padding: 12px 14px;
  border-radius: var(--radius);
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  min-height: var(--tap-min);
}
.check-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.check-text {
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---- result ---- */
.bottleneck-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0 20px;
}
.bottleneck-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin: 0 0 4px;
}
.bottleneck-skill {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  margin: 0 0 8px;
}
.bottleneck-lead {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.92;
  margin: 0;
}
.fallback-flag {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
}

.score-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "skill count" "band band";
  gap: 4px 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
}
.score-row.is-bottleneck {
  border-color: var(--red);
  background: var(--cream-2);
}
.score-skill { grid-area: skill; font-weight: 700; }
.score-count { grid-area: count; color: var(--muted); }
.score-band { grid-area: band; font-size: 12.5px; }
.band-low { color: #4a7a5a; }
.band-mid { color: #b08a2e; }
.band-high { color: var(--red); font-weight: 700; }

.saved-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 20px;
}

.cta-card {
  border-radius: var(--radius);
  padding: 18px;
  margin: 0 0 16px;
}
.cta-primary {
  background: var(--cream-2);
  border: 1px solid var(--sand);
}
.cta-title { font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.cta-body { font-size: 13.5px; line-height: 1.7; margin: 0 0 14px; color: var(--muted); }
.cta-sub { font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: center; }

.consult-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  margin: 4px 0 24px;
  padding: 8px;
}

.fallback-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.7;
}
.fallback-note a { color: var(--navy); }

/* ---- desktop refinement ---- */
@media (min-width: 640px) {
  .app { padding: 40px 24px 64px; }
  .title { font-size: 30px; }
}

/* 共通コンポーネント：無料個別相談（Content Spec v1.3 §5） */
.consult-card { margin: 28px 0 8px; padding: 20px 18px; background: var(--cream-2); border: 1px solid var(--sand); border-radius: var(--radius); }
.consult-card .consult-title { margin: 14px 0 6px; font-size: 18px; color: var(--navy); }
.consult-qs { list-style: none; margin: 10px 0 14px; padding: 0; }
.consult-qs li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-weight: 700; font-size: 15px; }

/* 予約ボタン：赤（Navi指示 2026-10-10） */
.btn.consult-reserve { background: var(--red); color: #fff; font-size: 18px; padding: 18px 22px; box-shadow: 0 10px 22px rgba(192, 57, 43, 0.32); }

/* First Bottleneck：どれが「あなたの」なのか、一目で分かるように */
.bottleneck-mean { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.28); }
.bottleneck-first { font-size: 18px; font-weight: 800; line-height: 1.6; color: #fff; margin: 0; }
.bottleneck-days { font-size: 15px; line-height: 1.7; color: #F7D9D3; margin: 4px 0 0; }
.score-row.is-bottleneck { background: #FFF3F0; border: 2px solid var(--red); box-shadow: inset 6px 0 0 var(--red); }
.score-you { display: inline-block; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--red); border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
.consult-mini { margin: 22px 0 8px; padding: 14px 16px; text-align: center; border-top: 1px dashed var(--sand); }
.consult-mini .cta-body { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
