/* ============================================================
   GARAGE NEXUS YOKOHAMA（PORTFOLIO DEMO）  style.css
   構成：
    1. トークン / リセット
    2. レイアウト共通
    3. ボタン・バッジ・フォームパーツ
    4. 画像プレースホルダー（.frame）
    5. デモバー
    6. ヘッダー / ナビ / モバイルナビ
    7. ヒーロー
    8. QUICK SEARCH
    9. BODY TYPE
   10. 在庫カード / 在庫グリッド
   11. STOCK LIST（フィルター・並び替え）
   12. 車両詳細（ギャラリー・スペック・ライトボックス）
   13. PURCHASE（買取査定）
   14. SERVICE
   15. FINANCE（ローンシミュレーター）
   16. WHY US
   17. ABOUT
   18. STAFF
   19. CUSTOMER VOICE
   20. SHOP / ACCESS
   21. FAQ
   22. 最終CTA（CONTACT）/ 来店予約フォーム
   23. フッター
   24. モバイル固定CTA
   25. reveal アニメーション
   26. レスポンシブ
   ============================================================ */

/* ============ 1. トークン / リセット ============ */
:root {
  --black: #0e0e10;
  --charcoal: #19191b;
  --dark: #242426;
  --gray: #565660;
  --paper: #f5f5f6;
  --paper-2: #ebebed;
  --white: #ffffff;
  --line: #dcdcdf;
  --line-2: #c6c6cb;
  --ink: #17171a;
  --ink-soft: #55555f;
  --ink-faint: #8b8b92;
  --blue: #3c6088;
  --blue-dark: #2c4a6b;
  --blue-tint: #e7edf3;
  --silver: #9aa0a6;
  --danger: #b3402f;
  --ok: #3f7a52;

  --f-en: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --f-head: "Zen Kaku Gothic New", var(--f-jp);

  --container: 1280px;
  --radius: 3px;
  --radius-sm: 2px;
  --shadow-sm: 0 2px 10px rgba(10, 10, 12, 0.08);
  --shadow-md: 0 16px 44px rgba(10, 10, 12, 0.18);
  --dur: 0.45s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.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;
}

.skip-link {
  position: absolute;
  top: -48px; left: 12px;
  z-index: 2000;
  padding: 10px 18px;
  background-color: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============ 2. レイアウト共通 ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--dark { background-color: var(--charcoal); color: rgba(255, 255, 255, 0.88); }
.section--paper2 { background-color: var(--paper-2); }

.breadcrumb { font-family: var(--f-en); font-size: 0.82rem; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 26px; }
.breadcrumb a { border-bottom: 1px solid var(--line-2); }

.eyebrow {
  font-family: var(--f-en);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #8fb0d1; }
.section-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.5;
}
.section--dark .section-title { color: var(--white); }
.section-lead { margin-top: 18px; max-width: 46em; color: var(--ink-soft); font-size: 0.98rem; }
.section--dark .section-lead { color: rgba(255, 255, 255, 0.66); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }

/* ============ 3. ボタン・バッジ・フォームパーツ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--f-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--primary { background-color: var(--black); border-color: var(--black); color: var(--white); }
.btn--primary:hover { background-color: var(--charcoal); }
.btn--accent { background-color: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--accent:hover { background-color: var(--blue-dark); border-color: var(--blue-dark); }
.btn--outline { border-color: var(--black); color: var(--black); }
.btn--outline:hover { background-color: var(--black); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--outline-light:hover { background-color: var(--white); color: var(--black); }
.btn--sm { padding: 10px 20px; font-size: 0.8rem; }
.btn--lg { padding: 18px 36px; font-size: 0.96rem; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 2px;
  font-family: var(--f-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.badge--demo { background-color: var(--black); color: var(--white); }
.badge--new { background-color: var(--blue); color: var(--white); }
.badge--tag { background-color: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line-2); }

.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field__label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.field__req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: var(--blue-tint);
  color: var(--blue-dark);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.field__input, .field__select, .field__textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  font-size: 0.94rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease);
}
.field__input:focus, .field__select:focus, .field__textarea:focus { border-color: var(--blue); }
.field__textarea { resize: vertical; min-height: 130px; }
.field__input.is-invalid, .field__select.is-invalid, .field__textarea.is-invalid { border-color: var(--danger); }
.field__error { margin-top: 6px; min-height: 1em; font-size: 0.8rem; color: var(--danger); }
.form__note { margin-top: 18px; font-size: 0.92rem; font-weight: 700; text-align: center; }
.form__note.is-error { color: var(--danger); }
.form__note.is-ok { color: var(--ok); }
.form__demo-notice {
  margin-bottom: 26px;
  padding: 15px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background-color: var(--paper);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.form-card { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 46px); background-color: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-md); }

/* ============ 4. 画像プレースホルダー（.frame） ============ */
.frame {
  position: relative;
  overflow: hidden;
  background-color: var(--paper-2);
  border: 1px solid var(--line);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, transparent 46%, var(--line) 47%, var(--line) 53%, transparent 54%);
  opacity: 0.5;
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.frame.has-image img { opacity: 1; }
.frame.has-image::before { display: none; }
.frame__label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-en);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-align: center;
  padding: 0 12px;
}
.frame.has-image .frame__label { display: none; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--1x1 { aspect-ratio: 1 / 1; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--3x2 { aspect-ratio: 3 / 2; }

/* ============ 5. デモバー ============ */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 20px;
  background-color: var(--black);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}
.demo-bar__tag {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: #8fb0d1;
  font-family: var(--f-en);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* ============ 6. ヘッダー / ナビ ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(14, 14, 16, 0.95);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 15px 28px;
}
.brand { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.brand__en { font-family: var(--f-en); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; color: var(--white); line-height: 1; }
.brand__jp { font-family: var(--f-jp); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--silver); }

.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__link {
  font-family: var(--f-en);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.68);
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); border-color: var(--blue); }

