@charset "utf-8";

/*----------------------------------------------------*/
/*     モーダル色上書き     */
/*----------------------------------------------------*/
:root {
  --modal-color: #084287;
  --modal-color-light: #edf8ff;
}

/*----------------------------------------------------*/
/*     PC     */
/*----------------------------------------------------*/
.main_form {
  margin: 15px 0;
  width: 450px;
  height: fit-content;
  background-color: #ffffff;
  color: #000000;
  z-index: 1;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.form_box {
  width: 390px;
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1101px) {
  .form_box {
    position: absolute;
    right: 0;
    top: 80px;
    z-index: 1;
  }
}

/*　ご利用の愛車について/お客様について　*/
.form_heading {
  padding: 7px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  background-color: #eee;
}

.form_heading::before {
  content: "";
  width: 25px;
  height: 25px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 2px;
}

#car_area .form_heading::before {
  background-image: url(../img/form_icon_car.png);
}

#user_area .form_heading::before {
  background-image: url(../img/form_icon_customer.png);
}

/*　次へ　*/
.form_next_btn {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 15px 5px;
  box-sizing: border-box;
  background: linear-gradient(to bottom, #e70012 0%, #e70012 36%, #e70012 36%, #a8000d 51%, #d90011 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  transition: 0.2s;
  border: none;
  border-radius: 6px;
}

.form_next_btn:hover {
  opacity: 0.8;
}

.form_next_btn.disable {
  background: #dadada;
  text-shadow: -2px -1px 2px #a8a8a8;
}

@media (min-width: 1101px) {
  .form_next_btn {
    display: none;
  }
}

/* 入力フォームのスタイル */
input,
select {
  width: 100%;
  font-size: 17px;
  line-height: 1.5;
  padding: 4px 8px;
  border: solid 1px #c3c3c3;
  border-radius: 4px;
  box-sizing: border-box;
  appearance: none;
}

input[name="car_id"] {
  position: absolute;
  overflow: hidden;
  width: 0;
}

select::-ms-expand {
  display: none;
}

.form_title {
  display: flex;
  vertical-align: text-bottom;
  width: 35%;
  text-align: left;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  flex-direction: row;
  align-items: center;
}

.form_title label[for="as_maker"] {
  font-size: 0.9em;
  vertical-align: middle;
  display: inline-grid;
}

.form_inner {
  margin-bottom: 12px;
}

.form_item {
  display: flex;
}

.form_item+.form_item {
  margin-top: 7px;
}

.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: 6px 8px 6px 8px;
  line-height: normal;
  cursor: pointer;
}

#form_box .triangle input:not(.submit_btn),
#form_box .triangle select {
  padding: 6px 25px 6px 8px;
}

.form_area.triangle::after {
  content: "";
  position: absolute;
  top: 21px;
  right: 10px;
  margin-top: -3px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #333;
  pointer-events: none;
}

.main_form #car_area {
  margin-bottom: 16px;
}

/* -------------- 入力フォームの背景色 -------------- */
/* ------- 任意 ------- */
/* 自動入力時(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;
  /* 任意 */
}

/* 自動入力時(SP) */
@media (max-width: 1100px) {
  input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    /* 任意 */
  }
}

/* 通常入力時(SP) */
@media (max-width: 1100px) {

  #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: #ffffc9;
  /* 必須 */
}

/* 自動入力時(SP) */
@media (max-width: 1100px) {
  input:-webkit-autofill.req_on {
    -webkit-box-shadow: 0 0 0 1000px #ffffc9 inset;
    /* 必須 */
  }
}

/* 通常入力時(SP) */
@media (max-width: 1100px) {

  #form_box .form_area input:not(.submit_btn).req_on,
  #form_box .form_area select.req_on {
    background-color: #ffffc9;
    /* 必須 */
  }
}

/*　必須/任意　*/
span.req_on,
span.req_off {
  margin-right: 8px;
  padding: 1px 5px;
  font-size: 0.8em;
  color: #fff;
  display: inline-block;
  font-weight: 500;
}

span.req_on {
  background: red;
}

span.req_off {
  background: #27a424;
}

/* ラジオボタン */
.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: 14px;
  margin-bottom: 15px;
  text-align: center;
}

p.form-agreement a {
  text-decoration: underline;
}

/*同意する*/
.agree-txt {
  font-size: 11px;
  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;
}

/*　送信ボタンPC/SPテキスト出し分け　*/
.submit_btn_txt_sp {
  display: none;
}

@media (max-width: 1100px) {
  .submit_btn_txt_pc {
    display: none;
  }

  .submit_btn_txt_sp {
    display: inline;
  }
}

/*　CVボタン　*/
.submit_btn_box button.submit_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(255, 255, 255, 0.5);
  border: 1px solid #a2000d;
  box-shadow: 2px 2px 4px inset;
  border-radius: 6px;
  background: linear-gradient(to bottom, #e60012 46%, #b4000e 54%, #b4000e 60%, #dc0011 92%);
  cursor: pointer;
}

.submit_btn_box button.submit_btn::before {
  content: '';
  background-image: url(../img/arrow1.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 40px;
  height: 30px;
  margin-right: 10px;
}

/*　SSL信号　*/
.ssl_information {
  display: none;
}

/* 点滅 */
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 (max-width: 1100px) {
  .main_form {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
  }

  .main_inner {
    padding: 7px;
    width: 100%;
    box-sizing: border-box;
  }

  .form_box {
    width: 100%;
    padding: 15px;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.3);
  }

  .form_item {
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
  }

  .form_title {
    width: 100%;
    margin-bottom: 5px;
  }

  .form_title label[for="as_maker"] {
    display: block;
  }

  .form_area {
    width: 100%;
  }

  #user_area,
  .submit_btn_box {
    display: none;
  }

  #user_area {
    padding-top: 0;
  }

  .submit_btn_box button.submit_btn,
  .submit_btn_box input.submit_btn {
    width: 100%;
    font-size: 18px;
  }

  .submit_btn_box button.submit_btn::before {
    width: 30px;
    height: 22px;
    margin-right: 3px;
  }
}