/* ============================================================================
   LOADOUT. — Tactical Loadout System
   ----------------------------------------------------------------------------
   Phase 0 LOCK:
     bg     #1A2530  deep-warm-navy
     ink    #F8F9F9  near-white
     accent #F39C12  sci-fi yellow (CTA / border / highlight)
     slate  #34495E  secondary
     signal #E74C3C  critical / level-3
   Display: Space Mono (400/700) — 数値・コード・型名
   Body:    M PLUS 1p (400/500/700) — 読みやすさ
   ----------------------------------------------------------------------------
   AI slop 回避:
     × card-grid + center-align + drop-shadow + 大きな border-radius 濫用
     ○ HUD 風(角張った clip-path / 薄い grid lines / ステータスバー / 微 reticle)
     ○ 余白は粗く・型は強く・色は最小限
   ============================================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #1A2530;
  --bg-2:     #15202B;
  --bg-3:     #0F1820;
  --ink:      #F8F9F9;
  --ink-soft: #B4BFC9;
  --ink-mute: #8A97A3;  /* WCAG AA: 5.21:1 on --bg #1A2530(旧 #6F7E8C は 3.73:1 で不足) */
  --accent:   #F39C12;
  --accent-d: #C97F0E;
  --slate:    #34495E;
  --slate-l:  #4A6075;
  --signal:   #E74C3C;
  --signal-d: #B73224;

  --f-display: 'Space Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-body:    'M PLUS 1p', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', sans-serif;

  --max-w:    1080px;
  --gutter:   clamp(16px, 4vw, 32px);
  --corner:   0px;
  --hairline: 1px solid rgba(248,249,249,0.10);
  --hairline-strong: 1px solid rgba(248,249,249,0.18);
  --reticle:  1px solid rgba(243,156,18,0.35);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'palt' 1;
}

body {
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgba(248,249,249,0.012) 2px,
      rgba(248,249,249,0.012) 3px
    );
  background-attachment: fixed;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: transparent; border: 0; }

/* ============================================================================
   Skip nav / PR strip
   ============================================================================ */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--f-display);
  font-weight: 700;
  z-index: 999;
}
.skip-nav:focus { top: 0; }

.pr-strip {
  background: var(--bg-3);
  color: var(--ink-mute);
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  text-align: center;
  border-bottom: var(--hairline);
}
.pr-strip strong { color: var(--accent); margin-right: 8px; font-weight: 700; }

/* ============================================================================
   Header / Brand
   ============================================================================ */
.site-header {
  border-bottom: var(--hairline);
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: rgba(26,37,48,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 50;
}
.brand {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 18px;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.brand .brand-dot { color: var(--accent); }
.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 18px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }

/* ============================================================================
   Tactical chip / system-tag(clip-path で角を落とす)
   ============================================================================ */
.t-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--bg-2);
  color: var(--accent);
  border: var(--reticle);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.t-chip.is-signal { color: var(--signal); border-color: rgba(231,76,60,0.45); }
.t-chip.is-slate  { color: var(--ink-soft); border-color: rgba(248,249,249,0.18); }

/* status-line: コード+ラベル横並び */
.status-line {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-line::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ============================================================================
   Hero
   ============================================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) var(--gutter) clamp(48px, 7vw, 90px);
  border-bottom: var(--hairline);
  overflow: hidden;
}
.hero::before {
  /* 微 reticle grid: 80px square */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243,156,18,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,156,18,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }

.hero-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero h1 .hero-mark {
  color: var(--accent);
  font-weight: 700;
}

.hero-tagline {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-jp {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-mute);
  margin-bottom: 36px;
  max-width: 620px;
  line-height: 1.8;
}