.header__side { display: flex; align-items: center; gap: 16px; }
.header__phone { display: none; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.header__phone-label { font-size: 0.64rem; color: rgba(255, 255, 255, 0.5); }
.header__phone-num { font-family: var(--f-en); font-size: 1.05rem; font-weight: 500; color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background-color: var(--white); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1400;
  width: min(86vw, 380px);
  height: 100%;
  background-color: var(--black);
  color: var(--white);
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__list { display: grid; gap: 4px; margin-bottom: 34px; }
.mobile-nav__list a {
  display: block;
  padding: 15px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--f-en);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.mobile-nav__list a[aria-current="page"] { color: #8fb0d1; }
.mobile-nav__cta { margin-bottom: 22px; }
.mobile-nav__phone { text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.mobile-nav__phone-num { display: block; margin-top: 4px; font-family: var(--f-en); font-size: 1.25rem; font-weight: 500; color: var(--white); }

body.has-mobile-cta { padding-bottom: 68px; }

/* ============ 7. ヒーロー ============ */
.hero {
  position: relative;
  min-height: min(860px, 100vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--black);
}
.hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__media .frame { width: 100%; height: 100%; border: 0; }
/* プレースホルダー用の.frame__label（"FIND YOUR NEXT DRIVE."）が.hero__enと
   同じ文言のため、画像読み込み完了までの間（has-imageクラス付与前）は
   透明な.hero__innerを通して裏に重なって見え、見出しの二重描画に見える
   原因になっていた。ヒーロー画像は常に用意されている前提のため、
   このラベルはヒーローでは常に非表示にする */
.hero__media .frame__label { display: none; }
/* ヒーローの<img>はブラウザの再描画不具合を避けるため常に非表示にし、
   読み込み検知だけに使う。実際の表示は .hero__media の
   background-image（js/main.jsで設定）で行う */
.hero__media .frame img { opacity: 0 !important; transition: none; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 9, 0.2) 0%, rgba(8, 8, 9, 0.58) 60%, rgba(8, 8, 9, 0.9) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px clamp(44px, 8vw, 84px);
  color: var(--white);
}
.hero__en {
  font-family: var(--f-en);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
}
.hero__copy {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2rem, 5.6vw, 3.8rem);
  line-height: 1.42;
  max-width: 17em;
}
.hero__sub { margin-top: 20px; font-size: clamp(0.92rem, 1.6vw, 1.02rem); color: rgba(255, 255, 255, 0.8); max-width: 30em; }
.hero__brand {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
}
.hero__brand-en { font-family: var(--f-en); font-size: 1.15rem; font-weight: 600; }
.hero__brand-jp { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute;
  right: 28px;
  bottom: clamp(22px, 4vw, 38px);
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--f-en);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}
.hero__scroll-line { width: 1px; height: 46px; background-color: rgba(255, 255, 255, 0.35); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background-color: var(--blue);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll-line::after { animation: none; top: 40%; } }

/* ============ 8. QUICK SEARCH ============ */
.search {
  position: relative;
  z-index: 3;
  margin-top: -84px;
}
.search__card {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 40px);
  background-color: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.search__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.search__head-en { font-family: var(--f-en); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; }
.search__head-jp { font-size: 0.86rem; color: var(--ink-soft); }
.search__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: end; }
.search__grid .field { margin-bottom: 0; }
.search__grid .btn { width: 100%; }

