@charset "utf-8";
/*----------------------------------------------------*/
/*     PC     */
/*----------------------------------------------------*/

.main_form_inner {
  width: 90%;
  height: fit-content;
  background-color: #ffffff;
  z-index: 1;
  border: 6px solid #f1f1f1;
  margin: 0 auto;
}

.form_box {
  background: #fff;
  border-radius: 4px;
  padding: 1% 4% 4%;
  box-sizing: border-box;
  text-align: left;
}

/*　ご利用の愛車について/お客様について　*/

.form_heading {
  font-size: 2.5rem;
  margin: 24px auto 10px;
  text-align: center;
  line-height: 1.4;
}

.main_form #car_area .form_heading::before,
.main_form #user_area .form_heading::before {
  color: #f8b500;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 25px;
  margin-right: 8px;
}

.main_form #car_area .form_heading::before {
  content: "\f1b9";
}

.main_form #user_area .form_heading::before {
  content: "\f007";
}

/*　次へ　*/
.form_next_btn {
  display: block;
  width: 95%;
  margin: 0 auto;
  padding: 8px;
  box-sizing: border-box;
  background-color: #f32020;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  transition: 0.2s;
  border: none;
  border-radius: 8px;
}

.form_next_btn:hover {
  opacity: 0.8;
}

.form_next_btn.disable {
  background: #dadada;
  text-shadow: -2px -1px 2px #a8a8a8;
}

@media screen and (min-width: 961px) {
  .form_next_btn {
    display: none;
  }
}

/*　入力フォーム　*/

/* 入力フォームのスタイル */
input,
select {
  width: 100%;
  font-size: 18px;
  line-height: 1.5;
  padding: 4px 8px;
  border: solid 1px #888;
  box-sizing: border-box;
  appearance: none;
  font-family: 'Noto Sans JP', sans-serif;
}

input[name="car_id"] {
  position: absolute;
  overflow: hidden;
  width: 0;
}

select::-ms-expand {
  display: none;
}

.form_title {
  display: flex;
  vertical-align: text-bottom;
  width: 25%;
  text-align: left;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.4;
  flex-direction: row;
  align-items: center;
}

.form_inner {
  margin-bottom: 12px;
}

.form_item {
  display: flex;
}

.form_item+.form_item {
  margin-top: 10px;
}

.form_area {
  position: relative;
  flex: 1;
  display: inline-block;
  vertical-align: middle;
  width: 60%;
}

#form_box .form_area input:not(.submit_btn),
#form_box .form_area select {
  height: 41px;
  padding: 8px 8px 11px 16px;
  line-height: 1;
  cursor: pointer;
}

#form_box .triangle input:not(.submit_btn),
#form_box .triangle select {
  padding: 8px 25px 11px 16px;
}

.form_area.triangle::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  pointer-events: none;
}

/* -------------- 入力フォーム PC時 SP版レイアウトのパターンCSS -------------- */
#form_box.sp_ver #user_area {
  display: none;
}

#form_box.sp_ver .submit_btn_box {
  display: none;
}

#form_box.sp_ver .form_next_btn {
  display: block;
}

/* -------------- 入力フォームの背景色 -------------- */

/* ------- 任意 ------- */

/* 自動入力時(PC) */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset; /* 任意 */
}

/* 通常入力時(PC) */
#form_box .form_area input:not(.submit_btn),
#form_box .form_area select {
  background-color: #fff; /* 任意 */
  border-radius: 7px;
}

/* 自動入力時(SP) */
@media screen and (max-width: 960px) {
  input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset; /* 任意 */
  }
}

/* 通常入力時(SP) */
@media screen and (max-width: 960px) {
  #form_box .form_area input:not(.submit_btn),
  #form_box .form_area select {
    background-color: #fff; /* 任意 */
  }
}

/* ------- 必須 ------- */

/* 自動入力時(PC) */
input:-webkit-autofill.req_on {
  -webkit-box-shadow: 0 0 0 1000px #ffffc9 inset; /* 必須 */
}

/* 通常入力時(PC) */
#form_box .form_area input:not(.submit_btn).req_on,
#form_box .form_area select.req_on {
  background-color: #fff3f3; /* 必須 */
  border-radius: 7px;
}

/* 自動入力時(SP) */
@media screen and (max-width: 960px) {
  input:-webkit-autofill.req_on {
    -webkit-box-shadow: 0 0 0 1000px #fff inset; /* 必須 */
  }
}

/* 通常入力時(SP) */
@media screen and (max-width: 960px) {
  #form_box .form_area input:not(.submit_btn).req_on,
  #form_box .form_area select.req_on {
    background-color: #fff3f3; /* 必須 */
    border-radius: 7px;
  }
}

/*　必須/任意　*/

span.req_on,
span.req_off {
  margin-right: 12px;
  padding: 1px 5px;
  font-size: 0.8em;
  color: #fff;
  display: inline-block;
  font-weight: 500;
  border-radius: 4px;
}

span.req_on {
  background: #D80000;
}

span.req_off {
  background: #6B6B6B;
}

/* ラジオボタン */

.period_group .question_head,
.radio_group .question_head {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 5px;
}

.period_group,
.radio_group {
  width: 100%;
  justify-content: flex-start;
}

.radio {
  width: fit-content;
  margin: 0;
  padding: 0;
}

