/* ============================================
   日産プリンス奈良販売 新型エルグランド動画LP（リーフ v2.18 main.css ベース・スキン差替）
   White Editorial / Premium Minimal
   ============================================ */

@import url("tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  letter-spacing: var(--ls-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-base);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 4px;
}

.fact-pending {
  background: #fff2cc;
  color: var(--color-warning);
  padding: 2px 6px;
  border-radius: 4px;
}

.fact-timestamp {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  letter-spacing: var(--ls-base);
}

/* スマホ専用改行：既定は非表示。@media(max-width:767px)で inline に切替 */
.br-sp {
  display: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

/* ─── ヘッダー：透明 → スクロールで白 ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(20, 24, 31, 0.06);
  transition: background var(--transition-base);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: var(--ls-base);
}

.header__logo span {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: var(--fw-normal);
  margin: 0 6px;
  color: var(--color-teal-dark);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
  letter-spacing: var(--ls-base);
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__cta:hover {
  background: var(--color-teal-dark);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}

/* ─── ヘッダー目次ナビ ─── */
.header__nav {
  display: none;
  gap: var(--space-4);
  align-items: center;
}

.header__nav a {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: var(--ls-base);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.header__nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-teal-dark);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.header__nav a:hover {
  color: var(--color-teal-dark);
}

.header__nav a:hover::after {
  transform: scaleX(1);
}

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }
}

/* ─── モバイルメニュー（ハンバーガー） ───
   ヘッダーナビが出ない1024px未満で表示する全画面の目次。
   z-index: ヘッダー(100)の下・フローティングCTA(50)の上 */
.header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: var(--space-2);
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.header__menu-icon {
  position: relative;
}

.header__menu-icon,
.header__menu-icon::before,
.header__menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform var(--transition-base), background var(--transition-base);
}

.header__menu-icon::before,
.header__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.header__menu-icon::before {
  top: -7px;
}

.header__menu-icon::after {
  top: 7px;
}

/* 開いている間は ☰ → ✕ */
.header__menu-btn[aria-expanded="true"] .header__menu-icon {
  background: transparent;
}

.header__menu-btn[aria-expanded="true"] .header__menu-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .header__menu-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .header__menu-btn {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--color-primary);
  padding: calc(72px + var(--space-5)) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility 0s linear 0.3s;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: menu-index;
}

.mobile-menu__list li {
  counter-increment: menu-index;
}

.mobile-menu__list a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-text-inverse);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ゴールドの連番（01〜）。HTML追加なしのCSSカウンタ */
.mobile-menu__list a::before {
  content: counter(menu-index, decimal-leading-zero);
  font-family: var(--font-num);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--color-accent);
}

.mobile-menu__list a::after {
  content: "→";
  margin-left: auto;
  font-family: var(--font-en);
  font-size: var(--fs-sm);
  color: var(--color-accent);
}

/* ─── 開いた瞬間のカスケード演出 ───
   閉状態では各項目を下に待機させ、is-openで上から順に流れ込ませる。
   閉じるときはディレイなしで即リセット（モタつき防止） */
.mobile-menu__list li,
.mobile-menu__cta {
  opacity: 0;
  transform: translateY(18px);
}

.mobile-menu.is-open .mobile-menu__list li,
.mobile-menu.is-open .mobile-menu__cta {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-menu.is-open .mobile-menu__list li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(8) { transition-delay: 0.4s; }
.mobile-menu.is-open .mobile-menu__cta { transition-delay: 0.5s; }

.mobile-menu__list a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.mobile-menu__cta {
  margin-top: var(--space-5);
}

/* メニュー表示中は背面のスクロールを止める */
body.menu-open {
  overflow: hidden;
}

/* ─── チャプター展開 ─── */
.chapters {
  max-width: 900px;
  margin: var(--space-4) auto 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.chapters:hover {
  border-color: var(--color-teal);
}

.chapters[open] {
  border-color: var(--color-teal);
}

.chapters summary {
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-md);
  gap: var(--space-3);
  transition: background var(--transition-fast);
}

.chapters summary::-webkit-details-marker {
  display: none;
}

.chapters__summary-text {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.chapters summary::after {
  content: "+";
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: var(--fw-light);
  color: var(--color-teal);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapters[open] summary::after {
  transform: rotate(45deg);
}

.chapters summary:hover {
  background: rgba(20, 17, 15, 0.04);
}

.chapters__inner {
  padding: var(--space-4) var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.chapters__lead {
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  font-weight: var(--fw-light);
}

.chapters__lead strong {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin-bottom: 6px;
}

.chapters__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.chapters__list .chapters__link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-3);
  align-items: center;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 0;
  color: var(--color-text);
  text-align: left;
  font: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chapters__list .chapters__link:hover,
.chapters__list .chapters__link:focus-visible {
  background: rgba(107, 58, 42, 0.08);
  transform: translateX(4px);
  outline: none;
}

.chapters__list .chapters__link:focus-visible {
  box-shadow: 0 0 0 2px var(--color-teal);
}

/* 再生中のチャプターをハイライト */
.chapters__list .chapters__link.is-active {
  background: var(--color-teal);
  color: var(--color-text-inverse);
}

.chapters__list .chapters__link.is-active .chapters__time,
.chapters__list .chapters__link.is-active .chapters__title {
  color: var(--color-text-inverse);
}

.chapters__time {
  font-family: var(--font-num);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-teal-dark);
  letter-spacing: var(--ls-base);
  text-align: right;
}

.chapters__title {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  font-weight: var(--fw-medium);
}

/* ダーク背景上のチャプター */
.chapters--on-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.chapters--on-dark[open] {
  border-color: var(--color-accent);
}

.chapters--on-dark summary {
  color: var(--color-text-inverse);
}

.chapters--on-dark .chapters__summary-text::before {
  color: var(--color-accent);
}

.chapters--on-dark summary::after {
  color: var(--color-accent);
}

.chapters--on-dark summary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chapters--on-dark .chapters__inner {
  background: rgba(0, 0, 0, 0.15);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.chapters--on-dark .chapters__lead {
  color: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.chapters--on-dark .chapters__lead strong {
  color: var(--color-accent);
}

.chapters--on-dark .chapters__list .chapters__link {
  color: var(--color-text-inverse);
}

.chapters--on-dark .chapters__list .chapters__link:hover,
.chapters--on-dark .chapters__list .chapters__link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.chapters--on-dark .chapters__list .chapters__link.is-active {
  background: var(--color-accent);
}

.chapters--on-dark .chapters__time {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .chapters__list .chapters__link {
    grid-template-columns: 56px 1fr;
    gap: var(--space-2);
  }
  .chapters__time {
    font-size: var(--fs-xs);
  }
  .chapters__title {
    font-size: var(--fs-xs);
  }
}

/* ─── ヒーロー：フルブリードの写真 ─── */
.hero {
  position: relative;
  min-height: 100vh;
  background-image:
    linear-gradient(180deg, rgba(20, 17, 15, 0.05) 0%, rgba(20, 17, 15, 0.65) 100%),
    url("../../images/hero.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  color: var(--color-text-inverse);
  display: flex;
  align-items: flex-end;
  padding: var(--space-9) 0 var(--space-7);
  overflow: hidden;
}

/* PCではオーバーレイ背景を使うため、実画像は隠す（スマホで縦積み表示） */
.hero__image {
  display: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
  width: 100%;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-xwide);
  text-transform: uppercase;
  /* オールドスタイル数字（3が沈む字形）をやめ、標準のライニング数字に */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  /* 明るい空の上でも埋もれないよう純白＋影でコントラストを確保 */
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(20, 17, 15, 0.85), 0 1px 14px rgba(20, 17, 15, 0.5);
  margin-bottom: var(--space-5);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-normal);
  line-height: 1.2;
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-5);
  max-width: 1000px;
  font-family: var(--font-heading);
}

.hero__title-en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.42em;
  font-weight: var(--fw-normal);
  letter-spacing: var(--ls-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-3);
  text-transform: none;
}

.hero__title-accent {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: var(--fw-medium);
  color: #ffd9a8;
}

.hero__subtitle {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  margin: 0 0 var(--space-6);
  max-width: 580px;
  opacity: 0.92;
  font-weight: var(--fw-light);
}

.hero__cta-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.hero__spec-row {
  display: flex;
  gap: var(--space-7);
  margin-top: var(--space-8);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__spec {
  display: flex;
  flex-direction: column;
}

.hero__spec-value {
  font-family: var(--font-num);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-medium);
  color: var(--color-text-inverse);
  line-height: 1;
  letter-spacing: var(--ls-tight);
}

.hero__spec-label {
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-xwide);
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0.75;
  font-weight: var(--fw-medium);
}