/* ============ 9. BODY TYPE ============ */
.bodytype-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bodytype-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 10px 16px;
  border: 1px solid var(--line);
  background-color: var(--white);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.bodytype-item:hover, .bodytype-item.is-active { border-color: var(--black); background-color: var(--black); }
.bodytype-item:hover .bodytype-item__label, .bodytype-item.is-active .bodytype-item__label { color: var(--white); }
.bodytype-item:hover .bodytype-item__jp, .bodytype-item.is-active .bodytype-item__jp { color: rgba(255,255,255,0.6); }
.bodytype-item:hover svg, .bodytype-item.is-active svg { stroke: var(--white); }
.bodytype-item svg { width: 46px; height: 30px; stroke: var(--ink); fill: none; stroke-width: 1.4; transition: stroke var(--dur) var(--ease); }
.bodytype-item__label { font-family: var(--f-en); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.bodytype-item__jp { font-size: 0.7rem; color: var(--ink-faint); }

/* ============ 10. 在庫カード / 在庫グリッド ============ */
.vehicle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.vehicle-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.vehicle-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.vehicle-card__media { position: relative; }
.vehicle-card__media .frame { aspect-ratio: 4 / 3; border: 0; }
.vehicle-card__media img { transition: transform 0.7s var(--ease); }
.vehicle-card:hover .vehicle-card__media img { transform: scale(1.045); }
.vehicle-card__tags { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; gap: 6px; }
.vehicle-card__status { position: absolute; right: 10px; top: 10px; z-index: 2; }
.vehicle-card__body { display: flex; flex-direction: column; flex-grow: 1; padding: 18px 20px 20px; }
.vehicle-card__maker { font-family: var(--f-en); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--ink-faint); text-transform: uppercase; }
.vehicle-card__title { margin-top: 4px; font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.vehicle-card__grade { font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }
.vehicle-card__price { margin-top: 12px; font-family: var(--f-en); font-size: 1.55rem; font-weight: 600; color: var(--ink); }
.vehicle-card__price .unit { font-size: 0.7rem; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.vehicle-card__total { font-size: 0.74rem; color: var(--ink-faint); margin-top: 2px; }
.vehicle-card__meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.vehicle-card__meta b { color: var(--ink); font-weight: 700; }
.vehicle-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vehicle-card__link { font-family: var(--f-en); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); border-bottom: 1px solid var(--ink); }
.vehicle-card__link:hover { color: var(--blue); border-color: var(--blue); }

.empty-state { padding: 48px 24px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line-2); grid-column: 1 / -1; }

/* ============ 11. STOCK LIST ============ */
.stock-toolbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 22px;
  background-color: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