/* Hero status panel: 左に system-readout */
.hero-readout {
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.hero-readout-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-readout-key {
  color: var(--ink-mute);
  text-transform: uppercase;
}
.hero-readout-val {
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 640px) {
  .hero-readout { grid-template-columns: repeat(2, 1fr); }
}

/* Primary CTA */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 30px;
  background: var(--accent);
  color: var(--bg);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background 0.15s ease;
}
.cta-primary:hover, .cta-primary:focus-visible {
  background: #FFB12E;
  text-decoration: none;
}
.cta-primary::after {
  content: '▶';
  font-size: 10px;
}
.cta-primary.is-signal {
  background: var(--signal);
  color: var(--ink);
}
.cta-primary.is-signal:hover { background: #F25C4D; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 24px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cta-ghost:hover { background: rgba(243,156,18,0.10); text-decoration: none; }

/* ============================================================================
   Section utilities
   ============================================================================ */
.section {
  padding: clamp(60px, 8vw, 110px) var(--gutter);
  border-bottom: var(--hairline);
}
.section-narrow { max-width: var(--max-w); margin: 0 auto; }

.section-head {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.section-head .ja {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 640px;
}

/* ============================================================================
   Hub Index — How it works (3 step)
   ============================================================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } }

.how-step {
  padding: 26px 28px;
  border-right: var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.how-grid .how-step:last-child { border-right: 0; }
@media (max-width: 760px) {
  .how-step { border-right: 0; border-bottom: var(--hairline); min-height: auto; }
  .how-grid .how-step:last-child { border-bottom: 0; }
}
.how-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.how-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.how-body {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* Sample types preview */
.types-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--hairline);
}
@media (max-width: 760px) { .types-strip { grid-template-columns: repeat(2, 1fr); } }
.types-cell {
  padding: 18px 16px;
  border-right: var(--hairline);
  border-bottom: var(--hairline);
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.types-cell .types-code { color: var(--accent); font-weight: 700; }
.types-cell .types-ja {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 6px;
  line-height: 1.6;
}

/* ============================================================================
   Quiz — Questionnaire UI
   ============================================================================ */
.quiz-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}

