:root {
  --lp-max: 1920px;
  --content-max: 900px;
  --blue: #0759a5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.test-drive-monitor {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #dff4ff;
}


/* -------------------------
   画像セクション
------------------------- */

.monitor-image,
.schedule-map {
  width: min(100%, var(--lp-max));
  margin-inline: auto;
}

.monitor-image img,
.schedule-map img {
  width: 100%;
  height: auto;
}


/* -------------------------
   スケジュール
------------------------- */

.schedule-map {
  position: relative;
}

.schedule-hotspot {
    position: absolute;
    display: block;
    top: 91%;
    width: 16.3%;
    height: 5.5%;
}
.schedule-hotspot-1 {
  left: 12%;
}

.schedule-hotspot-2 {
  left: 32%;
}

.schedule-hotspot-3 {
  left: 52%;
}

.schedule-hotspot-4 {
  left: 71.9%;
}

.schedule-hotspot:focus-visible {
  outline: 3px solid #ffeb00;
}


/* -------------------------
   貸出時間
------------------------- */

.rental-info {
  padding: 18px 20px 32px;
  text-align: center;
  color: #07539b;
  background: #fff;
}

.rental-info p {
  margin: 3px 0;
  font-weight: 700;
  line-height: 1.6;
  font-size: 14px;
}

.rental-time {
  margin: 0 0 10px;
  font-size: 14px;
}

.rental-time span {
  display: inline-block;
  margin-right: 7px;
  padding: 3px 10px;
  font-weight: 700;
  background: #eaf8ff;
}

.rental-time strong {
  margin-right: 8px;
}

.rental-fuel {
  font-size: clamp(12px, 1.1vw, 17px);
}


/* -------------------------
   フォーム全体
------------------------- */

.application-section {
  padding: 40px 20px 70px;
  background: linear-gradient(
    180deg,
    #eefaff 0%,
    #b9e4ff 100%
  );
}

.application-heading {
  max-width: 700px;
  margin: 0 auto 25px;
  text-align: center;
  color: #07539b;
}

.application-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 22px;
  background: linear-gradient(
    90deg,
    #078bd1,
    #31ade0,
    #d7e739
  );
  color: #fff;
  font-weight: 700;
  transform: rotate(-2deg);
}

.application-heading h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
}

.application-box {
  width: min(calc(100% - 40px), var(--content-max));
  margin: 0 auto;
  background: #fff;
  border: 1px solid #1267ae;
}

.application-box::before {
  content: "申し込みフォーム";
  display: block;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.application-box .wpcf7 {
  padding: 38px 70px 42px;
}


/* -------------------------
   CF7フォーム
------------------------- */

.new-form-wrap {
  margin: 0;
  padding: 0;
  list-style: none;
}

.new-form-wrap > li {
  margin: 0 0 22px;
}

.new-form-wrap dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  margin: 0;
  align-items: start;
}

.new-form-wrap dt {
  padding-top: 5px;
  font-weight: 700;
  line-height: 1.5;
}

.new-form-wrap dd {
  margin: 0;
  max-width: 520px;
}


/* -------------------------
   必須・注意文
------------------------- */

.need {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 5px;
  background: #e60012;
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
  vertical-align: 2px;
}

.red {
  margin: 4px 0 0;
  color: #e60012;
  font-size: 11px;
  font-weight: 400;
}


/* -------------------------
   貸出希望日
------------------------- */

.rental-date-wrap .wpcf7-list-item {
  display: block;
  margin: 0 0 8px;
}

.rental-date-wrap label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
}

.rental-date-wrap input[type="radio"] {
  width: auto;
  height: auto;
  margin: 4px 0 0;
  flex: 0 0 auto;
}

.rental-date-wrap .wpcf7-list-item-label {
  line-height: 1.5;
  font-weight: bold;
}

.touring-note {
  margin: 4px 0 0 24px;
  font-size: 10px;
  line-height: 1.5;
}


/* -------------------------
   入力欄
------------------------- */

.new-form-wrap input[type="text"],
.new-form-wrap input[type="tel"],
.new-form-wrap input[type="email"],
.new-form-wrap select {
  width: 100%;
  height: 38px;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  font-size: 18px;
}

.new-form-wrap select {
  max-width: 430px;
}


/* 名前・フリガナ */

.new-form-wrap .name {
  display: flex;
  gap: 10px;
}

.new-form-wrap .name > p {
  display: contents;
}

.new-form-wrap .name .wpcf7-form-control-wrap {
  display: block;
  width: 130px;
}

.new-form-wrap .name input {
  width: 130px;
}


/* 電話番号・メール */

