@charset "utf-8";
/* ============================================================
   20260728【HM中部】ドリームフェア_車種別 ／ CIVIC
   読み込み順: destyle.css → base.css → style.css
   ・リセットと共通パーツ（.wrap / .container / .content / .fadein /
     .kiran / #page_top / .columns / .btn--img など）は base.css 担当。
     base.css は編集せず、案件固有の調整はこのファイルで行う。
   ・スライスは横1500px・デザイン原寸980px。幅は % で指定している
     （.container が980pxなので % ＝ デザインの比率そのまま）
   ============================================================ */

/*変数 ==========================================
コンテンツ幅。980px（デザイン原寸）は幅プリセット
（lp--narrow/middle/wide）に該当が無いので上書きする
=================================================*/
body {
  --container-width: 980px;
  --content-width: 980px;
  /* ページ全体の背景（コンテンツ列の外側に見えるグレー） */
  background: #f0f0f0;
}

/*layout ========================================
背景画像は 横幅100% ／ 上揃え ／ リピートなし。
画像はページ最上部（y=0）が基準で、メインビジュアルが上に重なる。
画像が終わった下はコンテンツ列だけ白にする
=================================================*/
/* コンテンツエリア全体のうすい影は base.css の .shadow を併記して付けている
   （M南関東SUV LPと同じ drop-shadow 方式） */
.wrap {
  background: url("../images/0_bg.webp") center top / 100% auto no-repeat;
  background-color: #fff;
}

/* 追従ボタンの高さ分の余白。.wrap 自身ではなく中の .main に当てる */
.main {
  padding-bottom: 24%;
}

/*animation =====================================
「下からぬるっと」表示。base.css の .fadeinLeft / .fadeinRight と
同じ書き方の上下版（.fadein と併記して使う）
=================================================*/
.fadeinUp.fadein--show {
  -webkit-animation: fadein--u .3s ease-in;
  animation: fadein--u .3s ease-in;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

@-webkit-keyframes fadein--u {
  0% {
    opacity: 0;
    transform: translate(0, 100px);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes fadein--u {
  0% {
    opacity: 0;
    transform: translate(0, 100px);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/*component =====================================
応募キーワードボタン（キラッと光る＝base.css の .kiran-img + .kiran）
=================================================*/
/* ラインアップ画像との間隔（デザイン実測 9px／1500px基準） */
#keyword {
  margin-top: 0.6%;
}

.keyword__btn {
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  margin: auto;
  width: 88.8%;
}

/* 素材の外周の角丸（実測 半径50px／幅2611px＝幅の1.9%）に合わせる。
   ここがズレると素材の透過角と影の輪郭が食い違い、角に白いはみ出しが出る */
.keyword__btn.kiran-img {
  border-radius: 1.9%/12.8%;
}

/*==========================================
 画面下部の追従ボタン
===========================================*/
.fixed_icon_wrap {
  background: #fff;
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 99;
}

.fixed_icon {
  padding: 3.5% 0 5%;
}

/* クリックで開くもの（aタグではないボタン）にポインタを出す */
.modal_btn {
  cursor: pointer;
}

/*==========================================
 TOPへ戻る（BKUP＝ムツミの見た目に合わせる。
 base.css の #page_top は丸グレー＋Font Awesomeなので上書きする。
 追従ボタンの中に置くことで、バーの高さが変わっても常にその上に乗る）
===========================================*/
#page_top {
  background: none;
  border-radius: 0;
  bottom: calc(100% + 15px);
  height: auto;
  opacity: 1;
  position: absolute;
  right: 15px;
  width: auto;
}

#page_top a {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10%;
  color: #fff;
  font-size: 1rem;
  height: 80px;
  padding: 40px 0 0;
  text-align: center;
  transition: .3s ease opacity;
  width: 80px;
}

#page_top a:hover {
  opacity: .7;
}

#page_top a::before {
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  bottom: auto;
  content: "";
  font-size: 0;
  height: 20px;
  left: 50%;
  margin: 0;
  right: auto;
  top: 24px;
  transform: translateX(-50%) rotate(45deg);
  width: 20px;
}

@media all and (max-width:980px) {
  #page_top {
    right: 1.5306122449vw;
  }

  #page_top a {
    font-size: 1.6326530612vw;
    height: 8.1632653061vw;
    padding-top: 4.0816326531vw;
    width: 8.1632653061vw;
  }

  #page_top a::before {
    border-width: 0.306122449vw;
    height: 2.0408163265vw;
    top: 2.4489795918vw;
    width: 2.0408163265vw;
  }
}

@media all and (max-width:500px) {
  #page_top {
    right: 1.3333333333vw;
  }

  #page_top a {
    font-size: 0.75rem;
    height: 50px;
    padding-top: 24px;
    width: 50px;
  }

  #page_top a::before {
    border-width: 1px;
    height: 10px;
    top: 14px;
    width: 10px;
  }
}

/*==========================================
 ポップアップ（M南関東SUV LPと同じ組み方）
===========================================*/
.modal_box {
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.modal_bg {
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

/* ×は flex で中央寄せ（line-height だけだと字面が箱の中で偏る） */
.modal_close {
  align-items: center;
  background-color: rgba(200, 200, 200, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 58px;
  height: 56px;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 12px;
  top: 12px;
  width: 56px;
  z-index: 1000;
}

.modal_inner {
  bottom: 50%;
  display: table;
  height: calc(100vh - 90px);
  height: calc(100svh - 90px);
  overflow: auto;
  padding: 5px;
  position: absolute;
  right: 50%;
  transform: translate(50%, 50%);
  width: calc(100% - 24px);
  z-index: 2;
}

.modal_block {
  display: table-cell;
  vertical-align: middle;
}

.popup--bg,
.popup--keyword {
  margin: auto;
  max-width: 620px;
}

/* 白地のポップアップ。中の比率はデザイン実測（%はポップアップ幅基準） */
.popup--bg {
  background: #fff;
  padding: 6.9% 0 9.5%;
}

.popup__ttl {
  margin: 0 auto 6.9%;
  width: 92.3%;
}

.popup__btn {
  margin: auto;
  width: 55.5%;
}

.popup__btn+.popup__btn {
  margin-top: 5.1%;
}

/* ポップアップ表示中は背景を固定 */
body.fixed {
  height: 100%;
  left: 0;
  position: fixed;
  width: 100%;
}

@media all and (min-width:769px) {
  .modal_close {
    font-size: 70px;
    height: 68px;
    right: 14px;
    top: 14px;
    width: 68px;
  }

  .modal_inner {
    height: calc(100vh - 40px);
    height: calc(100svh - 40px);
    max-width: 840px;
    padding: 15px;
  }

  .popup--bg,
  .popup--keyword {
    max-width: 780px;
  }
}
