:root {
  --teal-950: #071E1D;
  --teal-900: #0F3D3E;
  --teal-850: #134A4B;
  --teal-800: #185B5C;
  --teal-700: #1F6F70;
  --teal-line: rgba(244, 241, 232, 0.14);
  --brass: #C9A227;
  --brass-dark: #93731B;
  --brass-light: #E6C568;
  --chalk: #F4F1E8;
  --chalk-dim: #D9D2BE;
  --ink: #08211F;
  --shadow: 0 20px 46px rgba(4, 16, 15, 0.4);
  --display: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --body-font: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--teal-950); color: var(--chalk); }
body { margin: 0; font-family: var(--body-font); line-height: 1.85; background: var(--teal-950); color: var(--chalk); font-size: 16px; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* PR bar -- 景表法対応。全ページの firstview に固定表示。 */
.pr-bar {
  background: var(--brass);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 6px 10px;
  text-transform: uppercase;
}

.site-header, .site-footer {
  background: var(--teal-950);
  color: var(--chalk);
  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: 2px solid var(--brass); }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-decoration: none; letter-spacing: 0.01em; }
.brand .brand-dot { color: var(--brass); }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--display); font-weight: 500; font-size: 0.92rem; }
nav a, .site-footer a { text-underline-offset: 0.28em; text-decoration-color: var(--brass-dark); }
nav a:hover { color: var(--brass-light); }

main { min-height: 70vh; }
.hero, .page-hero, .result-hero, .quiz-shell, .catalog-shell, .content-page, .notfound {
  padding: clamp(34px, 7vw, 86px) clamp(18px, 5vw, 56px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 106px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(105deg, rgba(7,30,29,0.92), rgba(7,30,29,0.7) 55%, rgba(7,30,29,0.92)),
    url('/images/hero-texture.jpg') center / cover no-repeat,
    linear-gradient(160deg, var(--teal-850), var(--teal-950) 70%);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(201, 162, 39, 0.05) 3px 4px);
}
.hero h1, .page-hero h1, .result-hero h1, .notfound h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 5.2rem);
  line-height: 1.18;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}
.hero p, .page-hero p, .result-hero p { max-width: 620px; font-size: 1.05rem; color: var(--chalk-dim); }
.hero h1 .tagline, .page-hero h1 .tagline, .result-hero h1 .tagline, .notfound h1 .tagline {
  display: block;
  font-family: var(--body-font);
  font-weight: 400;
  font-size: clamp(0.98rem, 2vw, 1.2rem);
  letter-spacing: 0.02em;
  color: var(--brass-light);
  margin-top: 14px;
}
.hero .eyebrow, .page-hero .eyebrow, .result-hero .eyebrow { color: var(--brass); }

/* ---------- Buckle signature (hero panel) ---------- */
.buckle-panel {
  background: var(--teal-850);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}
.buckle-panel small { font-family: var(--mono); color: var(--chalk-dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
.buckle-panel p { color: var(--chalk-dim); font-size: 0.96rem; margin: 16px 0 0; }

.buckle-visual { width: 118px; height: 118px; margin: 18px auto 4px; position: relative; }
.buckle-visual svg { width: 100%; height: 100%; overflow: visible; }
.buckle-tab-right { transform-origin: 62% 50%; transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
.buckle-flash { opacity: 0; transition: opacity 0.32s ease; }
.buckle-visual.is-snapping .buckle-tab-right { animation: buckle-snap 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }
.buckle-visual.is-snapping .buckle-flash { animation: buckle-flash 0.42s ease; }
.buckle-visual.is-locked-static .buckle-tab-right { transform: translateX(-6px); }
.buckle-visual.is-locked-static .buckle-flash { opacity: 0.5; }
@keyframes buckle-snap {
  0% { transform: translateX(10px); }
  55% { transform: translateX(-9px); }
  100% { transform: translateX(-6px); }
}
@keyframes buckle-flash {
  0% { opacity: 0; }
  35% { opacity: 0.85; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .buckle-tab-right, .buckle-flash { transition: none; animation: none !important; }
}

.cta-row, .buy-links, .quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button, .buy-links a, .quiz-actions button {
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--ink);
  border-radius: 3px;
  padding: 13px 22px;
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.button.secondary, .quiz-actions button.secondary { background: transparent; color: var(--chalk); border-color: var(--brass-dark); }
.button:hover, .buy-links a:hover, .quiz-actions button:hover:not(:disabled) { background: var(--brass-light); border-color: var(--brass-light); }
.button:focus-visible, .buy-links a:focus-visible, .quiz-actions button:focus-visible, .q-option:focus-visible, nav a:focus-visible {
  outline: 3px solid var(--brass-light);
  outline-offset: 3px;
}
.quiz-actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.buy-links a small { font-family: var(--mono); font-size: 0.62rem; border: 1px solid currentColor; border-radius: 2px; padding: 1px 4px; opacity: 0.75; }

.section-head p, .eyebrow, .q-kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  color: var(--brass);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-head h2, .content-page h2, .catalog-group h2, .packing-group h2, .bike-body-shelf h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 2.7rem);
  line-height: 1.28;
  color: var(--chalk);
}
.catalog-shell, .packing-group { border-top: 1px solid var(--teal-line); }

/* ---------- Category strip ---------- */
.category-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--teal-line); border-left: 1px solid var(--teal-line); }
.category-strip div { padding: 16px 14px; border-right: 1px solid var(--teal-line); border-bottom: 1px solid var(--teal-line); background: var(--teal-900); }
.category-strip strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--chalk); }
.category-strip span { color: var(--chalk-dim); font-size: 0.85rem; }
.category-strip img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 1px solid var(--brass-dark); margin-bottom: 10px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  background: var(--teal-900);
  border: 1px solid var(--teal-line);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card.is-locked { border-color: var(--brass); }
