/* ==========================================================
   CF7 確認画面スタイル
   対象: .wpcf7-form / .cf7-confirm-buttons
   ========================================================== */

.cf7-hidden { display: none !important; }

/* ----------------------------------------------------------
   チェックボックス・ラジオボタン縦並びスタイル
   ---------------------------------------------------------- */
.hp_verticalCheckbox .wpcf7-checkbox,
.hp_verticalRadio .wpcf7-radio {
	display: grid;
}
.hp_verticalCheckbox .wpcf7-checkbox .wpcf7-list-item label,
.hp_verticalRadio .wpcf7-radio .wpcf7-list-item label {
  inline-size: fit-content;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 5px;
  line-height: 1;
}
.hp_verticalCheckbox .wpcf7-checkbox .wpcf7-list-item-label,
.hp_verticalRadio .wpcf7-radio .wpcf7-list-item-label {
  line-height: 1.2;
}
.hp-noRequireRadio .wpcf7-list-item.first {
  display: none;
}

/* ----------------------------------------------------------
   STEP インジケーター（.stepflow）
   ---------------------------------------------------------- */
/* .stepflow {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  counter-reset: step;
}

.stepflow li {
  display: flex;
  align-items: center;
  color: #aaa;
  font-size: 14px;
  font-size: 1.4rem;
}

.stepflow li span {
  display: block;
  width: 80px;
  padding: 8px 0 6px;
  text-align: center;
  background: #ddd;
  color: #aaa;
  font-size: 11px;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: .05em;
}

.stepflow li + li::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #ddd;
  flex-shrink: 0;
}

.stepflow li.is-current span {
  background: #00a5b4;
  color: #fff;
} */

/* ----------------------------------------------------------
   確認状態での表示用テキスト（text / email を置き換え）
   ---------------------------------------------------------- */
.cf7-confirm-value {
  display: block;
  padding: 8px 0;
  color: #333;
  font-size: inherit;
}

div.cf7-confirm-value {
  white-space: pre-wrap;
}

/* ----------------------------------------------------------
   確認状態での入力フィールド（readonly / select）
   ---------------------------------------------------------- */
.wpcf7-form.is-confirm input[readonly],
.wpcf7-form.is-confirm textarea[readonly] {
  background-color: transparent;
  border-color: transparent;
  color: #333;
  cursor: default;
  pointer-events: none;
  resize: none;
}

.wpcf7-form.is-confirm input[readonly]::placeholder,
.wpcf7-form.is-confirm textarea[readonly]::placeholder {
  color: transparent;
}

.wpcf7-form.is-confirm select {
  pointer-events: none;
  cursor: default;
  border-color: transparent;
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

/* チェックボックス・ラジオ（readonly 属性で操作を封じる） */
.wpcf7-form.is-confirm input[type="checkbox"][readonly],
.wpcf7-form.is-confirm input[type="radio"][readonly] {
  pointer-events: none;
  cursor: default;
  opacity: 0.3;
}

.wpcf7-form.is-confirm input[type="checkbox"][readonly]:checked,
.wpcf7-form.is-confirm input[type="radio"][readonly]:checked {
  opacity: 0.7;
}

.wpcf7-form.is-confirm label {
  pointer-events: none;
  cursor: default;
}

/* 個人情報同意エリアはスクロール可能なまま保持 */
.wpcf7-form.is-confirm .inquiry_consent #privacy {
  pointer-events: auto;
  cursor: auto;
}

/* ----------------------------------------------------------
   STEP インジケーター: 確認画面に切り替わったとき
   ---------------------------------------------------------- */
.wpcf7-form.is-confirm ~ .stepflow .step-input,
.stepflow.is-confirm .step-input {
  background: #ddd;
  color: #aaa;
}

.wpcf7-form.is-confirm ~ .stepflow .step-confirm,
.stepflow.is-confirm .step-confirm {
  background: #00a5b4;
  color: #fff;
}