.new-form-wrap input[type="tel"],
.new-form-wrap input[type="email"] {
  max-width: 430px;
}


/* -------------------------
   送信ボタン
------------------------- */

.btnContact {
  display: block;
  width: 180px;
  margin: 30px auto 0;
  padding: 11px 20px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.btnContact:hover {
  opacity: 0.85;
}


/* -------------------------
   フォーム下
------------------------- */

.application-notes {
  width: min(100%, 900px);
  margin: 28px auto 0;
  color: #07549b;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.7;
}

.application-notes p {
  margin: 2px 0;
}


/* -------------------------
   注意事項
------------------------- */

.application-caution {
  width: min(100%, 900px);
  margin: 35px auto 0;
  color: #222;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}

.application-caution-title {
  margin: 0 0 8px;
  font-weight: 700;
}

.application-caution ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.application-caution li {
  position: relative;
  margin: 0;
  padding-left: 1.2em;
}

.application-caution li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}
/* -------------------------
   SP
------------------------- */

@media (max-width: 767px) {

  .rental-info {
    padding: 12px 12px 20px;
  }

  .application-section {
    padding: 30px 10px 50px;
  }

  .application-heading h1 {
    font-size: 21px;
  }

  .application-box {
    width: calc(100% - 20px);
  }

  .application-box::before {
    padding: 11px;
    font-size: 16px;
  }

  .application-box .wpcf7 {
    padding: 25px 16px 30px;
  }

  .new-form-wrap > li {
    margin-bottom: 20px;
  }

  .new-form-wrap dl {
    grid-template-columns: 1fr;
    gap:2px;
  }

  .new-form-wrap dt {
    padding-top: 0;
  }

  .new-form-wrap dd {
    max-width: none;
  }

  .new-form-wrap .name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .new-form-wrap .name .wpcf7-form-control-wrap,
  .new-form-wrap .name input {
    width: 100%;
  }

  .new-form-wrap input[type="tel"],
  .new-form-wrap input[type="email"],
  .new-form-wrap select {
    max-width: none;
  }

  .touring-note {
    margin: 5px 0 0 24px;
  }

  .application-notes,
  .application-caution {
    width: calc(100% - 20px);
    font-size: 12px;
  }

}

.rental-time span {
  display: inline-block;
  margin-right: 8px;
}

.rental-time br {
  display: none;
}
.rental-date-wrap .wpcf7-list-item:nth-child(2)::after {
  content: "※bZ4Xツーリングは長泉店、小黒店のみ";
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: #333;
  vertical-align: middle;
}

/* -------------------------
   確認画面
------------------------- */

.confirmation-box .new-form-wrap > li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 0;
}

.confirmation-box .new-form-wrap dl {
  margin: 0;
  align-items: center;
}

.confirmation-box .new-form-wrap dd p {
  margin: 0;
  line-height: 1.5;
}


/* CF7が自動で入れるbrを確認画面だけ非表示 */

.confirmation-box br {
  display: none;
}


/* 名前・フリガナを横並び */

.confirmation-box .name {
  display: flex;
  gap: 8px;
  align-items: center;
}

