:root {
  --concrete-950: #191b1d;
  --concrete-900: #24272a;
  --concrete-800: #303438;
  --concrete-700: #3a3d40;
  --concrete-300: #cfd2d4;
  --concrete-150: #e6e8e9;
  --concrete-80: #f2f3f3;
  --hazard: #ff6a13;
  --hazard-dark: #a63800;
  --line: rgba(25, 27, 29, 0.18);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  --display: "Archivo Narrow", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--concrete-900); color: var(--concrete-950); }
body { margin: 0; font-family: var(--body); line-height: 1.75; background: var(--concrete-150); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header, .site-footer {
  background: var(--concrete-900);
  color: var(--concrete-80);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 56px);
}
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 4px solid var(--hazard); }
.brand { font-family: var(--display); font-size: 1.6rem; font-weight: 700; text-decoration: none; letter-spacing: 0; }
nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.95rem; }
nav a, .site-footer a { text-underline-offset: 0.25em; }

main { min-height: 70vh; }
.hero, .page-hero, .result-hero, .quiz-shell, .catalog-shell, .shortlist, .extras, .content-page, .notfound {
  padding: clamp(34px, 7vw, 86px) clamp(18px, 5vw, 56px);
}
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(25,27,29,0.88), rgba(25,27,29,0.68)),
    repeating-linear-gradient(135deg, rgba(255,106,19,0.2) 0 18px, transparent 18px 36px),
    var(--concrete-800);
  color: var(--concrete-80);
}
.hero h1, .page-hero h1, .result-hero h1, .notfound h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 7.8rem);
  line-height: 0.9;
  margin: 0 0 22px;
  letter-spacing: 0;
}
.hero p, .page-hero p, .result-hero p { max-width: 720px; font-size: 1.08rem; }
.step-sign {
  background: var(--concrete-950);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.step-number { display: block; font-family: var(--mono); color: var(--hazard); font-size: clamp(4rem, 15vw, 9rem); line-height: 1; }
.step-sign small { color: var(--concrete-300); text-transform: uppercase; letter-spacing: 0.08em; }
.cta-row, .buy-links, .quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button, .buy-links a, .quiz-actions button {
  border: 2px solid var(--concrete-950);
  background: var(--hazard);
  color: var(--concrete-950);
  border-radius: 6px;
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary, .quiz-actions button.secondary { background: transparent; color: inherit; border-color: currentColor; }
.button:hover, .buy-links a:hover, .quiz-actions button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 0 rgba(0,0,0,0.18); }
.button:focus-visible, .buy-links a:focus-visible, .quiz-actions button:focus-visible, .q-option:focus-visible, nav a:focus-visible {
  outline: 4px solid rgba(255, 106, 19, 0.45);
  outline-offset: 3px;
}
.quiz-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.section-head p, .eyebrow, .q-kicker {
  margin: 0 0 7px;
  font-family: var(--mono);
  color: var(--hazard-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
}
.section-head h2, .content-page h2, .catalog-group h2, .odometer h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}
.category-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-strip div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--concrete-80); }
.category-strip strong { display: block; font-family: var(--display); font-size: 1.25rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  background: var(--concrete-80);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-image { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #d7dadb, #bfc3c5); display: grid; place-items: center; }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-copy { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-meta, .spec-list { display: flex; flex-wrap: wrap; gap: 8px; }
.product-meta span, .spec-list span, .maker-note {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.82rem;
}
.product-card h3 { font-size: 1.05rem; line-height: 1.45; margin: 0; }
.product-card p { margin: 0; }
.buy-links { margin-top: auto; }
.buy-links a { flex: 1; text-align: center; padding: 8px 10px; }

.quiz-shell { max-width: 920px; margin: 0 auto; }
.quiz-progress { height: 8px; background: var(--concrete-300); border-radius: 999px; overflow: hidden; margin: 16px 0 28px; }
.quiz-progress span { display: block; height: 100%; transform-origin: left; background: var(--hazard); }
.q-card { background: var(--concrete-80); border: 2px solid var(--concrete-950); border-radius: 8px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.95; margin-bottom: 10px; }
.q-options { display: grid; gap: 12px; margin-top: 22px; }
.q-option {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  border: 2px solid var(--concrete-950);
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}
.q-option:hover { background: #fff4ec; }
.q-option:active { transform: translateY(1px); }
.q-option.is-selected { background: var(--concrete-950); color: var(--concrete-80); border-color: var(--hazard); }
.option-mark { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; margin-top: 4px; }
.q-option.is-selected .option-mark { background: var(--hazard); box-shadow: inset 0 0 0 4px var(--concrete-950); }
.q-option small { display: block; margin-top: 3px; opacity: 0.76; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.odometer {
  margin: 0 clamp(18px, 5vw, 56px) clamp(34px, 7vw, 86px);
  padding: clamp(22px, 5vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: 22px;
  align-items: center;
  background: var(--concrete-950);
  color: var(--concrete-80);
  border-radius: 8px;
  border: 3px solid var(--hazard);
}
.odo-face { background: #08090a; border: 1px solid rgba(255,255,255,0.2); padding: 20px; text-align: right; }
.odo-face span { display: block; font-family: var(--mono); color: var(--hazard); font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1; }
.odo-face small { font-family: var(--mono); color: var(--concrete-300); }
.odo-caveat { grid-column: 1 / -1; margin: 0; padding: 12px 14px; background: rgba(255,106,19,0.12); border-left: 5px solid var(--hazard); }
.odometer.is-disabled { opacity: 0.72; border-color: var(--concrete-300); }
.odometer.is-disabled .odo-face span { color: var(--concrete-300); }

.content-page { max-width: 920px; }
.content-page p, .content-page li { font-size: 1.05rem; }
.notfound { min-height: 72vh; background: repeating-linear-gradient(135deg, var(--hazard) 0 22px, var(--concrete-950) 22px 44px); color: var(--concrete-80); display: grid; place-items: center; }
.notfound-panel { max-width: 760px; background: rgba(25,27,29,0.92); border: 2px solid var(--concrete-80); border-radius: 8px; padding: clamp(24px, 5vw, 48px); }
.site-footer { align-items: flex-start; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .hero, .odometer { grid-template-columns: 1fr; }
  .product-grid, .product-grid.compact, .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header, .site-footer { display: block; }
  nav { margin-top: 12px; }
  .hero { min-height: auto; }
  .product-grid, .product-grid.compact, .category-strip { grid-template-columns: 1fr; }
  .step-number { font-size: 5rem; }
}
