@import url(common.css);

/* ページ固有のスタイル（ヘッダー・フッター等はcommonで制御） */
body {
  background-color: #e7e7e7;
  font-family: "Yu Gothic", sans-serif;
  padding-top: 110px; /* ヘッダーの高さ */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* タイトルエリア（DEALERページと統一） */
article h1 {
  font-size: 85px;
  color: #fff;
  text-align: center;
  background-color: #0d1015;
  padding: 55px 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%);
}

/* フォーム全体 */
.contact-form {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 20px;
}

dl {
  margin-bottom: 40px;
}
dt {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}
dd {
  margin: 0 0 30px 0;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

/* 送信ボタン */
.submit-area {
  text-align: center;
}
button {
  background-color: #0d1015;
  color: #fff;
  padding: 15px 50px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}
button:hover {
  background-color: #333;
}
/* ==========================================================
   4. FOOTER
   ========================================================== */
.footer {
  background-color: #11141a;
  padding: 60px 0 40px 0;
  color: #a0a5b0;
  width: 100%;
  clear: both;
  margin-top: auto;
}

.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 (スマホ対応：完璧な状態を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); /* 線を少し薄くして上品に */
  }
}
