/* =================================================
  お問い合わせページ
================================================= */
#contact-detail {
  padding: 20rem 0;
}

#contact-detail .section-title_sub {
  font-size: 6.4rem;
}

.contact_wrapper {
  margin-top: 14rem;
}

.contact_caution {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 auto;
  text-align: center;
}

.contact_form {
  margin-top: 12rem;
}

/* placeholder color */
input::placeholder,
textarea::placeholder {
  color: #939393;
}

.contact_form dl {
  display: block;
  margin-bottom: 0;
  padding-bottom: 4rem;
  border-bottom: 1px solid #d9d9d9;
}

.contact_form dl:not(:first-child) {
  padding-top: 3.6rem;
}

.contact_form dt {
  flex: 0 0 20rem;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.5;
}

.contact_form dt .label-sub {
  color: #939393;
}

.contact_form dt .required {
  display: inline-block;
  background: #28a7e1;
  border-radius: 1rem;
  color: #fff;
  font-size: 2.6rem;
  padding: 0.8rem 2rem;
}

.contact_form dt .required.required-first {
  position: relative;
}

.contact_form dd {
  flex: 0 1 calc(100% - 20rem);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 3rem 0 0;
}

/* 入力フォーム */
.contact_form .form_input input,
.contact_form .form_input textarea {
  width: calc(100% - 6rem);
  background: #eaeaea;
  border-radius: 2rem;
  border: none;
  padding: 2rem 3rem;
}

/* =================================================
  プライバシーポリシー
================================================= */
/* プライバシーポリシーリンク */
.privacy-link {
  text-align: center;
  margin-top: 5rem;
}

.privacy-link a {
  position: relative;
  display: inline-block;
  font-size: 2.8rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  padding-bottom: 0.4rem;
}

/* 青い下線 */
.privacy-link a::after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: #28a7e1;
}

/* ホバー時（PC） */
@media screen and (min-width: 768px) {
  .privacy-link a:hover {
    color: #28a7e1;
  }
}

/* =========================================
   チェックボックス（JS 連動版：最終完成形）
========================================= */

/* input を隠す */
.form_radio label input[type="checkbox"] {
  display: none;
}

/* ラベル（テキスト部分）をクリック可能にする */
.form_radio label {
  position: relative;
  padding-left: 36px;
  cursor: pointer;
  display: block;
  margin-bottom: -2.2rem;
  font-size: 2.4rem;
}

/* 未チェックの丸 */
.form_radio label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #d9d9d9;
  border-radius: 50%;
}

/* チェック時の丸（最初は透明） */
.form_radio label::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: transparent;
  border-radius: 50%;
  transition: 0.2s ease;
}

/* ★ JS で付与される checked クラスのスタイル */
.form_radio label.checked::after {
  background: #28a7e1;
}

/* =================================================
  エラーメッセージ
================================================= */
.error {
  display: block;
  color: #fa2c2c;
  font-size: 2.6rem;
  font-weight: 700;
  margin-top: 3.4rem;
}

/* =================================================
  送信・戻るボタン
================================================= */
.contact_form .form_btn {
  max-width: 64rem;
  margin: 8rem auto 0;
  text-align: center;
}

.contact_form .btn_submit {
  width: 100%;
}

.contact_form .btn_submit button {
  width: 100%;
  background: #28a7e1;
  border-radius: 6rem;
  color: #fff;
  border: none;
  font-size: 2.6rem;
  padding: 3.6rem 0;
  cursor: pointer;
  position: relative;
}

.contact_form .btn_submit button::after {
  content: "";
  background: url(../images/arrow-icon.png) no-repeat;
  background-size: cover;
  position: absolute;
  top: 50%;
  right: 5rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
}

/* 確認ページの戻るボタン */
.contact-confirm .btn_return {
  display: block;
  margin-top: 3rem;
}

.contact-confirm .btn_return button {
  width: 100%;
  background: #f6d852;
  border-radius: 6rem;
  color: #fff;
  border: none;
  font-size: 3.2rem;
  padding: 3.6rem 0;
  cursor: pointer;
}

/* =================================================
  PC レイアウト
================================================= */
@media screen and (min-width: 768px) {
  #contact-detail {
    padding: 15rem 0;
  }

  .contact_wrapper {
    max-width: 100rem;
    margin: 15rem auto 0;
  }

  .contact_caution {
    font-size: max(2rem, 13px);
  }

  .contact_form {
    margin-top: 8rem;
  }

  .contact_form dl {
    display: flex;
  }

  .contact_form dl:not(:first-child) {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .contact_form dt {
    font-size: max(2.1rem, 13px);
  }

  .contact_form dt .required {
    font-size: max(1.8rem, 12px);
    padding: 0.3rem 2rem;
  }

  .contact_form dt .required.required-first {
    top: 0;
    margin-left: 0;
  }

  .contact_form dd {
    font-size: max(2rem, 13px);
    margin-left: 4rem;
  }

  .contact_form .form_input input,
  .contact_form .form_input textarea {
    width: calc(100% - 8rem);
    border-radius: 1.5rem;
    padding: 3rem 4rem;
  }

  .contact_form .btn_submit button {
    font-size: max(2.2rem, 13px);
  }

  .contact_form .btn_submit button::after {
    right: 3.4rem;
  }

  .contact_form .btn_return button {
    font-size: max(2.2rem, 13px);
  }

  /* 確認ページのボタン幅 */
  .contact-confirm .form_btn {
    max-width: 32rem;
  }
}

/* =================================================
   SP（768px以下）で必須マークだけ margin-left: 2rem を適用
================================================= */
@media screen and (max-width: 767px) {
  .contact_form dt .required {
    margin-left: 2rem !important;
  }
}

/* =================================================
  お問い合わせ完了ページ
================================================= */
.contact-completion .contact_wrapper {
  text-align: center;
}

.contact-completion .contact_message {
  font-size: 3.2rem;
  line-height: 1.5;
  margin: 0;
}

/* 戻るボタン */
.contact-completion .contact_back {
  margin-top: 4rem;
}

.contact-completion .btn_home {
  display: inline-block;
  padding: 1.6rem 4rem;
  font-size: 1.6rem;
  color: #fff;
  background: #28a7e1;
  text-decoration: none;
  border-radius: 6rem;
  transition: opacity 0.3s;
}

.contact-completion .btn_home:hover {
  opacity: 0.7;
}

@media screen and (min-width: 768px) {
  .contact-completion .contact_wrapper {
    max-width: 50rem;
    margin: 10rem auto 0;
  }

  .contact-completion .contact_message {
    font-size: max(2rem, 16px);
  }
}

.form_recaptcha .g-recaptcha {
  margin-top: 2rem;
}
