@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg: #eff3f8;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --primary: #0b3b75;
  --primary-strong: #082a54;
  --accent: #d97706;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --container: 1120px;
  /* セクション間の縦余白（maintenance.html に合わせる） */
  --section-gap: 80px;
  /* Page specific vars matched to index.html style */
  --navy: #0b3b75;
  --card: #ffffff;
}

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

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

section {
  scroll-margin-top: 100px;
  /* Offset for sticky header */
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ヘッダーとナビのスタイルはstyle.cssで管理 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s ease;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  border-color: var(--line);
  background: #ffffff;
  color: var(--primary);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.hero-lead {
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin-top: 0;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


footer {
  background: var(--navy);
  color: #fff;
  padding: 16px 24px;
}

.page-container {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

section {
  margin-bottom: 48px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  border-left: 6px solid var(--accent);
  padding-left: 12px;
  margin: 0;
}

.sales-header-desc {
  margin-top: 8px;
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 0;
}

/* 車両仕入れ・選ばれる理由セクション（薄いグレー背景） */
.sales-section-bg {
  background: #f5f5f5;
  padding: var(--section-gap) 24px;
  margin: 0 -24px 0 -24px;
  border-radius: 0;
}

.sales-section-bg .section-title.centered {
  margin-bottom: 40px;
}

/* 車両仕入れサービス：2枚画像横並び */
.procurement-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

/* 画像の高さを担当者（正方形）に揃える */
.procurement-img {
  display: block;
  width: auto;
  max-width: 480px;
  height: 320px;
  border-radius: var(--radius);
  object-fit: cover;
}

.procurement-img-square {
  width: 320px;
  height: 320px;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
}

/* 選ばれる理由：3カード＋仮画像エリア */
.reasons-cards {
  margin-top: 0;
}

.reasons-placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.reasons-desc {
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* 選ばれる理由：maintenance.html と同じ幅制限（コンテナ幅で中央） */
.sales-reasons-section .reasons-inner {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 18px rgba(11, 59, 117, 0.08);
  margin-bottom: 16px;
}
.card-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 12px;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ファーストビューは .hero-visual で他下層ページと同じ（style.css の max-width: 1400px）のため上書きしない */
.hero:not(.hero-visual) {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
}

.hero:not(.hero-visual) img {
  width: 100%;
  border-radius: var(--radius);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 横スクロール用ボタン：スマホでもタップ有効（遅延防止・タッチ領域確保） */
.sales-scroll-section .voice-navs {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 0;
}

.sales-scroll-section .voice-nav {
  touch-action: manipulation;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.product-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.price {
  font-weight: 700;
  color: var(--accent);
}

.vehicle-card .image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.vehicle-card .image-wrap img {
  width: 100%;
  display: block;
}

/* NEWバッジ：TOPページ中古車両販売と同じ（style.css Figma 12-1214 / 12-1236） */
.sales-scroll-section .vehicle-card .badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #3B65BD;
  color: #fff;
  font-size: 20px;
  padding: 2px 6px;
  letter-spacing: 0.02em;
  border-radius: 10px;
}

.vehicle-card .shop-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 59, 117, 0.9);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  text-align: center;
}

.vehicle-card .divider {
  border-top: 1px solid var(--line);
  margin: 12px 0;
}

.vehicle-card .price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
}

.vehicle-card .price-line .price-strong {
  color: #d32f2f;
  font-weight: 800;
  font-size: 24px;
}

.vehicle-card .spec-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 12px;
  font-size: 13px;
}

.vehicle-card .spec-label {
  background: #eef2f7;
  color: #334155;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
}

/* 正規代理店：アニメなし・グリッド表示（ロゴは後で追加） */
/* 正規代理店：ロゴ中央配置・背景カードをコンパクトに */
#dealer .card {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
}

#dealer .logo-list,
.logo-list.logo-list-static {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  animation: none;
  width: 100%;
}

#dealer .logo-placeholder {
  min-height: 140px;
  background: var(--bg);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

#dealer .logo-list img {
  width: 250px;
  height: auto;
  object-fit: contain;
}

footer {
  margin-top: 56px;
  font-size: 14px;
}

/* スマホ版レイアウト（maintenance.html に合わせる） */
@media (max-width: 767px) {
  /* セクション縦余白を style.css の main > section と統一 */
  .sales-scroll-section {
    padding: 40px 0;
  }

  .page-container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-container > section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-container > section:first-child {
    padding-top: 0;
  }

  .sales-section-bg {
    padding: 40px 20px;
    margin-left: -20px;
    margin-right: -20px;
  }

  .procurement-images {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .procurement-img,
  .procurement-img-square {
    max-width: 100%;
  }

  /* スマホでも高さを揃える（担当者画像の高さに合わせる） */
  .procurement-img {
    height: 240px;
  }

  .procurement-img-square {
    width: 240px;
    height: 240px;
  }

  .section-title.centered h2 {
    font-size: 22px;
  }

  /* 選ばれる理由：maintenance と同じ1列・カード余白 */
  .sales-reasons-section .grid-3.reasons-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sales-reasons-section .reasons-desc {
    font-size: 20px;
    line-height: 1.75;
  }
}

@media (max-width: 600px) {
  .sales-scroll-section {
    padding: 32px 0;
  }

  .page-container {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .page-container > section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .page-container > section:first-child {
    padding-top: 0;
  }

  .sales-section-bg {
    padding: 32px 16px;
    margin-left: -16px;
    margin-right: -16px;
  }

  .section-title.centered h2 {
    font-size: 20px;
  }

  .section-title.centered p,
  .section-title.centered p.subtitle {
    font-size: 18px;
    line-height: 1.7;
  }

  /* 車両カード・横スクロールは style.css の 280px が効く */
  .sales-scroll-section .vehicle-card {
    min-width: 260px;
  }

  #dealer .card {
    padding: 16px;
  }

  #dealer .logo-list {
    gap: 16px;
  }

  #dealer .logo-list img {
    width: min(250px, calc((100% - 16px) / 2));
  }

  #dealer .card {
    max-width: 100%;
    padding: 16px;
  }

  /* 選ばれる理由：maintenance と同じ文字サイズ */
  .sales-reasons-section .reasons-desc {
    font-size: 18px;
    line-height: 1.7;
  }
}

/* スマホメニューのスタイルはstyle.cssで管理 */