.form_area.radio {
  width: fit-content;
}

.radio input[type="radio"] {
  /* デフォルトのinputを見えないように（余白の原因になる） */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.radio input[type="radio"]+.radio-label:before {
  content: "";
  background: #f4f4f4;
  border-radius: 100%;
  border: 1px solid #b4b4b4;
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  position: relative;
  top: 0;
  margin-right: 0.3em;
  vertical-align: top;
  cursor: pointer;
  text-align: center;
  transition: all 250ms ease;
}

.radio-label {
  display: flex;
  width: fit-content;
  font-size: 15px;
  align-items: center;
}

.question.radio:nth-of-type(2),
.question.radio:nth-of-type(3) {
  padding-left: 20px;
}

.radio input[type="radio"]:checked+.radio-label:before {
  background-color: #3197ee;
  box-shadow: inset 0 0 0 4px #f4f4f4;
}

.radio input[type="radio"]:focus+.radio-label:before {
  outline: none;
  border-color: #3197ee;
}

.radio input[type="radio"]:disabled+.radio-label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
}

.radio input[type="radio"]+.radio-label:empty:before {
  margin-right: 0;
}

/*　利用規約/プライバシーポリシー　*/

p.form-agreement {
  font-size: 0.8em;
  margin-bottom: 12px;
  text-align: center;
}

p.form-agreement a {
  text-decoration: underline;
}

/*同意する*/

.agree-txt {
  font-size: 13px;
  margin: 14px 0 8px;
  line-height: 1.5;
}

.terms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.terms input[id="chkbox"],
.terms input[id="chkbox2"] {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  appearance: checkbox;
  -webkit-appearance: checkbox;
  vertical-align: middle;
  margin: 0;
}

/*　CVボタン　*/

.submit_btn_box button.submit_btn {
  font-weight: bold;
  color: #fff;
  width: 60%;
  height: inherit;
  padding: 6px 0;
  line-height: 1.5;
  border: 1px solid #f32020;
  border-radius: 8px;
  font-size: 3rem;
  text-align: center;
  margin: 0 auto;
  display: block;
  background-color: #f32020;
  border-bottom: 4px solid #b50100;
  transition: opacity 0.3s ease;
}

.submit_btn_box button.submit_btn:hover {
  opacity: 0.8;
}

/*　SSL信号　*/

.ssl_information {
  text-align: left;
  margin: 16px auto 0;
  font-size: 1.6rem;
  line-height: 1.4;
  padding: 16px 20px;
  background-color: #f1f1f1;
}

.ssl_information span {
  font-weight: bold;
}

.ssl_information p {
  margin-top: 6px;
}

.ssl_information span::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url(./../img/ssl_icon.png) center;
  background-repeat: no-repeat;
  background-position: left;
  vertical-align: inherit;
  background-size: contain;
  margin-right: 4px;
}

/* 点滅 */

input.target_item {
  border: 3px solid #f12;
  animation: inputPulse 1s ease-out infinite;
}

/* アニメーション */

@keyframes inputPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 18, 34, 0.8);
  }

  60% {
    box-shadow: 0 0 0 4px rgba(241, 18, 34, 0.2);
  }

  100% {
    box-shadow: 0 0 0 6px rgba(241, 18, 34, 0);
  }
}

/* 送信項目のエラーメッセージ */

.err_msg {
  clear: both;
  padding-top: 3px;
  color: #f00;
  font-size: 13px;
  text-align: left;
  line-height: 1.6;
}

/* 送信ボタン後のloading画像 */

#loading_img {
  display: none;
  /* 編集しないで下さい */
  width: 10%;
}

/*----------------------------------------------------*/
/*     SP     */
/*----------------------------------------------------*/
@media screen and (max-width: 960px) {
  .main_form {
    width: 100%;
    margin: 0 auto;
    padding: 3vw;
    box-sizing: border-box;
    border-radius: 0;
  }

  .main_inner {
    padding: 7px;
    width: 100%;
    box-sizing: border-box;
  }

  .main_form_inner {
    width: 100%;
  }

  .form_box {
    width: 100%;
    margin: 0 auto;
    padding: 10px 15px;
    box-sizing: border-box;
    box-shadow: none;
  }

  .form_heading {
    font-size: 1.1em;
    text-align: center;
    font-weight: bold;
    background-color: initial;
    background-image: none;
    color: initial;
    padding: 10px 0 0;
    margin: 0 auto 10px;
    width: 95%;
    border-bottom: 1px solid #bbbbbb;
  }

  .form_heading_pc {
    display: none;
  }

  .form_heading:before {
    display: none;
  }

  .form_item {
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
  }

  .form_title {
    width: 100%;
    margin-bottom: 5px;
  }

  .form_area {
    width: 100%;
  }

  #user_area,
  .submit_btn_box {
    display: none;
  }

  #user_area {
    padding-top: 0;
  }

  .form_next_btn {
    width: 100%;
    padding: 14px;
  }

  .submit_btn_box button.submit_btn {
    width: 100%;
    font-size: 24px;
    padding: 12px;
  }

  p.form-agreement {
    font-size: clamp(12px, 3.8vw, 14px) !important;
  }

  .ssl_information {
    padding: 3vw;
    font-size: 12px;
  }
}