@charset "UTF-8";
/* CSS Document */

/* フォント */
@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-Boldwoff2") 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 → 可変（0.9rem + 0.625vw（画面幅320px:2px, 800px:5px, 1200px:7.5px））→ 最大値:1.2rem*/
.font-size-S {
  font-size: clamp(1.1rem, 0.9rem + 0.625vw, 1.2rem);
}

/*最小値:1.3rem → 可変（1rem + 0.625vw（画面幅320px:2px, 800px:5px, 1200px:7.5px））→ 最大値 2rem*/
.font-size-M {
  font-size: clamp(1.4rem, 1rem + 0.625vw, 1.8rem);
}

/*最小値:1.6rem → 可変（2.2rem + 0.625vw（画面幅320px:2px, 800px:5px, 1200px:7.5px））→ 最大値: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;
}
p {
  text-decoration: none;
}
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;
  top: 0;
  /* position: fixed;
  z-index: 10; */
}
header .container {
  text-align: center;
}
.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: #999;
  transition: 0.3s;
}
.header__dealer:hover {
  color: #fff;
}

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

/* イベント告知 */
.event-info {
  max-width: 1026px;
}
/* フッター */
footer {
  background-color: #041428;
  color: #fff;
  top: 0;
  text-align: center;
  left: 0;
  bottom: 0;
  width: 100%;
  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;
}

/* ユーティリティ */
.sp-only {
  display: none;
}

/* 開催店舗アコーディオン */
.event-schedule__heading {
  font-size: clamp(1.4rem, 1.4rem + 0.5vw, 2rem);
  font-weight: 300;
  margin: 1.6rem 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;
}
.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;
  align-self: end;
  margin-top: 10px;
  letter-spacing: 0.05rem;
}

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

/* 試乗車グリッド */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 40px;
}
.car-item {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
.car-item__image {
  max-width: 90%;
  height: auto;
}
.car-item__name {
  font-size: clamp(1.6rem, 1.4rem + 0.5vw, 2rem);
  color: #212529;
}
.car-item__desc {
  font-size: clamp(1.2rem, 1.1rem + 0.25vw, 1.4rem);
  color: #999999;
  align-self: end;
  margin-bottom: 10px;
}

/* 試乗予約ボタン */
.car-item__btn {
  display: block;
  width: 100%;
  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: #fff;
  background-color: #23b3d3;
  transition: filter 0.3s ease;
}
.car-item__btn:hover {
  filter: brightness(1.15);
}

/* 公式ボタン */
.official__btns {
  display: flex;
  gap: 24px;
  margin-top: 16rem;
}
.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:hover {
  background-color: #8b693e;
  border: 1px solid #8b693e;
  color: #fff;
}

/* ============================================
   @media (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  header {
    height: 60px;
  }
  header .container {
    display: contents;
  }
  .event-info {
    padding: 0 16px;
  }
  .car-section__heading {
    margin: 40px 0;
  }
  .hero {
    display: contents;
  }
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  .official__btns {
    flex-direction: column;
    gap: 20px;
    margin-top: 8rem;
    margin-left: auto;
    margin-right: auto;
  }
  .official__btn {
    width: 100%;
  }
  .pre-item__desc {
    text-align: left;
  }
  footer {
    margin-top: 8rem;
  }
}