.stock-toolbar .field { margin-bottom: 0; }
.stock-resultbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.stock-resultbar__count { font-family: var(--f-en); font-size: 0.94rem; color: var(--ink-soft); }
.stock-resultbar__count b { font-size: 1.3rem; color: var(--ink); }
.stock-resultbar__sort { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.stock-resultbar__sort select { padding: 9px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background-color: var(--white); }

/* ============ 12. 車両詳細 ============ */
.vd-gallery { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.vd-gallery__main { position: relative; }
.vd-gallery__main .frame { aspect-ratio: 4 / 3; }
.vd-gallery__main-btn { position: absolute; inset: 0; width: 100%; height: 100%; cursor: zoom-in; }
.vd-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; max-height: calc(4 / 3 * (100% - 0px)); overflow-y: auto; }
.vd-gallery__thumbs .frame { aspect-ratio: 4 / 3; cursor: pointer; opacity: 0.55; transition: opacity var(--dur) var(--ease); }
.vd-gallery__thumbs button { border: 0; padding: 0; display: block; }
.vd-gallery__thumbs .frame.is-active { opacity: 1; outline: 2px solid var(--blue); outline-offset: -2px; }
.vd-gallery__thumbs .frame:hover { opacity: 0.85; }

.vd-title-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; margin-bottom: 8px; }
.vd-maker { font-family: var(--f-en); font-size: 0.86rem; letter-spacing: 0.08em; color: var(--ink-faint); text-transform: uppercase; }
.vd-title { font-family: var(--f-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.vd-grade { font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }

.vd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 32px; }
.vd-price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vd-price { font-family: var(--f-en); font-size: 2.3rem; font-weight: 600; color: var(--ink); }
.vd-price .unit { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.vd-total { font-size: 0.84rem; color: var(--ink-soft); }
.vd-total b { color: var(--ink); font-family: var(--f-en); font-size: 1.05rem; }

.vd-table { margin-top: 28px; border-top: 1px solid var(--line); }
.vd-table > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.vd-table dt { color: var(--ink-faint); font-family: var(--f-en); font-size: 0.78rem; letter-spacing: 0.04em; }
.vd-table dd { margin: 0; color: var(--ink); }

.vd-block { margin-top: 36px; }
.vd-block h2 { font-family: var(--f-head); font-size: 1.08rem; margin-bottom: 12px; }
.vd-block p { color: var(--ink-soft); font-size: 0.95rem; }
.vd-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vd-features li { font-size: 0.82rem; padding: 6px 14px; background-color: var(--paper-2); color: var(--ink-soft); }

.vd-side { align-self: start; position: sticky; top: 100px; padding: 24px; background-color: var(--paper-2); border: 1px solid var(--line); }
.vd-side h2 { font-family: var(--f-head); font-size: 1rem; margin-bottom: 6px; }
.vd-side p { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 18px; }
.vd-side .btn { margin-bottom: 10px; }
.vd-side__phone { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); text-align: center; }
.vd-side__phone-num { display: block; font-family: var(--f-en); font-size: 1.28rem; font-weight: 600; color: var(--ink); }
.vd-demo-note { margin-top: 40px; }

/* ライトボックス */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(6, 6, 7, 0.94);
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 84vh; object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { border-color: var(--white); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-family: var(--f-en); font-size: 0.82rem; letter-spacing: 0.06em; }

/* ============ 13. PURCHASE ============ */
.purchase-hero { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.purchase-hero__media .frame { aspect-ratio: 4 / 5; }
.purchase-worries { margin-top: 26px; border-top: 1px solid var(--line); }
.purchase-worries li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; color: var(--ink-soft); position: relative; padding-left: 22px; }
.purchase-worries li::before { content: "―"; position: absolute; left: 0; color: var(--blue); }
.purchase-reassure { margin-top: 26px; padding: 18px 22px; background-color: var(--blue-tint); color: var(--blue-dark); font-size: 0.92rem; }

/* ============ 14. SERVICE ============ */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 100px 1.1fr 1.6fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.service-row__num { font-family: var(--f-en); font-size: 2rem; font-weight: 600; color: var(--line-2); line-height: 1; }
.service-row__name { font-family: var(--f-head); font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.service-row__text { color: var(--ink-soft); font-size: 0.94rem; }

/* ============ 15. FINANCE ============ */
.finance { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); }
.finance-card { padding: clamp(26px, 4vw, 38px); background-color: var(--white); border: 1px solid var(--line); }
.finance-result {
  margin-top: 24px;
  padding: 22px 24px;
  background-color: var(--charcoal);
  color: var(--white);
}
.finance-result__label { font-family: var(--f-en); font-size: 0.76rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); }
.finance-result__value { margin-top: 8px; font-family: var(--f-en); font-size: 2.4rem; font-weight: 600; }
.finance-result__value .unit { font-size: 0.9rem; font-weight: 500; margin-left: 6px; color: rgba(255,255,255,0.7); }
.finance-note { margin-top: 18px; font-size: 0.8rem; color: var(--ink-faint); }
.finance-slider { display: flex; align-items: center; gap: 14px; }
.finance-slider input[type="range"] { flex: 1; accent-color: var(--blue); }
.finance-slider output { font-family: var(--f-en); font-size: 0.94rem; font-weight: 600; min-width: 4.5em; text-align: right; }