@media (max-width: 767px) {
  /* スマホは「写真→コピー」の縦積み。全面背景のトリミングをやめ、
     車全体を見せたうえで、下にネイビーのテキストパネルを置く */
  .hero {
    display: block;
    background-image: none;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    min-height: auto;
    padding: 96px 0 0; /* 固定ヘッダー(約92px)分の余白をネイビーで確保 */
  }
  .hero__image {
    display: block;
    width: 100%;
    height: auto; /* 1456:840 の比率のまま、車全体を切らずに表示 */
  }
  .hero__inner {
    padding: var(--space-6) var(--space-4) var(--space-7);
  }
  .hero__spec-row {
    gap: var(--space-4);
  }
  .hero__spec-value {
    font-size: var(--fs-2xl);
  }
  /* スマホでは見出しが大きすぎて「奈良から福岡まで、」が折り返し、
     句読点が行頭に孤立していた。1行に収まるサイズへ縮小 */
  .hero__title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
  /* heroサブタイトルのPC向け<br>はスマホでガタつくため無効化（自然折り返し）。
     スプリット見出し(h3)の<br>は意味の区切りなのでスマホでも有効に保つ */
  .hero__subtitle br {
    display: none;
  }
  /* スマホ専用の意味改行ユーティリティ（PCでは非表示） */
  .br-sp {
    display: inline;
  }
}

/* ─── CTAボタン ─── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--color-teal);
  color: var(--color-text-inverse);
  font-weight: var(--fw-medium);
  font-size: var(--fs-md);
  padding: 18px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  min-height: 56px;
  letter-spacing: var(--ls-base);
  transition: all var(--transition-fast);
}

.cta::after {
  content: "→";
  font-size: 1.1em;
  transition: transform var(--transition-fast);
  font-family: var(--font-en);
}

.cta:hover {
  background: var(--color-teal-dark);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

.cta:hover::after {
  transform: translateX(6px);
}

.cta--primary {
  background: var(--color-primary);
}

.cta--primary:hover {
  background: var(--color-teal-dark);
  color: var(--color-text-inverse);
}

.cta--accent {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.cta--accent:hover {
  background: var(--color-accent-dark);
  color: var(--color-text-inverse);
}

.cta--outline {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.8);
}

.cta--large {
  font-size: var(--fs-md);
  padding: 22px 52px;
  min-height: 64px;
}

/* ─── セクション ─── */
.section {
  padding: var(--space-8) 0;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  /* 全面ネイビー統一に伴い、連続するセクションの境目を極薄ヘアラインで区切る */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section--alt {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.section--dark {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.section__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-xwide);
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin-bottom: var(--space-3);
  /* オールドスタイル数字（例：2026）を標準のライニング数字に */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.section__eyebrow::before,
.section__eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-teal-dark);
}

.section--dark .section__eyebrow,
.section--alt .section__eyebrow {
  color: var(--color-accent);
}

.section--dark .section__eyebrow::before,
.section--dark .section__eyebrow::after,
.section--alt .section__eyebrow::before,
.section--alt .section__eyebrow::after {
  background: var(--color-accent);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, var(--fs-3xl));
  font-weight: var(--fw-normal);
  text-align: center;
  margin: 0 0 var(--space-3);
  color: var(--color-primary);
  letter-spacing: var(--ls-base);
  line-height: var(--lh-tight);
}

.section--dark .section__title,
.section--alt .section__title {
  color: var(--color-text-inverse);
}

/* 控えめにしたい見出し（例：運営者について）。主張を下げて本文を主役に */
.section__title--compact {
  font-size: clamp(1.25rem, 2.5vw, var(--fs-xl));
}

.section__subtitle {
  font-size: var(--fs-md);
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 auto var(--space-7);
  max-width: 680px;
  line-height: var(--lh-loose);
  font-weight: var(--fw-light);
}

.section--dark .section__subtitle,
.section--alt .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ─── 動画ブロック ─── */
.video-section {
  margin: var(--space-5) auto;
}

.lite-youtube {
  position: relative;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-base);
}

.lite-youtube:hover {
  transform: translateY(-4px);
}

.lite-youtube picture,
.lite-youtube img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.lite-youtube:hover img {
  transform: scale(1.04);
}

.lite-youtube .play-button {
  position: absolute;
  /* 中央配置だとサムネ中央〜右の人物の顔に重なるため、左下に寄せる。
     左下はテロップ帯のことが多いが、顔より優先度が低く同情報は見出しにある */
  bottom: var(--space-4);
  left: var(--space-4);
  width: 72px;
  height: 72px;
  /* 明るいサムネ・暗いサムネどちらでも視認できるようネイビー半透明の下地 */
  background: rgba(20, 17, 15, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
}

.lite-youtube:hover .play-button {
  background: var(--color-teal);
  border-color: var(--color-teal);
  transform: scale(1.1);
}

.lite-youtube .play-button svg {
  width: 32px;
  height: 32px;
  fill: white;
  margin-left: 4px;
}

@media (max-width: 767px) {
  .lite-youtube .play-button {
    width: 56px;
    height: 56px;
    bottom: var(--space-3);
    left: var(--space-3);
  }
  .lite-youtube .play-button svg {
    width: 24px;
    height: 24px;
  }
}

/* iframe差し替え後（再生開始後）の状態 */
.lite-youtube.is-activated {
  cursor: default;
}

.lite-youtube.is-activated:hover {
  transform: none;
}

.lite-youtube.is-activated iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ─── エンティティ定義 ─── */
.entity-definition {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-4);
  font-size: var(--fs-lg);
  line-height: var(--lh-loose);
  text-align: center;
  font-weight: var(--fw-light);
  color: var(--color-text);
}

