/* =========================================================
   Vehicle page 専用スタイル（/vehicle.html）
   ========================================================= */

/* ベース */
.page-vehicle main {
  background-color: #ffffff;
}

/* 見出し装飾 */
.page-vehicle .section-title {
  position: relative;
  padding-left: 12px;
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.4;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: #0b4f66;
}

.page-vehicle .section-title::before {
  content: "";
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}

/* Hero */
.page-vehicle .vehicle-hero .muted {
  margin-top: 4px;
  line-height: 1.8;
}

/* =========================================================
   （保有車両 外観セクション：将来用）
   ========================================================= */

.page-vehicle .vehicle-exterior {
  padding-top: 40px;
}

.page-vehicle .exterior-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-vehicle .exterior-item {
  flex: 0 0 260px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.page-vehicle .exterior-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 6px;
}

.page-vehicle .exterior-item figcaption {
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   車両ラインナップ & 主要スペック
   ========================================================= */

.page-vehicle .vehicle-lineup {
  padding-top: 40px;
}

/* 外側スライダー骨組み */
.page-vehicle .vehicle-lineup-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.page-vehicle .vehicle-lineup-viewport {
  position: relative;
  overflow: hidden;
}

/* 車両カード（1台=1カード） */
.page-vehicle .vehicle-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(8%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-vehicle .vehicle-card.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
}

/* カード内レイアウト：左スペック／右フォトスライダー */
.page-vehicle .vehicle-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1.2fr);
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f9fafb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* 外側スライダー矢印（車両切替用） */
.page-vehicle .lineup-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0b4f66;
  transition: all 0.15s ease;
}

.page-vehicle .lineup-arrow:hover {
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  color: var(--primary);
}

/* =========================================================
   カード左側：主要スペック表
   ========================================================= */

.page-vehicle .vehicle-name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0b4f66;
}

.page-vehicle .vehicle-spec dl {
  margin: 0;
}

.page-vehicle .vehicle-spec .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px 10px;
  padding: 4px 0;
  border-bottom: 1px solid #e2e8f0;
}

.page-vehicle .vehicle-spec .row:last-child {
  border-bottom: none;
}

.page-vehicle .vehicle-spec dt {
  font-weight: 700;
  color: #0b4f66;
  font-size: 13px;
}

.page-vehicle .vehicle-spec dd {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================================
   カード右側：フォトスライダー
   ========================================================= */

.page-vehicle .vehicle-photos {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ★ 高さ固定のビューポート：矢印も位置固定 */
.page-vehicle .photo-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  width: 100%;
  height: 300px; /* 固定高さ：必要なら調整可 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* スライド本体：ビューポート全体を使う */
.page-vehicle .photo-slide {
  display: none;
  width: 100%;
  height: 100%;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.page-vehicle .photo-slide.is-active {
  display: flex;
}

/* 画像：アスペクト比維持で縮小。トリミングしない */
.page-vehicle .photo-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* 矢印固定配置（キャプション長に影響されない） */
.page-vehicle .photo-controls {
  position: relative;
  margin-top: 4px;
  padding: 0 48px; /* 左右矢印分 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-vehicle .photo-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* フォト矢印 */
.page-vehicle .photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.page-vehicle .photo-arrow--prev {
  left: 8px;
}

.page-vehicle .photo-arrow--next {
  right: 8px;
}

.page-vehicle .photo-arrow:hover {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  color: var(--primary);
}

/* =========================================================
   荷室寸法セクション
   ========================================================= */

.page-vehicle .vehicle-size {
  padding-top: 40px;
}

/* 上に画像群、下に表 */
.page-vehicle .vehicle-size-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 寸法図 2枚を横並び、中央揃え */
.page-vehicle .vehicle-size-visuals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
}

.page-vehicle .vehicle-size-visuals figure {
  flex: 1 1 260px;
  max-width: 420px;
  margin: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-vehicle .vehicle-size-visuals img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.page-vehicle .vehicle-size-visuals figcaption {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

/* 寸法表 */
.page-vehicle .size-table-wrap {
  width: 100%;
}

.page-vehicle .size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.page-vehicle .size-table th,
.page-vehicle .size-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.page-vehicle .size-table th {
  width: 40%;
  color: #0b4f66;
  font-weight: 700;
  text-align: left;
}

.page-vehicle .size-table td {
  color: #475569;
  text-align: left;
}

.page-vehicle .vehicle-size .text-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* =========================================================
   安全輸送への取り組み
   ========================================================= */

.page-vehicle .vehicle-safety {
  padding-top: 40px;
}

.page-vehicle .vehicle-safety-box {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  color: #475569;
  line-height: 1.8;
  font-size: 14px;
}

/* =========================================================
   他車手配・連携対応 + CTA
   ========================================================= */

.page-vehicle .vehicle-network {
  padding-top: 40px;
  padding-bottom: 56px;
}

.page-vehicle .vehicle-network-box {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 18px 16px 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  margin-bottom: 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.page-vehicle .vehicle-network-box ul {
  margin: 4px 0 6px 18px;
  padding: 0;
}

.page-vehicle .vehicle-network-box li {
  margin: 2px 0;
}

.page-vehicle .vehicle-network-box .muted {
  font-size: 12px;
}

.page-vehicle .vehicle-cta {
  margin-top: 4px;
}

/* =========================================================
   レスポンシブ
   ========================================================= */

@media (max-width: 960px) {
  .page-vehicle .vehicle-card-grid {
    grid-template-columns: 1fr;
  }

  .page-vehicle .vehicle-lineup-slider {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
  }

  .page-vehicle .lineup-arrow {
    order: -1;
  }
}

@media (max-width: 720px) {
  .page-vehicle section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-vehicle .vehicle-network {
    padding-bottom: 40px;
  }
}