/* ============ 16. WHY US ============ */
.reasons-list { border-top: 1px solid var(--line); }
.reason-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.reason-row__num { font-family: var(--f-en); font-size: 1.7rem; font-weight: 600; color: var(--blue); line-height: 1; }
.reason-row__title { font-family: var(--f-head); font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.reason-row__text { color: var(--ink-soft); font-size: 0.94rem; }

/* ============ 17. ABOUT ============ */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__media { position: relative; }
.about__media .frame { aspect-ratio: 4 / 5; }
.about__media-tag {
  position: absolute;
  left: -20px; bottom: -20px;
  z-index: 2;
  background-color: var(--black);
  color: var(--white);
  padding: 18px 22px;
  max-width: 240px;
}
.about__media-tag .num { font-family: var(--f-en); font-size: 1.9rem; font-weight: 600; color: #8fb0d1; line-height: 1; }
.about__media-tag .txt { margin-top: 6px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); }
.about__copy { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.55; margin-bottom: 24px; }
.about__text p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 16px; }
.about__text p:last-child { margin-bottom: 0; }

/* ============ 18. STAFF ============ */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.staff-card { display: flex; flex-direction: column; }
.staff-card .frame { aspect-ratio: 4 / 5; }
.staff-card__role { margin-top: 16px; font-family: var(--f-en); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; color: var(--blue); text-transform: uppercase; }
.staff-card__name { margin-top: 4px; font-size: 1.15rem; font-weight: 700; }
.staff-card__jp { font-size: 0.84rem; color: var(--ink-soft); }
.staff-card__fav { margin-top: 10px; font-size: 0.82rem; color: var(--ink-soft); }
.staff-card__fav b { color: var(--ink); }
.staff-card__quote { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink); }
.staff-note { margin-top: 36px; text-align: center; font-size: 0.8rem; color: var(--ink-faint); }