.entity-definition strong {
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

/* 段落を2つに分けたため、間に余白を確保（margin:0 auto を上書き） */
.entity-definition + .entity-definition {
  margin-top: var(--space-4);
}

/* ネイビー地（section--alt）でのエンティティ定義 */
.section--alt .entity-definition {
  color: var(--color-text-inverse);
}

.section--alt .entity-definition strong {
  color: var(--color-teal);
}

@media (max-width: 767px) {
  .entity-definition br {
    display: none;
  }
}

/* ─── 特徴ブロック ─── */
.features {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.features__item {
  padding: var(--space-5) var(--space-3);
  text-align: center;
  position: relative;
  transition: transform var(--transition-base);
}

.features__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-border);
}

@media (max-width: 1023px) {
  .features__item:not(:last-child)::after {
    display: none;
  }
}

.features__item:hover {
  transform: translateY(-4px);
}

.features__number {
  font-family: var(--font-num);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  /* Cormorantのitalic装飾数字が沈むため、Interのライニング数字でクッキリ表示 */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: var(--color-teal);
  display: block;
  margin-bottom: var(--space-3);
  letter-spacing: var(--ls-wide);
}

.features__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  line-height: var(--lh-tight);
}

.features__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
  margin: 0;
  font-weight: var(--fw-light);
}


/* ─── スプリット ─── */
.split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-8);
  }
  .split--reverse {
    direction: rtl;
  }
  .split--reverse > * {
    direction: ltr;
  }
}

.split__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.split__image:hover img {
  transform: scale(1.04);
}

.split__content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, var(--fs-2xl));
  font-weight: var(--fw-normal);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-base);
}

.split__content p {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
  font-weight: var(--fw-light);
}

.split__content p strong {
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.split__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-xwide);
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin-bottom: var(--space-3);
}

.split__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--color-teal-dark);
}

/* ネイビー地（section--alt）でのスプリット本文 */
.section--alt .split__content h3 {
  color: var(--color-text-inverse);
}

.section--alt .split__content p {
  color: rgba(255, 255, 255, 0.78);
}

.section--alt .split__content p strong {
  color: var(--color-teal);
}

.section--alt .split__eyebrow {
  color: var(--color-accent);
}

.section--alt .split__eyebrow::before {
  background: var(--color-accent);
}

/* ─── 補助金訴求セクション ─── */
.subsidy-highlight {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.subsidy-highlight__label {
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-xwide);
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
  color: var(--color-accent);
  font-weight: var(--fw-medium);
}

.subsidy-highlight__amount {
  font-family: var(--font-num);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: var(--fw-medium);
  color: var(--color-text-inverse);
  line-height: 0.95;
  margin: var(--space-3) 0;
  letter-spacing: var(--ls-tight);
}

.subsidy-highlight__amount-unit {
  font-size: 0.35em;
  font-weight: var(--fw-light);
  font-family: var(--font-heading);
  margin-left: 12px;
  color: var(--color-accent);
  letter-spacing: var(--ls-base);
}

.subsidy-highlight__sub {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-accent);
  margin: 0 0 var(--space-4);
  font-weight: var(--fw-normal);
}

.subsidy-highlight__note {
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: rgba(255, 255, 255, 0.65);
  margin: var(--space-3) 0 0;
  font-weight: var(--fw-light);
}

/* ─── 価格表 ─── */
.price-tables {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .price-tables {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}

.price-table {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.price-table:hover {
  border-color: var(--color-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-table__header {
  padding: var(--space-4) var(--space-4) var(--space-3);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  text-align: center;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

.price-table__header small {
  display: block;
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  font-weight: var(--fw-normal);
  letter-spacing: var(--ls-wide);
  margin-top: 6px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.price-table__row {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.price-table__row:last-child {
  border-bottom: none;
}

.price-table__grade {
  font-family: var(--font-num);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: var(--ls-base);
}

.price-table__price {
  font-family: var(--font-num);
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin: 4px 0;
  letter-spacing: var(--ls-tight);
}

.price-table__price-unit {
  font-size: 0.6em;
  font-weight: var(--fw-normal);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  margin-left: 4px;
}

.price-table__range {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-base);
}

/* ─── 補助金適用後カード（強調表示） ─── */
.subsidy-after {
  max-width: 1080px;
  margin: var(--space-7) auto 0;
  padding: var(--space-7) var(--space-5);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.subsidy-after::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107, 58, 42, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.subsidy-after__inner {
  position: relative;
  z-index: 1;
}

.subsidy-after__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-xwide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  font-weight: var(--fw-medium);
}

.subsidy-after__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

.subsidy-after__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, var(--fs-2xl));
  font-weight: var(--fw-normal);
  margin: 0 0 var(--space-6);
  letter-spacing: var(--ls-base);
  line-height: var(--lh-tight);
}

.subsidy-after__title strong {
  color: var(--color-accent);
  font-family: var(--font-num);
  font-weight: var(--fw-bold);
  font-size: 1.2em;
  margin: 0 4px;
}

.subsidy-after__examples {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin: var(--space-5) 0;
}

@media (min-width: 768px) {
  .subsidy-after__examples {
    grid-template-columns: repeat(3, 1fr);
  }
}

.subsidy-after__example {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
}

.subsidy-after__example:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-teal);
}

.subsidy-after__grade {
  font-family: var(--font-num);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-teal);
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-3);
}

.subsidy-after__price-before {
  font-family: var(--font-num);
  font-size: var(--fs-md);
  font-weight: var(--fw-normal);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
  letter-spacing: var(--ls-tight);
}

.subsidy-after__arrow {
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: var(--space-2) 0;
  font-style: italic;
}

.subsidy-after__price-after {
  font-family: var(--font-num);
  font-size: clamp(2rem, 4vw, var(--fs-3xl));
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}

.subsidy-after__unit {
  font-size: 0.5em;
  font-family: var(--font-heading);
  margin-left: 4px;
  color: var(--color-accent);
}

.subsidy-after__note {
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: var(--space-4) 0 0;
  font-weight: var(--fw-light);
}

