@charset "UTF-8";

/* =========================================================
   contact-form.css — お問い合わせフォーム専用
   ========================================================= */

.cf {
  padding-block: clamp(60px, 8vw, 110px) clamp(80px, 10vw, 130px);
}
.cf__head {
  text-align: center;
  margin-bottom: clamp(50px, 6vw, 80px);
}
.cf__title {
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--c-green);
  margin: 0 0 clamp(20px, 2.4vw, 32px);
}
.cf__lead {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin: 0;
}
/* リード文の下の注記（営業・勧誘のご連絡はお受けしていない旨） */
.cf__note {
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #6b6b6b;
  margin: 14px 0 0;
  text-wrap: balance;
}

/* Form */
.cf-form {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 36px);
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 16px);
}
.cf-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #000;
  line-height: 1.5;
}
.cf-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green-light);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: var(--r-pill);
}

/* Inputs */
.cf-field input[type="text"],
.cf-field input[type="email"],
.cf-field input[type="tel"],
.cf-field textarea,
.cf-select select {
  width: 100%;
  min-height: 65px;
  padding: 14px 22px;
  border: 1px solid var(--c-green);
  border-radius: 5px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c-text);
  box-sizing: border-box;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: #a3a3a3;
}
.cf-field input:focus,
.cf-field textarea:focus,
.cf-select select:focus {
  outline: 0;
  border-color: var(--c-green-light);
  box-shadow: 0 0 0 3px rgba(75, 118, 96, 0.15);
}
.cf-field textarea {
  min-height: 319px;
  padding-top: 18px;
  resize: vertical;
}

/* Select dropdown */
.cf-select {
  position: relative;
  max-width: 462px;
}
.cf-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 56px;
  cursor: pointer;
}
.cf-select__arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--c-green);
  border-bottom: 2px solid var(--c-green);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

/* Privacy notice */
.cf-privacy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(16px, 2vw, 28px);
}
.cf-privacy__title {
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #000;
  margin: 0;
}
.cf-privacy__body {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #242424;
  margin: 0;
}
.cf-privacy__body a {
  color: var(--c-green-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cf-privacy__divider {
  width: 44px;
  height: 1px;
  background: var(--c-green);
  margin: 6px auto;
}

/* Checkbox */
.cf-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-top: 8px;
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #000;
  user-select: none;
}
.cf-checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.cf-checkbox__box {
  position: relative;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border: 1px solid var(--c-green-light);
  border-radius: 5px;
  background: #fff;
  transition: background .2s var(--ease);
}
.cf-checkbox input:checked + .cf-checkbox__box {
  background: var(--c-green-light);
}
.cf-checkbox input:checked + .cf-checkbox__box::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 12px;
  height: 18px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}
.cf-checkbox input:focus-visible + .cf-checkbox__box {
  outline: 3px solid rgba(75, 118, 96, 0.4);
  outline-offset: 2px;
}

/* Submit button */
.cf-submit {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3vw, 40px);
}
.cf-submit__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 460px;
  min-height: 80px;
  padding: 0 36px;
  background: var(--c-green-light);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.cf-submit__btn:hover {
  background: var(--c-green-dark);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .cf-label { font-size: 17px; gap: 10px; }
  .cf-required { font-size: 12px; padding: 3px 12px; }
  .cf-submit__btn { min-width: 0; width: 100%; min-height: 64px; font-size: 17px; }
  .cf-select { max-width: 100%; }
}

/* == 文字数カウンタ (client req 2026-07-23): その他=100 / 他=400 == */
.cf-count {
  margin: 8px 2px 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  color: #7a8a86;
  letter-spacing: 0.02em;
}
.cf-count.is-limit {
  color: #b91c1c;
  font-weight: 500;
}


