@charset "UTF-8";

/*
 * 自作お問い合わせフォーム用スタイル
 *
 * チェックボックス行と送信ボタンは、もともと style.css が Contact Form 7 の
 * クラス（.wpcf7-form-control / .wpcf7-submit）に当てていたため、
 * 同じ見た目を自前のクラスで再現している。
 * style.css / scss は触っていないので、CF7 に戻したい場合もこのファイルを外すだけでよい。
 */

/* ---------- チェックボックス行（プライバシーポリシー同意） ---------- */
.t_sec07 .w980 .contactform .item.nogrid .af-check {
  display: inline-block;
  margin: 0;
}

.t_sec07 .w980 .contactform .item.nogrid .af-check label {
  display: flex;
  gap: 11px;
  align-items: center;
  cursor: pointer;
}

.t_sec07 .w980 .contactform .item.nogrid .af-check label input {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ccc;
  flex-shrink: 0;
}

.t_sec07 .w980 .contactform .item.nogrid .af-check .af-check-label {
  font-size: 16px;
}

.t_sec07 .w980 .contactform .item.nogrid .af-check .af-check-label a {
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .t_sec07 .w980 .contactform .item.nogrid .af-check label {
    gap: 11rem;
  }

  .t_sec07 .w980 .contactform .item.nogrid .af-check label input {
    width: 20rem;
    height: 20rem;
    border-radius: 12rem;
  }

  .t_sec07 .w980 .contactform .item.nogrid .af-check .af-check-label {
    font-size: 15rem;
  }
}

/* ---------- 送信ボタン ---------- */
.t_sec07 .w980 .contactform .af-submit {
  display: block;
  width: 260px;
  margin: auto auto 0;
  border-radius: 32px;
  letter-spacing: 0.1em;
  background: #2e4469;
  height: 60px;
  border: none;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.4s ease;
}

.t_sec07 .w980 .contactform .af-submit:hover {
  filter: opacity(80%);
  transition: all 0.4s ease;
}

@media screen and (max-width: 767px) {
  .t_sec07 .w980 .contactform .af-submit {
    width: 240rem;
    height: 60rem;
    font-size: 16rem;
    border-radius: 10rem;
  }
}

/* ---------- エラー表示 ---------- */
.af-errors {
  width: 90%;
  margin: 0 auto 30px;
  padding: 18px 22px;
  border: 1px solid #df6b85;
  border-radius: 6px;
  background: #fdf3f5;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: #b03b58;
}

.af-errors-lead {
  font-weight: 700;
  margin-bottom: 6px;
}

.af-errors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.af-errors li::before {
  content: "・";
}

@media screen and (max-width: 767px) {
  .af-errors {
    margin-bottom: 30rem;
    padding: 16rem 18rem;
    font-size: 14rem;
    border-radius: 6rem;
  }
}

/* ---------- 送信完了 ---------- */
.af-thanks {
  width: 90%;
  margin: 0 auto;
  padding: 40px 30px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d0d6eb;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 2;
  color: #222;
}

.af-thanks-lead {
  font-weight: 700;
  font-size: 20px;
  color: #2e4469;
  margin-bottom: 10px;
}

.af-thanks-note {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

@media screen and (max-width: 767px) {
  .af-thanks {
    padding: 32rem 20rem;
    font-size: 15rem;
    border-radius: 8rem;
  }

  .af-thanks-lead {
    font-size: 18rem;
  }

  .af-thanks-note {
    font-size: 13rem;
  }
}

/* ---------- reCAPTCHA の注記 ---------- */
.af-recaptcha-note {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #888;
}

.af-recaptcha-note a {
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .af-recaptcha-note {
    margin-top: 20rem;
    font-size: 11rem;
  }
}

/* reCAPTCHA v3 のバッジは注記を出すため非表示にする */
.grecaptcha-badge {
  visibility: hidden;
}

/* ---------- ハニーポット（画面にもスクリーンリーダーにも出さない） ---------- */
.af-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