/* ─── FAQ ─── */
.faq-list {
  max-width: var(--max-width-content);
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item summary {
  padding: var(--space-4) 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: var(--fw-light);
  color: var(--color-teal);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 0 var(--space-4);
  line-height: var(--lh-loose);
  color: var(--color-text-muted);
  font-weight: var(--fw-light);
}

/* ネイビー地（section--alt）でのFAQ */
.section--alt .faq-item,
.section--alt .faq-item:first-child {
  border-color: rgba(255, 255, 255, 0.16);
}

.section--alt .faq-item summary {
  color: var(--color-text-inverse);
}

.section--alt .faq-item__answer {
  color: rgba(255, 255, 255, 0.78);
}

.section--alt .faq-item__answer a {
  color: var(--color-accent);
}

/* ─── 店舗一覧 ─── */
.stores {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .stores {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stores {
    grid-template-columns: repeat(4, 1fr);
  }
}

.store {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.store:hover {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.store__name {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--color-text-inverse);
  margin: 0 0 var(--space-2);
  font-weight: var(--fw-bold);
}

.store__address {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--space-2);
  line-height: var(--lh-snug);
  font-weight: var(--fw-normal);
}

.store__tel {
  display: inline-block;
  font-family: var(--font-num);
  font-weight: var(--fw-medium);
  color: var(--color-accent);
  text-decoration: none;
  font-size: var(--fs-md);
  letter-spacing: var(--ls-base);
  margin-bottom: var(--space-3);
}

.store__map-cta {
  display: block;
  font-family: var(--font-en);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.store:hover .store__map-cta {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.stores__note {
  text-align: center;
  margin: var(--space-5) 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: var(--lh-loose);
}

.stores__note-small {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--lh-base);
}

.stores__note-small a {
  color: var(--color-accent);
  text-decoration: underline;
}

.stores__note-small a:hover {
  color: var(--color-text-inverse);
}

/* ─── 著者情報 ─── */
.author {
  max-width: var(--max-width-content);
  margin: 0 auto;
  text-align: center;
}

.author__name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}

.author__desc {
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
  margin: 0 0 var(--space-4);
  font-weight: var(--fw-light);
}

.author__meta {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  font-weight: var(--fw-light);
}

/* スマホでは説明文（本文）を左揃えにして可読性を上げる。
   見出し・ラベル・eyebrow・社名/連絡先は中央のまま維持。
   「4つの進化」は番号・タイトル・説明をまとめて左揃え（中央タイトル＋左説明の
   チグハグ解消。改行<br>も左揃え前提の行割りとして復活） */
@media (max-width: 767px) {
  .entity-definition,
  .author__desc {
    text-align: left;
  }

  /* 「4つの進化」はセクション見出しも左揃えにして項目と統一。
     eyebrowはスプリットセクションと同じ「線＋ラベル」スタイルに */
  #features .section__eyebrow {
    justify-content: flex-start;
  }

  #features .section__eyebrow::after {
    display: none;
  }

  #features .section__title,
  #features .section__subtitle {
    text-align: left;
  }

  /* 項目間の余白を圧縮（gap 32px + 上下padding 32px ≒ 96px → 約48px） */
  #features .section__subtitle {
    margin-bottom: var(--space-5);
  }

  .features {
    gap: var(--space-3);
  }

  .features__item {
    text-align: left;
    padding: var(--space-3) 0;
  }
}

/* ============================================
   全セクション・ネイビー統一（フルダーク）対応
   白地前提だったコンポーネントをネイビー地で読めるよう上書き。
   セクションには全て --alt / --dark が付くため、この接頭辞で限定する。
   ============================================ */

/* 4つの進化 */
.section--alt .features__number {
  color: var(--color-teal);
}

.section--alt .features__title {
  color: var(--color-text-inverse);
}

.section--alt .features__desc {
  color: rgba(255, 255, 255, 0.72);
}

.section--alt .features__item:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.14);
}

/* 価格表：店舗カードと同じ「半透明白カード on ネイビー」に */
.section--alt .price-table {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--alt .price-table:hover {
  border-color: var(--color-teal);
  box-shadow: none;
}

.section--alt .price-table__header {
  color: var(--color-text-inverse);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.section--alt .price-table__header small {
  color: rgba(255, 255, 255, 0.6);
}

.section--alt .price-table__row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.section--alt .price-table__grade {
  color: var(--color-teal);
}

.section--alt .price-table__price {
  color: var(--color-text-inverse);
}

.section--alt .price-table__price-unit {
  color: rgba(255, 255, 255, 0.6);
}

.section--alt .price-table__range {
  color: rgba(255, 255, 255, 0.6);
}

/* 価格行：車両本体（適用前）→ 補助金適用後の実質額 を併記 */
.price-table__row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.price-table__before {
  margin-bottom: var(--space-2);
}

.price-table__plabel {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-base);
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.55);
}

.price-table__before-num {
  font-family: var(--font-num);
  /* 取り消し線を撤去し、適用前価格を大きく見せて補助金の下げ幅を実感させる */
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: var(--ls-tight);
}

/* 差額バッジ：補助金で下がる幅（−129万円）をゴールドで可視化 */
.price-table__cut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: var(--space-3) 0 var(--space-2);
  color: var(--color-accent);
}

.price-table__cut-arrow {
  font-size: var(--fs-md);
  line-height: 1;
}

.price-table__cut-label {
  font-family: var(--font-num);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-base);
}

/* 適用後の実質価格：ティール微発光パネルで「ここまで安くなる」を強調 */
.price-table__after {
  background: rgba(107, 58, 42, 0.1);
  border: 1px solid rgba(107, 58, 42, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
}

.price-table__after .price-table__plabel {
  color: var(--color-accent);
}

.price-table__after-num {
  font-family: var(--font-num);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
}

/* 補助金適用後カード：ネイビー地で埋もれないよう輪郭を付与 */
.section--alt .subsidy-after {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 運営者について */
.section--alt .author__name {
  color: var(--color-text-inverse);
}

.section--alt .author__desc {
  color: rgba(255, 255, 255, 0.75);
}

.section--alt .author__meta {
  color: rgba(255, 255, 255, 0.6);
  border-top-color: rgba(255, 255, 255, 0.16);
}

.section--alt .author__meta a {
  color: var(--color-accent);
}

/* ============================================
   専門用語のクリック説明（用語ツールチップ）
   ============================================ */

/* インラインの用語トリガー */
.term {
  font: inherit;
  color: var(--color-teal);
  background: none;
  border: 0;
  border-bottom: 1px dashed currentColor;
  padding: 0 1px;
  margin: 0;
  cursor: pointer;
  line-height: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

/* 強調を兼ねる用語（元が<strong>だった箇所） */
.term--strong {
  font-weight: var(--fw-bold);
}

/* タップ可能だと分かるよう小さなⓘを添える */
.term::after {
  content: "\2009\24D8"; /* 細スペース + ⓘ */
  font-size: 0.72em;
  vertical-align: 0.25em;
  opacity: 0.85;
  border: 0;
}

.term:hover,
.term[aria-expanded="true"] {
  color: var(--color-accent);
}

/* 説明カード（bodyに1つだけ生成し、JSで位置決め） */
.term-pop {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  background: #ffffff;
  color: var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  font-weight: var(--fw-normal);
  letter-spacing: var(--ls-base);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--transition-fast),
              transform var(--transition-fast),
              visibility var(--transition-fast);
}

.term-pop.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.term-pop__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--color-primary);
  margin: 0 0 6px;
  letter-spacing: var(--ls-base);
}

.term-pop__body {
  margin: 0;
}

.term-pop__note {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--color-text-light);
}

/* ─── フッター ─── */
.footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-6) 0 var(--space-4);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-2);
}

.footer p {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  margin: var(--space-1) 0;
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-text-inverse);
}

.footer__links {
  margin: var(--space-3) 0;
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copyright {
  margin-top: var(--space-5);
  font-size: var(--fs-xs);
  font-family: var(--font-en);
  letter-spacing: var(--ls-xwide);
  opacity: 0.5;
  text-transform: uppercase;
}

/* スマホ：フッター末尾がフローティングCTAに被らないよう下部余白を確保
   （白い隙間を出さないため body ではなくネイビーのフッター自体を伸ばす） */
@media (max-width: 767px) {
  .footer {
    padding-bottom: calc(var(--space-4) + 64px);
  }
}

/* ─── スクロール追従CTA ─── */
.floating-cta {
  position: fixed;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  z-index: 50;
  box-shadow: var(--shadow-lg);
  display: none;
}

@media (max-width: 767px) {
  /* 既定は非表示。JS が hero外かつ他CTA非表示のときだけ .is-visible を付与 */
  .floating-cta {
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity var(--transition-base),
                transform var(--transition-base),
                visibility var(--transition-base);
  }
  .floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ─── 上に戻るボタン ─── */
.back-to-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 49;
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-teal-dark);
  transform: translateY(-4px);
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: calc(56px + var(--space-3) + var(--space-3));
    right: var(--space-3);
    width: 44px;
    height: 44px;
  }
}

