@charset "UTF-8";

/* フォント */
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP:300,400,700&subset=japanese");
@font-face {
  font-family: MazdaTypeRegular;
  src:
    url("https://www2.mazda.co.jp/common/fonts/MazdaTypeTT-Regular.woff2") format("woff2"),
    url("https://www2.mazda.co.jp/common/fonts/MazdaTypeTT-Regular.woff") format("woff"),
    url("https://www2.mazda.co.jp/common/assets/fonts/MazdaTypeTT-Regular.ttf") format("truetype");
}
@font-face {
  font-family: MazdaTypeMedium;
  src:
    url("https://www2.mazda.co.jp/common/fonts/MazdaTypeTT-Medium.woff2") format("woff2"),
    url("https://www2.mazda.co.jp/common/fonts/MazdaTypeTT-Medium.woff") format("woff"),
    url("https://www2.mazda.co.jp/common/fonts/MazdaTypeTT-Medium.ttf") format("truetype");
}
@font-face {
  font-family: MazdaTypeBold;
  src:
    url("https://www2.mazda.co.jp/common/fonts/MazdaTypeTT-Bold.woff2") format("woff2"),
    url("https://www2.mazda.co.jp/common/fonts/MazdaTypeTT-Bold.woff") format("woff"),
    url("https://www2.mazda.co.jp/common/fonts/MazdaTypeTT-Bold.ttf") format("truetype");
}

body {
  font-family: "MazdaTypeRegular", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "HiraKakuProN-W3", "Meiryo UI", "Yu Gothic Medium", sans-serif;
  font-weight: 300;
}

/* 1rem = 10px */
html {
  font-size: 62.5%;
}

/* 最小値:1.1rem → 可変 → 最大値:1.2rem */
.font-size-S {
  font-size: clamp(1.1rem, 0.9rem + 0.625vw, 1.2rem);
}

/* 最小値:1.4rem → 可変 → 最大値:1.8rem */
.font-size-M {
  font-size: clamp(1.4rem, 1rem + 0.625vw, 1.8rem);
}

/* 最小値:2.4rem → 可変 → 最大値:2.9rem */
.font-size-L {
  font-size: clamp(2.4rem, 2.2rem + 0.625vw, 2.9rem);
}

/* リセット */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
p,
div {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  vertical-align: bottom;
  border: none;
}

/* レイアウト */
.container {
  width: 100%;
  max-width: 1026px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}
picture img {
  max-width: 100%;
}

/* ヘッダー */
header {
  height: 65px;
  width: 100%;
  background-color: #041428;
  color: #fff;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3%;
  margin: 0 auto;
  height: 100%;
}
.header__logo {
  height: 50px;
}
.header__dealer {
  line-height: 65px;
  font-size: 2rem;
  display: block;
  color: #666;
  transition: 0.3s;
}
.header__dealer:hover {
  color: #fff;
}

/* メインビジュアル */
.hero {
  background-color: #111;
  min-width: 1026px;
}
.hero img {
  width: 100%;
}

/* フッター */
footer {
  width: 100%;
  background-color: #041428;
  color: #fff;
  text-align: center;
  padding: 100px 0;
  margin-top: 16rem;
}
footer p {
  font-size: clamp(1.2rem, 1.1rem + 0.25vw, 1.4rem);
  line-height: 1.75;
  letter-spacing: 0.05rem;
}

/* リンク付き画像ホバー */
a img {
  transition: opacity 0.3s ease;
}
a:hover img {
  opacity: 0.75;
}

/* ユーティリティ */
.sp-only {
  display: none;
}
.mt-4   { margin-top:  4px; }
.mt-10  { margin-top: 10px; }
.mt-20  { margin-top: 20px; }
.mt-30  { margin-top: 30px; }
.mt-40  { margin-top: 40px; }
.mt-50  { margin-top: 50px; }
.mt-60  { margin-top: 60px; }
.mt-70  { margin-top: 70px; }
.mt-80  { margin-top: 80px; }
.mt-90  { margin-top: 90px; }
.mt-100 { margin-top: 100px; }
.mb-4   { margin-bottom:  4px; }
.mb-10  { margin-bottom: 10px; }
.mb-20  { margin-bottom: 20px; }
.mb-30  { margin-bottom: 30px; }
.mb-40  { margin-bottom: 40px; }
.mb-50  { margin-bottom: 50px; }
.mb-60  { margin-bottom: 60px; }
.mb-70  { margin-bottom: 70px; }
.mb-80  { margin-bottom: 80px; }
.mb-90  { margin-bottom: 90px; }
.mb-100 { margin-bottom: 100px; }