.lock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  border-radius: 3px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lock-badge-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); display: inline-block; }
.product-image { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--chalk), var(--chalk-dim)); 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; font-family: var(--mono); }
.product-meta span, .spec-list span, .maker-note {
  border: 1px solid var(--teal-line);
  background: var(--teal-850);
  color: var(--chalk-dim);
  border-radius: 3px;
  padding: 3px 9px;
  font-size: 0.76rem;
}
.product-card h3 { font-family: var(--body-font); font-weight: 700; font-size: 1.0rem; line-height: 1.55; margin: 0; color: var(--chalk); }
.product-card p { margin: 0; color: var(--chalk-dim); }
.buy-links { margin-top: auto; }
.buy-links a { flex: 1; text-align: center; justify-content: center; padding: 9px 10px; }

/* ---------- High-AOV bike-body shelf (deliberately breaks the ground colour) ---------- */
.bike-body-shelf {
  margin: 0 clamp(18px, 5vw, 56px) clamp(34px, 7vw, 86px);
  padding: clamp(24px, 5vw, 44px);
  background: var(--chalk);
  color: var(--ink);
  border-radius: 6px;
  border: 2px solid var(--brass);
}
.bike-body-shelf .section-head p { color: var(--brass-dark); }
.bike-body-shelf h2 { color: var(--ink); }
.bike-body-note { color: #3a4a3f; font-size: 0.96rem; max-width: 640px; margin: 0 0 22px; }
.bike-body-grid .product-card { background: #fff; border-color: rgba(8,33,31,0.14); }
.bike-body-grid .product-card h3, .bike-body-grid .product-card p { color: var(--ink); }
.bike-body-grid .product-meta span, .bike-body-grid .spec-list span { background: rgba(8,33,31,0.06); color: #3a4a3f; border-color: rgba(8,33,31,0.12); }

/* ---------- Quiz ---------- */
.quiz-shell { max-width: 900px; margin: 0 auto; }
.strap-band { display: flex; gap: 10px; margin: 20px 0 30px; padding: 10px 14px; background: var(--teal-900); border: 1px solid var(--teal-line); border-radius: 20px; width: fit-content; }
.strap-hole { width: 14px; height: 14px; border-radius: 50%; background: var(--teal-950); border: 2px solid var(--brass-dark); transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.strap-hole.is-current { border-color: var(--brass-light); transform: scale(1.15); }
.strap-hole.is-closed { background: var(--brass); border-color: var(--brass); }
@media (prefers-reduced-motion: reduce) { .strap-hole { transition: none; } }

.q-card { background: var(--teal-900); border: 1px solid var(--teal-line); border-radius: 5px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.3; margin-bottom: 10px; color: var(--chalk); }
.q-card p { color: var(--chalk-dim); }
.q-helper { font-size: 0.86rem; color: var(--brass-light); }
.q-options { display: grid; gap: 12px; margin-top: 22px; }
.q-option {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--teal-line);
  background: var(--teal-850);
  color: var(--chalk);
  border-radius: 5px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--body-font);
}
.q-option:hover { border-color: var(--brass-dark); }
.q-option:active { transform: translateY(1px); }
.q-option.is-selected { background: var(--teal-700); border-color: var(--brass); }
.option-mark { width: 16px; height: 16px; border: 2px solid var(--brass-dark); border-radius: 50%; margin-top: 5px; }
.q-option.is-selected .option-mark { background: var(--brass); border-color: var(--brass); }
.q-option small { display: block; margin-top: 4px; color: var(--chalk-dim); font-family: var(--body-font); font-size: 0.85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.result-hero .maker-note { display: inline-block; margin-top: 12px; }
.content-page { max-width: 860px; }
.content-page p, .content-page li { font-size: 1.02rem; color: var(--chalk-dim); }
.content-page h2 { margin-top: 40px; }
.notfound { min-height: 72vh; background: repeating-linear-gradient(135deg, var(--teal-900) 0 24px, var(--teal-950) 24px 48px); color: var(--chalk); display: grid; place-items: center; }
.notfound-panel { max-width: 720px; background: var(--teal-900); border: 1px solid var(--brass); border-radius: 6px; padding: clamp(24px, 5vw, 48px); text-align: center; }
.notfound-image { width: 180px; margin: 0 auto 22px; border-radius: 6px; }
.site-footer { align-items: flex-start; border-top: 1px solid var(--teal-line); }
.site-footer p { margin: 0; color: var(--chalk-dim); font-size: 0.88rem; }

.editor-figure { border-radius: 6px; overflow: hidden; border: 1px solid var(--teal-line); margin: 24px 0; }

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

@media (max-width: 620px) {
  .site-header, .site-footer { display: block; }
  nav { margin-top: 12px; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .category-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