/* ─── スクロールリビール演出（プログレッシブエンハンスメント） ───
   .js-reveal はJSが動く環境でのみ main.js が付与する。
   クローラー・JS無効環境ではクラスが付かず常に全文表示＝AIO/GEO/SEOに影響なし。
   opacity/transformのみ使用のためレイアウトシフト（CLS）もゼロ。
   ヒーロー（LCP領域）は対象外 */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* リビール後のtransform指定がホバーの浮き上がりを潰さないよう復元 */
.features__item.js-reveal.is-inview:hover {
  transform: translateY(-4px);
}

.price-table.js-reveal.is-inview:hover {
  transform: translateY(-4px);
}

.store.js-reveal.is-inview:hover {
  transform: translateY(-2px);
}

/* eyebrowの飾り線はラベル表示に続いて左右へ伸びる */
.section__eyebrow.js-reveal::before,
.section__eyebrow.js-reveal::after {
  transform: scaleX(0);
  transition: transform 0.7s ease 0.25s;
}

.section__eyebrow.js-reveal.is-inview::before,
.section__eyebrow.js-reveal.is-inview::after {
  transform: scaleX(1);
}

/* スプリットは画像が先・テキストがひと呼吸遅れて */
.split__content.js-reveal {
  transition-delay: 0.12s;
}

/* ─── アニメーション抑制 ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   v2.0（2026-09-30）動画ライブラリ型への再構成で追加した規則
   ============================================================ */

/* ─── 改行品質：見出しは balance、本文は pretty（対応ブラウザのみ） ─── */
h1, h2, h3, .section__title, .split__content h3 { text-wrap: balance; }
p, .features__desc, .faq-item__answer, .chapters__lead { text-wrap: pretty; }

/* ─── スクロールリビール：短く・浅く（空白画面の体感をなくす） ─── */
.js-reveal {
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.section__eyebrow.js-reveal::before,
.section__eyebrow.js-reveal::after { transition: transform 0.45s ease 0.1s; }
.split__content.js-reveal { transition-delay: 0.05s; }

/* ─── CTA帯（セクション末尾のCTA） ─── */
.cta-band {
  text-align: center;
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.cta-band--compact { margin-top: var(--space-5); }
.cta-band__lead {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-text-inverse);
  margin: 0;
  letter-spacing: var(--ls-base);
}

/* ─── セクション内の「▶ 動画で見る」リンク ─── */
.video-link-row { text-align: center; margin: var(--space-4) 0 0; }
.video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-base);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 147, 90, 0.5);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.video-link:hover { color: var(--color-teal); border-color: var(--color-teal); }
.split__content .video-link { margin-top: var(--space-3); }

/* ─── 動画ライブラリ ─── */
.lib { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
@media (min-width: 1024px) {
  .lib { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
.lib__player { min-width: 0; }
.lib__now {
  display: flex; align-items: baseline; gap: var(--space-3);
  margin: var(--space-3) 0 0; color: var(--color-text-inverse);
  font-family: var(--font-heading); font-size: var(--fs-lg);
}
.lib__now-label {
  font-family: var(--font-en); font-size: var(--fs-xs); letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--color-accent); white-space: nowrap;
}
.lib__player .chapters { max-width: none; }
.lib__player .chapters[hidden] { display: none; }

.lib__tiles {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: var(--space-3); overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
}
.lib__tiles li { flex: 0 0 240px; scroll-snap-align: start; }
@media (min-width: 1024px) {
  .lib__tiles { flex-direction: column; overflow: visible; }
  .lib__tiles li { flex: none; }
}
.lib-tile {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; width: 100%;
  text-align: left; padding: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md); color: var(--color-text-inverse);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.lib-tile:hover { border-color: var(--color-accent); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.lib-tile.is-active { border-color: var(--color-teal); background: rgba(107, 58, 42, 0.12); }
.lib-tile__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: #000;
}
.lib-tile__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.6) brightness(0.75); transition: filter var(--transition-fast); }
.lib-tile:hover .lib-tile__thumb img, .lib-tile.is-active .lib-tile__thumb img { filter: none; }
.lib-tile__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15,0) 40%, rgba(20, 17, 15,0.75) 100%);
}
.lib-tile.is-active .lib-tile__thumb::before {
  content: "▶"; position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 14px; color: #fff; width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-teal); display: flex; align-items: center; justify-content: center; padding-left: 2px;
}
.lib-tile__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lib-tile__num { font-family: var(--font-en); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); color: var(--color-accent); }
.lib-tile__title { font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--fs-md); line-height: var(--lh-tight); }
.lib-tile__sub { font-size: var(--fs-xs); color: rgba(255,255,255,0.7); line-height: var(--lh-snug); }
.lib-tile__dur { font-family: var(--font-num); font-size: var(--fs-xs); color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ─── EV初心者向け：3ポイント ─── */
.points { list-style: none; padding: 0; margin: var(--space-5) auto 0; max-width: var(--max-width-narrow); display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points__item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md);
  color: var(--color-text-inverse); line-height: var(--lh-snug);
}
.points__num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: var(--fs-lg); color: var(--color-accent); border: 1px solid var(--color-accent);
}

/* ─── 運営者（信頼バッジ） ─── */
.section--trust { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.trust-badges {
  list-style: none; padding: 0; margin: var(--space-4) auto var(--space-5); max-width: var(--max-width-narrow);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3);
}
@media (min-width: 768px) { .trust-badges { grid-template-columns: repeat(4, 1fr); } }
.trust-badges li {
  text-align: center; padding: var(--space-3); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); color: var(--color-text-inverse);
}
.trust-badges strong { display: block; font-family: var(--font-en); font-size: var(--fs-2xl); font-weight: var(--fw-medium); color: var(--color-accent); line-height: 1.1; }
.trust-badges span { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ─── 店舗カード：電話・地図を独立リンクに ─── */
.store { cursor: default; }
a.store__tel { text-decoration: none; }
a.store__tel:hover { color: var(--color-teal); }
a.store__map-cta { text-decoration: underline; }
a.store__map-cta:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }

