/*====================================
  お問い合わせ・資料請求
  1) 全ページ共通：固定ボタン
  2) お問い合わせページ：案内文・フォーム
  ※ style.css とは別ファイル（上書きで読み込み）
=====================================*/

/* ---------- 1) 固定ボタン（全ページ・お問い合わせページ以外） ---------- */
.cta-fixed {
  position: fixed;
  z-index: 100; /* メニュー(109)・ハンバーガー(110)より下 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #a46618; /* 白文字との読みやすさ（コントラスト比 4.5 以上）を確保した金茶色 */
  text-decoration: none;
  line-height: 1.45;
  transition: opacity 0.3s;
}
.cta-fixed:hover {
  opacity: 0.85;
}
.cta-fixed span {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.cta-fixed__br {
  display: inline;
}

/* PC：画面右上（サブページはハンバーガーの左隣） */
@media (min-width: 981px) {
  .cta-fixed {
    top: 0;
    right: 96px;
    width: 176px;
    height: 80px;
  }
  .home .cta-fixed {
    right: 0;
  }
}

/* タブレット・スマホ：画面下に帯 */
@media (max-width: 980px) {
  .cta-fixed {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 56px;
  }
  .cta-fixed span {
    font-size: 1.1rem;
  }
  .cta-fixed__br {
    display: none;
  }
  body {
    padding-bottom: 56px;
  }
}

/* 既存の「お問い合わせ Contact」ボタン：文言が長くなった分の調整 */
.mod__btn-contact {
  padding-left: 48px;
  padding-right: 48px;
}
.mod__btn-contact--ja {
  font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem);
  white-space: nowrap;
}
@media (max-width: 599px) {
  .mod__btn-contact {
    padding-left: 44px;
    padding-right: 44px;
  }
}

/* ---------- 2) お問い合わせページ ---------- */
.contact__lead {
  text-align: center;
  margin-bottom: 48px;
}
.contact__lead-txt {
  font-size: 1rem;
  line-height: 2;
}
.contact__br {
  display: none;
}
.contact__tel {
  margin-top: 24px;
  line-height: 1.4;
}
.contact__tel-label {
  font-size: 1rem;
  margin-right: 4px;
}
.contact__tel-num {
  display: inline-block;
  color: #333;
  font-size: 2.25rem;
  text-decoration: none;
}
.contact__tel-note {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}
.contact__card {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px;
  background-color: #fff;
  box-sizing: border-box;
}
@media (max-width: 599px) {
  .contact__br {
    display: inline;
  }
  .contact__lead {
    margin-bottom: 32px;
  }
  .contact__lead-txt {
    font-size: 0.95rem;
  }
  .contact__tel-num {
    font-size: 1.9rem;
  }
  .contact__card {
    padding: 32px 18px;
  }
}

/* フォーム本体 */
.contact .cf {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.contact .cf br,
.contact .cf p:empty {
  display: none; /* Contact Form 7 の自動整形で入る余計な改行を無効化 */
}
.contact .cf p {
  margin: 0;
}
.contact .cf-row {
  margin-bottom: 30px;
}
.contact .cf-row.is-hide {
  display: none;
}
.contact .cf-label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.4;
}
.contact .cf-label a {
  color: #333;
  text-decoration: underline;
}
.contact .cf-badge {
  display: inline-block;
  margin-right: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #fff;
  font-weight: 600;
  background-color: #6e6b6b;
  white-space: nowrap;
}
.contact .cf-badge::before {
  content: "任意";
}
.contact .cf-row.is-req .cf-badge {
  background-color: #eb1d1d;
}
.contact .cf-row.is-req .cf-badge::before {
  content: "必須";
}
.contact .cf-note {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #6e6b6b;
}

/* 入力欄 */
.contact .cf .wpcf7-form-control-wrap {
  display: block;
}
.contact .cf input[type="text"],
.contact .cf input[type="tel"],
.contact .cf input[type="email"],
.contact .cf textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px; /* iPhone で入力時に拡大されないよう 16px 以上 */
  line-height: 1.5;
  color: #333;
  background-color: #f4f4f4;
  border: 1px solid #dddddd;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.contact .cf textarea {
  min-height: 160px;
  resize: vertical;
}
.contact .cf input::placeholder,
.contact .cf textarea::placeholder {
  color: #a8a5a5;
}
.contact .cf input[type="text"]:focus,
.contact .cf input[type="tel"]:focus,
.contact .cf input[type="email"]:focus,
.contact .cf textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: #c78832;
}
.contact .cf-row.is-error input[type="text"],
.contact .cf-row.is-error input[type="tel"],
.contact .cf-row.is-error input[type="email"],
.contact .cf-row.is-error textarea {
  border-color: #eb1d1d;
}

/* ラジオ・チェックボックス（枠つきの選択肢） */
.contact .cf .wpcf7-list-item {
  display: block;
  margin: 0 0 8px;
}
.contact .cf .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  line-height: 1.5;
  background-color: #f4f4f4;
  border: 1px solid #dddddd;
  cursor: pointer;
}
.contact .cf .wpcf7-list-item input[type="radio"],
.contact .cf .wpcf7-list-item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  accent-color: #c78832;
}
.contact .cf .wpcf7-list-item label:has(input:checked) {
  background-color: #fff8ec;
  border-color: #c78832;
}
.contact .cf-row.is-error .wpcf7-list-item label {
  border-color: #eb1d1d;
}

/* エラー表示 */
.contact .cf-error {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #eb1d1d;
}
.contact .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #eb1d1d;
}

/* 送信ボタン */
.contact .cf-submit {
  display: block;
  width: auto;
  min-width: 260px;
  max-width: 100%;
  margin: 36px auto 0;
  padding: 16px 28px;
  font-family: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: #fff;
  background-color: #333;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.3s;
}
.contact .cf-submit:hover {
  opacity: 0.8;
}
.contact .cf-submit.is-locked {
  color: #777;
  background-color: #dddddd;
}
.contact .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}
.contact .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
}

/* reCAPTCHA の表記 */
.contact .recaptcha {
  margin-top: 28px;
}
.contact .recaptcha p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: #6e6b6b;
  text-align: center;
}
.contact .recaptcha a {
  color: #6e6b6b;
  text-decoration: underline;
}
