* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  color: #142133;
  background: #f4f7fb;
}
a { color: #114ea8; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(980px, calc(100% - 32px)); margin: 0 auto; }
header {
  background: #0f2747;
  color: #fff;
  padding: 18px 0;
  border-bottom: 4px solid #ff8a00;
}
header .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
header .site-nav { display: flex; gap: 16px; flex-wrap: wrap; }
header a { color: #fff; }
.nav-toggle { display:none; background: transparent; color:#fff; border:1px solid rgba(255,255,255,0.22); border-radius:10px; padding:10px 12px; font-weight:800; }
main { padding: 32px 0 48px; }
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(16, 39, 71, 0.08);
  margin-bottom: 20px;
}
.hero h1 { margin-top: 0; font-size: 2.2rem; }
.hero p.lead { font-size: 1.1rem; max-width: 760px; }
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.btn-primary { background: #ff8a00; color: #111; }
.btn-secondary { background: #e7eef9; color: #17345d; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.list-clean { padding-left: 20px; }
.question { margin-bottom: 24px; }
.choice-list { display: grid; gap: 10px; margin-top: 14px; }
.choice {
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.choice input { margin-right: 10px; }
.meta { color: #4f627f; font-size: 0.95rem; }
.score-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.score-box .score { font-size: 3rem; font-weight: 800; color: #0f2747; }
.review-item {
  border-top: 1px solid #e5ebf5;
  padding-top: 18px;
  margin-top: 18px;
}
.badge {
  display: inline-block;
  background: #eaf2ff;
  color: #114ea8;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 8px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.stat-pill {
  background: #eef4fd;
  border: 1px solid #d7e4f7;
  border-radius: 14px;
  padding: 16px;
}
.stat-pill strong {
  display: block;
  font-size: 1.6rem;
  color: #0f2747;
}
.stat-pill span {
  display: block;
  margin-top: 6px;
  color: #4f627f;
  font-size: 0.95rem;
}
.topic-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.topic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topic-card-head h2 {
  margin: 0;
}
.topic-card-footer {
  margin-top: auto;
  padding-top: 12px;
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.scope-item {
  background: #f8fbff;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  padding: 16px;
}
.scope-item strong {
  display: block;
  color: #0f2747;
  margin-bottom: 6px;
}
.scope-item span {
  color: #4f627f;
  font-size: 0.95rem;
}
footer {
  border-top: 1px solid #d6dfeb;
  padding: 22px 0 40px;
  color: #5a6b84;
}
.hidden { display: none; }


.site-topbar { align-items: flex-start; }
.prose h2 { margin-top: 0; }
.prose p, .prose li { max-width: 820px; }
.legal-wrap { max-width: 1040px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding-top: 12px;
}
.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #0f2747;
  font-size: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-note {
  border-top: 1px solid #d6dfeb;
  margin-top: 18px;
  padding-top: 16px;
  color: #5a6b84;
  font-size: 0.95rem;
}
.prose ul, .prose ol { padding-left: 22px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; font-size:1.1rem; line-height:1; }
  header .row { flex-wrap: wrap; align-items:center; }
  header .site-nav { display:none; width:100%; flex-direction:column; gap:8px; padding-top:12px; }
  header .site-nav.is-open { display:flex; }
  header .site-nav a { display:block; width:100%; padding:12px 14px; background: rgba(255,255,255,0.08); border-radius:10px; }
}


.hero-product {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d9e6f4;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #114ea8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-support-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.inline-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ec;
  color: #7f4a09;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid #ffd39e;
}
.product-band { margin-bottom: 20px; }
.product-band-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}
.compact-card { min-height: 100%; }
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.decision-card {
  background: #f8fbff;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  padding: 16px;
}
.decision-card h3 { margin-top: 0; margin-bottom: 8px; }
.journey-rail {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.journey-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  padding: 12px 14px;
}
.journey-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #0f2747;
  color: #fff;
}
.signal-stack {
  display: grid;
  gap: 10px;
}
.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #f8fbff;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  padding: 14px 16px;
}
.signal-row strong { color: #0f2747; }
.signal-row span { color: #4f627f; text-align: right; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.topic-card-upgraded {
  border: 1px solid #dbe6f4;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.topic-signal-box {
  background: #f8fbff;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  padding: 14px;
  margin: 6px 0 12px;
}
.topic-signal-box strong {
  display: block;
  margin-bottom: 6px;
  color: #0f2747;
}
#resultInterpretation, #failurePatternBox, #repairPlanBox, #missedPreviewBox, #weakTopics, #topicRecoveryBox {
  border: 1px solid #dbe6f4;
}
#resultInterpretation h2, #failurePatternBox h2, #repairPlanBox h2, #missedPreviewBox h2, #weakTopics h2, #topicRecoveryBox h2 {
  margin-top: 0;
}
#reviewRoot > .card {
  border: 1px solid #dbe6f4;
}
@media (max-width: 760px) {
  .product-band-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; }
  .signal-row { flex-direction: column; }
  .signal-row span { text-align: left; }
}


.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #0f2747;
}
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7dfeb;
  background: #fff;
  color: #142133;
}
#timerBox {
  border: 1px solid #ffd39e;
  background: #fff7ec;
}
#progressSnapshot .signal-row, #progressAdvice .signal-row, #historyList .review-item {
  border: 1px solid #dbe6f4;
}


