/* =========================================================
   AVALON PC - Stylesheet
   Dark-base / metallic silver / cinematic BTO
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0d14;
  --bg-soft: #11151f;
  --bg-tinted: #0c0f17;
  --bg-card: #11151f;
  --bg-elevated: #161b27;
  --border: #1f2434;
  --border-strong: #2f3548;

  --text: #f4f6fa;
  --text-secondary: #aab2c2;
  --text-muted: #707888;

  /* Brand (header/footer/global) — premium blue (brightened for dark bg) */
  --brand: #3b82f6;
  --brand-dark: #1d4ed8;
  --brand-soft: rgba(59, 130, 246, .14);

  /* Default accent = base model */
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, .14);
  --accent-dark: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, .28);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35);

  --header-h: 72px;

  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Yu Gothic", "游ゴシック", "Meiryo", sans-serif;
  --font-en: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Per-model accents (brightened for dark backgrounds) */
[data-model="air"]    { --accent: #3b82f6; --accent-soft: rgba(59,130,246,.14);  --accent-dark: #1d4ed8; --accent-glow: rgba(59,130,246,.28); }
[data-model="arena"]   { --accent: #a855f7; --accent-soft: rgba(168,85,247,.14); --accent-dark: #7c3aed; --accent-glow: rgba(168,85,247,.30); }
[data-model="bloom"]   { --accent: #ec4899; --accent-soft: rgba(236,72,153,.14); --accent-dark: #be185d; --accent-glow: rgba(236,72,153,.28); }
[data-model="ai"]      { --accent: #22d3ee; --accent-soft: rgba(34,211,238,.14); --accent-dark: #0891b2; --accent-glow: rgba(34,211,238,.26); }
[data-model="forge"] { --accent: #ef4444; --accent-soft: rgba(239,68,68,.14);  --accent-dark: #b91c1c; --accent-glow: rgba(239,68,68,.30); }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-feature-settings: "palt";
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Layout primitives ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 20, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  flex: none;
}
.brand__logo-mark {
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
}
.brand__logo-text {
  height: 24px;
  width: auto;
  display: block;
}
.brand__name {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .14em;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--outline:hover { border-color: var(--text); background: var(--bg-elevated); }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--block { width: 100%; }
.btn .arrow { width: 14px; height: 14px; }

/* =========================================================
   Hero (top page)
   ========================================================= */
/* =========================================================
   Hero — full-bleed image carousel (top page)
   各スライド=1枚の完成画像（キャッチ・サブ・モデル名・価格込み）
   背景画像は assets/img/hero-{model}.jpg に配置
   未配置時はフォールバックのグラデーションが表示される
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0b1220;
}
.hero__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform .8s cubic-bezier(.4, .15, .2, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.hero-slide__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 各モデル：実画像 + フォールバックグラデーション
   画像が assets/img/hero-{model}.jpg に存在しない場合は下層のグラデーションが表示される */
.hero-slide[data-model="air"] .hero-slide__img {
  background-image:
    url('../img/hero-base.jpg'),
    linear-gradient(135deg, #1a2d5b 0%, #2c4ba8 50%, #16308f 100%);
}
.hero-slide[data-model="arena"] .hero-slide__img {
  background-image:
    url('../img/hero-gamer.jpg'),
    linear-gradient(135deg, #1a0a44 0%, #3a1a8a 50%, #2a1758 100%);
}
.hero-slide[data-model="bloom"] .hero-slide__img {
  background-image:
    url('../img/hero-bloom.jpg'),
    linear-gradient(135deg, #fff0f7 0%, #ffd2e8 50%, #e2c4f0 100%);
}
.hero-slide[data-model="ai"] .hero-slide__img {
  background-image:
    url('../img/hero-ai.jpg'),
    linear-gradient(135deg, #122766 0%, #2549b6 50%, #1e3a8a 100%);
}
.hero-slide[data-model="forge"] .hero-slide__img {
  background-image:
    url('../img/hero-highend.jpg'),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #6e1212 100%);
}

/* Nav arrows */
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0a0d14;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: background .2s ease, transform .15s ease;
}
.carousel__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel__nav--prev { left: 24px; }
.carousel__nav--next { right: 24px; }

/* Dots */
.carousel__dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel__dot {
  width: 28px; height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .55);
  transition: background .2s ease, width .25s ease;
  cursor: pointer;
  border: 0;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.carousel__dot.is-active { background: #fff; width: 40px; }

/* =========================================================
   Section headers
   ========================================================= */
.section-head { margin-bottom: 40px; }
.section-head__eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.005em;
}
.section-head__lead { color: var(--text-secondary); margin: 0; }

/* =========================================================
   Use-case model cards (top page)
   ========================================================= */
.use-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.use-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tinted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.use-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.use-card__scene {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background-color: #0f1726; /* 画像読み込み前のフォールバック */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* モデル別の実画像差し込み */
.use-card[data-model="air"]    .use-card__scene { background-image: url("../img/card-base.jpg"); }
.use-card[data-model="arena"]   .use-card__scene { background-image: url("../img/card-gamer.jpg"); }
.use-card[data-model="bloom"]   .use-card__scene { background-image: url("../img/card-bloom.jpg"); }
.use-card[data-model="ai"]      .use-card__scene { background-image: url("../img/card-ai.jpg"); }
.use-card[data-model="forge"] .use-card__scene { background-image: url("../img/card-highend.jpg"); }
/* プレースホルダ要素を非表示（HTML側を触らずに済ませるため） */
.use-card__scene-fill,
.use-card__scene-label,
.use-card__pc { display: none; }
.use-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.use-card__name {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.use-card__benefit {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  min-height: 3.6em;
}
.use-card__price {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
}
.use-card__price strong { font-size: 22px; font-weight: 800; margin-right: 2px; }
.use-card__price small { font-size: 12px; color: var(--text-muted); margin-left: 4px; font-weight: 500; }
.use-card__more {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transition: background .2s ease, border-color .2s ease;
}
.use-card__more:hover {
  background: var(--bg-soft);
  border-color: var(--text);
}

/* =========================================================
   3 step customize
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 56px;
  align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 56px;
}
.steps__lead h2 {
  font-size: 30px;
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.3;
}
.steps__lead p { color: var(--text-secondary); margin: 0 0 24px; }
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tinted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .12em;
}
.step__title { font-weight: 800; font-size: 16px; margin: 0; }
.step__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__desc { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* =========================================================
   Support strip
   ========================================================= */
.support {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.support__item {
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border-right: 1px solid var(--border);
}
.support__item:last-child { border-right: 0; }
.support__icon {
  width: 36px; height: 36px;
  margin-bottom: 6px;
  color: var(--brand);
}
.support__title { font-weight: 800; font-size: 14.5px; margin: 0; }
.support__desc { font-size: 12.5px; color: var(--text-muted); margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  margin-top: 40px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: #06080d;
  color: var(--text-secondary);
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.site-footer__brand-area { max-width: 340px; }
.site-footer__brand-desc {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer__links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col__title {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--text); }
.site-footer__notice {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 28px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

/* =========================================================
   Model list page
   ========================================================= */
.model-list-head {
  padding: 24px 0 32px;
}
.model-list-head h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 900;
  margin: 4px 0 12px;
  letter-spacing: -.01em;
}
.model-list-head p { color: var(--text-secondary); margin: 0; max-width: 640px; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}
.model-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tinted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.model-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.model-card__header { display: flex; flex-direction: column; gap: 6px; }
.model-card__name {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--accent);
}
.model-card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  min-height: 2.7em;
}
.model-card__visual {
  aspect-ratio: 4/3;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #0f1726; /* 画像読み込み前のフォールバック */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* モデル別の実画像差し込み（用途別カードと同じ画像を共用） */
.model-card[data-model="air"]    .model-card__visual { background-image: url("../img/card-base.jpg"); }
.model-card[data-model="arena"]   .model-card__visual { background-image: url("../img/card-gamer.jpg"); }
.model-card[data-model="bloom"]   .model-card__visual { background-image: url("../img/card-bloom.jpg"); }
.model-card[data-model="ai"]      .model-card__visual { background-image: url("../img/card-ai.jpg"); }
.model-card[data-model="forge"] .model-card__visual { background-image: url("../img/card-highend.jpg"); }
/* プレースホルダ要素を非表示 */
.model-card__visual-fill,
.model-card__pc { display: none; }
.model-card__price {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}
.model-card__price strong { font-size: 26px; font-weight: 800; margin-right: 2px; }
.model-card__price small { font-size: 11px; color: var(--text-muted); margin-left: 4px; font-weight: 500; }
.model-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease;
}
.model-card__cta:hover { background: var(--accent-dark); }

/* =========================================================
   Model detail page
   ========================================================= */
.model-detail-head { padding: 24px 0 32px; }
.model-detail-head h1 {
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 900;
  margin: 4px 0 10px;
  letter-spacing: -.01em;
  color: var(--text);
}
.model-detail-head h1 .dot {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: 8px;
  margin-left: 6px;
}
.model-detail-head p { color: var(--text-secondary); margin: 0; max-width: 760px; }

.config-grid {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
}
.panel {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tinted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.panel__title .icon { color: var(--accent); width: 20px; height: 20px; }

.config-list { display: flex; flex-direction: column; gap: 0; }
.config-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}
.config-row:last-child { border-bottom: 0; }
.config-row__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.config-row__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-all;
  transition: color .25s ease;
}
.config-row__value.is-updated { color: var(--accent); }

.pc-stage {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pc-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, var(--accent-glow), transparent 70%);
  opacity: .6;
}
.pc-stage__inner {
  position: relative;
  width: 78%;
  max-width: 460px;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  overflow: hidden;
}
/* モデル別の実画像差し込み */
.pc-stage[data-model="air"]    .pc-stage__inner { background-image: url("../img/detail-base.jpg"); }
.pc-stage[data-model="arena"]   .pc-stage__inner { background-image: url("../img/detail-gamer.jpg"); }
.pc-stage[data-model="bloom"]   .pc-stage__inner { background-image: url("../img/detail-bloom.jpg"); }
.pc-stage[data-model="ai"]      .pc-stage__inner { background-image: url("../img/detail-ai.jpg"); }
.pc-stage[data-model="forge"] .pc-stage__inner { background-image: url("../img/detail-highend.jpg"); }
/* プレースホルダSVG／ラベルを非表示（HTML側を触らずに済ませるため） */
.pc-stage__inner > svg { display: none; }
.pc-stage__label { display: none; }

.tuning-list { display: flex; flex-direction: column; gap: 4px; }
.tuning-row {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.tuning-row:last-child { border-bottom: 0; }
.tuning-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tuning-row__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.tuning-row__current {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}
.tuning-row__toggle {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color .15s ease;
}
.tuning-row__toggle:hover { color: var(--accent-dark); }
.tuning-row__toggle .chev { transition: transform .2s ease; }
.tuning-row.is-open .tuning-row__toggle .chev { transform: rotate(180deg); }
.tuning-row__options {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.tuning-row.is-open .tuning-row__options { display: flex; }
.tuning-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  background: var(--bg-elevated);
  transition: border-color .15s ease, background .15s ease;
  text-align: left;
  width: 100%;
}
.tuning-option__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.tuning-option__benefit {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
}
.tuning-option:hover { border-color: var(--accent); }
.tuning-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tuning-option.is-selected .tuning-option__benefit { color: var(--text); }
.tuning-option__label { color: var(--text); font-weight: 600; }
.tuning-option__delta {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.tuning-option.is-selected .tuning-option__delta { color: var(--accent); }

/* Incompatible / disabled choice — 整合性NGでグレーアウト */
.tuning-option.is-incompatible,
.tuning-option:disabled {
  opacity: .45;
  cursor: not-allowed;
  background: var(--bg-soft);
  border-color: var(--border);
  position: relative;
}
.tuning-option.is-incompatible:hover,
.tuning-option:disabled:hover {
  border-color: var(--border);
}
.tuning-option.is-incompatible .tuning-option__label,
.tuning-option:disabled .tuning-option__label,
.tuning-option.is-incompatible .tuning-option__delta,
.tuning-option:disabled .tuning-option__delta {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(170, 178, 194, .35);
}
.tuning-option.is-incompatible .tuning-option__benefit,
.tuning-option:disabled .tuning-option__benefit {
  color: var(--text-muted);
}

.price-card {
  margin-top: 16px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tinted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 26px;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, var(--accent-glow), transparent 60%);
  opacity: .35;
  pointer-events: none;
}
.price-card > * { position: relative; }
.price-card__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.price-card__amount {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 40px;
  color: var(--accent);
  letter-spacing: -.01em;
  line-height: 1.1;
  transition: color .25s ease;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-card__amount .yen { font-size: 22px; font-weight: 700; }
.price-card__amount.is-flash {
  animation: flash .5s ease;
}
@keyframes flash {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.price-card__note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
}
.price-card .btn { margin-top: 16px; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-head { padding: 24px 0 24px; }
.contact-head h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  margin: 4px 0 12px;
  letter-spacing: -.01em;
}
.contact-head p { color: var(--text-secondary); margin: 0; max-width: 620px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-bottom: 80px;
}
.summary-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tinted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  align-self: start;
}
.summary-card h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-card h2 .accent-bar {
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--brand);
  border-radius: 2px;
}
.summary-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.summary-row:last-of-type { border-bottom: 0; }
.summary-row__k { color: var(--text-muted); font-weight: 700; font-size: 12.5px; }
.summary-row__v { color: var(--text); font-weight: 600; text-align: right; }
.summary-card__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.summary-card__total-label { font-size: 13px; font-weight: 700; }
.summary-card__total-amount {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
}
.summary-card__total-amount .yen { font-size: 16px; }
.summary-card__empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.contact-form {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tinted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.field { margin-bottom: 18px; }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.field__label .req {
  display: inline-block;
  font-size: 10px;
  color: #fff;
  background: #dc2626;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: 2px;
}
.field__input,
.field__textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-elevated);
  transition: border-color .15s ease, box-shadow .15s ease;
  color: var(--text);
}
.field__input::placeholder,
.field__textarea::placeholder { color: var(--text-muted); }
.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: var(--bg-card);
}
.field__textarea { min-height: 120px; resize: vertical; }
.form-actions { margin-top: 24px; }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet & below */
@media (max-width: 1024px) {
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .support { grid-template-columns: repeat(5, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .config-grid { grid-template-columns: 1fr; gap: 20px; }
  .pc-stage { min-height: 360px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Model detail page: reorder for mobile UX */
  .config-grid > .pc-stage     { order: 1; }
  .config-grid > aside:nth-of-type(1) { order: 2; }  /* parts list */
  .config-grid > aside:nth-of-type(2) { order: 3; }  /* tuning + price */
}

/* Mobile */
@media (max-width: 768px) {
  /* Hero — 16:9 のまま縮小。画像内文字も同じ比率で縮む */
  .carousel__nav {
    width: 36px; height: 36px;
  }
  .carousel__nav--prev { left: 12px; }
  .carousel__nav--next { right: 12px; }
  .carousel__dots { bottom: 14px; }
  .carousel__dot { width: 22px; }
  .carousel__dot.is-active { width: 32px; }
}

/* Smaller phones */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }

  /* Header */
  .nav { display: none; }
  .site-header__inner { gap: 12px; }
  .brand__name { font-size: 18px; }
  .brand__logo { height: 34px; gap: 8px; }
  .brand__logo-mark { height: 34px; width: 34px; }
  .brand__logo-text { height: 20px; }
  .site-header .btn--brand {
    padding: 10px 14px;
    font-size: 12.5px;
  }
  .site-header .btn--brand .arrow { display: none; }

  /* Section heads */
  .section-head { margin-bottom: 28px; }
  .section-head__title { font-size: 26px; }

  /* Use grid */
  .use-grid { grid-template-columns: 1fr; gap: 16px; }
  .use-card__benefit { min-height: 0; }

  /* Steps */
  .steps { padding: 32px 22px; gap: 24px; }
  .steps__lead h2 { font-size: 24px; }
  .steps__list { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 20px; }

  /* Support */
  .support { grid-template-columns: repeat(2, 1fr); }
  .support__item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 14px;
  }
  .support__item:nth-child(2n) { border-right: 0; }
  .support__item:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  /* Model grid */
  .model-grid { grid-template-columns: 1fr; gap: 18px; }
  .model-card { padding: 22px; }
  .model-list-head h1 { font-size: 32px; }
  .model-detail-head h1 { font-size: 32px; }
  .model-detail-head h1 .dot { width: 12px; height: 12px; vertical-align: 5px; }

  /* Model detail */
  .panel { padding: 20px; }
  .config-row { grid-template-columns: 84px 1fr; gap: 10px; padding: 12px 0; }
  .config-row__label { font-size: 11.5px; }
  .config-row__value { font-size: 13px; }
  .pc-stage { min-height: 300px; }
  .pc-stage__inner { width: 65%; max-width: 280px; }
  .price-card { padding: 20px 22px 22px; }
  .price-card__amount { font-size: 34px; }
  .price-card__amount .yen { font-size: 18px; }

  /* Contact */
  .contact-form, .summary-card { padding: 22px; }
  .contact-head h1 { font-size: 28px; }
  .summary-card__total-amount { font-size: 24px; }

  /* Footer */
  .site-footer { padding: 48px 0 28px; }
  .site-footer__top { flex-direction: column; gap: 28px; }
  .site-footer__links { gap: 24px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Extra small (very narrow phones) */
@media (max-width: 380px) {
  .site-header .btn--brand {
    padding: 9px 12px;
    font-size: 11.5px;
  }
}

/* =========================================================
   Legal / Information pages (Privacy, Tokushoho)
   ========================================================= */
.legal-main { padding: 40px 0 80px; }
.legal-head {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.legal-head h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px;
}
.legal-head__lead {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}
.legal-body { max-width: 880px; }
.legal-body section {
  margin: 28px 0;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.legal-body p {
  margin: 8px 0;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text);
}
.legal-body ul, .legal-body ol {
  margin: 10px 0;
  padding-left: 22px;
}
.legal-body li {
  line-height: 1.8;
  font-size: 14px;
  margin: 4px 0;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.legal-table th, .legal-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  width: 28%;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--text);
}
.legal-table td { color: var(--text); }
.legal-meta {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .legal-head h1 { font-size: 22px; }
  .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { border-bottom: 0; padding-bottom: 4px; }
  .legal-table td { padding-top: 4px; padding-bottom: 14px; }
}