.quiz-header {
  border: var(--hairline);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.quiz-header .qh-code {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.quiz-header .qh-mode {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.qh-progress {
  width: 100%;
  margin-top: 12px;
  height: 4px;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.qh-progress-bar {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.qcard {
  border-left: 3px solid var(--accent);
  padding: 26px 28px 28px;
  background: var(--bg-2);
}
.qcard fieldset { border: 0; padding: 0; margin: 0; }
.qcard legend {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.qcard .q-ja {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}
.qcard .q-helper {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 22px;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: var(--hairline-strong);
  text-align: left;
  font-family: var(--f-body);
  width: 100%;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.q-opt:hover { border-color: var(--accent); background: rgba(243,156,18,0.04); }
.q-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.q-opt.is-selected {
  border-color: var(--accent);
  background: rgba(243,156,18,0.08);
}
.q-opt .opt-tick {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink-mute);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
}
.q-opt.is-selected .opt-tick {
  border-color: var(--accent);
  background: var(--accent);
}
.q-opt.is-selected .opt-tick::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 4px; height: 9px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(45deg);
}
.q-opt .opt-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.q-opt .opt-label { font-weight: 700; font-size: 16px; line-height: 1.5; color: var(--ink); }
.q-opt .opt-sub {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* slider */
.q-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.q-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-3);
  outline: none;
  border: var(--hairline-strong);
}
.q-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  cursor: pointer;
  border: 0;
}
.q-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  cursor: pointer;
  border: 0;
}
.q-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.q-slider-ticks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}
.q-slider-ticks div { text-align: center; }
.q-slider-ticks .is-current { color: var(--accent); }
.q-slider-current {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
/* BOLD-INDEX 未操作時: 既定値を「回答済み」に見せず、確定が必要と分かる控えめ表示 */
.q-slider-current.is-unset {
  color: var(--ink-mute);
  font-weight: 500;
  font-size: 14px;
}

/* nav row */
.quiz-nav {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.quiz-nav-left, .quiz-nav-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-back, .btn-skip {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--slate);
  padding: 10px 16px;
}
.btn-back:hover, .btn-skip:hover { color: var(--accent); border-color: var(--accent); }
.btn-next {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-next[disabled] { background: var(--slate); color: var(--ink-mute); cursor: not-allowed; clip-path: none; }
.btn-next:not([disabled]):hover { background: #FFB12E; }
.btn-next::after { content: '▶'; font-size: 10px; }

.calibration-prompt {
  margin: 24px 0 0;
  border: 1px solid var(--accent);
  padding: 18px 20px;
  background: rgba(243,156,18,0.06);
}
.calibration-prompt h3 {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.calibration-prompt p {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.7;
}
.calibration-prompt .calib-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================================
   Result page
   ============================================================================ */
.result-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 70px) var(--gutter) clamp(60px, 8vw, 100px);
}

/* status window */
.status-window {
  border: var(--hairline-strong);
  border-left: 3px solid var(--accent);
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-2);
  margin-bottom: 36px;
  position: relative;
}
.status-window::before {
  /* corner reticle marker */
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.status-window::after {
  content: '';
  position: absolute;
  bottom: 8px; left: 8px;
  width: 18px; height: 18px;
  border-bottom: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.status-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.status-header .sh-divider { color: var(--slate-l); }
.status-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.05;
  color: var(--accent);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  word-break: break-word;
}
.status-catch {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
}
.status-diagnosis {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.8;
}
.status-diagnosis b { color: var(--ink); }

.formal-banner {
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid var(--signal);
  background: rgba(231,76,60,0.06);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.7;
}
.formal-banner b {
  display: block;
  font-family: var(--f-display);
  /* signal(#E74C3C)は navy 上で 4.07:1。large-text 3:1 基準を満たすため
     19px(≒14.25pt)bold のブロック見出しにして AA を確保(パレット固定のため
     色は変えられない) */
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: var(--signal);
  margin-bottom: 6px;
}

/* radar */
.radar-figure {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 720px) { .radar-figure { grid-template-columns: 1fr; } }
.radar-svg {
  width: 100%;
  height: auto;
  max-width: 380px;
}
.radar-svg .r-grid { fill: none; stroke: var(--slate); stroke-width: 1; opacity: 0.6; }
.radar-svg .r-spoke { stroke: var(--slate); stroke-width: 1; opacity: 0.5; }
.radar-svg .r-data { fill: var(--accent); fill-opacity: 0.18; stroke: var(--accent); stroke-width: 2; }
.radar-svg .r-point { fill: var(--accent); }
.radar-svg .r-label {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.10em;
  fill: var(--ink-soft);
  text-transform: uppercase;
}
.radar-svg .r-value {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  fill: var(--accent);
}
.radar-figure figcaption {
  grid-column: 1 / -1;   /* 2-col grid の下に全幅で配置 */
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 8px;
}

.radar-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.radar-legend dt {
  color: var(--ink-soft);
  text-transform: uppercase;
}
.radar-legend dd {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.radar-legend > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 6px 0;
  border-bottom: var(--hairline);
}

/* Loadout sections */
.loadout-section {
  margin-top: clamp(36px, 5vw, 56px);
}
.loadout-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  border-bottom: var(--hairline);
  padding-bottom: 12px;
}
.lv-tag {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--bg);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.lv-tag.is-signal { background: var(--signal); color: var(--ink); }
.loadout-section-head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.loadout-section-head .lv-note {
  margin-left: auto;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Loadout card */
.loadout-card {
  border: var(--hairline-strong);
  background: var(--bg-2);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
/* 2-col "scan slot" layout — only when a product image is present.
   Placeholders (no .lc-figure) keep the single-column default above. */
.loadout-card:has(.lc-figure) {
  grid-template-columns: clamp(84px, 24vw, 128px) 1fr;
  gap: clamp(14px, 3vw, 22px);
  align-items: start;
}
.loadout-card.is-hero {
  border-left: 3px solid var(--accent);
  padding: 22px 24px;
}
.loadout-card.is-hero:has(.lc-figure) {
  grid-template-columns: clamp(128px, 34vw, 218px) 1fr;
  gap: clamp(18px, 3.5vw, 28px);
}
.loadout-card .lc-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0; /* let long JP names + ASIN wrap instead of overflowing the track */
}

/* equipment scan slot ------------------------------------------------------ */
.lc-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  padding: 9%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-3);
  /* faint scanner grid — only visible in the padding gutter around the specimen */
  background-image:
    linear-gradient(rgba(243,156,18,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,156,18,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: center;
  border: 1px solid rgba(248,249,249,0.08);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.28);
}
.lc-figure .lc-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* never crop / distort the product photo */
  display: block;
}
/* corner reticle markers — opposite corners, reused from .status-window language */
.lc-figure::before,
.lc-figure::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
  z-index: 2;
}
/* 装飾レティクルは dim な accent に落とし、CTA / 結論の数値に使う純 accent と
   優先度を分離(accent の希少性で階層を作る) */