.footer-grid-4 {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}
.result-score-box {
  margin-bottom: 8px;
}
.result-band {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f2747;
}
.emphasis-card {
  border: 1px solid #cfe0f7;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.result-top-grid {
  margin-top: 16px;
}
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.decision-grid-single {
  grid-template-columns: 1fr;
}
@media (max-width: 900px) {
  .footer-grid-4 { grid-template-columns: 1fr; }
}

/* === 2026-04-29 visual system rebuild === */
:root {
  --bg-0: #f3f7fc;
  --bg-1: #ffffff;
  --bg-2: #eef4fb;
  --bg-3: #e6effa;
  --ink-1: #10233f;
  --ink-2: #36506f;
  --ink-3: #5d7290;
  --line-1: #d6e2f0;
  --line-2: #c7d7ea;
  --brand-1: #1f5eff;
  --brand-2: #4b7bff;
  --brand-deep: #102b5c;
  --accent-1: #ff9a1f;
  --accent-2: #ffd67a;
  --success-soft: #eaf7ef;
  --shadow-soft: 0 22px 60px rgba(16, 35, 63, 0.08);
  --shadow-card: 0 18px 44px rgba(19, 43, 77, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}
body {
  color: var(--ink-1);
  background:
    radial-gradient(circle at top left, rgba(75,123,255,0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255,154,31,0.12), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 46%, #f4f8fc 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.26), transparent 72%);
  opacity: 0.38;
}
.container {
  width: min(1180px, calc(100% - 40px));
}
main {
  padding: 42px 0 72px;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 27, 53, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(7, 22, 45, 0.18);
}
header .site-topbar > div strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
header .site-topbar > div strong::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), #ffca65);
  box-shadow: 0 0 0 6px rgba(255,154,31,0.16);
}
header nav {
  gap: 10px;
}
header nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
header nav a:hover {
  background: rgba(255,255,255,0.11);
  text-decoration: none;
  transform: translateY(-1px);
}
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(204, 220, 240, 0.92);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  background: rgba(255,255,255,0.94);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.20), transparent 42%);
}
.hero,
.hero-product {
  padding: 42px 42px 38px;
  text-align: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at 16% 18%, rgba(75,123,255,0.16), transparent 22%),
    radial-gradient(circle at 84% 20%, rgba(255,154,31,0.12), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,250,255,0.98) 100%);
  border: 1px solid #d8e5f5;
  box-shadow: var(--shadow-soft);
}
.hero h1 {
  margin: 0 auto 16px;
  max-width: 860px;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero p.lead,
.hero-product p.lead {
  margin: 0 auto;
  max-width: 760px;
  color: var(--ink-2);
  font-size: 1.12rem;
  line-height: 1.72;
}
.eyebrow {
  margin: 0 auto 16px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #eff4ff 0%, #e5eeff 100%);
  color: #2456d3;
  border: 1px solid #d6e4ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.hero-actions,
.result-actions {
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.btn {
  position: relative;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(31, 94, 255, 0.24);
}
.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(31, 94, 255, 0.28);
}
.btn-secondary {
  background: #f5f9ff;
  color: var(--brand-deep);
  border: 1px solid #d9e5f6;
  box-shadow: 0 10px 22px rgba(17, 45, 90, 0.08);
}
.btn::after {
  content: '→';
  margin-left: 10px;
  font-size: 0.96em;
}
.stats-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.stat-pill {
  position: relative;
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  border: 1px solid #dce8f6;
  box-shadow: 0 16px 30px rgba(17, 45, 90, 0.06);
}
.stat-pill::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), #ffd57f);
  box-shadow: 0 0 0 6px rgba(255,154,31,0.14);
}
.stat-pill strong {
  font-size: 2.1rem;
}
.stat-pill span,
.meta,
.scope-item span,
.signal-row span,
.hero .meta,
.hero-product .meta {
  color: var(--ink-3);
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.scope-item,
.decision-card,
.signal-row,
.topic-signal-box,
.choice,
.review-item,
#resultInterpretation,
#failurePatternBox,
#repairPlanBox,
#missedPreviewBox,
#weakTopics,
#topicRecoveryBox,
#reviewRoot > .card,
.form-group select,
.stat-pill,
.compact-card,
.emphasis-card {
  border-color: #dbe5f3;
}
.scope-item,
.decision-card,
.topic-signal-box,
.choice,
.review-item,
.compact-card,
.emphasis-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 28px rgba(17,45,90,0.05);
}
.decision-card,
.topic-card,
.topic-card-upgraded,
.compact-card,
.emphasis-card {
  border-radius: 18px;
}
.decision-card h3,
.topic-card h2,
.topic-card-upgraded h2,
.card h2,
.card h3 {
  color: #112e5e;
}
.choice {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.choice:hover {
  transform: translateY(-1px);
  border-color: #bfd4f0;
  box-shadow: 0 16px 28px rgba(31,94,255,0.08);
}
.form-group label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-group select {
  min-height: 52px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
#setupSection .grid.two,
#resultRoot .grid.two,
#reviewRoot .grid.two,
.page-progress main .grid.two,
.page-topics main .grid.two {
  align-items: stretch;
}
.page-product .hero-actions,
.page-product .stats-row,
.page-product .hero-support-row {
  justify-content: center;
}
.page-product .section-head,
.page-progress .section-head,
.page-topics .section-head {
  align-items: center;
}
.page-home .hero,
.page-home .hero-product,
.page-practice .hero-product,
.page-result .hero-product,
.page-review .hero-product,
.page-progress .hero-product,
.page-topics .hero-product {
  padding-top: 48px;
  padding-bottom: 42px;
}
.page-support .legal-wrap,
.page-trust .legal-wrap,
.page-policy .legal-wrap {
  width: min(1080px, calc(100% - 40px));
}
.page-support .prose,
.page-trust .prose,
.page-policy .prose {
  padding: 34px 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
}
.page-support .prose h1,
.page-trust .hero h1,
.page-policy .hero h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.page-support .prose .lead,
.page-trust .hero .lead,
.page-policy .hero .lead {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.page-support .prose h2,
.page-trust .prose h2,
.page-policy .prose h2 {
  position: relative;
  padding-left: 18px;
  margin-top: 30px;
}
.page-support .prose h2::before,
.page-trust .prose h2::before,
.page-policy .prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--accent-1));
  box-shadow: 0 0 0 5px rgba(31,94,255,0.10);
}
.page-support .prose p,
.page-support .prose li,
.page-trust .prose p,
.page-trust .prose li,
.page-policy .prose p,
.page-policy .prose li {
  max-width: 820px;
  color: var(--ink-2);
  line-height: 1.78;
}
footer {
  margin-top: 24px;
  border-top: 1px solid rgba(199, 215, 234, 0.9);
  background: linear-gradient(180deg, rgba(255,255,255,0.48) 0%, rgba(242,247,252,0.88) 100%);
}
.footer-grid,
.footer-grid-4 {
  gap: 28px;
  padding-top: 16px;
}
.footer-grid h3,
.footer-grid-4 h3 {
  color: #15325f;
}
.footer-links li a {
  color: var(--ink-2);
}
.footer-links li a:hover {
  color: var(--brand-1);
  text-decoration: none;
}
#timerBox {
  background: linear-gradient(180deg, #fff8ed 0%, #fff2d5 100%);
  box-shadow: 0 16px 30px rgba(255,154,31,0.12);
}
.signal-row {
  align-items: center;
}
.review-item {
  border-top: none;
  padding: 22px;
}
.result-score-box {
  justify-content: center;
  margin-bottom: 16px;
}
.score-box .score {
  font-size: clamp(3rem, 5vw, 4.8rem);
}
#resultRoot .lead,
#reviewRoot .lead,
#setupSection .lead,
.page-home .lead,
.page-topics .lead,
.page-progress .lead {
  max-width: 760px;
}
@media (max-width: 1020px) {
  .container,
  .page-support .legal-wrap,
  .page-trust .legal-wrap,
  .page-policy .legal-wrap {
    width: min(100%, calc(100% - 28px));
  }
  .grid.two,
  .stats-row {
    grid-template-columns: 1fr;
  }
  .hero,
  .hero-product,
  .page-support .prose,
  .page-trust .prose,
  .page-policy .prose,
  .card {
    padding: 24px;
  }
}
@media (max-width: 760px) {
  header .row {
    align-items: flex-start;
  }
  header nav {
    gap: 8px;
  }
  header nav a {
    padding: 8px 12px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-actions,
  .result-actions {
    flex-direction: column;
  }
}
