/* ikezoe */
.contact_main {
  max-width: 128rem;
  width: 100%;
  font-size: 1.7rem;
  font-weight: 500;
  font-family: "Noto Sans CJK JP", sans-serif;
  margin-top: 5rem;
}

/* タイトル -----------------------------------*/
.contact_title {
  max-width: 128rem;
  width: 100%;
  min-height: 35.9rem;
  font-size: 4.5rem;
  font-weight: 900;
  background-color: #172a88;
  color: #FFFFFF;
  padding: 0rem 12rem;
  display: flex;
  align-items: center;
}

.contact_title::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 11rem;
  background-color: #FFFFFF;
  margin-right: 4rem;
}


/* インフォメーション説明 ------------------------*/
.contact_info {
  line-height: calc(35 / 17);
  text-align: center;
  margin: 6.5rem auto 0;
  padding-right: 0.5rem;
}

.contact_endtitle {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: calc(35 / 35);
  color: #172a88;
  margin-bottom: 3.5rem;
}

/* 完了画面 */
.contact_thanks {
  margin: 7.5rem auto 17rem;
}

.thanks_message {
  margin-bottom: 15rem;
}

.thanks_to_back {
  background-color: #172a88;
  color: #FFFFFF;
  padding: 2rem 3rem;
}



/* お問い合わせフォーム -------------------------*/
.contact_form_container {
  display: flex;
  flex-direction: column;
  /* row-gap: 5.0rem; */
  max-width: 104rem;
  margin: 6.2rem auto 0;
  padding: 0;
}

.form_flex {
  display: flex;
  align-items: center;
  /* flex-wrap: wrap; */
  /* アイテムが折り返される */
  border: none;
  /* margin-bottom: 0.67rem; */
  margin-bottom: 5rem;
}

/* フォーム間の余白を調整 */
.form_flex:nth-of-type(2) {
  margin-bottom: 5.9rem;
}

.form_flex:nth-of-type(n+3) {
  margin-bottom: 5.8rem;
}

.form_flex:last-of-type {
  margin-bottom: 8rem;
}

.form_label {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: calc(35 / 18);
  display: flex;
  align-items: center;
  border-left: 0.4rem solid #172a88;
  margin-left: -0.2rem;
  padding-left: 3.8rem;
  min-height: 7.1rem;
  height: 100%;
  width: 25rem;
  margin-right: 9rem;
}

.form_required {
  display: inline-block;
  /* 上下の余白対策 */
  color: #E05C5C;
  border: 0.1rem solid #E05C5C;
  font-size: 1.5rem;
  margin-left: 2.0rem;
  padding: 0.4rem 0.4rem;
  border-radius: 0.2rem;
  line-height: 1;
  /* 行間を最小限にする */
}

.form_input {
  flex: 1;
  border: 0.1rem solid #0D1250;
  width: 70rem;
  /* width: 100%; */
  min-height: 5.5rem;
  height: 100%;
  box-sizing: border-box;
  display: block;
  margin: 0 0 0 auto;
  padding: 1.1rem 3.7rem;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: calc(35 / 17);
  /* color: #B3B3B3; */
}

.form_input::placeholder {
  color: #B3B3B3;
}

.select_color {
  color: #000000;
  padding: 0.9rem 3.7rem
}

.select_btn {
  position: relative;
}

.select_btn::after {
  content: "▼";
  position: absolute;
  top: 3.3rem;
  right: 3.9rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: #172a88;
  font-size: 2.5rem;
}

.textarea_flex {
  align-items: flex-start;
}

.form_textarea {
  height: 33.3rem;
  margin-top: 0.8rem;
}

/* 確認画面 */
.form_flex_confirm {
  /* margin: 0.5rem auto 0.2rem; */
}

.form_input_confirm {
  flex: 1;
  max-width: 70rem;
  width: 100%;
  min-height: 5.5rem;
  height: 100%;
  box-sizing: border-box;
  display: block;
  margin: 0 0 0 auto;
  padding: 1.1rem 3.7rem;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: calc(35 / 17);
  color: #000000;
}

.select_btn:has(.form_input_confirm)::after {
  display: none;
  /* select_btn::after 非表示　確認画面時  */
}

.confirm_textarea {
  padding: 2rem 4.5rem 0.5rem 3.9rem;
}





