/* =====================================================
   お問い合わせ（入力 / 確認 / 完了）
   デザイン無し。サイト共通の白カード・オレンジのボタンで構成
   ===================================================== */
.page-contact .page-bg { padding-bottom: 32rem; }
.cf { position: relative; z-index: 2; width: 102.5rem; margin: 30rem auto 0; } /* 見出し帯の筆のかすれより下から始める */
.cf-lead { margin: 0; font-size: 1.6rem; font-weight: 500; line-height: 2; text-align: center; }

/* 手順（丸い番号を線でつなぐステップ表示） */
.cf-steps { display: flex; justify-content: center; margin: 5.6rem 0 0; padding: 0; list-style: none; }
.cf-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; width: 20rem; color: rgba(0,0,0,.35); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.cf-steps__item + .cf-steps__item::before { content: ""; position: absolute; right: calc(50% + 4.8rem); top: 3.9rem; width: calc(100% - 9.6rem); height: 2px; background: #ddd5c5; border-radius: 1px; } /* 前の丸とつなぐ線 */
.cf-steps__num { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 8rem; height: 8rem; background: #fff; border: 2px solid #ddd5c5; border-radius: 50%; font-family: 'Rubik', var(--font-en); font-size: 2.4rem; font-weight: 500; color: rgba(0,0,0,.3); }
.cf-steps__item.is-current { color: var(--black); }
.cf-steps__item.is-current .cf-steps__num { background: linear-gradient(180deg, #ff7d20, #ff4800); border-color: transparent; color: #fff; box-shadow: 0 0 0 .8rem rgba(255,125,32,.18); }
.cf-steps__item.is-done { color: var(--orange); }
.cf-steps__item.is-done .cf-steps__num { border-color: var(--orange); color: var(--orange); }
.cf-steps__item.is-done + .cf-steps__item::before, .cf-steps__item.is-current::before { background: var(--orange); } /* 済んだ区間の線はオレンジ */

/* 白カード */
.cf-card { margin-top: 4rem; padding: 6.4rem 8rem; background: #fff; border-radius: 2rem; }

/* 入力欄 */
.cf-row { display: grid; grid-template-columns: 26rem 1fr; gap: 3.2rem; padding: 2.8rem 0; border-top: 1px solid #ece6da; }
.cf-row:first-child { border-top: 0; padding-top: 0; }
.cf-row__label { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; min-height: 5.6rem; font-size: 1.7rem; font-weight: 700; line-height: 1.4; }
.cf-req { display: inline-flex; align-items: center; height: 2.4rem; padding: 0 .9rem; background: var(--orange); border-radius: .3rem; font-size: 1.2rem; font-style: normal; font-weight: 700; color: #fff; }
.cf-row input[type="text"], .cf-row input[type="tel"], .cf-row input[type="email"], .cf-row input[type="date"], .cf-row input[type="time"], .cf-row select, .cf-row textarea {
  display: block; width: 100%; height: 5.6rem; padding: 0 1.8rem; background: #f7f4ee; border: 1px solid #e3dccd; border-radius: .6rem; font: inherit; font-size: 1.6rem; color: var(--black); transition: border-color .2s, background-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.cf-row textarea { height: auto; min-height: 20rem; padding: 1.4rem 1.8rem; line-height: 1.8; resize: vertical; }
.cf-row input::placeholder, .cf-row textarea::placeholder { color: rgba(0,0,0,.3); }
.cf-row input:focus, .cf-row select:focus, .cf-row textarea:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,125,32,.18); }
.cf-select { position: relative; }
.cf-select::after { content: ""; position: absolute; right: 2rem; top: 50%; width: .9rem; height: .9rem; margin-top: -.7rem; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); pointer-events: none; }
.cf-select select { padding-right: 5rem; cursor: pointer; }
.cf-datetime { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; max-width: 52rem; }
.cf-radios { display: flex; flex-wrap: wrap; gap: 1.2rem 2.8rem; min-height: 5.6rem; align-items: center; }
.cf-radio { display: inline-flex; align-items: center; gap: 1rem; font-size: 1.6rem; font-weight: 500; cursor: pointer; }
.cf-radio input { position: absolute; opacity: 0; pointer-events: none; }
.cf-radio span { position: relative; padding-left: 3rem; line-height: 1.5; }
.cf-radio span::before { content: ""; position: absolute; left: 0; top: 50%; width: 2rem; height: 2rem; margin-top: -1rem; background: #f7f4ee; border: 1px solid #d8cfbd; border-radius: 50%; transition: border-color .2s; }
.cf-radio span::after { content: ""; position: absolute; left: .5rem; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem; background: var(--orange); border-radius: 50%; transform: scale(0); transition: transform .2s; }
.cf-radio input:checked + span::before { border-color: var(--orange); }
.cf-radio input:checked + span::after { transform: scale(1); }
.cf-radio input:focus-visible + span::before { box-shadow: 0 0 0 3px rgba(255,125,32,.25); }

/* エラー */
.cf-error { margin: 0; font-size: 1.4rem; font-weight: 600; line-height: 1.5; color: #e0341b; }
.cf-error:empty { display: none; }
.cf-row.is-error .cf-error { margin-top: .8rem; }
.cf-row.is-error input, .cf-row.is-error textarea { border-color: #e0341b; background: #fff6f4; }

.cf-note { margin: 3.2rem 0 0; font-size: 1.4rem; line-height: 1.8; text-align: center; color: rgba(0,0,0,.6); }
.cf-note a { color: var(--orange); text-decoration: underline; }
/* WordPress: 入力画面を通らずに確認画面を開いたときの案内 */
.cf-note--alert { margin: 0; padding: 4rem 2rem; color: var(--black); }

/* ボタン（募集要項のエントリーボタンと同じ動き） */
.cf-actions { display: flex; justify-content: center; margin-top: 4.8rem; }
.cf-actions--2 { gap: 2.4rem; }
.cf-btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 2rem; min-width: 36rem; height: 8rem; padding: 0 4rem; background: linear-gradient(180deg, #ff7d20, #ff4800); border: 0; border-radius: .8rem; box-shadow: 0 .8rem 2.4rem rgba(255,72,0,.2); font: inherit; font-size: 1.8rem; font-weight: 700; color: #fff; cursor: pointer; transition: box-shadow .3s; }
.cf-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #e8560a, #c93a00); transform: scaleX(0); transform-origin: left center; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.cf-btn:hover::before { transform: scaleX(1); }
.cf-btn:hover { box-shadow: 0 1.2rem 3.2rem rgba(201,58,0,.35); }
.cf-btn__arrow { position: relative; width: 3rem; height: 3rem; flex: none; overflow: hidden; background: #fff; border-radius: 50%; }
.cf-btn__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1.2rem; height: .9rem; margin: -.45rem 0 0 -.6rem; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M8 1l4 3.5L8 8M1 4.5h11' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M8 1l4 3.5L8 8M1 4.5h11' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.cf-btn:hover .cf-btn__arrow::before { animation: cf-arrow .55s ease-in-out; }
@keyframes cf-arrow { 0% { transform: translateX(0); } 45% { transform: translateX(160%); } 50% { transform: translateX(-160%); } 100% { transform: translateX(0); } }
.cf-btn--back { min-width: 24rem; background: #fff; border: 1px solid #d8cfbd; box-shadow: none; color: var(--black); }
.cf-btn--back::before { background: #f2ece0; }
.cf-btn--back:hover { box-shadow: none; }

/* 確認画面 */
.cf-confirm { margin: 0; }
.cf-confirm__row { display: grid; grid-template-columns: 26rem 1fr; gap: 3.2rem; padding: 2.4rem 0; border-top: 1px solid #ece6da; }
.cf-confirm__row:first-child { border-top: 0; padding-top: 0; }
.cf-confirm dt { font-size: 1.6rem; font-weight: 700; line-height: 1.8; }
.cf-confirm dd { margin: 0; font-size: 1.6rem; line-height: 1.8; word-break: break-word; }
.cf-confirm__empty { color: rgba(0,0,0,.35); }

/* 完了画面 */
.cf-thanks { text-align: center; }
.cf-thanks__ttl { margin: 0; font-size: 3.2rem; font-weight: 700; line-height: 1.4; }
.cf-thanks__txt { margin: 2.4rem 0 0; font-size: 1.6rem; line-height: 2; }

/* =====================================================
   TB / SP（〜1199px）
   ===================================================== */
@media (max-width: 1199px) {
  .page-contact .page-bg { padding-bottom: 16rem; }
  .cf { width: auto; margin: 9.6rem var(--pad-x) 0; } /* 見出し帯の筆のかすれを避ける */
  .cf-lead { font-size: 1.4rem; line-height: 1.9; text-align: left; }
  .cf-lead .pc-br, .cf-thanks__txt .pc-br { display: none; }
  .cf-steps { margin-top: 3.2rem; }
  .cf-steps__item { flex: 1; width: auto; gap: .8rem; font-size: 1.3rem; }
  .cf-steps__item + .cf-steps__item::before { right: calc(50% + 3.4rem); top: 2.7rem; width: calc(100% - 6.8rem); }
  .cf-steps__num { width: 5.4rem; height: 5.4rem; font-size: 1.7rem; }
  .cf-steps__item.is-current .cf-steps__num { box-shadow: 0 0 0 .5rem rgba(255,125,32,.18); }
  .cf-card { margin-top: 2.4rem; padding: 3.2rem 2rem; border-radius: 1.6rem; }
  .cf-row, .cf-confirm__row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
  .cf-row__label { min-height: 0; font-size: 1.5rem; }
  .cf-row input[type="text"], .cf-row input[type="tel"], .cf-row input[type="email"], .cf-row input[type="date"], .cf-row input[type="time"], .cf-row select { height: 5rem; font-size: 1.6rem; }
  .cf-row textarea { min-height: 16rem; font-size: 1.6rem; }
  .cf-radios { flex-direction: column; align-items: flex-start; gap: 1.2rem; min-height: 0; }
  .cf-radio { font-size: 1.5rem; }
  .cf-note { font-size: 1.2rem; text-align: left; }
  .cf-actions { margin-top: 3.2rem; }
  .cf-actions--2 { flex-direction: column-reverse; gap: 1.2rem; }
  .cf-btn, .cf-btn--back { width: 100%; min-width: 0; height: 6.4rem; font-size: 1.6rem; }
  .cf-confirm dt { font-size: 1.4rem; color: rgba(0,0,0,.6); }
  .cf-confirm dd { font-size: 1.5rem; }
  .cf-thanks__ttl { font-size: 2.2rem; }
  .cf-thanks__txt { font-size: 1.4rem; text-align: left; }
}

/* =====================================================
   WordPress（Contact Form 7 + Multi-Step Forms）が出力する HTML 用
   フォームは _wordpress/contact-form-7/ のテンプレートで .cf-row などを使う
   ===================================================== */
.cf .wpcf7-form-control-wrap { display: block; }
.cf .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 1.2rem 2.8rem; min-height: 5.6rem; align-items: center; }
.cf .wpcf7-list-item { margin: 0; }
.cf .wpcf7-list-item label { display: inline-flex; align-items: center; font-size: 1.6rem; font-weight: 500; cursor: pointer; }
.cf .wpcf7-list-item input { position: absolute; opacity: 0; pointer-events: none; }
.cf .wpcf7-list-item-label { position: relative; padding-left: 3rem; line-height: 1.5; }
.cf .wpcf7-list-item-label::before { content: ""; position: absolute; left: 0; top: 50%; width: 2rem; height: 2rem; margin-top: -1rem; background: #f7f4ee; border: 1px solid #d8cfbd; border-radius: 50%; transition: border-color .2s; }
.cf .wpcf7-list-item-label::after { content: ""; position: absolute; left: .5rem; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem; background: var(--orange); border-radius: 50%; transform: scale(0); transition: transform .2s; }
.cf .wpcf7-list-item input:checked + .wpcf7-list-item-label::before { border-color: var(--orange); }
.cf .wpcf7-list-item input:checked + .wpcf7-list-item-label::after { transform: scale(1); }
.cf .wpcf7-not-valid-tip { display: block; margin-top: .8rem; font-size: 1.4rem; font-weight: 600; line-height: 1.5; color: #e0341b; }
.cf .wpcf7-not-valid { border-color: #e0341b !important; background: #fff6f4 !important; }
.cf .wpcf7-response-output { margin: 3.2rem 0 0 !important; padding: 1.6rem 2rem !important; border: 1px solid #e0341b !important; border-radius: .6rem; font-size: 1.4rem; line-height: 1.6; color: #e0341b; }
.cf .wpcf7 form.sent .wpcf7-response-output { border-color: var(--orange) !important; color: var(--black); }
.cf .wpcf7-response-output:empty { display: none; }
.cf .wpcf7-spinner { display: none; }
/* 送信ボタン（input なので疑似要素が使えない。塗りの変化 + 右の矢印は外側の .cf-submit に） */
.cf-submit { position: relative; display: inline-flex; }
.cf-submit input.cf-btn { justify-content: center; padding-right: 7.2rem; transition: box-shadow .3s, filter .3s; -webkit-appearance: none; appearance: none; }
.cf-submit input.cf-btn:hover { background: linear-gradient(180deg, #e8560a, #c93a00); }
.cf-submit::after { content: ""; position: absolute; right: 3.2rem; top: 50%; width: 3rem; height: 3rem; margin-top: -1.5rem; border-radius: 50%; pointer-events: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M8 1l4 3.5L8 8M1 4.5h11' fill='none' stroke='%23ff7d20' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.2rem .9rem no-repeat; }
.cf .wpcf7-previous { min-width: 24rem; height: 8rem; padding: 0 4rem; background: #fff; border: 1px solid #d8cfbd; border-radius: .8rem; font: inherit; font-size: 1.8rem; font-weight: 700; color: var(--black); cursor: pointer; transition: background-color .3s; -webkit-appearance: none; appearance: none; }
.cf .wpcf7-previous:hover { background: #f2ece0; }
@media (max-width: 1199px) {
  .cf .wpcf7-radio { flex-direction: column; align-items: flex-start; gap: 1.2rem; min-height: 0; }
  .cf-submit { width: 100%; }
  .cf-submit input.cf-btn { width: 100%; }
  .cf .wpcf7-previous { width: 100%; min-width: 0; height: 6.4rem; font-size: 1.6rem; }
}

/* TB/SP: 見出し帯（オレンジ + 筆）は募集要項（css/guidance.css）と同じ長さ・コンテンツ開始位置にそろえる */
@media (max-width: 1199px) {
  .page-contact .page-head { --band0: calc(var(--m) * 250); height: var(--band0); --band: calc(var(--band0) - 5.6rem); }
  .page-contact .cf { margin-top: calc(13vw + 1.6rem); }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .page-contact .page-head { --band0: calc(var(--m) * 330); --band: calc(var(--band0) - 3.2rem); }
}
.cf-thanks__br { display: none; }
@media (max-width: 767px) { .cf-thanks__br { display: inline; } } /* SP のみ「お問い合わせ／ありがとうございました」で改行 */

/* ハニーポット（inc/antispam.php）。display: none にしない（bot に気づかれる） */
.ii-hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden; }

/* 確認画面: 入力した改行をそのまま見せる */
.cf-confirm dd { white-space: pre-wrap; }
