@charset "utf-8";
@import url(common.css);

/* ==========================================================
   1. BASE (ページ全体)
   ========================================================== */
body {
  background-color: #0d1015;
  margin: 0;
  font-family: "Yu Gothic", sans-serif;
  padding-top: 110px; /* 固定ヘッダーの高さ分の余白 */
}

/* ==========================================================
   2. TOP VISUAL (トップ画像)
   ========================================================== */
.topimg {
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.topimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================
   3. ARTICLE & TITLE (記事全体・大見出し)
   ========================================================== */
article {
  background: #f0f0f0; /* 記事エリアの背景（明るいグレー） */
  text-align: center;
}

article h1 {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-align: center;
  background-color: #0d1015; /* 見出しの背景は黒 */
  padding: 40px 0;
  margin: 0;
}

.title {
  position: relative;
  display: inline-block;
}

.title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 70%;
  height: 3px;
  background: red;
  transform: translateX(-50%);
}

/* ==========================================================
   4. SECTIONS (PC版：1画面表示の縦横中央レイアウト)
   ========================================================== */
section {
  height: 100vh; /* 1画面ぴったりに表示 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 縦方向の中央寄せ */
  align-items: center; /* 横方向の中央寄せ */
  box-sizing: border-box;
  padding: 0;
  text-align: center;
}

/* 車の名前 */
section h2 {
  font-weight: 500;
  font-size: 50px;
  margin: 0 0 40px 0;
  color: #222;
}

/* 画像エリア */
.img {
  width: 380px;
  height: 212px;
  margin: 0 auto;
  padding-bottom: 46px;
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストエリア */
.text {
  max-width: 600px;
  margin: 0 auto 40px auto; /* 下のボタンとの間に40pxの隙間を作る */
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  text-align: left;
  color: #333;
}

/* ==========================================================
   5. BUTTON DESIGN (「詳しく見る」ボタン)
   ========================================================== */
.btn-area {
  width: 100%;
  max-width: 600px; /* テキストの最大幅と統一 */
  margin: 0 auto;
  text-align: center;
}

.btn-area .btn-view {
  display: inline-block;
  border: 1px solid #222; /* 背景のグレーに合わせて黒い線のボタンに */
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 15px 60px;
  transition: all 0.3s ease; /* ホバー時の滑らかなアニメーション */
}

/* ボタンのホバー効果（高級感のある黒背景×白文字への反転） */
.btn-area .btn-view:hover {
  background-color: #222;
  color: #f0f0f0;
}

/* ==========================================================
   6. 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;
}

/* ==========================================================
   7. RESPONSIVE (スマホ対応：!importantなしで1画面表示をキープ)
   ========================================================== */
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px; /* スマホ用ヘッダーの高さに合わせる */
  }

  /* トップ画像をスマホの画面ぴったり（ヘッダー引いた分）に */
  .topimg {
    height: calc(100vh - 70px);
  }

  /* 大見出しをスマホ用にコンパクト化 */
  article h1 {
    font-size: 36px;
    padding: 25px 0;
  }

  .title::after {
    height: 2px;
    bottom: -6px;
  }

  /* スマホでも1画面ぴったり（100vh）のフレックスを綺麗に維持 */
  section {
    height: calc(100vh - 70px); /* 画面縦幅からスマホヘッダー分を引く */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* スマホ用の車名サイズ */
  section h2 {
    font-size: 28px;
    margin: 0 0 15px 0;
  }

  /* スマホの縦幅を圧迫しないように、画像を黄金比でコンパクト化 */
  .img {
    width: 260px;
    height: 145px;
    margin: 0 auto;
    padding-bottom: 20px;
  }

  /* テキストの文字サイズと行間をスマホ向けに最適化 */
  .text {
    max-width: 90%;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 25px 0;
  }

  /* ボタンも画像の横幅と合わせてスタイリッシュに */
  .btn-area {
    max-width: 90%;
  }

  .btn-area .btn-view {
    width: 100%;
    max-width: 260px;
    box-sizing: border-box;
    padding: 12px 0;
    font-size: 13px;
  }

  /* フッターをスマホ用の縦並びレイアウトに */
  .footer-top {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .footer ul.hidari {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
/* ==========================================================
   7. RESPONSIVE (スマホ対応：完璧な状態を100%維持)
   ========================================================== */
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .topimg {
    height: 50vh;
  }

  /* メインタイトルのスマホ調整 */
  article h1 {
    font-size: 40px;
    padding: 40px 0;
    margin: 0;
  }

  .title::after {
    height: 2px;
    bottom: -6px;
  }

  /* 横並びと反転を解除して「上画像・下テキスト」の1列に */
  .item,
  .item.reverse {
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 0;
    height: auto; /* スマホ時は一画面表示を解除してコンテンツ長に合わせる */
  }

  /* スマホ版では100%幅にリセット */
  .item .img,
  .item .text {
    width: 100%;
  }

  /* スマホ画面に合わせた画像の高さ */
  .item .img img {
    height: 300px;
  }

  /* スマホの画面幅に合わせてテキストパディングを凝縮 */
  .item .text {
    padding: 40px 25px;
  }

  /* セクション見出しのスマホサイズ */
  .item .text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  /* 本文のスマホサイズ */
  .item .text p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
  }

  /* フッターのスマホ調整 */
  .footer-top {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .footer ul.hidari {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
/* ==========================================================
   スマホ・タブレット用（画面幅768px以下）の調整コード
   ========================================================== */
@media screen and (max-width: 768px) {
  /* --- 1. 全体・ヘッダーのスマホ縮小 --- */
  body {
    padding-top: 70px; /* スマホ用にヘッダーが低くなる分、上の余白を詰める */
  }

  header,
  .header-inner {
    height: 70px; /* 110pxから70pxにコンパクト化 */
  }

  .logo img {
    height: 60px; /* ロゴもスマホサイズに縮小 */
  }

  /* --- 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); /* 線を少し薄くして上品に */
  }
}