/* ----------------------------------------------------------
   ボタングループ共通
   ---------------------------------------------------------- */
.cf7-confirm-buttons {
  text-align: center;
  margin: 30px 0 0;
}

/* 確認ボタン（入力 → 確認画面へ） */
.cf7-confirm-buttons .cf7-btn-confirm {
  display: block;
  margin: 0 auto;
  padding: 18px 59px 19px;
  color: #fff;
  background: #00a5b4;
  border: none;
  font-size: 20px;
  font-size: 2.0rem;
  cursor: pointer;
  transition: opacity .2s;
  font-family: inherit;
}

.cf7-confirm-buttons .cf7-btn-confirm:hover {
  opacity: 0.6;
}

.cf7-confirm-buttons .cf7-btn-confirm:disabled {
  background: #cbcbcb;
  cursor: not-allowed;
}

.cf7-confirm-buttons .cf7-btn-confirm:disabled:hover {
  opacity: 1;
}

/* 確認 → 送信エリア */
.cf7-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 戻るボタン */
.cf7-confirm-buttons .cf7-btn-back {
  display: inline-block;
  padding: 0 0 0 18px;
  background: url('../img/arw.png') no-repeat 0 .45em;
  background-size: 6px auto;
  border: none;
  background-color: transparent;
  font-size: 14px;
  font-size: 1.4rem;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.cf7-confirm-buttons .cf7-btn-back:hover {
  text-decoration: underline;
}

/* 確認画面 注意書き */
.cf7-confirm-notice {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: left;
  color: #333;
}

/* CF7 送信ボタン（確認画面に表示） */
.cf7-btn-group .wpcf7-submit {
  display: block;
  margin: 0 auto;
  padding: 18px 59px 19px;
  color: #fff;
  background: #00a5b4;
  border: none;
  font-size: 20px;
  font-size: 2.0rem;
  cursor: pointer;
  transition: opacity .2s;
}

.cf7-btn-group .wpcf7-submit:hover {
  opacity: 0.6;
}

.cf7-btn-group .wpcf7-submit:disabled {
  background: #cbcbcb;
  cursor: not-allowed;
}

.cf7-btn-group .wpcf7-submit:disabled:hover {
  opacity: 1;
}

/* ----------------------------------------------------------
   CF7 送信中スピナー
   ---------------------------------------------------------- */
.cf7-btn-group .wpcf7-spinner {
  margin: 0 auto;
}

/* ----------------------------------------------------------
   スマートフォン対応
   ---------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .hp_verticalCheckbox .wpcf7-checkbox,
  .hp_verticalRadio .wpcf7-radio {
    gap: 0.3em;
  }
  .hp_verticalCheckbox .wpcf7-checkbox .wpcf7-list-item-label,
  .hp_verticalRadio .wpcf7-radio .wpcf7-list-item-label {
    line-height: 1.4;
  }
  /* .stepflow li span {
    width: 60px;
    font-size: 10px;
    font-size: 1.0rem;
  }

  .stepflow li + li::before {
    width: 12px;
  } */

  .cf7-confirm-buttons .cf7-btn-confirm,
  .cf7-btn-group .wpcf7-submit {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.4rem;
    box-sizing: border-box;
  }

}

/* ----------------------------------------------------------
   完了画面（送信完了後のスタイル） - ここでは特にスタイルを上書きせず、必要に応じて追加してください
     例: .wpcf7-form.sent > * { display: none; } など
     ※ CF7 の送信完了状態は .wpcf7-form.sent クラスで識別されます
   ---------------------------------------------------------- */
.wpcf7-form.sent > * {
  display: none;
}
.wpcf7:has(.wpcf7-form.sent) .cf7-confirm-notice {
  display: none;
}
.wpcf7-form.sent .wpcf7-response-output {
  display: block !important;
}

.hp_form-flex {
  display: flex;
  align-items: center;
}

.hp_form-flex .wpcf7-not-valid-tip {
  font-size: 0.8em;
}