/* 確認エリア */
.cf7-confirm-area {
  margin-bottom: 1.5em;
  background-color: #fff;
}

/* 確認リスト */
.cf7-confirm-list {
  border-top: 1px solid #ddd;
}

.cf7-confirm-row {
  display: flex;
  border-bottom: 1px solid #ddd;
  padding: 0.75em;
  gap: 1em;
}

.cf7-confirm-label {
  flex: 0 0 30%;
  font-weight: bold;
  color: #333;
  word-break: break-word;
}

.cf7-confirm-value {
  flex: 1;
  color: #444;
  word-break: break-word;
}

/* 戻るボタン */
.cf7-back-button {
  background: #b4b4b4;
  font-weight: 700;
  width: 320px ;
  height: 60px ;
  color: #fff ;
  font-size: 1.2rem ;
  border: none ;
  border-radius: 50rem ;
  box-shadow: none ;
  cursor: pointer;
  display: block;
  margin: 12px auto 0;
}

/* 送信ボタン（確認画面で表示） */
.wpcf7-form.is-confirm input.wpcf7-submit {
  width: 320px;
  height: 60px;
  background: #66c32b;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 50rem;
  box-shadow: none;
  cursor: pointer;
  display: block;
  margin: 40px auto 0;
  padding: 0;
}

/* 確認ボタン */
.cf7-confirm-button {
  width: 320px ;
  height: 60px ;
  background: #0087ba ;
  color: #fff ;
  font-size: 1.2rem ;
  border: none ;
  border-radius: 50rem ;
  box-shadow: none ;
  cursor: pointer;
  display: block;
  margin: 40px auto 0;
  font-weight: 700;
}


div.wpcf7-response-output {
  display: none !important;
}

/* 送信失敗時(mail_failed/aborted/spam)はエラーメッセージを表示する。
   非表示のままだとローディングが止まった後に何も起きないように見えるため */
.wpcf7-form.failed div.wpcf7-response-output,
.wpcf7-form.aborted div.wpcf7-response-output,
.wpcf7-form.spam div.wpcf7-response-output {
  display: block !important;
  margin: 1.5em 0;
  padding: 0.8em 1em;
  border: 2px solid #dc3232;
  color: #dc3232;
  font-weight: 700;
  text-align: center;
}

/* {label:}マーカーのチラつき防止:
   プラグインJSがマーカーを除去し .cf7c-ready を付与するまでフォーム内容を非表示にする。
   CSSとJSは同一プラグインで配信されるため、JS無効時に隠れたままになることはない */
.wpcf7-form:not(.cf7c-ready) .form_wrap {
  visibility: hidden;
}

/* スマホ幅対応(根本対策):
   テーマの .content-area は display:grid であり、グリッドアイテムの .site-main は
   min-width:auto(既定)のため、フォーム内の固有幅(input size属性等)が
   トラック幅を押し広げて画面からはみ出す(grid blowout)。
   テーマのモバイル切替と同じ869px以下で min-width:0 にして収める */
@media only screen and (max-width: 869px) {
  .site-content .content-area .site-main {
    min-width: 0;
  }
}

/* 縦並びチェックボックス: タグに class:vertical を付けた場合に
   各選択肢を縦に並べる（MW WP Formのvertically="true"相当） */
.form_wrap .vertical .wpcf7-list-item {
  display: block;
  margin: 0 0 6px;
}

/* スマホ幅対応: size属性による固定幅の入力欄を親幅までに制限し、
   フォームが画面幅を超えるのを防ぐ */
.form_wrap input[type="text"],
.form_wrap input[type="email"],
.form_wrap input[type="tel"],
.form_wrap input[type="url"],
.form_wrap input[type="number"],
.form_wrap textarea,
.form_wrap select {
  max-width: 100%;
  box-sizing: border-box;
}

