/* =========================================================================
   申込フォームの「カッチリ」案（試作）。body.formal のときだけ効く。
   元の styles.css は変えず、これを後から読み込んで、上書きする。
   ========================================================================= */
body.formal{ background: #F2F5F4; background-image: none; }

/* ---- 上の帯: 単色の緑。白い文字 ---- */
body.formal .page-hero{ background: linear-gradient(135deg, #0F4A2C 0%, #1E8A54 100%); color: #fff; padding: 44px 20px 40px; }
body.formal .page-hero h1{ color: #fff; letter-spacing: .04em; }
body.formal .page-hero p{ color: rgba(255,255,255,.88); }

/* ---- 流れ(3つ) ---- */
.steps{ list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 18px 0 0; padding: 0; }
.steps li{ display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 16px 6px 8px; font-size: .88rem; font-weight: 700; color: #fff; }
.steps b{ display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #146238; font-size: .8rem; }

/* ---- フォームの箱: 白い、細い線、軽い影 ---- */
:is(body.formal, .formal-scope) .site-form{ max-width: 660px; border: 1px solid #D3DBD8; border-radius: 6px; box-shadow: 0 2px 14px rgba(20,40,30,.08); padding: 30px 30px 34px; gap: 22px; margin-top: 28px; }
@media (max-width: 640px){ :is(body.formal, .formal-scope) .site-form{ padding: 22px 16px 26px; } }

/* ---- 見出し(区切り) ---- */
.fsec{ margin: 6px 0 -6px; font-size: 1.02rem; font-weight: 800; color: #146238; border-left: 4px solid #1E8A54; padding-left: 10px; }

/* ---- ラベルと「必須」 ---- */
:is(body.formal, .formal-scope) .site-form label, :is(body.formal, .formal-scope) .site-form legend{ font-size: .98rem; color: #1d2b22; }
:is(body.formal, .formal-scope) .site-form .req{ background: #D9455F; color: #fff; font-size: .72rem; font-weight: 700; border-radius: 3px; padding: 2px 8px; }

/* ---- 入力欄: 白、細い線、大きめ ---- */
:is(body.formal, .formal-scope) .site-form input[type="text"], :is(body.formal, .formal-scope) .site-form input[type="email"], :is(body.formal, .formal-scope) .site-form select, :is(body.formal, .formal-scope) .site-form textarea{
  background: #fff; border: 1px solid #B9C5C0; border-radius: 4px; padding: 13px 14px; font-size: 1rem; min-height: 48px; }
:is(body.formal, .formal-scope) .site-form input:focus, :is(body.formal, .formal-scope) .site-form select:focus, :is(body.formal, .formal-scope) .site-form textarea:focus{ border-color: #1E8A54; box-shadow: 0 0 0 3px rgba(30,138,84,.18); }
:is(body.formal, .formal-scope) .site-form input::placeholder{ color: #98A5A0; }

/* ---- 日程の選択肢 ---- */
:is(body.formal, .formal-scope) .site-form .check{ background: #fff; border: 1px solid #CBD5D1; border-radius: 5px; padding: 12px 14px; transition: border-color .15s, background .15s; }
:is(body.formal, .formal-scope) .site-form .check:hover{ border-color: #1E8A54; }
:is(body.formal, .formal-scope) .site-form .check:has(input:checked){ border-color: #1E8A54; background: #E9F6EE; }
:is(body.formal, .formal-scope) .site-form .check input{ accent-color: #1E8A54; }
body.formal .apply-count{ color: #146238; font-weight: 700; }

/* ---- 承諾・注意 ---- */
:is(body.formal, .formal-scope) .site-form .consent{ background: #F7F9F8; }
:is(body.formal, .formal-scope) .form-privacy{ font-size: .82rem; color: #5B6B60; }

/* ---- 送信ボタン: 緑、横いっぱい ---- */
:is(body.formal, .formal-scope) .site-form .btn-cta{ width: 100%; background: #1E8A54; color: #fff; border: 0; border-radius: 22px; padding: 17px 20px; font-size: 1.1rem; font-weight: 800; letter-spacing: .08em; box-shadow: 0 6px 16px rgba(30,138,84,.35); transform: none; }
:is(body.formal, .formal-scope) .site-form .btn-cta:hover{ background: #187748; transform: none; box-shadow: 0 8px 20px rgba(30,138,84,.4); }
:is(body.formal, .formal-scope) .site-form .btn-cta[disabled]{ opacity: .6; cursor: progress; }

/* ---- 送信後: 完了のカード ---- */
.done{ max-width: 660px; margin: 28px auto 0; background: #fff; border: 1px solid #D3DBD8; border-radius: 6px; box-shadow: 0 2px 14px rgba(20,40,30,.08); padding: 40px 28px 34px; text-align: center; }
.done-mark{ width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #1E8A54; position: relative; }
.done-mark::after{ content: ''; position: absolute; left: 25px; top: 15px; width: 18px; height: 33px; border: solid #fff; border-width: 0 6px 6px 0; transform: rotate(45deg); }
.done h2{ margin: 0 0 10px; font-size: 1.5rem; color: #146238; }
.done p{ margin: 0 0 10px; color: #3a4a40; }
.done-box{ text-align: left; background: #F7F9F8; border: 1px solid #DDE5E1; border-radius: 5px; padding: 14px 18px; margin: 18px 0; }
.done-box h3{ margin: 0 0 6px; font-size: .9rem; color: #5B6B60; }
.done-box ul{ margin: 0; padding-left: 1.2em; }
.done-box li{ margin: 2px 0; font-weight: 700; }
.done-note{ font-size: .88rem; color: #5B6B60; text-align: left; }
.done-actions{ display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.done-actions .btn{ min-width: 200px; }

/* 送信後に、フォームを隠す（display が hidden に勝たないように） */
:is(body.formal, .formal-scope) .site-form[hidden], .done[hidden]{ display: none !important; }

/* 日程の見出しは、上の「1　…」にまとめたので、legend は、読み上げ用に残して、見えなくする */
:is(body.formal, .formal-scope) .site-form legend{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fsec .req{ margin-left: 8px; background: #D9455F; color: #fff; font-size: .72rem; font-weight: 700; border-radius: 3px; padding: 2px 8px; vertical-align: 2px; }
.done .btn-cta{ background: #1E8A54; color: #fff; border: 0; border-radius: 22px; box-shadow: 0 6px 16px rgba(30,138,84,.35); transform: none; font-weight: 800; }
.done .btn-ghost{ border-radius: 22px; }

/* =========================================================================
   スマホ向けの最適化（幅 640px 以下）。利用者の大半が、スマホで見る想定
   ・最初の画面に、フォームが入るよう、上の帯と余白を詰める
   ・日程の選択肢を、低くして、一度に見える数を増やす
   ・押す所は、44px 以上。入力欄の文字は、16px 以上（iPhoneの自動拡大を防ぐ）
   ========================================================================= */
@media (max-width: 640px){
  body.formal main .section{ padding: 14px 10px 36px; }
  body.formal .page-hero{ padding: 22px 16px 20px; }
  body.formal .page-hero h1{ font-size: 1.32rem; margin-bottom: 6px; }
  body.formal .page-hero p{ font-size: .86rem; line-height: 1.6; }
  .steps{ flex-wrap: nowrap; gap: 6px; margin-top: 12px; }
  .steps li{ padding: 4px 10px 4px 5px; font-size: .72rem; gap: 5px; white-space: nowrap; }
  .steps b{ width: 18px; height: 18px; font-size: .7rem; }

  :is(body.formal, .formal-scope) .site-form{ margin-top: 0; padding: 18px 14px 22px; gap: 18px; border-radius: 6px; }
  .fsec{ font-size: .98rem; margin: 4px 0 -4px; }
  :is(body.formal, .formal-scope) .site-form label, :is(body.formal, .formal-scope) .site-form legend{ font-size: .95rem; }

  /* 日程の選択肢: 低く、読みやすく */
  :is(body.formal, .formal-scope) .site-form .check{ padding: 10px 12px; gap: 10px; font-size: .95rem; line-height: 1.45; align-items: center; }
  :is(body.formal, .formal-scope) .site-form .check small{ font-size: .78rem; line-height: 1.4; margin-top: 2px; }
  :is(body.formal, .formal-scope) .site-form .check input{ width: 22px; height: 22px; margin-top: 0; }
  body.formal #applyEvents{ gap: 6px !important; }
  body.formal .apply-count{ font-size: .82rem; margin: 2px 0; }

  /* 承諾 */
  :is(body.formal, .formal-scope) .site-form .consent{ align-items: flex-start; }
  :is(body.formal, .formal-scope) .site-form .consent input{ margin-top: 2px; }

  /* 送信ボタン */
  :is(body.formal, .formal-scope) .site-form .btn-cta{ padding: 16px 20px; font-size: 1.05rem; }

  /* 完了の画面 */
  .done{ margin-top: 0; padding: 28px 16px 24px; }
  .done-mark{ width: 64px; height: 64px; margin-bottom: 14px; }
  .done-mark::after{ left: 21px; top: 12px; width: 15px; height: 28px; border-width: 0 5px 5px 0; }
  .done h2{ font-size: 1.3rem; }
  .done-actions{ flex-direction: column; }
  .done-actions .btn{ width: 100%; min-width: 0; }
}
