/* fleet.html — メインデザインに統一 */

:root {
  --fleet-accent:   var(--primary);           /* #9b2f62 */
  --fleet-glow:     rgba(155, 47, 98, 0.18);
  --fleet-border:   var(--hairline);           /* #dbe3ee */
  --fleet-mute:     var(--ink-mute);           /* #647086 */
}

/* ─ ページ全体 ─ */
body.fleet-page { background: var(--canvas); }
body.fleet-page .page-hero { display: none; }

/* ─ ページヒーロー ─ */
.fleet-hero {
  padding: 72px clamp(20px, 6vw, 72px) 56px;
  background: var(--brand-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.fleet-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(155,47,98,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 20%, rgba(217,164,65,0.20) 0%, transparent 60%);
  z-index: 0;
}

.fleet-hero > * { position: relative; z-index: 1; }

.fleet-hero .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.fleet-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}

.fleet-hero p {
  color: rgba(255, 255, 255, 0.80);
  font-size: 17px;
  max-width: 640px;
}

/* ─ 車両グリッド ─ */
.fleet-section {
  padding: 60px clamp(20px, 6vw, 72px);
  background: var(--canvas-soft);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ─ 車両カード ─ */
.fleet-card {
  background: var(--canvas);
  border: 1px solid var(--fleet-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.fleet-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s, box-shadow 0.25s;
}

.fleet-card:nth-child(2).is-visible { transition-delay: 0.08s; }
.fleet-card:nth-child(3).is-visible { transition-delay: 0.16s; }
.fleet-card:nth-child(4).is-visible { transition-delay: 0.24s; }

.fleet-card.is-visible:hover {
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
  transition-delay: 0s;
}

.fleet-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-subdued);
  box-shadow: var(--shadow-2), 0 0 18px var(--fleet-glow);
}

/* カード写真 */
.fleet-card-photo { position: relative; overflow: hidden; }

.fleet-card-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fleet-card:hover .fleet-card-photo img { transform: scale(1.04); }

/* カード本文 */
.fleet-card-body { padding: 20px 20px 22px; }

/* サイズバッジ */
.fleet-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.fleet-card-title {
  font-size: 24px;
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.fleet-card-desc {
  font-size: 13px;
  color: var(--fleet-mute);
  margin: 0 0 18px;
  line-height: 1.65;
}

/* スペック */
.fleet-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px 8px;
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  margin-bottom: 16px;
}

.fleet-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.fleet-spec-icon { font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.fleet-spec-icon img { width: 28px; height: 28px; object-fit: contain; display: block; }

.fleet-spec-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.fleet-spec-label {
  font-size: 10px;
  color: var(--fleet-mute);
  text-align: center;
}

/* カードボタン */
.fleet-card-btn {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--hairline);
  border-radius: 50px;
  background: transparent;
  color: var(--ink-mute);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fleet-card-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─ 詳細セクション ─ */
.fleet-detail-section {
  padding: 0 clamp(20px, 6vw, 72px) 80px;
  background: var(--canvas);
}

/* 詳細カードのラップ */
.vehicle-detail.fleet-detail-wrap {
  background: var(--canvas);
  border: 1px solid var(--fleet-border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  color: var(--ink-secondary);
  margin-top: 0;
  box-shadow: var(--shadow-1);
}

.vehicle-detail.fleet-detail-wrap + .vehicle-detail.fleet-detail-wrap {
  margin-top: 20px;
}

/* 右上グロー（ローズ版） */
.vehicle-detail.fleet-detail-wrap::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(155, 47, 98, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 詳細ヘッダー */
.fleet-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.fleet-detail-header h3 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.6px;
}

.fleet-detail-lead {
  color: var(--fleet-mute);
  font-size: 15px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* 詳細写真 */
.fleet-detail-photo {
  width: 100%;
  height: clamp(240px, 30vw, 400px);
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 28px;
  display: block;
  position: relative;
  z-index: 1;
}

/* 用途＋仕様の2カラム */
.fleet-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* 主な用途 */
.fleet-uses h4 {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.fleet-use-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.fleet-use-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fleet-use-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: rgba(155, 47, 98, 0.08);
  font-size: 18px;
}

.fleet-use-text strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.fleet-use-text span {
  font-size: 12px;
  color: var(--fleet-mute);
}

/* 仕様テーブル */
.fleet-specs-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}

.fleet-specs-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}

.fleet-specs-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  flex: 1;
}

.fleet-specs-sub {
  font-size: 10px;
  color: var(--fleet-mute);
  letter-spacing: 0.5px;
}

.fleet-specs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
}

.fleet-specs-row:last-child { border-bottom: 0; }

.fleet-specs-row .fs-icon { font-size: 17px; width: 22px; text-align: center; }
.fleet-specs-row .fs-key { flex: 1; font-size: 13px; color: var(--fleet-mute); }
.fleet-specs-row .fs-val { font-size: 14px; font-weight: 500; color: var(--ink); }

/* 装備タグ */
.fleet-equipment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.fleet-equipment span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid var(--primary-subdued);
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary-deep);
  background: rgba(155, 47, 98, 0.06);
}

/* CTAボタン */
.fleet-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px var(--fleet-glow);
  border: 0;
}

.fleet-cta-btn:hover {
  background: var(--primary-deep);
  box-shadow: 0 6px 24px var(--fleet-glow);
}

/* ─ 詳細カードのアニメーション ─ */
.vehicle-detail.fleet-detail-wrap {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.vehicle-detail.fleet-detail-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─ セクションタイトル ─ */
.fleet-section-title {
  padding: 0 0 32px;
}

.fleet-section-title h2 {
  color: var(--ink);
  margin-bottom: 8px;
}

.fleet-section-title p {
  color: var(--fleet-mute);
}

/* ─ フッター調整 ─ */
body.fleet-page .site-footer {
  border-top-color: var(--hairline);
}

/* ─ レスポンシブ ─ */
@media (max-width: 1080px) {
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-detail-content { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .fleet-card-specs { grid-template-columns: repeat(3, 1fr); }
}
