/* Contact Form 7 化で増えた要素だけを、静的版 v7 と同じ見た目・動きに戻す。
   対象は #entry の応募フォームのみ。既存CSS（assets/site/sec7.css）は変更していない。 */

/* ① CF7 のラッパー div をグリッドの1マスにしない
   （静的版は form が .pClosingUnified__content の直下＝2行目のグリッド項目） */
#entry .pClosingUnified__content > .wpcf7{display:contents}

/* ② 入力欄を包む span。静的版は input が label（grid）の直下なので、
   - display:grid … textarea 下にベースライン分の余白（実測+2px）が出ないように
   - font-size:inherit … 既存の「.pSec7__form span{font-size}」を受けず label の値をそのまま継ぐ */
#entry .pSec7__form .wpcf7-form-control-wrap{display:grid;font-size:inherit}

/* ③ 登場アニメの順番。CF7 が form の先頭に hidden の fieldset を足すため
   nth-child が1つずれる → label だけを数える nth-of-type で同じ遅延に戻す */
html.has-panel-enter #entry.is-panel-active .pSec7__form>label:nth-of-type(1){transition-delay:.25s}
html.has-panel-enter #entry.is-panel-active .pSec7__form>label:nth-of-type(2){transition-delay:.32s}
html.has-panel-enter #entry.is-panel-active .pSec7__form>label:nth-of-type(3){transition-delay:.39s}
html.has-panel-enter #entry.is-panel-active .pSec7__form>label:nth-of-type(4){transition-delay:.46s}
html.has-panel-enter #entry.is-panel-active .pSec7__form>label:nth-of-type(5){transition-delay:.53s}
html.has-panel-enter #entry.is-panel-active .pSec7__form>label:nth-of-type(6){transition-delay:.6s}

/* ④ 送信結果メッセージ。静的版の .pSec7__formStatus と同じ文字。
   静的版の結果欄は空でも display:block（高さ0の行＋gap 1つ分）なので、初期状態でも block にして同じ高さにする */
#entry .wpcf7 form .wpcf7-response-output,
#entry .wpcf7 form.init .wpcf7-response-output{display:block;margin:0;padding:0;border:0;color:#fff;font-size:3.2vw;font-weight:700;line-height:1.5}
#entry .wpcf7 form:is(.invalid,.unaccepted,.payment-required,.failed,.aborted,.spam) .wpcf7-response-output{color:#ffe14d}

/* ⑤ 項目ごとのエラー文。静的版のエラー色（#ffe14d）に合わせる */
#entry .pSec7__form .wpcf7-not-valid-tip{margin-top:.3em;color:#ffe14d;font-size:.85em;font-weight:700;line-height:1.4}

.grecaptcha-badge {
  visibility: hidden !important;
}
.recaptcha-note {
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  text-align: center;
}

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

#entry .recaptcha-note {
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  line-height: 1.7;
  margin-top: 4px;
}
#entry .recaptcha-note a {
  display: inline;
  color: inherit;
  text-decoration: underline;
}
#entry .recaptcha-note br {
  display: none;
}