/* ============ 19. CUSTOMER VOICE ============ */
.voice-disclaimer {
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 12px 18px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice-item { padding: 24px 22px; background-color: var(--white); border: 1px solid var(--line); }
.voice-item p { font-size: 0.94rem; color: var(--ink); }
.voice-item footer { margin-top: 14px; font-size: 0.78rem; color: var(--ink-faint); }

/* ============ 20. SHOP / ACCESS ============ */
.shop-table { border-top: 1px solid var(--line); }
.shop-table > div { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.shop-table dt { color: var(--ink-faint); font-family: var(--f-en); font-size: 0.78rem; letter-spacing: 0.04em; }
.shop-table dd { margin: 0; }
.shop-lines { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-lines li { font-size: 0.82rem; padding: 5px 12px; background-color: var(--paper-2); color: var(--ink-soft); }

.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.map-holder {
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 24px;
  background-color: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-faint);
}
.map-holder span { font-family: var(--f-en); font-weight: 600; letter-spacing: 0.16em; font-size: 0.85rem; }
.map-holder p { font-size: 0.8rem; }

/* ============ 21. FAQ ============ */
.faq { display: grid; gap: 1px; background-color: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq__item { background-color: var(--white); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--f-head);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.faq__q:hover { color: var(--blue); }
.faq__mark { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; background-color: var(--blue); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.faq__mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__mark::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__mark::after { transform: scaleY(0); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq__a p { margin: 0 4px 20px; font-size: 0.92rem; color: var(--ink-soft); }

/* ============ 22. 最終CTA / 来店予約フォーム ============ */
.final-cta { position: relative; padding: clamp(72px, 11vw, 128px) 0; color: var(--white); overflow: hidden; }
.final-cta__media { position: absolute; inset: 0; z-index: 0; }
.final-cta__media .frame { width: 100%; height: 100%; border: 0; }
.final-cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,9,0.7) 0%, rgba(8,8,9,0.92) 100%); }
.final-cta__inner { position: relative; z-index: 1; text-align: center; }
.final-cta__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.6; }
.final-cta__lead { margin: 18px auto 0; max-width: 560px; color: rgba(255, 255, 255, 0.78); }
.final-cta__actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.final-cta__phone { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border: 1px solid rgba(255, 255, 255, 0.28); }
.final-cta__phone-num { font-family: var(--f-en); font-size: 1.3rem; font-weight: 600; color: var(--white); }
.final-cta__phone small { display: block; font-size: 0.72rem; color: rgba(255, 255, 255, 0.65); }

/* ============ 23. フッター ============ */
.footer { background-color: var(--black); color: rgba(255, 255, 255, 0.66); }
.footer__inner { max-width: var(--container); margin: 0 auto; padding: clamp(48px, 8vw, 72px) 28px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { font-family: var(--f-en); font-size: 1.15rem; font-weight: 600; color: var(--white); }
.footer__brand-jp { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--silver); }
.footer__addr { margin-top: 16px; font-size: 0.86rem; line-height: 1.9; }
.footer__addr a { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.footer__col-title { font-family: var(--f-en); font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.42); margin-bottom: 16px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; font-size: 0.88rem; }
.footer__nav a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.76rem; }
.footer__demo { max-width: 900px; }

/* ============ 24. モバイル固定CTA ============ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: none;
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background-color: rgba(14, 14, 16, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-cta a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--f-en);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.mobile-cta__reserve { flex: 1.6; background-color: var(--blue); border-color: var(--blue) !important; font-size: 0.78rem; font-weight: 500; }

/* ============ 25. reveal アニメーション ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.count-up { font-family: var(--f-en); font-weight: 600; }

/* ============ 26. レスポンシブ ============ */
@media (max-width: 1180px) {
  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
  .search__grid { grid-template-columns: repeat(3, 1fr); }
  .stock-toolbar { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .about, .purchase-hero { grid-template-columns: 1fr; }
  .about__media, .purchase-hero__media { max-width: 420px; }
  .finance { grid-template-columns: 1fr; }
  .vd-layout { grid-template-columns: 1fr; }
  .vd-side { position: static; }
  .staff-grid, .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .bodytype-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .nav__list { display: none; }
  .nav-toggle { display: flex; }
  .header__phone { display: none !important; }
  .mobile-cta { display: flex; }
  .service-row, .reason-row { grid-template-columns: 60px 1fr; }
  .service-row__text { grid-column: 2 / 3; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .search__grid { grid-template-columns: repeat(2, 1fr); }
  .stock-toolbar { grid-template-columns: repeat(2, 1fr); }
  .vd-gallery { grid-template-columns: 1fr; }
  .vd-gallery__thumbs { flex-direction: row; overflow-x: auto; max-height: none; }
  .vd-gallery__thumbs .frame { flex: 0 0 88px; }
}

@media (max-width: 768px) {
  .header__inner { padding: 13px 20px; }
  .hero { min-height: 92vh; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-row, .reason-row { grid-template-columns: 48px 1fr; }
  .shop-table > div, .vd-table > div { grid-template-columns: 1fr; gap: 4px; }
  .footer__bottom { flex-direction: column; }
  .search { margin-top: -60px; }
  .search__grid { grid-template-columns: 1fr; }
  .bodytype-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid { grid-template-columns: 1fr; }
  .staff-grid, .voice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .about__media-tag { position: static; margin-top: -16px; max-width: none; }
  .hero__actions, .final-cta__actions { flex-direction: column; }
  .hero__actions .btn, .final-cta__actions .btn { width: 100%; }
}