/* 開催店舗アコーディオン */
.event-schedule__heading {
  font-size: clamp(1.8rem, 1.8rem + 0.6vw, 2.6rem);
  font-weight: 300;
  margin: 4rem 0;
  color: #666;
}
.event-schedule {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.event-schedule__item {
  display: flex;
  flex-direction: column;
}
.event-schedule__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 60px;
  border-bottom: 1px solid #000;
  cursor: pointer;
  list-style: none;
  gap: 1rem;
}
.event-schedule__item:first-child .event-schedule__header {
  border-top: 1px solid #000;
}
.event-schedule__header::-webkit-details-marker {
  display: none;
}
.event-schedule__date {
  font-size: clamp(1.6rem, calc(1.4rem + 0.5vw), 2rem);
  color: #666;
}
.event-schedule__dan {
  color: #23b3d3;
  font-weight: 500;
}
.date-sun {
  color: #910a2d;
}
.tighten {
  margin-left: -0.5em;
}
.event-schedule__icon {
  flex-shrink: 0;
  width: 18px;
  height: 20px;
  transition: transform 0.3s ease;
}
.event-schedule__body {
  font-size: 1.6rem;
  line-height: 3rem;
  color: #000;
  background-color: #f6f6f6;
  padding: 20px;
  word-break: auto-phrase;
}
.event-schedule__area {
  color: #910a2d;
}
.pre-item__desc {
  font-size: clamp(1.2rem, 1.1rem + 0.25vw, 1.4rem);
  color: #777;
  margin-top: 10px;
  letter-spacing: 0.05rem;
}
.tax__desc {
  font-size: clamp(1.2rem, 1.1rem + 0.25vw, 1.4rem);
  color: #777;
  margin-top: 10px;
  letter-spacing: 0.05rem;
  text-align: left;
}

/* 主要諸元テーブル */
.spec-table {
  display: flex;
  gap: 0 20px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  color: #666;
  font-size: 1.4rem;
  text-align: left;
  margin-bottom: 40px;
}
.spec-table__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  gap: 4px;
  white-space: nowrap;
}
.spec-table__en {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.spec-table__ja {
  font-size: 1.1rem;
}
.spec-table__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.spec-table__row {
  display: flex;
  flex: 1;
  gap: 0 20px;
}
.spec-table__row:not(:last-child) .spec-table__item {
  border-bottom: 1px solid #ccc;
}
.spec-table__row:last-child .spec-table__item {
  flex: 0 0 calc(40% - 10px);
}
.spec-table__item {
  flex: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  gap: 12px;
}
.spec-table__item:nth-child(2) {
  flex: 6;
}
.spec-table__val {
  text-align: right;
  white-space: nowrap;
}

/* SUV Swiperスライダー */
.suv-swiper {
  width: 100%;
}
.suv-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.suv-swiper .swiper-button-prev,
.suv-swiper .swiper-button-next {
  color: #ffff00;
  --swiper-navigation-size: 24px;
}

/* デザイン・室内空間・荷室カード */
.feature-cards {
  display: flex;
  gap: 24px;
}
.feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.feature-card__btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #fff;
  background-color: #041428;
  border: 1px solid #041428;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.feature-card__btn .material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: 1em;
}
.feature-card__btn:hover {
  background-color: #fff;
  color: #041428;
}

/* 車種セクション見出し */
.car-section__heading {
  font-size: clamp(2rem, 2rem + 0.5vw, 2.8rem);
  font-weight: 400;
  margin: 60px 0;
  color: #666;
}

/* 公式ボタン */
.official__btns {
  display: flex;
  gap: 24px;
  margin-top: 2rem;
}
.official__btn {
  display: block;
  flex: 1;
  font-weight: 400;
  text-align: center;
  user-select: none;
  padding: 10px 7.5px;
  font-size: 1.6rem;
  line-height: 1.5;
  border-radius: 3px;
  color: #4a5b6e;
  background-color: #fff;
  border: 1px solid #4a5b6e;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.official__btn--reserve {
  color: #fff;
  background-color: #23b3d3;
  border: 1px solid #23b3d3;
}
.official__btn .material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: 1em;
  vertical-align: middle;
  margin-left: 4px;
}
.official__btn:hover {
  background-color: #4a5b6e;
  border-color: #4a5b6e;
  color: #fff;
}
.official__btn--reserve:hover {
  background-color: #fff;
  border-color: #23b3d3;
  color: #23b3d3;
}

/* ============================================
   @media (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .full-bleed-sp {
    display: block;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }
  .full-bleed-sp img {
    width: 100%;
  }
  header {
    height: 60px;
  }
  header .container {
    display: contents;
  }
  .car-section__heading {
    margin: 40px 0;
  }
  .hero {
    display: contents;
  }
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
  .official__btns {
    flex-direction: column;
    gap: 20px;
    margin-top: 4rem;
    margin-left: auto;
    margin-right: auto;
  }
  .official__btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-left: 16px;
  }
  .pre-item__desc {
    text-align: left;
  }
  footer {
    margin-top: 8rem;
  }
  .spec-table {
    flex-direction: column;
    gap: 0;
    border-top: none;
  }
  .spec-table__label {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 8px;
    gap: 0;
    border-bottom: 1px solid #ccc;
  }
  .spec-table__en::after {
    content: "（";
  }
  .spec-table__ja::after {
    content: "）";
  }
  .spec-table__row {
    flex-direction: column;
    gap: 0;
  }
  .spec-table__item,
  .spec-table__item:nth-child(2),
  .spec-table__row:last-child .spec-table__item {
    flex: none;
    width: 100%;
    border-bottom: 1px solid #ccc;
  }
  .spec-table__row:last-child .spec-table__item:last-child {
    border-bottom: none;
  }
  .feature-cards {
    flex-direction: column;
    gap: 16px;
  }
  .feature-card__btn {
    padding: 14px 16px;
  }
}
