@charset "utf-8";
@import url(common.css);

/* ==========================================================
   1. BASE & MAIN VISUAL (メイン画像・ページ全体)
   ========================================================== */
body {
  background-color: #e7e7e7;
  margin: 0;
  font-family: "Yu Gothic", sans-serif;
  padding-top: 110px; /* ヘッダーの高さ分の余白 */
}

/* メイン画像（画面いっぱいに表示） */
.topimg {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.topimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================
   2. ARTICLE HEADER (DEALER大見出し)
   ========================================================== */
article h1 {
  position: relative;
  z-index: 1;
  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%);
}

/* ==========================================================
   3. SHOP INFO LAYOUT (店舗情報・住所)
   ========================================================== */
/* 店舗情報（見出し帯） */
h2.tenpo-1,
h2.tenpo {
  background-color: #d9d9d9;
  font-size: 35px;
  padding-top: 9px;
  padding-bottom: 9px;
  margin: 0;
  text-align: center;
}

h2.tenpo {
  margin-top: 62px; /* 次の店舗との間隔 */
}

/* 説明文ブロック（PC時は中央に660pxで美しく配置） */
dl {
  width: 100%;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

dl dt {
  font-size: 35px;
  padding-top: 83px;
  padding-bottom: 28px;
  text-align: center;
  font-weight: bold;
}

dl dd {
  font-size: 22px;
  padding-bottom: 40px;
  line-height: 1.8;
  margin: 0;
}

/* 住所エリア */
address {
  font-style: normal;
  font-size: 30px;
  line-height: 1.6;
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ==========================================================
   4. SEARCH BOX (検索ボックス)
   ========================================================== */
.zip-input {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 350px;
  margin: 100px auto;
  background: #fff;
  padding: 12px 15px;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 高級感を出す薄い影 */
}

/* 虫眼鏡アイコン */
.zip-input img {
  width: 18px;
  height: auto;
  margin-right: 10px;
  opacity: 0.5;
}

/* 入力欄 */
.zip-input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  color: #333;
  background: transparent;
}

.zip-input input::placeholder {
  color: #bbb;
}

/* ==========================================================
   5. FOOTER (フッターの余白調整)
   ========================================================== */
footer {
  margin-top: 54px;
}

/* ==========================================================
   6. RESPONSIVE (スマホ対応：画面幅768px以下)
   ========================================================== */
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px; /* スマホ用ヘッダー高さに合わせる */
  }

  /* 迫力あるメイン画像をスマホでも見やすい高さに */
  .topimg {
    height: 50vh;
  }

  /* 1. 大きすぎる文字サイズをスマホサイズに一括最適化 */
  article h1 {
    font-size: 36px; /* 85px ➔ 36px */
    padding: 35px 0;
  }

  .title::after {
    height: 2px;
    bottom: -6px;
  }

  h2.tenpo-1,
  h2.tenpo {
    font-size: 20px; /* 35px ➔ 20px */
    padding-top: 12px;
    padding-bottom: 12px;
  }

  h2.tenpo {
    margin-top: 40px;
  }

  /* 2. 店舗情報の幅制限を解除して画面内に綺麗に収める */
  dl {
    width: 100%;
    padding: 0 25px; /* 画面端に文字がくっつかないように余白を追加 */
  }

  dl dt {
    font-size: 20px; /* 35px ➔ 20px */
    padding-top: 40px;
    padding-bottom: 15px;
  }

  dl dd {
    font-size: 15px; /* 22px ➔ 15px */
    padding-bottom: 20px;
  }

  address {
    font-size: 16px; /* 30px ➔ 16px */
    width: 100%;
    padding: 0 25px;
  }

  /* 3. 検索ボックスをスマホの横幅にフィットさせる */
  .zip-input {
    width: calc(100% - 40px); /* 左右に20pxずつの猶予を持たせる */
    margin: 60px auto;
  }
}
/* ==========================================================
   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;
}

/* ==========================================================
   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); /* 線を少し薄くして上品に */
  }
}
