@charset "UTF-8";

/* ------------------共通項目-------------------- */
body {
  font-family: "Noto Sans JP", sans-serif;
  background: #f8f8f8;
  margin: auto;
}

header {
  top: 0px;
}

.shijo-bg::before {
  content: "";
  display: block;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: -1;
  width: 100%;
  height: 100vh;
  background-image: url(../img/red_haikei.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.shijo-wrap {
  max-width: 1200px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}
/* ------------------共通項目終わり-------------------- */

/* ------------------メインビジュアル-------------------- */
.hero {
  background: url("../img/mv02_pc.webp") no-repeat center center/cover;
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  margin: 80px 0 50px 0;
  height: 680px;
  border-radius: 10px;
}

/* .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
} */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: auto;
  top: 95%;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.4);
}

.hero-button {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 14px 50px;
  border: 3px solid #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 26px;
  transition: background 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.hero-button:hover {
  background: #ff7600;
}
/* ------------------メインビジュアル終わり-------------------- */

/* .shijo-kikan {
  font-size: 32px;
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
  padding: 20px 0;
  border: 3px solid #ffffff;
} */

.shijo-kikan {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 50px auto;
  padding: 20px 40px;
  border-top: 3px solid rgba(255, 255, 255, 0.8);
  border-bottom: 3px solid rgba(255, 255, 255, 0.8);
  /* border-radius: 12px; */
  /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); */
  transition: all 0.3s ease;
}

/* ------------------フロー部分-------------------- */
/* 全体枠 */
.flow-container {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 50px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

/* タイトル */
.flow-container h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
  color: #333;
}

/* ステップ全体の並び */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: #fff;
}

/* ステップブロック */
.flow-step {
  flex: 1;
  min-width: 250px;
  background: #656565;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: #fff;
}

.flow-step img {
  display: block;
  margin: 20px auto;
  width: 80px;
}

/* STEPラベル */
.step-number {
  background: #ad0b00;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

/* タイトル */
.step-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

/* 説明文 */
.step-desc {
  font-size: 14px;
}

/* 三角形矢印 */
.flow-arrow {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #ad0b00;
}
/* ------------------フロー部分終わり-------------------- */

/* ------------------ブランドタブ選択-------------------- */
#brandTabs {
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
  gap: 12px;
}

.brand-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 15%;
  padding: 0 10px;
  cursor: pointer;
  background: linear-gradient(to bottom, #ffffff, #f0f0f0);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#brandTabs::after {
  display: block;
  content: "";
  width: 32%;
}

.brand-tab:hover,
.brand-tab.active {
  background: linear-gradient(to bottom, #ff8800, #c75300);
  color: #fff;
  border-color: #b35c00;
  box-shadow: 0 4px 10px rgba(109, 58, 0, 0.3);
}

.brand-tab img.brand-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 5px;
}
/* ------------------ブランドタブ選択終わり-------------------- */

/* ------------------車両ギャラリー-------------------- */
#gallery h2 {
  margin-top: 24px;
  font-size: 20px;
  color: #333;
}

#gallery {
  margin-bottom: 40px;
}

.brand-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 32px;
}

.car-card {
  flex: 0 0 calc(33.333% - 10px); /* gap相当分を引く */
  max-width: calc(33.333% - 10px);
  min-width: 260px;
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  height: 120px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background: #fff;
  transition: transform 0.2s ease;
}

.car-card:hover {
  transform: scale(1.02);
}

.car-card img {
  width: 200px;
  border-radius: 6px;
  margin-right: 12px;
}

.car-card div {
  font-size: 15px;
  font-weight: bold;
}

.car-card.has-benefit {
  position: relative;
}
.car-card.has-benefit::after {
  content: "試乗特典付";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  color: #212121;
  background: #ffd54f;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.car-benefit {
  margin: 16px 0 8px;
  padding: 16px 18px;
  border-radius: 10px;

  background: #fff;
  color: #d32f2f;
  font-weight: bold;
  text-align: left;

  border-left: 6px solid #ffd54f;
  border-right: 6px solid #ffd54f;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.car-benefit strong {
  display: block;
  margin-bottom: 8px;
  color: #000;
}

/* ------------------車両ギャラリー終わり-------------------- */

/* ------------------車両説明-------------------- */
.car-info {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 比率：画像1、説明文2 */
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.car-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.car-description {
  font-size: 12px;
  line-height: 1.6;
}
/* ------------------車両説明終わり-------------------- */

/* ------------------試乗店舗リスト-------------------- */
#storeList {
  margin-top: 20px;
}
.store-item {
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center; /* 高さを中央揃え */
  padding: 10px 0;
  border-bottom: 1px solid #ddd; /* 区切り線 */
}

.store-info {
  flex: 1; /* 情報部分を広く */
}

.store-btn {
  flex-shrink: 0; /* ボタン部分は縮まない */
  margin-left: 15px;
  background-color: #ff7f27;
  padding: 10px 18px;
  border-radius: 6px;
  transition: 0.2s;
  cursor: pointer;
}

/* 予約ボタンの装飾 */
.list-yyk {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.store-btn:hover {
  transform: scale(1.05);
}

.list-yyk:active {
  background-color: #cc5f1a;
  transform: translateY(0);
}

/* ------------------試乗店舗リスト終わり-------------------- */

/* ------------------MAP-------------------- */
#map {
  width: 100%;
  height: 500px;
  margin: 20px 0 50px;
}
/* ------------------MAP終わり-------------------- */

/* スマホ */
@media screen and (max-width: 600px) {
  .shijo-wrap {
    max-width: 90%;
  }
  .hero {
    background: url("../img/mv02_sp.webp") no-repeat center center/cover;
    height: 340px;
  }
  .hero-content {
    max-width: 700px;
    top: 110%;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-button {
    font-size: 16px;
  }
  .shijo-kikan {
    font-size: 18px;
    margin: 30px auto;
  }
  .flow-steps {
    flex-direction: column;
  }
  .flow-step img {
    margin: 10px auto;
    width: 60px;
  }
  .flow-arrow {
    margin: auto;
    transform: rotate(90deg);
  }
  .step-desc {
    font-size: 12px;
  }
  #brandTabs {
    gap: 10px;
  }
  .brand-tab {
    width: 48%;
    height: 32px;
    font-size: 12px;
  }
  .brand-container {
    flex-direction: column;
  }
  .car-card img {
    width: 140px;
  }
  .car-card {
    max-width: 100%;
  }
  .car-card.has-benefit::after {
    top: 3px;
    right: 5px;
    font-size: 10px;
    padding: 3px 8px;
    font-weight: 700;
    box-shadow: none;
  }
  .car-info {
    display: flex;
    flex-direction: column;
  }
  .store-item {
    flex-direction: column;
  }
  .store-info {
    font-size: 14px;
  }
  .store-btn {
    width: 100%;
    text-align: center;
    margin: 20px 0;
  }
  #map {
    height: 350px;
  }
}