/* ボタン -----------------------------------*/
.contact_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10.2rem;
  margin: 2.3rem auto 17rem;
}

.btn_confirm {
  /* 確認画面時 */
  margin-top: 1.5rem;
}

.contact_btn input {
  max-width: 31rem;
  min-width: 31rem;
  width: 100%;
  min-height: 6.6rem;
  padding: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: calc(35 / 18);
}

.btn_submit {
  background-color: #172a88;
  color: #FFFFFF;
  cursor: pointer;
}

/* 確認画面 */
.to_back {
  background-color: #FFFFFF;
  color: #172a88;
  border: 0.2rem solid #172a88;
}

.sp_br {
  display: none;
}

/* CF7対応 */
.wpcf7-spinner {
  display: none;
}

.wpcf7-form {
  width: 100%;
}

/* 確認画面 */
.conf_input {
  border: none;
}

.select_conf:after {
  display: none;
}

.conf_textarea {
  padding-top: 1.8rem;
  word-break: break-all;
  white-space: pre-wrap;
}

/* ---------------------------------------------*/
/* スマホ対応 */
/* ---------------------------------------------*/
@media screen and (max-width: 699.98px) {

  /* タイトル -----------------------------------*/
  .contact_title {
    max-width: 37.5rem;
    font-size: 2.2rem;
    line-height: calc(37 / 22);
    min-height: 14rem;
    padding: 0rem 0rem 0rem 4.3rem;
  }

  .contact_title::before {
    width: 0.2rem;
    height: 5.2rem;
    margin-right: 1.9rem;
  }


  /* インフォメーション説明 ------------------------*/
  .contact_info {
    max-width: 37.5rem;
    font-size: 1.3rem;
    line-height: calc(32 / 13);
    margin-top: 4.3rem;
    padding-right: 0;
  }

  .sp_br {
    display: block;
  }

  /* サンクスページ */
  .contact_thanks {
    margin-bottom: 9.5rem;
  }

  .contact_endtitle {
    font-size: 2.0rem;
    line-height: calc(35 / 20);
    margin-bottom: 3.0rem;
    padding-top: 0rem;
  }

  .to_back {
    padding: 1.5rem 2.5rem;
  }

  /* お問い合わせフォーム -------------------------*/
  .contact_form_container {
    max-width: 37.5rem;
    width: 100%;
    margin-top: 3.8rem;
    padding: 0 2rem;
    row-gap: 0;
  }

  .form_flex {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1.5rem;
    margin-bottom: 4.3rem;
    display: inline-block;
  }

  /* フォーム間の余白を調整 */
  .form_flex:nth-of-type(2) {
    margin-bottom: 4.3rem;
  }

  .form_flex:nth-of-type(n+3) {
    margin-bottom: 4.4rem;
  }

  .form_label {
    flex: none;
    font-size: 1.5rem;
    min-height: 5rem;
    margin-left: 0rem;
    padding-left: 1.8rem;
  }

  .form_input {
    /* max-width: 100%; */
    width: 33.5rem;
    min-height: 4.5rem;
    font-size: 1.4rem;
    margin-left: 0;
    margin-top: 1.5rem;
    padding: 0 0 0 2rem;
  }

  .form_required {
    font-size: 1.2rem;
    margin-left: 1.0rem;
  }

  .select_btn::after {
    top: 8.7rem;
    right: 2.5rem;
  }

  .form_textarea {
    max-height: 24.1rem;
    margin-top: 1.3rem;
    padding-top: 0.8rem;
  }

  /* 確認画面*/
  .form_flex_confirm {
    margin-bottom: 4.9rem;
  }

  .form_input_confirm {
    padding: 2.1rem 0 0 2rem;
    font-size: 1.4rem;
    line-height: calc(32 / 14);
  }

  /* ボタン -----------------------------------*/
  .contact_btn {
    flex-direction: column;
    gap: 2.4rem;
    font-size: 1.6rem;
    line-height: calc(35 / 16);
    margin: 0.8rem auto 9.8rem;
  }

  .contact_btn input {
    /* min-height: unset; */
    min-width: unset;
    max-width: unset;
    width: 31rem;
    padding: 0.5rem 3rem;
    font-size: 1.6rem;
    line-height: calc(35 / 16);
  }

  .btn_confirm {
    margin-top: 0.2rem;
    gap: 2.2rem;
  }


}