.confirmation-box .name p {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.confirmation-box .name .wpcf7-form-control-wrap {
  display: inline-block;
  width: auto;
}


/* -------------------------
   送信・戻るボタン
------------------------- */

.confirmation-box .btn-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.confirmation-box .btn-flex .btnContact,
.confirmation-box .btn-flex .btnContact-back {
  width: 180px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
  cursor: pointer;
}

.confirmation-box .btn-flex .btnContact {
  background: #0759a5;
  color: #fff;
}

.confirmation-box .btn-flex .btnContact-back {
  background: #999;
  color: #fff;
}

.confirmation-box .btn-flex .btnContact:hover,
.confirmation-box .btn-flex .btnContact-back:hover {
  opacity: 0.85;
}


/* -------------------------
   SP
------------------------- */

@media (max-width: 767px) {

  .confirmation-box .new-form-wrap > li {
    padding: 8px 0;
  }

  .confirmation-box .btn-flex {
    gap: 10px;
    margin-top: 20px;
  }

  .confirmation-box .btn-flex .btnContact,
  .confirmation-box .btn-flex .btnContact-back {
    width: 180px;
  }

}

/* -------------------------
   サンクスページ
------------------------- */

.thanks-section {
  min-height: 600px;
  padding: 60px 20px 90px;
  background: linear-gradient(
    180deg,
    #eefaff 0%,
    #b9e4ff 100%
  );
}

.thanks-box {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #1267ae;
}

.thanks-title {
  margin: 0;
  padding: 14px 20px;
  background: #0759a5;
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.thanks-content {
  padding: 65px 40px 70px;
  text-align: center;
  color: #222;
  font-size: 16px;
  line-height: 2;
}

.thanks-content p {
  margin: 0 0 20px;
}

.thanks-main {
  color: #0759a5;
  font-size: 22px;
  font-weight: 700;
}

.thanks-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 48px;
  margin: 40px auto 0;
  background: #0759a5;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

.thanks-back:hover {
  opacity: 0.85;
}


@media (max-width: 767px) {

  .thanks-section {
    min-height: 450px;
    padding: 35px 10px 55px;
  }

  .thanks-box {
    width: calc(100% - 20px);
  }

  .thanks-title {
    padding: 11px;
    font-size: 18px;
  }

  .thanks-content {
    padding: 40px 18px 45px;
    font-size: 14px;
    line-height: 1.8;
  }

  .thanks-main {
    font-size: 19px;
  }

  .thanks-back {
    width: 220px;
    margin-top: 30px;
  }

}

.monitor-image-link {
  position: relative;
}

.chafuka-hotspot {
    position: absolute;
    display: block;
    left: 25.2%;
    top: 72%;
    width: 15.8%;
    height: 4%;
    z-index: 2;
}

.chafuka-hotspot:focus-visible {
  outline: 3px solid #ffeb00;
}

/* =========================================================
   SP画像対応
   ※PC指定の後に置く
========================================================= */

@media (max-width: 767px) {

  /* -------------------------
     picture
  ------------------------- */

  .monitor-image picture,
  .schedule-map picture {
    display: block;
    width: 100%;
    line-height: 0;
  }

  .monitor-image picture img,
  .schedule-map picture img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }


  /* -------------------------
     チャフカリンク
     img02-sp.jpg
  ------------------------- */

  .chafuka-hotspot {
    left: 19.0%;
    top: 51.9%;
    width: 62.4%;
    height: 3.0%;
  }


  /* -------------------------
     貸出スケジュール
     img03-sp.jpg
  ------------------------- */

  .schedule-hotspot {
    left: 24%;
    width: 51.8%;
    height: 1.6%;
  }

  .schedule-hotspot-1 {
    left: 24%;
    top: 21.14%;
  }

  .schedule-hotspot-2 {
    left: 24%;
    top: 52.64%;
  }

  .schedule-hotspot-3 {
    left: 24%;
    top: 74.27%;
  }

  .schedule-hotspot-4 {
    left: 24%;
    top: 96.97%;
  }

}

/* -------------------------
   貸出時間 PC
------------------------- */

.rental-info {
  padding: 18px 20px 32px;
  text-align: center;
  color: #07539b;
  background: #fff;
}

.rental-info p {
  margin: 3px 0;
  font-weight: 700;
  line-height: 1.6;
}

.rental-time {
  font-size: 14px;
}

.rental-time strong {
  margin-right: 8px;
}

.rental-fuel {
  font-size: clamp(12px, 1.1vw, 17px);
}

.rental-time br {
  display: none;
}
@media (max-width: 767px) {

  .rental-info {
    padding: 18px 16px 20px;
  }

  .rental-time {
    font-size: 18px;
    line-height: 1.5;
  }

  .rental-time strong {
    display: block;
    margin: 0 0 2px;
    font-size: 16px;
  }

  .rental-fuel {
    font-size: 14px;
    line-height: 1.55;
  }

}
.rental-date-wrap label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.rental-date-wrap input[type="radio"] {
  margin-top: 8px;
}

@media (max-width: 767px) {

  .new-form-wrap .name {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .new-form-wrap .name > p {
    display: contents;
  }

  .new-form-wrap .name .wpcf7-form-control-wrap {
    display: block;
    flex: 1 1 0;
    width: 0;
  }

  .new-form-wrap .name input {
    width: 100%;
    min-width: 0;
  }

}

@media (max-width: 767px) {

  .application-box .wpcf7 {
    padding: 25px 14px 30px;
  }

  .application-box .wpcf7 form {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .new-form-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
  }

}
@media (max-width: 767px) {

  .new-form-wrap input[type="text"],
  .new-form-wrap input[type="tel"],
  .new-form-wrap input[type="email"],
  .new-form-wrap select {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

}

  .confirmation-box .new-form-wrap > li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .confirmation-box .new-form-wrap > li:last-child {
    border-bottom: none;
  }  
  .confirmation-box .new-form-wrap dt {
    font-weight: 700;
    color: #222;
  }

  .confirmation-box .new-form-wrap dd {
    color: #444;
  }