/* ─── 「受付中」ポップアップ（PC）とピル ─── */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-teal);
  box-shadow: 0 0 0 0 rgba(107, 58, 42,.6); animation: liveDot 1.8s ease-out infinite; flex-shrink: 0;
}
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(107, 58, 42,.65); } 70% { box-shadow: 0 0 0 9px rgba(107, 58, 42,0); } 100% { box-shadow: 0 0 0 0 rgba(107, 58, 42,0); } }
.cta-pop {
  position: fixed; right: 24px; bottom: 24px; z-index: 95; width: 320px;
  background: rgba(20, 17, 15, 0.96); backdrop-filter: blur(10px); border: 1px solid rgba(184,147,90,.5); border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity .45s, visibility .45s, transform .45s cubic-bezier(.2,.7,.2,1);
}
.cta-pop.show { opacity: 1; visibility: visible; transform: none; }
.cta-pop-close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(20, 17, 15,.7); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.cta-pop-close:hover { background: var(--color-accent); border-color: var(--color-accent); }
.cta-pop-img { display: block; aspect-ratio: 16/8; overflow: hidden; }
.cta-pop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-pop-text { display: block; padding: 14px 16px 16px; color: #fff; }
.cta-pop-tag { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 20px; font-weight: 500; letter-spacing: .06em; color: var(--color-accent); line-height: 1.3; margin-bottom: 4px; }
.cta-pop-title { display: block; font-size: 13px; letter-spacing: .04em; opacity: .9; line-height: 1.5; margin-bottom: 12px; }
.cta-pop-btn { display: inline-block; background: var(--color-accent); color: #fff; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; padding: 10px 18px; border-radius: var(--radius-pill); text-decoration: none; transition: background .2s; }
.cta-pop-btn:hover { background: var(--color-teal); color: #fff; }
.cta-pop-note { display: block; margin-top: 9px; font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.65); }
.cta-pill {
  position: fixed; right: 24px; bottom: 24px; z-index: 95; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(184,147,90,.55); background: rgba(20, 17, 15,.94); color: #fff; font-size: 12px; letter-spacing: .12em;
  padding: 10px 16px 10px 14px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s, visibility .35s, transform .35s, background .2s;
}
.cta-pill.show { opacity: 1; visibility: visible; transform: none; }
.cta-pill:hover { background: var(--color-accent); }
@media (max-width: 767px) { .cta-pop, .cta-pill { display: none !important; } }
/* ポップアップ表示中は「上に戻る」を左へ逃がす */
body.has-pop .back-to-top, body.has-pill .back-to-top { right: auto; left: var(--space-3); }

/* ─── スマホ固定バー（サムネ＋2行＋ボタン）：既存 .floating-cta を拡張 ─── */
@media (max-width: 767px) {
  .floating-cta {
    left: 10px; right: 10px; bottom: 10px;
    display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; text-align: left;
    padding: 8px; min-height: 0; border-radius: var(--radius-md);
    background: rgba(20, 17, 15, 0.96); border: 1px solid rgba(184,147,90,.5); color: #fff;
  }
  .floating-cta::after { content: none; }
  .floating-cta .fc-img { width: 56px; height: 36px; object-fit: cover; border-radius: 2px; display: block; }
  .floating-cta .fc-text { line-height: 1.3; min-width: 0; }
  .floating-cta .fc-tag { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 14px; font-weight: 500; letter-spacing: .06em; color: var(--color-accent); white-space: nowrap; }
  .floating-cta .fc-title { display: block; font-size: 11px; letter-spacing: .02em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .floating-cta .fc-btn { background: var(--color-accent); color: #fff; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; padding: 11px 13px; border-radius: var(--radius-pill); white-space: nowrap; }
}

/* ─── 日産公式の注目装備 ─── */
.hl { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .hl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hl { grid-template-columns: repeat(3, 1fr); } }
.hl__item {
  display: flex; flex-direction: column; gap: 6px; padding: var(--space-4);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); color: var(--color-text-inverse);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.hl__item:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.hl__num { font-family: var(--font-num); font-size: var(--fs-2xl); font-weight: var(--fw-medium); color: var(--color-accent); line-height: 1; }
.hl__num small { font-size: 0.45em; margin-left: 4px; letter-spacing: var(--ls-base); }
.hl__title { font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--fs-md); }
.hl__desc { font-size: var(--fs-sm); line-height: var(--lh-base); color: rgba(255,255,255,0.8); }

/* ─── v2.0 微調整 ─── */
.author__name { word-break: keep-all; }
.video-link-row { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
@media (max-width: 767px) {
  .lib__tiles li { flex-basis: 200px; }
  .floating-cta.is-visible ~ .back-to-top { bottom: 84px; }
}

/* ─── v2.1：ヒーローの一充電走行距離表示（メーカー表記準拠） ─── */
.hero__range {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  margin-top: var(--space-6); padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__range-item { display: flex; flex-direction: column; gap: 6px; padding-right: var(--space-5); border-right: 1px solid rgba(255,255,255,0.18); }
.hero__range-item:last-child { border-right: 0; padding-right: 0; }
.hero__range-head { font-size: var(--fs-xs); line-height: 1.5; letter-spacing: var(--ls-base); opacity: 0.85; }
.hero__range-value {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-num); font-size: var(--fs-3xl); font-weight: var(--fw-medium); line-height: 1; letter-spacing: var(--ls-tight);
  color: var(--color-text-inverse);
}
.hero__range-value small { font-size: 0.45em; font-weight: var(--fw-normal); }
.hero__range-badge {
  align-self: center; font-family: var(--font-body); font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.02em;
  color: #14110f; background: #f4d35e; padding: 3px 7px; border-radius: 3px; line-height: 1.2;
}
.hero__spec-row { margin-top: var(--space-5); }
@media (max-width: 767px) {
  .hero__range { gap: var(--space-3); }
  .hero__range-item { padding-right: var(--space-3); }
  .hero__range-value { font-size: var(--fs-2xl); }
}

/* ─── v2.3：長めのコピー用にヒーロー見出しを一回り小さく（2行×2で収める） ─── */
.hero__title--long { font-size: clamp(2rem, 4.3vw, 3.9rem); line-height: 1.25; }
.hero__title--long .hero__title-en { display: block; margin-bottom: 0.4em; }
@media (max-width: 767px) { .hero__title--long { font-size: clamp(1.9rem, 8vw, 2.4rem); } }

/* ─── v2.4：ヒーロー見出しを小さく・読みやすく（白＋影、アクセントは淡いクリーム） ─── */
.hero__title--long {
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  line-height: 1.3;
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(20, 17, 15, 0.55), 0 0 2px rgba(20, 17, 15, 0.6);
}
.hero__title--long .hero__title-accent {
  color: #f6e7c8;
  font-weight: var(--fw-medium);
}
.hero__title--long .hero__title-en {
  font-size: 0.5em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(20, 17, 15, 0.6);
}
@media (max-width: 767px) {
  /* スマホは紺パネル上なので影は不要 */
  .hero__title--long { font-size: clamp(1.6rem, 6.6vw, 2rem); text-shadow: none; }
  .hero__title--long .hero__title-en { text-shadow: none; }
}

/* ============================================================
   v2.5（2026-09-30）ヒーロー写真差替・進化画像・フォント・CTA整形
   ============================================================ */

/* ─── ヒーロー：メーカー公式の写真（横長 2.68:1）に差替。テキストは左下、写真は右寄せ ─── */
.hero {
  background-image:
    linear-gradient(90deg, rgba(20, 17, 15, 0.55) 0%, rgba(20, 17, 15, 0.25) 45%, rgba(20, 17, 15, 0) 70%),
    linear-gradient(180deg, rgba(20, 17, 15, 0) 40%, rgba(20, 17, 15, 0.7) 100%),
    url("../../images/hero-plaza.jpg");
  background-position: right center;
  min-height: 92vh;
}
@media (max-width: 767px) {
  /* スマホは横長写真をそのまま見せる（切らない） */
  .hero { background-image: none; }
}

/* ─── 4つの進化：各項目に公式画像 ─── */
.features__img {
  display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md);
  margin: 0 0 var(--space-3); background: #000;
}
.features__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-base); }
.features__item:hover .features__img img { transform: scale(1.04); }
.features__item { text-align: left; padding: var(--space-3) var(--space-3); }
.features__item:not(:last-child)::after { display: none; }
.features__number { display: inline-block; margin-bottom: 4px; }
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

/* ─── ⑦ 数字・略語のフォントを読みやすいゴシック（Inter）に統一 ─── */
.trust-badges strong,
.points__num,
.lib-tile__num,
.hl__num,
.hero__range-value,
.subsidy-highlight__amount,
.hero__spec-value {
  font-family: var(--font-num) !important;
  font-style: normal;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.trust-badges strong { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: 0; }
.lib-tile__num { letter-spacing: 0.1em; }
.lib__now-label, .hero__spec-label, .store__map-cta {
  font-family: var(--font-body); font-weight: var(--fw-medium); letter-spacing: 0.12em;
}

/* ─── ⑧ CTAボタン：小さく・角を絞って・上品に ─── */
.cta, .cta--large {
  padding: 14px 28px;
  min-height: 48px;
  font-size: 0.9375rem;              /* 15px */
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  border-radius: 6px;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(20, 17, 15, 0.25);
}
.cta--large { padding: 15px 32px; min-height: 52px; }
.cta::after { font-size: 1em; }
.cta--accent { background: var(--color-accent); }
.cta--accent:hover { background: var(--color-accent-dark); }
.cta--outline {
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.header__cta { padding: 10px 20px; min-height: 40px; border-radius: 6px; font-size: 0.875rem; letter-spacing: 0.06em; }
.mobile-menu__cta { align-self: stretch; }
.cta-pop-btn { border-radius: 6px; }
@media (max-width: 767px) {
  .hero__cta-group .cta { width: 100%; justify-content: center; }
  .floating-cta { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
  .floating-cta .fc-btn { border-radius: 6px; padding: 10px 12px; }
}

/* ─── v2.5b：ヒーローを「横長写真そのまま＋左上テキスト」＋「下の紺帯にスペック」へ ─── */
@media (min-width: 768px) {
  .hero {
    display: block; min-height: 0; padding: 0; background: var(--color-primary);
  }
  .hero__image {
    display: block; width: 100%; height: auto; aspect-ratio: 1459 / 545; object-fit: cover; object-position: right center;
  }
  .hero__inner:not(.hero__inner--band) {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 0; padding-bottom: 0;
  }
  /* 左側（空・海）の上に薄い紺のグラデーションを敷いて文字を立てる */
  .hero::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 60%; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(20, 17, 15, 0.55) 0%, rgba(20, 17, 15, 0.28) 55%, rgba(20, 17, 15, 0) 100%);
  }
  .hero__inner:not(.hero__inner--band) > * { max-width: 620px; }
  .hero__title { margin-bottom: var(--space-4); }
  .hero__subtitle { margin-bottom: var(--space-4); }
  .hero__title--long { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
  .hero__subtitle { font-size: var(--fs-sm); line-height: 1.9; text-shadow: 0 1px 8px rgba(20, 17, 15,.6); }
  .hero__eyebrow { text-shadow: 0 1px 8px rgba(20, 17, 15,.6); }
}
.hero__band { position: relative; z-index: 2; background: var(--color-primary); color: var(--color-text-inverse); }
.hero__inner--band { position: static; padding-top: var(--space-4); padding-bottom: var(--space-6); }
.hero__inner--band .hero__range { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 767px) {
  .hero__inner--band { padding-top: 0; }
}

/* v2.5c：PCヒーローの余白調整（CTAまで写真内に収める） */
@media (min-width: 768px) {
  .hero__image { aspect-ratio: 1459 / 660; object-position: right 35%; }
  .hero__eyebrow { margin-bottom: var(--space-2); }
  .hero__title--long { font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.3; margin-bottom: var(--space-3); }
  .hero__title--long .hero__title-en { margin-bottom: 0.3em; }
  .hero__subtitle { margin-bottom: var(--space-4); max-width: 560px; }
  .hero__subtitle br { display: none; }
  .hero__inner:not(.hero__inner--band) { justify-content: center; }
}
@media (min-width: 1280px) {
  .hero__image { aspect-ratio: 1459 / 600; }
}

/* v2.5d：PCヒーロー＝本文の高さに合わせ、写真は背景として cover（横長写真なのでほぼ全体が見える） */
@media (min-width: 768px) {
  .hero { position: relative; overflow: hidden; }
  .hero__image {
    position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
    object-fit: cover; object-position: right center; z-index: 0;
  }
  .hero__inner:not(.hero__inner--band) {
    position: relative; z-index: 2; display: block;
    padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  }
  .hero__cta-group { margin-top: 0; }
}

/* v2.5e：PCヒーローの高さ確保（ヘッダー分の余白＋写真が見える高さ） */
@media (min-width: 768px) {
  .hero { min-height: min(72vh, 680px); display: flex; align-items: center; }
  .hero__inner:not(.hero__inner--band) { padding-top: 120px; padding-bottom: 56px; width: 100%; }
  .hero__image { object-position: 70% center; }
}
@media (min-width: 1600px) {
  .hero__image { object-position: center center; }
}

/* v2.5f：帯が横に並ぶ不具合を修正（hero は block、上段だけ高さ確保） */
@media (min-width: 768px) {
  .hero { display: block; min-height: 0; }
  .hero__inner:not(.hero__inner--band) {
    min-height: min(72vh, 680px); display: flex; flex-direction: column; justify-content: center;
    padding-top: 100px; padding-bottom: 48px; box-sizing: border-box;
  }
}
@media (min-width: 768px) {
  .hero__inner:not(.hero__inner--band) { min-height: min(66vh, 600px); }
  .hero__image { object-position: 58% center; }
}
@media (min-width: 768px) { .hero__image { object-position: right center; } }

/* v2.5g：写真は上段（本文エリア）だけを覆う。帯の裏に隠れないように高さを揃える */
@media (min-width: 768px) {
  .hero__inner:not(.hero__inner--band) { height: min(66vh, 600px); min-height: 0; }
  .hero__image { height: min(66vh, 600px); bottom: auto; }
  .hero::before { height: min(66vh, 600px); bottom: auto; }
}

/* ============================================================
   v2.7（2026-10-01）チャプター折りたたみ・帯1段化・SPライブラリ・価格表写真
   ============================================================ */
/* ① 長いチャプターの折りたたみ */
.chapters__more[hidden] { display: none; }
.chapters__toggle {
  display: inline-flex; align-items: center; margin-top: var(--space-3);
  background: transparent; border: 1px solid var(--color-teal); color: var(--color-teal-dark);
  font-size: var(--fs-sm); padding: 8px 16px; border-radius: 6px; cursor: pointer; letter-spacing: 0.04em;
}
.chapters__toggle:hover { background: rgba(107, 58, 42,.08); }

/* ② ヒーロー帯：1段（PCは5項目横並び、スマホは2列） */
.hero__range { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); }
@media (min-width: 900px) { .hero__range { grid-template-columns: repeat(5, auto); justify-content: space-between; gap: var(--space-4); } }
.hero__range-item { border-right: 0; padding-right: 0; }
@media (min-width: 900px) {
  .hero__range-item { border-right: 1px solid rgba(255,255,255,0.18); padding-right: var(--space-4); }
  .hero__range-item:last-child { border-right: 0; }
}
.hero__range-value { font-size: var(--fs-2xl); }
.hero__spec-row[hidden] { display: none; }
.hero__subtitle-line { white-space: nowrap; }
@media (max-width: 767px) { .hero__subtitle br { display: inline; } }

/* ⑤ ライブラリのタイル：PC以外は2列グリッド（縦カード） */
@media (max-width: 1023px) {
  .lib__tiles { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .lib__tiles li { flex: none; }
  .lib-tile { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .lib-tile__sub { display: none; }
}
@media (max-width: 767px) {
  .lib-tile__title { font-size: var(--fs-sm); }
}

/* ⑧ 価格表：外観1＋内観2 */
.price-table__photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4px; padding: 4px; background: rgba(0,0,0,0.25); }
.price-table__photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; display: block; border-radius: 2px; }
.price-table__photos img:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 767px) { .price-table__photos { grid-template-columns: 1fr 1fr; } .price-table__photos img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; } }
/* 価格表の写真：外観を大きく、内観2枚を下に */
.price-table__photos { grid-template-columns: 1fr 1fr; }
.price-table__photos img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
.hero__range-badge { white-space: nowrap; }
@media (max-width: 767px) { .hero__range-value { font-size: var(--fs-xl); gap: 8px; } .hero__range-badge { font-size: 10px; padding: 2px 6px; } }