.lc-figure::before {
  top: 6px;
  right: 6px;
  border-top: 1px solid rgba(243,156,18,0.5);
  border-right: 1px solid rgba(243,156,18,0.5);
}
.lc-figure::after {
  bottom: 6px;
  left: 6px;
  border-bottom: 1px solid rgba(243,156,18,0.5);
  border-left: 1px solid rgba(243,156,18,0.5);
}
/* category code overlay — equipment manifest tag, top-left corner */
.lc-figcode {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--accent);
  background: rgba(15,24,32,0.86);
  padding: 3px 7px;
  border-right: 1px solid rgba(243,156,18,0.35);
  border-bottom: 1px solid rgba(243,156,18,0.35);
}
.loadout-card.is-hero .lc-figure::before,
.loadout-card.is-hero .lc-figure::after {
  width: 16px;
  height: 16px;
}
.loadout-card.is-hero .lc-figcode { font-size: 10px; }

.loadout-card .lc-cat {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.loadout-card .lc-cat::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  clip-path: polygon(2px 0, 100% 0, 100% calc(100% - 2px), calc(100% - 2px) 100%, 0 100%, 0 2px);
}
.loadout-card .lc-name {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.loadout-card.is-hero .lc-name { font-size: 19px; }
.loadout-card .lc-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.loadout-card .lc-price { color: var(--accent); font-weight: 700; }
/* SPEC-ID(旧 ASIN 生値)は購買判断に無価値なノイズ。世界観の装備マニフェスト感は
   残しつつ、極小・低コントラストで最小限の存在に留める。 */
.loadout-card .lc-asin { color: var(--ink-mute); font-size: 10px; opacity: 0.72; }
/* 予算超過スロットの開示バッジ(在庫が選択予算内に無いカテゴリの参考枠) */
.loadout-card .lc-overbudget {
  margin: 4px 0 12px;
  padding: 6px 10px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--signal);
  background: rgba(231, 76, 60, 0.08);
  border-left: 3px solid var(--signal);
}
.loadout-card .lc-why {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 12px 18px;
  text-decoration: none;
}
.cta .cta-mark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  background: rgba(0,0,0,0.18);
}
.cta-amazon { background: var(--accent); color: var(--bg); }
.cta-amazon:hover { background: #FFB12E; text-decoration: none; }
.cta-rakuten {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cta-rakuten:hover { background: rgba(243,156,18,0.10); text-decoration: none; }

/* placeholder slot */
.loadout-card.is-placeholder {
  border: 1px dashed var(--slate-l);
  background: transparent;
  color: var(--ink-mute);
}
.loadout-card.is-placeholder .lc-name { color: var(--ink-mute); font-weight: 500; }
.loadout-card.is-placeholder .lc-cat::before { background: var(--ink-mute); }

/* LV3 grid */
.lv3-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .lv3-grid { grid-template-columns: 1fr; } }
/* LV3 cards run in a narrow 2-col grid → compact inventory rows */
.lv3-grid .loadout-card { margin-bottom: 0; }
.lv3-grid .loadout-card:has(.lc-figure) {
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px 15px;
}
.lv3-grid .loadout-card .lc-body { gap: 10px; }
.lv3-grid .lc-figcode { font-size: 8px; padding: 2px 5px; letter-spacing: 0.10em; }
/* 84px サムネでは HUD クロム(スキャナーグリッド + レティクル)が商品写真より
   目立ってしまうため、グリッドを外しレティクルを小さく薄くして写真を主役に戻す */
.lv3-grid .lc-figure { background-image: none; padding: 7%; }
.lv3-grid .lc-figure::before,
.lv3-grid .lc-figure::after {
  width: 8px;
  height: 8px;
  border-color: rgba(243,156,18,0.4);
}

/* Exclusion list */
.exclusion-list {
  margin-top: clamp(40px, 5vw, 60px);
  border: 1px solid var(--signal);
  padding: 22px 24px;
  background: rgba(231,76,60,0.04);
}
.exclusion-list h2 {
  font-family: var(--f-display);
  font-weight: 700;
  /* signal 4.07:1 → large-text 3:1 基準を満たすため 19px bold(見出しなので自然) */
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
/* 警告グリフは装飾(aria-hidden)。見出し本文と分離し、SR は本文だけ読む */
.exclusion-list h2 .excl-warn-glyph {
  margin-right: 8px;
}
.exclusion-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exclusion-list li {
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}
.exclusion-list li::before {
  content: '✕';
  position: absolute;
  left: 0; top: 2px;
  color: var(--signal);
  font-family: var(--f-display);
  font-weight: 700;
}

/* axis calibration */
.axis-calibration {
  margin-top: 30px;
  border-top: var(--hairline);
  padding-top: 18px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-soft);
}
.axis-calibration summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  list-style: none;
}
.axis-calibration summary::before { content: '▸ '; }
.axis-calibration[open] summary::before { content: '▾ '; }
.axis-calibration dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.axis-calibration dt { color: var(--accent); font-family: var(--f-display); font-weight: 700; font-size: 13px; }
.axis-calibration dd { font-size: 14px; line-height: 1.7; }