/* == CF7 統合スタイル (client req 2026-07-23) == */
/* ハニーポット（人には非表示・スクリーンリーダーからも隠す） */
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* CF7 が select/input に付ける既定余白を打ち消し、既存デザインに合わせる */
.cf-form .wpcf7-form-control-wrap { display: block; }
.cf-form .cf-select .wpcf7-form-control-wrap { display: block; }
/* 同意チェックボックス（CF7 acceptance を .cf-checkbox 相当に） */
.cf-privacy .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.cf-privacy .wpcf7-acceptance label { display: inline-flex; align-items: center; justify-content: center; gap: 0; cursor: pointer; font-size: 16px; letter-spacing: 0.04em; color: #000; user-select: none; }
.cf-privacy .wpcf7-acceptance input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cf-privacy .wpcf7-list-item-label { position: relative; padding-left: 53px; display: inline-flex; align-items: center; min-height: 35px; }
.cf-privacy .wpcf7-list-item-label::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 35px; height: 35px; border: 1px solid var(--c-green-light); border-radius: 5px; background: #fff; transition: background .2s var(--ease); }
.cf-privacy .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::before { background: var(--c-green-light); }
.cf-privacy .wpcf7-list-item-label::after { content: ""; position: absolute; left: 11px; top: calc(50% - 3px); width: 12px; height: 18px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-50%) rotate(45deg); opacity: 0; transition: opacity .2s; }
.cf-privacy .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::after { opacity: 1; }
/* CF7 レスポンス/バリデーションメッセージ */
.cf-form .wpcf7-response-output { margin: 24px 2px 0; padding: 14px 18px; border-radius: 6px; font-size: 14px; line-height: 1.6; }
.cf-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #b91c1c; }
.cf-form .wpcf7-form.invalid .wpcf7-response-output,
.cf-form .wpcf7-form.unaccepted .wpcf7-response-output { border: 1px solid #e5b4b4; background: #fdf3f3; color: #b91c1c; }
.cf-form .wpcf7-form.sent .wpcf7-response-output { border: 1px solid var(--c-green-light); background: #f2f7f4; color: var(--c-green); }
.cf-form .wpcf7-spinner { margin: 0 auto; }

/* == 確認画面 (client req 2026-09-02) ==
   プラグイン(Confirm Plus Contact Form 7)の既定は
   「フォームを visibility:hidden のまま残し、確認表を absolute で上に重ねる」。
   フォームの高さが残るので下に大きな空白ができる。ふつうの流れに戻す。 */
.wpcf7cp-form-hide { display: none !important; }
#wpcf7cpcnf { position: static !important; }

#wpcf7cpcnf table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
#wpcf7cpcnf tr { border-bottom: 1px solid rgba(0, 0, 0, 0.10); }
#wpcf7cpcnf tr:first-child { border-top: 1px solid rgba(0, 0, 0, 0.10); }
#wpcf7cpcnf th,
#wpcf7cpcnf td {
  padding: 22px 4px;
  text-align: left;
  vertical-align: top;
  border-bottom: 0;
}
#wpcf7cpcnf th {
  width: 34%;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: #6b6b6b;
}
#wpcf7cpcnf th p,
#wpcf7cpcnf td p { margin: 0; }
#wpcf7cpcnf td {
  width: 66%;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #000;
  word-break: break-word;
}

/* ボタン2つ。「この内容で送信する」を入力画面の送信ボタンと同じ形にする */
#wpcf7cpcnf .wpcf7cp-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: clamp(28px, 3vw, 40px);
}
#wpcf7cpcnf .wpcf7cp-cfm-submit-btn,
#wpcf7cpcnf .wpcf7cp-cfm-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 0 36px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin: 0;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
#wpcf7cpcnf .wpcf7cp-cfm-submit-btn {
  min-width: 460px;
  background: var(--c-green-light);
  color: #fff;
  border: 0;
  order: 2;
}
#wpcf7cpcnf .wpcf7cp-cfm-submit-btn:hover {
  background: var(--c-green-dark);
  transform: translateY(-1px);
}
#wpcf7cpcnf .wpcf7cp-cfm-edit-btn {
  min-width: 220px;
  background: #fff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.25);
  order: 1;
}
#wpcf7cpcnf .wpcf7cp-cfm-edit-btn:hover {
  background: #f4f4f4;
  transform: translateY(-1px);
}

/* 送信中の白かぶせ */
.wpcf7cp-progress-cover { background: #fff; opacity: .6; }
.wpcf7cp-progress-content p { color: #6b6b6b; font-size: 15px; }

@media (max-width: 768px) {
  #wpcf7cpcnf table,
  #wpcf7cpcnf tbody,
  #wpcf7cpcnf tr,
  #wpcf7cpcnf th,
  #wpcf7cpcnf td { display: block; width: 100%; }
  #wpcf7cpcnf tr { padding: 16px 0; }
  #wpcf7cpcnf th { padding: 0 2px 6px; font-size: 14px; }
  #wpcf7cpcnf td { padding: 0 2px; font-size: 16px; }
  #wpcf7cpcnf .wpcf7cp-btns { flex-direction: column-reverse; gap: 14px; }
  #wpcf7cpcnf .wpcf7cp-cfm-submit-btn,
  #wpcf7cpcnf .wpcf7cp-cfm-edit-btn {
    min-width: 0; width: 100%; min-height: 64px; font-size: 17px;
  }
}