/* ─── v2.9：価格表をグレード別4カード、ヘッダー小文字をゴシックに、TOPボタンを目立たせる ─── */
.price-table__header small { font-family: var(--font-body) !important; font-style: normal; letter-spacing: 0.04em; }
.price-table__grade, .price-table__range, .price-table__plabel, .price-table__cut-label { font-family: var(--font-body); }
@media (min-width: 1024px) { .price-tables--4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); } }
@media (min-width: 768px) and (max-width: 1023px) { .price-tables--4 { grid-template-columns: repeat(2, 1fr); } }
.back-to-top {
  width: 60px; height: 60px; flex-direction: column; gap: 2px;
  background: var(--color-accent); color: #fff; border: 2px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.back-to-top__label { font-family: var(--font-num); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; line-height: 1; }
.back-to-top:hover { background: var(--color-accent-dark); }
.price-tables--4 { max-width: var(--max-width); }

/* ─── v2.11：グレード写真を公式と同じ「切り抜き車体 on ライトブルーグラデ」に ─── */
.price-table__photos { grid-template-columns: 1fr 1fr; gap: 4px; padding: 0; background: transparent; }
.price-table__cutout {
  grid-column: span 2;
  background: linear-gradient(180deg, #f3efe8 0%, #e6dfd3 60%, #d9cfc0 100%);
  padding: 12% 6% 6%;
  display: flex; align-items: flex-end; justify-content: center;
}
.price-table__cutout img { width: 100%; height: auto; aspect-ratio: 1291/562; object-fit: contain; border-radius: 0; display: block; filter: drop-shadow(0 6px 10px rgba(20,40,70,.12)); }
.price-table__photos img { border-radius: 0; }
.price-table__photos > img { aspect-ratio: 16/9; }
.price-table:hover .price-table__cutout img { transform: translateX(6px); transition: transform .4s ease; }
.price-table__cutout img { transition: transform .4s ease; }
.price-table__row-head { flex-wrap: wrap; row-gap: 2px; }
.price-table__header small { white-space: nowrap; }

/* ─── v2.12：TOPへ戻るボタンを右の中央に（ポップアップ・下部CTAと干渉しない位置） ─── */
.back-to-top, body.has-pop .back-to-top, body.has-pill .back-to-top,
.floating-cta.is-visible ~ .back-to-top {
  left: auto; right: 16px; bottom: auto; top: 50%;
  transform: translateY(-50%) translateX(12px);
}
.back-to-top.is-visible { transform: translateY(-50%) translateX(0); }
@media (max-width: 767px) {
  .back-to-top { width: 48px; height: 48px; right: 10px; }
}

/* ─── v2.13：スマホ指摘対応 ─── */
/* ③ 新型リーフとは：PCだけ改行 */
@media (max-width: 767px) { .br-pc { display: none; } .entity-definition { text-align: left; } }

/* ④ 注目の装備：左に公式写真 */
.hl__item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.hl__img { width: 96px; height: 60px; object-fit: cover; border-radius: 4px; display: block; }
.hl__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@media (max-width: 767px) { .hl__item { grid-template-columns: 84px 1fr; gap: 12px; } .hl__img { width: 84px; height: 53px; } }

/* ② スマホ固定バー：写真・文字を大きく、閉じるボタン、背景をティールに */
@media (max-width: 767px) {
  .floating-cta {
    grid-template-columns: 72px 1fr auto; gap: 12px; padding: 10px 10px 10px 10px;
    background: linear-gradient(135deg, #2e1810 0%, #4e2a1e 100%);
    border: 1px solid rgba(255,255,255,.4); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .floating-cta .fc-img { width: 72px; height: 48px; border-radius: 4px; }
  .floating-cta .fc-tag { font-size: 16px; color: #fff; }
  .floating-cta .fc-tag .live-dot { background: #ffd166; }
  .floating-cta .fc-title { font-size: 12.5px; opacity: .95; color: #fff; }
  .floating-cta .fc-btn { background: var(--color-accent); color: #fff; font-size: 14px; padding: 12px 15px; }
  .fc-close {
    display: none; position: fixed; right: 6px; bottom: 74px; z-index: 96;
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
    background: var(--color-primary); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
    align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  .floating-cta.is-visible + .fc-close { display: flex; }
  body.fc-closed .floating-cta, body.fc-closed .fc-close { display: none !important; }
}
@media (min-width: 768px) { .fc-close { display: none; } }

/* ⑤ 続きを見る（スマホのみ） */
@media (max-width: 767px) {
  .more { position: relative; }
  .more.is-collapsed { max-height: var(--more-h, 400px); overflow: hidden; }
  .more.is-collapsed::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(20, 17, 15,0), var(--color-primary) 85%);
  }
  .section--dark .more.is-collapsed::after { background: linear-gradient(to bottom, rgba(20, 17, 15,0), var(--color-primary) 85%); }
  .more__btn {
    display: block; width: 100%; margin: 12px 0 0; padding: 12px; border-radius: 6px;
    border: 1px solid var(--color-accent); background: transparent; color: var(--color-accent);
    font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .06em; cursor: pointer;
  }
  .more.is-collapsed .more__btn { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; background: var(--color-primary); }
  .more__btn span::after { content: " ▾"; }
  .more:not(.is-collapsed) .more__btn span::after { content: " ▴"; }
  .more--text .more__btn { padding: 8px; font-size: 13px; }
}
@media (min-width: 768px) { .more__btn { display: none; } }