/* Share row */
.share-block {
  margin-top: clamp(40px, 5vw, 60px);
  border: var(--hairline-strong);
  padding: 26px 28px;
  background: var(--bg-2);
}
.share-block h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.share-block p {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.share-preview {
  margin-top: 18px;
  border: var(--hairline);
  padding: 14px;
  background: var(--bg-3);
  display: flex;
  justify-content: center;
}
.share-preview canvas {
  max-width: 100%;
  height: auto;
  display: block;
}
.share-preview img {
  max-width: 320px;
  width: 100%;
  height: auto;
}
.share-block .share-note {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-top: 12px;
}

/* related */
.related-block {
  margin-top: clamp(40px, 5vw, 60px);
  padding: 24px 26px;
  border-top: var(--hairline);
}
.related-block h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.related-block ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.related-block li {
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.7;
}
.related-block li::before { content: '▸ '; color: var(--accent); }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  padding: 36px var(--gutter);
  border-top: var(--hairline);
  text-align: center;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.site-footer .footer-links a { color: var(--ink-soft); }
.site-footer .footer-links a:hover { color: var(--accent); }
.site-footer .footer-attribution {
  margin-top: 10px;
  font-family: var(--f-body, inherit);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-mute);
}

/* ============================================================================
   Pages: About / Privacy(static)
   ============================================================================ */
.static-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}
.static-wrap h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 20px;
}
.static-wrap h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 32px 0 12px;
}
.static-wrap p, .static-wrap li {
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.static-wrap ul { padding-left: 22px; margin-bottom: 14px; }
.static-wrap a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.static-wrap .eyebrow {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ============================================================================
   Utility
   ============================================================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* ============================================================================
   Extracted inline styles → classes(CSP: style-src に 'unsafe-inline' なし)
   ============================================================================ */
/* index.html — hero / types CTA rows */
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.types-cta { margin-top: 30px; display: flex; justify-content: flex-end; }

/* index.html — FAQ list */
.faq-list { display: flex; flex-direction: column; gap: 18px; }
.faq-q {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.faq-a {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* index.html — closing CTA block */
.cta-end-inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cta-end-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.15;
  color: var(--ink);
}
.cta-end-lead {
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 620px;
}

/* result.html — empty state + lv1 rationale */
.result-empty { text-align: center; padding: 60px 0; }
.result-empty-code {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.result-empty-msg {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
/* PRIMARY DIRECTIVE 見出しコピー — LV1 の結論を最初に読ませる。
   accent の縦罫で「ここが結論」を示し、装飾レティクルより優先度を上げる。 */
.lv1-primary {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.7;
  color: var(--ink);
  margin: 2px 0 18px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.lv1-primary:empty { display: none; }
.lv1-why {
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* privacy.html — last-updated line */
.legal-updated {
  margin-top: 36px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.10em;
  color: var(--ink-mute);
}
