@import url(common.css);
/* メインビジュアル書式 */
video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
/* 50thとボタンの配置書式 */
.mainvisual {
  position: relative;
}

.mainvisual video {
  width: 100%;
  display: block;
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.top .inner {
  max-width: 1110px;
  margin: 0 auto;
  height: 100%; /* ←追加 */
  position: relative;
}

/* テキスト位置 */
.mv-text {
  position: absolute;
  top: 70%;
  left: 0;
  transform: translateY(-50%);
  color: #fff;
}

/* 50thの文字 */
.mv-text h2 {
  font-size: 100px;
  margin-bottom: 70px;
}

/* ボタン（ここはabsolute外す） */
.top .btn {
  position: static; /* ←これ重要 */
  transform: none;

  display: inline-flex;
  align-items: center;

  padding: 12px 24px;
  border: 1px solid #fff;
}
/* 各セクション見出し */
section.top h2 {
  font-size: 100px;
  color: #fff;
}
section h2 {
  font-size: 85px;
  padding-top: 100px;
}
/* 詳しく見るボタン */
section {
  position: relative;
  padding-bottom: 120px; /* ←これが超重要 */
}

.btn {
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 24px; /* ←大きさ調整 */
  min-width: 210px; /* ←横幅そろえるならこれ */

  text-decoration: none;
}

.black {
  background: #000;
  color: #fff;
}

.white {
  background: #fff;
  color: #000;
}
/* modelの書式 */
section.model {
  width: 100%;
  height: 100vh;
}
.btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 10px;
}
/* スライダー */
.swiper {
  width: 100%;
  max-width: 1110px;
  margin: 40px auto;
}

.swiper-slide img {
  width: 100%;
  display: block;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

/* 共通 */
.swiper-button-prev,
.swiper-button-next {
  width: 0;
  height: 0;
}

/* 右向き（三角） */
.swiper-button-next {
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 30px solid #000;
}

/* 左向き（三角） */
.swiper-button-prev {
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 30px solid #000;
}
/* dealerの書式 */
section.dealer {
  color: #fff;
  width: 100%;
  height: 100vh;
  background-image: url(../img/showroom.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
section.dealer p {
  font-size: 60px;
  text-align: center;
  padding-top: 20px;
}
/* historyの書式 */

section.history {
  color: #fff;
  width: 100%;
  height: 100vh;
  background-image: url(../img/history.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.history h2 {
  position: absolute;
  top: 0;
  left: 20px; /* ← innerのpaddingと揃える */
}
.history h3 {
  font-size: 30px;
  padding-bottom: 27px;
  text-align: center;
}
.history p {
  font-size: 20px;
  max-width: 560px;
}
.history .naiyou {
  position: relative;

  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.history-text {
  width: 610px;
  background: rgba(0, 0, 0, 0.3); /* 好きな色に変更OK */
  padding: 30px;
}
/* newsの書式 */
.news h2 {
  padding-bottom: 50px;
}
.news-text {
  font-size: 28px;
  font-weight: bold;
}
section.news {
  max-width: 1110px;
  margin-left: auto;
  margin-right: auto;
  height: 100vh;
}

.naiyou {
  max-width: 1110px;
  margin: 0 auto;
}

.news .container {
  display: flex;
  gap: 20px;
}

.news .item {
  width: 50%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.news .item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  padding-bottom: 22px;
}

.news .item p {
  margin-top: 10px;
}
section {
  position: relative;
}

section:not(.top) .btn {
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
}
/* ==========================================================
   4. FOOTER
   ========================================================== */
.footer {
  background-color: #11141a;
  padding: 60px 0 40px 0;
  color: #a0a5b0;
  width: 100%;
  clear: both;
}

.finner {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222833;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.footer a {
  color: #a0a5b0;
  text-decoration: none;
  font-size: 14px;
}

.footer a:hover {
  color: #fff;
}

.footer .sns img {
  width: 24px;
  height: auto;
  display: block;
}

.copyright {
  margin: 0;
  line-height: 2;
  text-align: center;
}

.copyright small {
  font-size: 11px;
  color: #666c7a;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media screen and (max-width: 768px) {
  /* =========================
     BODY
  ========================= */
  body {
    padding-top: 70px;
  }

  /* =========================
     HEADER
  ========================= */
  header,
  .header-inner {
    height: 70px;
  }

  .logo img {
    height: 60px;
  }

  /* =========================
     MAIN VISUAL
  ========================= */
  .mainvisual {
    height: 60vh;
  }

  .mainvisual video {
    height: 100%;
    object-fit: cover;
  }

  /* =========================
     50th TEXT
  ========================= */
  .top {
    position: absolute;
  }

  .mv-text {
    position: absolute;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -120%);
    color: #fff;
    text-align: center;
    width: 100%;
  }

  .mv-text h2 {
    font-size: 56px;
    margin-bottom: 25px;
  }
  section.top h2 {
    font-size: 50px;
  }
  /* =========================
     SECTION
  ========================= */
  section {
    padding-bottom: 80px;
  }

  section h2 {
    font-size: 42px;
    padding-top: 60px;
    text-align: center;
  }

  /* =========================
     BUTTON
  ========================= */
  .btn {
    min-width: 180px;
    padding: 12px 20px;
    font-size: 14px;
  }

  section:not(.top) .btn {
    bottom: 30px;
  }

  /* =========================
     MODEL
  ========================= */
  section.model {
    height: auto;
    padding-bottom: 100px;
  }

  .swiper {
    margin-top: 30px;
  }

  .swiper-button-next {
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #000;
  }

  .swiper-button-prev {
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 18px solid #000;
  }

  /* =========================
     DEALER
  ========================= */
  section.dealer {
    height: 70vh;
    background-position: center;
  }

  section.dealer p {
    font-size: 28px;
    padding-top: 10px;
  }

  /* =========================
     HISTORY
  ========================= */
  section.history {
    height: auto;
    padding: 80px 20px 120px;
  }

  .history .naiyou {
    height: auto;
    padding-bottom: 120px;
    position: relative;
  }

  .history h2 {
    position: static;
    text-align: center;
    margin-bottom: 40px;
  }

  .history-text {
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
  }

  .history h3 {
    font-size: 24px;
  }

  .history p {
    font-size: 15px;
    line-height: 1.8;
  }

  /* =========================
     NEWS
  ========================= */
  section.news {
    height: auto;
    padding-bottom: 100px;
  }

  .news .container {
    flex-direction: column;
    gap: 40px;
  }

  .news .item {
    width: 100%;
  }

  .news .item img {
    height: 260px;
  }

  .news-text {
    font-size: 22px;
  }

  /* =========================
     HAMBURGER NAV
  ========================= */
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #0d1015;
    transition: 0.4s;
    padding-top: 50px;
    z-index: 999;
  }

  .nav.active {
    left: 0;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav a {
    font-size: 22px;
    color: #fff;
  }
  /* フッターのスマホ調整 */
  .footer-top {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .footer ul.hidari {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  /* --- 2. ハンバーガーメニューをスマホ用に最適化 --- */
  .nav {
    position: fixed;
    top: 70px; /* 縮小したヘッダーのすぐ下から */
    left: 0;
    transform: none;
    width: 100%;
    height: calc(100vh - 70px); /* 画面の縦いっぱいにメニューを広げる */
    padding: 40px 20px;
    box-sizing: border-box;
  }

  .nav ul {
    flex-direction: column; /* 横並びから「縦並び」に変更 */
    align-items: center;
    gap: 25px;
  }

  .nav a {
    font-size: 22px; /* 文字サイズをスマホ用に調整 */
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* 線を少し薄くして上品に */
  }
}
