/* ============================================================
 * Wizard step navigation styles
 * （contact-wizard.html 専用）
 * ============================================================ */

/* ---- Wizard step gating ---- */
.form-section.wizard-step-hidden {
  display: none !important;
}

/* ---- Wizard progress indicator ---- */
.wizard-progress {
  margin: 1rem 0 1.6rem;
}

.wizard-progress[hidden] {
  display: none;
}

.wizard-progress__list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.wizard-progress__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wizard-progress__item:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: clamp(1.6rem, 3vw, 3rem);
  height: 2px;
  background: #d0d3d8;
  margin: 0 0.4rem;
  transition: background 0.2s;
}

.wizard-progress__dot {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #d0d3d8;
  display: inline-block;
  transition: background 0.2s, box-shadow 0.2s;
}

.wizard-progress__item--active .wizard-progress__dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(240, 127, 59, 0.2);
}

.wizard-progress__item--done .wizard-progress__dot {
  background: var(--brand-deep);
}

.wizard-progress__item--done::before,
.wizard-progress__item--active::before {
  background: var(--brand-deep);
}

/* アクティブ（オレンジ）のドットは前のステップへ戻れるクリック可能なボタン */
.wizard-progress__item--clickable .wizard-progress__dot {
  cursor: pointer;
}

.wizard-progress__item--clickable .wizard-progress__dot:hover {
  background: var(--brand-deep);
  box-shadow: 0 0 0 5px rgba(240, 127, 59, 0.3);
}

.wizard-progress__item--clickable .wizard-progress__dot:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
}

.wizard-progress__counter {
  text-align: center;
  margin: 0.6rem 0 0;
  color: #777;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- Wizard navigation buttons ---- */
.wizard-nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}

.wizard-nav[hidden] {
  display: none;
}

.wizard-nav__btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.3rem + 0.4vw, 1.9rem);
  padding: 0.9rem 2.6rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  min-width: 12rem;
  letter-spacing: 0.04em;
}

.wizard-nav__btn[hidden] {
  display: none !important;
}

/* 主要CTA「次へ」。白文字での WCAG AA(4.5:1) を満たす深いブランドオレンジを使用する。
 * var(--brand)(#f07f3b) は白文字で 2.69:1 と不適合のため、#b4521f(5.04:1)/hover #9e440e(6.35:1) に調整。
 * （このクラスはウィザード専用で他ページには影響しない） */
.wizard-nav__btn--next {
  background: #b4521f;
  color: #fff;
  border: 1px solid #b4521f;
  box-shadow: 0 2px 8px rgba(180, 82, 31, 0.3);
}

.wizard-nav__btn--next:hover {
  background: #9e440e;
  border-color: #9e440e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(158, 68, 14, 0.35);
}

.wizard-nav__btn--next:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(180, 82, 31, 0.3);
}

.wizard-nav__btn--next-disabled {
  opacity: 0.4;
  filter: saturate(0.6);
  box-shadow: none;
  cursor: not-allowed;
}

.wizard-nav__btn--next-disabled:hover {
  background: #b4521f;
  border-color: #b4521f;
  transform: none;
  box-shadow: none;
}

.wizard-nav__btn--next-disabled:active {
  transform: none;
  box-shadow: none;
}

.wizard-next-note {
  flex-basis: 100%;
  text-align: center;
  margin: 0.4rem 0 0;
  padding: 0.6rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--danger);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 0.3vw, 1.5rem);
  line-height: 1.5;
}

.wizard-next-note[hidden] {
  display: none;
}

/* ステップ内エラーサマリ（UX-01）: 複数の不備をまとめて先頭に提示する */
.wizard-error-summary {
  margin: 1.2rem 0;
  padding: 1.2rem 1.4rem;
  background: #fef2f2;
  border: 2px solid #e1564b;
  border-left-width: 6px;
  border-radius: 8px;
  color: #7a1c14;
}
.wizard-error-summary[hidden] { display: none; }
.wizard-error-summary:focus { outline: 3px solid #b4521f; outline-offset: 2px; }
.wizard-error-summary__title {
  margin: 0 0 0.6rem;
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.6rem);
}
.wizard-error-summary__list {
  margin: 0;
  padding-left: 1.4rem;
  list-style: disc;
}
.wizard-error-summary__list li { margin: 0.3rem 0; }
.wizard-error-summary__link {
  vertical-align: top; /* 長い文でも行頭の「•」を1行目にそろえる（2026-09-17） */
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: #a8201a;
  text-decoration: underline;
  cursor: pointer;
}
.wizard-error-summary__link:hover,
.wizard-error-summary__link:focus { color: #7a1c14; }

/* 設問内の注意文へ移動したときの一瞬の強調（2026-09-17） */
@keyframes wizardInlineAttention {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 86, 75, 0); }
  30%, 70% { box-shadow: 0 0 0 4px rgba(225, 86, 75, 0.45); }
}
.wizard-inline-attention { animation: wizardInlineAttention 1.2s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  .wizard-inline-attention { animation: none; outline: 3px solid #e1564b; outline-offset: 2px; }
}

/* aria-invalid フィールドの視覚的手がかり */
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #e1564b;
  box-shadow: 0 0 0 1px #e1564b;
}

.wizard-nav__btn--prev {
  background: #fff;
  color: var(--ink);
  border: 1px solid #c8ccd2;
  box-shadow: none;
}

.wizard-nav__btn--prev:hover {
  background: #f5f6f8;
  border-color: #9ea3aa;
}

@media (max-width: 480px) {
  .wizard-progress__item:not(:first-child)::before {
    width: clamp(1rem, 4vw, 1.6rem);
    margin: 0 0.3rem;
  }
  .wizard-progress__dot {
    width: 1.3rem;
    height: 1.3rem;
  }
  .wizard-nav__btn {
    min-width: 10rem;
    padding: 0.8rem 2rem;
  }
}

/* ---- Test mail note: alert state when 次へ is blocked ---- */
.testmail-note--alert {
  padding: 1rem 1.2rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: var(--danger);
  font-weight: 600;
}

/* ---- 小規模保育事業者A型/B型 注意事項パネル ---- */
.shoukibo-notice-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: clamp(2rem, 3vw, 3rem) clamp(1.8rem, 3vw, 3rem);
  margin: 1.5rem 0;
}

.shoukibo-notice-paragraph {
  margin: 0 0 1.4rem;
  font-size: clamp(1.6rem, 1.2rem + 0.6vw, 1.9rem);
  line-height: 2;
  color: var(--ink, #333);
  letter-spacing: 0.02em;
}

.shoukibo-notice-paragraph:last-child {
  margin-bottom: 0;
}

.shoukibo-notice-cannot {
  color: #b91c1c;
  font-weight: 800;
  background: linear-gradient(transparent 60%, #fee2e2 60%);
  padding: 0 0.1em;
}

.shoukibo-notice-emphasis {
  color: #1d4ed8;
  font-weight: 800;
  background: linear-gradient(transparent 55%, #fde68a 55%, #fde68a 95%, transparent 95%);
  padding: 0 0.15em;
}

/* ---- 「通常保育の園児を含めない」場合の商品限定注意（オレンジアラート） ---- */
/* 2026-09-11: この案内パネルは廃止（ユーザー指示）。以下のルールは現在どこからも使われていない。 */
.product-limit-notice {
  border: 2px solid #b45309;
  border-radius: 10px;
  background: #fff;
  padding: 1.6rem 1.8rem;
  margin: 0;
  color: #333;
  line-height: 1.8;
}
.product-limit-notice__heading {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 0.9rem;
  font-weight: 700;
  color: #92400e;
  font-size: clamp(1.5rem, 1.1rem + 0.6vw, 1.7rem);
}
.product-limit-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c2410c;
  color: #fff;
  font-weight: 700;
  font-size: 0.85em;
  line-height: 1;
}
.product-limit-notice__body {
  margin: 0.3em 0;
  font-size: clamp(1.4rem, 1.05rem + 0.5vw, 1.55rem);
}
.product-limit-notice__body:last-child {
  margin-bottom: 0;
}
.product-limit-notice__body strong {
  font-weight: 700;
}

/* ---- 傷害保険選択時の注意事項 ---- */
.shogai-hoken-notice {
  margin: 0.6rem 0 1.4rem 3.4rem;
  padding: 1rem 1.4rem;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
}

@media (max-width: 760px) {
  .shogai-hoken-notice {
    margin-left: 0;
  }
}

.shogai-hoken-notice p {
  margin: 0;
  color: #991b1b;
  font-weight: 600;
  font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.55rem);
  line-height: 1.7;
}

/* ---- 加入不可商品の「理由テキスト」共通スタイル ---- */
.disabled-reason {
  display: none;
  margin: 0.4rem 0 1.2rem;
  padding: 0.7rem 1rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--danger);
  background: #fff5f5;
  border-left: 3px solid var(--danger);
  border-radius: 0 4px 4px 0;
}

/* ---- 通常保育の園児を含めない時: セットプランのみをフェードアウト + 一番下へ + 理由表示 ---- */
/* 園児団体傷害保険は一時預かり・休日保育・こども誰でも通園制度の園児のみでも加入できるため
   フェードアウトしない（2026-09-11 ユーザー指示）。 */
#hoikuen-type.shoukibo-no-normal-mode .checkbox-group > .disabled-reason--no-normal {
  display: block;
  order: 1;
}

/* ---- 小規模保育＋通常保育の園児を含める時: 園賠償責任保険のみをフェードアウト + 一番下へ + 理由表示 ---- */
/* 園児団体傷害保険はパンフレットP.11で小規模も対象のためフェードアウトしない */
#hoikuen-type.shoukibo-with-normal-mode .checkbox-group > .disabled-reason--with-normal {
  display: block;
  order: 1;
}

/* ---- 通常保育の園児を含めない時: 賠償責任保険のみのラベル/説明を特別保育事業賠償責任保険版に差し替え ---- */
.shoukibo-no-normal-only {
  display: none;
}
#hoikuen-type.shoukibo-no-normal-mode .shoukibo-normal-only {
  display: none !important;
}
#hoikuen-type.shoukibo-no-normal-mode span.shoukibo-no-normal-only {
  display: inline;
}
#hoikuen-type.shoukibo-no-normal-mode div.shoukibo-no-normal-only {
  display: block;
}

/* ---- 小規模保育事業者(C)で通常保育を含む時のみ表示する補足説明 ---- */
.shoukibo-c-only {
  display: none;
}
#hoikuen-type.shoukibo-with-normal-mode p.shoukibo-c-only {
  display: block;
}

/* ---- 幼稚園で通常保育の園児を含めない時: 園賠償責任保険のみをフェードアウト + 一番下へ + 理由表示 ---- */
/* 園児団体傷害保険は一時預かり等の園児のみでも加入できるためフェードアウトしない（2026-09-11 ユーザー指示）。 */
#youchien-type.youchien-no-normal-mode .checkbox-group > .disabled-reason--youchien-no-normal {
  display: block;
  order: 1;
}

/* ---- shoukibo-notice 内の B/C カテゴリ別質問ブロック ---- */
.shoukibo-question-block {
  margin: 1.4rem 0 1.4rem;
  padding: 1.6rem 1.4rem;
  background: #f8f9fa;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.shoukibo-question-block + .shoukibo-question-block {
  margin-top: 0;
}
.shoukibo-question-label {
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--accent-deep);
  font-size: clamp(1.6rem, 1.2rem + 0.6vw, 1.9rem);
}
.shoukibo-question-block .radio-group--stack {
  gap: 0.7rem;
}

/* 質問ブロック直下に表示する補足案内パネル */
.shoukibo-question-block .shoukibo-info {
  margin-top: 1.2rem;
}
.shoukibo-question-block .shoukibo-info .shoukibo-notice-paragraph {
  font-size: 0.9em;
  line-height: 1.75;
  margin-bottom: 0.9em;
}
.shoukibo-question-block .shoukibo-info .shoukibo-notice-paragraph:last-child {
  margin-bottom: 0;
}

/* ---- 施設の種類: 複数選択チェックボックス群 ---- */
.facility-type-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.facility-type-group .checkbox-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
}

.step-hint {
  display: inline-block;
  margin-left: 0.4em;
  font-size: 0.8em;
  color: var(--muted, #777);
  font-weight: normal;
}

/* ---- 警告（alert--warning） ---- */
.alert--warning {
  background-color: #fffbeb;
  color: #92400e;
  padding: 1.2rem 1.4rem;
  text-align: left;
  border-radius: 10px;
  margin-top: 1rem;
  border: 1px solid #fcd34d;
  font-weight: 500;
  line-height: 1.6;
}
.alert--warning a {
  color: #b45309;
  text-decoration: underline;
}

/* ---- 複数段落の insurance-description ---- */
.insurance-description > p {
  margin: 0;
}
.insurance-description > p + p {
  margin-top: 0.6em;
}
.insurance-description__note {
  font-size: 0.95em;
}

/* ---- 地域子育て支援センター事業の保険 → 実施事業の選択 ---- */
.chiiki-shien-question {
  margin: 0.6rem 0 1.2rem 3.4rem;
  padding: 1rem 1.4rem;
  background: #f8f9fc;
  border: 1px solid #e3e6ee;
  border-left: 4px solid var(--brand, #f07f3b);
  border-radius: 8px;
}

.chiiki-shien-question-label {
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--ink, #333);
  font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.55rem);
}

.radio-group--stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (max-width: 760px) {
  .chiiki-shien-question {
    margin-left: 0;
  }
}

/* ---- 市町村単位を超える事業選択時の対象外表示 ---- */
.chiiki-shien-cannot {
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
}

.chiiki-shien-cannot p {
  margin: 0;
  color: #991b1b;
  font-weight: 600;
  font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.55rem);
  line-height: 1.7;
}

/* ---- 職員のための保険 → 全国私立保育連盟の会員園問いかけ ---- */
.staff-member-question {
  margin: 0.6rem 0 1.2rem 2.6rem;
  padding: 1rem 1.4rem;
  background: #f8f9fc;
  border: 1px solid #e3e6ee;
  border-left: 4px solid var(--brand, #f07f3b);
  border-radius: 8px;
}

.staff-member-question-label {
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--ink, #333);
  font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.55rem);
}

@media (max-width: 600px) {
  .staff-member-question {
    margin-left: 0;
  }
}

/* ---- 施設の種類 → 「全日本私立幼稚園連合会の会員園ですか？」 ---- */
/* 幼稚園にぶら下がる質問として右へ寄せて枠で囲む。質問文のリンクがチェックボックスの列に
   重なり、チェックのつもりで誤ってリンクを押してしまうのを防ぐ（2026-09-11） */
.facility-type-group #memberquestion {
  margin: 0.2rem 0 0.8rem 2.6rem;
  padding: 1rem 1.4rem;
  background: #f8f9fc;
  border: 1px solid #e3e6ee;
  border-left: 4px solid var(--brand, #f07f3b);
  border-radius: 8px;
}
.facility-type-group #memberquestion .member-question-text {
  margin: 0 0 0.6rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .facility-type-group #memberquestion {
    margin-left: 1.2rem;
  }
}

/* ---- 検討中フロー: 「具体的に心配なこと・知りたいこと（任意）」 ---- */
/* 灰色の見出しセル＋入力欄の表組みをやめ、見出しの下に入力欄を置くカードにする（2026-09-11） */
.needs-detail {
  margin: 2.4rem 0 0;
  padding: 1.8rem 2rem 2rem;
  background: #f8f9fc;
  border: 1px solid #e3e6ee;
  border-radius: 12px;
}
.needs-detail__label {
  display: block;
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.3rem + 0.3vw, 1.65rem);
  line-height: 1.6;
  color: var(--ink, #333);
}
.needs-detail__optional {
  margin-left: 0.2em;
  font-weight: 500;
  font-size: 0.88em;
  color: var(--muted, #777);
}
.page-contact textarea.needs-detail__input {
  display: block;
  width: 100%;
  height: 132px;
  min-height: 96px;
  resize: vertical;
  padding: 1.2rem 1.4rem;
  border-width: 1.5px;
  border-color: #cfd4df;
  border-radius: 10px;
  background-color: #fff;
  line-height: 1.7;
}
.page-contact textarea.needs-detail__input::placeholder {
  color: #9aa1ad;
}
.page-contact textarea.needs-detail__input:hover:not(:focus) {
  border-color: #a9b0bd;
}
.page-contact textarea.needs-detail__input:focus {
  border-color: var(--accent-deep, #2f7fb8);
  background-color: #fff;
}
@media (max-width: 600px) {
  .needs-detail {
    padding: 1.4rem 1.4rem 1.6rem;
  }
}

/* ---- 検討中フロー: 項目自体を表示しない対象外のニーズ（補足・詳細ごと隠す） ---- */
.need-block--hidden {
  display: none !important;
}


/* =========================================================
 * 確定済みフロー（schoolInsurance / coverageStart / mailingDest / confirmedRemarks）
 * ========================================================= */

/* 園切替バー：園情報を STEP A の上に整列表示するヘッダーカード */
#confirmed-school-insurance .form-step-label {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 2rem;
  row-gap: 0.4rem;
  padding: 2.4rem 2.6rem 2rem;
  background: #fff;
  border: 1px solid #d8dde6;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 10px rgba(29, 58, 114, 0.06);
  gap: 0;
  flex-direction: initial;
  align-items: end;
}

#confirmed-school-insurance .form-step-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1d3a72 0%, #2b5a85 50%, #f07f3b 100%);
  border-radius: 12px 12px 0 0;
}

#confirmed-school-insurance .form-step-label .step-badge {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  margin: 0;
}

#confirmed-school-insurance .form-step-label .confirmed-school-title {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 2rem 0 0;
  font-weight: 800;
  font-size: clamp(2.8rem, 2.2rem + 1.6vw, 3.8rem);
  color: #000;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.confirmed-school-name,
.confirmed-school-facility-type {
  display: inline;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  letter-spacing: inherit;
  box-shadow: none;
  white-space: normal;
}

.confirmed-school-facility-type:not(:empty)::before { content: '（'; }
.confirmed-school-facility-type:not(:empty)::after  { content: '）'; }
.confirmed-school-facility-type:empty { display: none; }

.confirmed-school-counter {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem 1rem;
  background: #f1f3f7;
  border: none;
  border-radius: 4px;
  color: #4a5663;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.0rem + 0.2vw, 1.35rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 600px) {
  #confirmed-school-insurance .form-step-label {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.4rem 1.4rem;
    row-gap: 0.5rem;
  }
  #confirmed-school-insurance .form-step-label .step-badge {
    grid-row: 1;
    grid-column: 1;
  }
  .confirmed-school-counter {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .confirmed-school-title {
    grid-column: 1;
    grid-row: 3;
    margin: 0.4rem 0 0;
  }
}
.form-step-help-note {
  margin: 0.4rem 0 1.6rem;
  padding: 0.9rem 1.2rem;
  background: #fff7ed;
  border-left: 4px solid var(--brand, #f07f3b);
  border-radius: 6px;
  color: #6b3e1d;
  font-size: clamp(1.5rem, 1.2rem + 0.4vw, 1.7rem);
  line-height: 1.7;
}

/* 園切替ナビ */
.confirmed-school-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  margin: 2rem 0 0;
  padding: 1.2rem 1.4rem;
  background: #f8f9fc;
  border: 1px solid #e3e6ee;
  border-radius: 8px;
}
.confirmed-school-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0 2rem;
  background: #fff;
  border: 2px solid var(--brand, #f07f3b);
  border-radius: 999px;
  color: var(--brand, #f07f3b);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 0.4vw, 1.7rem);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.confirmed-school-nav__btn:hover,
.confirmed-school-nav__btn:focus-visible {
  background: var(--brand, #f07f3b);
  color: #fff;
}
.confirmed-school-nav__btn[hidden] {
  display: none;
}
.confirmed-school-nav__btn--next {
  margin-left: auto;
}
.confirmed-school-nav__note {
  flex-basis: 100%;
  margin: 0;
  color: #555;
  font-size: clamp(1.5rem, 1.2rem + 0.4vw, 1.7rem);
}

/* 各園の入力状況リスト */
.confirmed-school-status {
  flex-basis: 100%;
  margin-top: 0.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed #d6dae3;
}
.confirmed-school-status__heading {
  margin: 0 0 0.8rem;
  color: #4a5663;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 0.4vw, 1.7rem);
}
.confirmed-school-status__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.confirmed-school-status__list > li {
  margin: 0;
  padding: 0;
}
.ciw-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.6rem;
  padding: 0.5rem 1.2rem;
  background: #fff;
  border: 1.5px solid #c8cdd6;
  border-radius: 999px;
  color: #4a5663;
  font-size: clamp(1.5rem, 1.2rem + 0.4vw, 1.7rem);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.ciw-status-pill:hover,
.ciw-status-pill:focus-visible {
  border-color: var(--brand, #f07f3b);
  color: var(--brand, #f07f3b);
}
.ciw-status-pill__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  background: #eef0f4;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95em;
}
.ciw-status-pill__name {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ciw-status-pill__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
}
.ciw-status-pill--ok .ciw-status-pill__badge {
  background: #1f7a3a;
  color: #fff;
}
.ciw-status-pill--empty .ciw-status-pill__badge {
  background: #d6dae3;
  color: #4a5663;
}
.ciw-status-pill--unsupported .ciw-status-pill__badge {
  background: #991b1b;
  color: #fff;
}
.ciw-status-pill--current {
  background: #fff7ed;
  border-color: var(--brand, #f07f3b);
  color: var(--brand, #f07f3b);
  box-shadow: 0 0 0 2px rgba(240, 127, 59, 0.18);
}
.ciw-status-pill--current .ciw-status-pill__num {
  background: var(--brand, #f07f3b);
  color: #fff;
}

/* 未対応施設区分の警告強化 */
.confirmed-school-facility-type--unsupported {
  background: #991b1b;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 600px) {
  .confirmed-school-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .confirmed-school-nav__btn--next {
    margin-left: 0;
  }
  #confirmed-school-insurance .form-step-label {
    padding: 1.6rem 1.4rem 1.4rem;
  }
}

/* ============================================================
 * STEP 1 お客さま種別 ラジオカード（旧 select 置換）
 * ============================================================ */
.customer-type-groups {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.customer-type-group {
  border: 1px solid #d0d7e0;
  border-radius: 0.6rem;
  padding: 0.8rem 1rem 1.1rem;
  margin: 0;
  background: #fafbfd;
}

.customer-type-group__legend {
  font-size: 0.95em;
  font-weight: 700;
  color: #2e6e9e;
  padding: 0 0.4rem;
}

.customer-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.customer-type-card {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 2px solid #d0d7e0;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 4.6rem;
}

.customer-type-card:hover {
  border-color: #5c9ccc;
  background: #f4f9fd;
}

.customer-type-card input[type="radio"] {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  width: 1.7rem;
  height: 1.7rem;
  cursor: pointer;
  accent-color: #2e6e9e;
}

.customer-type-card__inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.2rem 1rem 3.4rem;
  flex: 1;
}

.customer-type-card__title {
  font-size: 1em;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

.customer-type-card__desc {
  font-size: 0.82em;
  color: #6b7280;
  line-height: 1.45;
  margin-top: 0.2em;
}

.customer-type-card:has(input[type="radio"]:checked),
.customer-type-card.is-selected {
  border-color: #2e6e9e;
  background: #e8f1fa;
  box-shadow: 0 0 0 2px rgba(46, 110, 158, 0.15);
}

.customer-type-card:has(input[type="radio"]:focus-visible),
.customer-type-card:focus-within {
  outline: 2px solid #2e6e9e;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .customer-type-cards {
    grid-template-columns: 1fr;
  }
  .customer-type-group {
    padding: 0.7rem 0.8rem 0.9rem;
  }
}

/* ============================================================
 * テスト送信フローの説明ブロック
 * ============================================================ */
.testmail-explainer {
  margin-top: 0.7rem;
  padding: 0.9rem 1.2rem;
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0.4rem;
  font-size: 0.9em;
  line-height: 1.6;
  color: #404040;
}

.testmail-explainer__heading {
  margin: 0 0 0.3em 0;
  font-weight: 700;
  font-size: 1.05em;
  color: #92400e;
}

.testmail-explainer p {
  margin: 0;
}

.testmail-explainer p + p {
  margin-top: 0.3rem;
}

/* ============================================================
 * 複数選択可能バッジ（A4）
 * ============================================================ */
.multi-select-hint {
  margin: 0.3rem 0 0 0;
  font-size: 0.85em;
  color: #404040;
  line-height: 1.5;
  font-weight: normal;
}

.multi-select-badge {
  display: inline-block;
  background: #2e6e9e;
  color: #fff;
  font-size: 0.95em;
  font-weight: 700;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-right: 0.4em;
  vertical-align: 0.1em;
}

/* ============================================================
 * B+C 混在補足案内（B=いいえ AND C=はい のとき表示）
 * ============================================================ */
.mixed-bc-notice {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 0.4rem;
  padding: 1rem 1.4rem;
  margin: 0 0 1.6rem 0;
  font-size: 0.92em;
  line-height: 1.65;
  color: #404040;
}

.mixed-bc-notice__heading {
  margin: 0 0 0.4em 0;
  font-weight: 700;
  font-size: 1.05em;
  color: #9a3412;
}

.mixed-bc-notice p {
  margin: 0;
}

.mixed-bc-notice p + p {
  margin-top: 0.4em;
}

/* 検討中フロー: 「この補償を希望する施設」チェック欄（2施設以上を選んだときのみ表示） */
.need-facilities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 2px 0 10px 1.9em;
  padding: 8px 12px;
  background: #f7f9fc;
  border: 1px solid #dde5ef;
  border-radius: 6px;
  font-size: 0.88em;
  line-height: 1.5;
}
.need-facilities[hidden] { display: none; }
.need-facilities__label { font-weight: 600; color: #1a4a7a; }
.need-facilities__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #333;
  cursor: pointer;
}
.need-facilities__item input { margin: 0; }
@media (max-width: 600px) {
  .need-facilities { margin-left: 1.2em; gap: 6px 10px; }
}

/* ステップ切替時は見出しへフォーカスを移して読み上げ位置を揃えている（validator-enji-wizard.js）。
   ただしキーボード操作ではない自動のフォーカスなので、見出しに枠線は出さない（2026-09-16 ユーザー指摘） */
.form-step-label > p[tabindex="-1"]:focus,
.form-step-label > label[tabindex="-1"]:focus,
.if-section-title[tabindex="-1"]:focus { outline: none; }

/* ===== 2026-09-19 構造改善 ===== */
/* 各画面のタイトルを <p> から <h2> にした（見出しとして読み上げ・移動できるように）。見た目は従来の <p> と同じ */
.form-step-label .form-step-title {
  margin: 0;
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
  color: var(--ink);
}
.form-step-label .form-step-title label { font-weight: inherit; }
.form-step-title[tabindex="-1"]:focus { outline: none; }

/* 「通常保育の確認」の画面の見出し */
.shoukibo-notice-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef0f4;
}
.shoukibo-notice-heading .form-step-title {
  margin: 0;
  font-weight: 600;
  font-size: inherit;
  color: var(--ink);
}

/* ご希望の補償のチェック欄（スマホで入力欄の文字が16px未満だと拡大表示されるため） */
#considering-needs-group input[type="checkbox"] { font-size: 16px; }

/* JavaScript が無効なときの案内 */
.cw-noscript {
  margin: 2rem 0;
  padding: 1.6rem 2rem;
  background: #fff8e1;
  border: 1px solid #f0d28b;
  border-radius: 8px;
  color: #5b4300;
  line-height: 1.8;
}
.cw-noscript p { margin: 0; }
.cw-noscript .cw-noscript__title { font-weight: 700; margin-bottom: .6rem; }

/* 送信前の「入力内容の確認」 */
.wizard-review {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  color: var(--ink, #1f2937);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wizard-review:not([open]) { display: none; }
.wizard-review::backdrop { background: rgba(15, 23, 42, .55); }
.wizard-review__title {
  margin: 0;
  padding: 1.6rem 2rem 0;
  font-size: clamp(1.9rem, 1.6rem + .5vw, 2.2rem);
  color: #1f4e79;
}
.wizard-review__title:focus { outline: none; }
.wizard-review__lead {
  margin: .8rem 2rem 1.2rem;
  font-size: 1.45rem;
  line-height: 1.7;
  color: #374151;
}
.wizard-review__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 2rem 1rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.wizard-review__section { padding: 1.2rem 0; }
.wizard-review__section + .wizard-review__section { border-top: 1px dashed #d8dee5; }
.wizard-review__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.wizard-review__section-heading > :is(h3, h4) {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.wizard-review__school + .wizard-review__school { margin-top: 20px; }
.wizard-review__section-title { display: flex; flex-wrap: wrap; column-gap: 12px; }
.wizard-review__step-number { white-space: nowrap; }
@media (max-width: 600px) {
  .wizard-review__section-title { flex-direction: column; }
  .wizard-review__step-number { font-size: 1.3rem; }
}
.wizard-review__edit,
.wizard-review-return {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #2c7fb8;
  border-radius: 8px;
  background: #fff;
  color: #225e89;
  cursor: pointer;
}
.wizard-review__edit { flex: 0 0 auto; }
.wizard-review-return { flex-basis: 100%; max-width: 320px; }
.wizard-review-return[hidden] { display: none !important; }
.wizard-review__edit:hover,
.wizard-review-return:hover { background: #edf5fc; }
.wizard-review__edit:focus-visible,
.wizard-review-return:focus-visible { outline: 3px solid #2c7fb8; outline-offset: 3px; }
.wizard-review__section-title {
  margin: 0 0 .8rem;
  font-size: 1.6rem;
  color: #1f4e79;
  border-left: 4px solid #2c7fb8;
  padding-left: .8rem;
}
.wizard-review__block-title {
  margin: 1rem 0 .4rem;
  font-size: 1.45rem;
  color: #2b5a85;
}
.wizard-review__list {
  display: grid;
  grid-template-columns: minmax(8em, 38%) 1fr;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.6;
}
.wizard-review__list dt,
.wizard-review__list dd {
  margin: 0;
  padding: .5rem .8rem;
  border-bottom: 1px solid #eef0f4;
  overflow-wrap: anywhere;
}
.wizard-review__list dt { background: #f7f9fc; font-weight: 600; color: #1f4e79; }
.wizard-review__list dd { white-space: pre-wrap; }
.wizard-review__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 1.2rem 2rem 1.6rem;
}
.wizard-review__back {
  font: inherit;
  font-size: 1.5rem;
  padding: .9rem 2rem;
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}
.wizard-review__actions .wizard-review__submit {
  font-size: 1.6rem;
  padding: .9rem 2.4rem;
}
@media (max-width: 600px) {
  .wizard-review__list { grid-template-columns: 1fr; }
  .wizard-review__list dt { border-bottom: none; padding-bottom: .2rem; }
  .wizard-review__actions { flex-direction: column-reverse; }
  .wizard-review__actions button { width: 100%; }
}
/* contact-wizard.html の見た目用インラインスタイルを移したもの（2026-09-19）。
   元のインライン指定と同じ優先度にするため !important を付けている。display はJSが切り替えるため移していない。 */
.cws-0b0e9a { margin:0 0 4px !important; padding-left:5em !important; text-indent:-5em !important; }
.cws-0d8740 { margin:0 !important; padding-left:4em !important; text-indent:-4em !important; }
.cws-18b9c3 { margin:6px 0 0 !important; padding:8px 10px !important; background:#f8fbff !important; border:1px solid #d4e3f5 !important; border-radius:4px !important; color:#1a4a7a !important; font-size:0.92em !important; }
.cws-29ee20 { color:#555 !important; }
.cws-358d69 { color:#000 !important; }
.cws-53946a { margin:10px 0 0 !important; font-size:.88em !important; color:#444 !important; line-height:1.65 !important; }
.cws-587579 { font-weight:600 !important; color:#1a4a7a !important; white-space:nowrap !important; }
.cws-5b1944 { margin:0 0 4px !important; font-weight:700 !important; color:#1a4a7a !important; }
.cws-5b3942 { cursor:pointer !important; color:#1a6fb5 !important; font-size:.85em !important; }
.cws-73d58c { margin:0 0 8px !important; font-weight:600 !important; color:#1a4a7a !important; }
.cws-9aa76e { font-weight: normal !important; }
.cws-9dfcdb { margin:6px 0 0 !important; font-size:.88em !important; color:#444 !important; line-height:1.65 !important; }
.cws-a1988b { font-weight: normal !important; margin: 0 0 8px !important; }
.cws-a1cd83 { margin:4px 0 0 !important; color:#888 !important; }
.cws-a7ceb2 { color:var(--danger) !important; }
.cws-aae766 { margin:16px 0 0 !important; font-size:.8em !important; color:#888 !important; line-height:1.6 !important; }
.cws-beea36 { margin:8px 0 0 !important; font-size:0.85em !important; color:#555 !important; }
.cws-dab5eb { margin:0 !important; padding:0 !important; list-style:none !important; }
.cws-db2f41 { color:#b30000 !important; font-weight:700 !important; }
.cws-e1ed31 { margin:6px 0 10px 1.9em !important; }
.cws-e634e6 { font-weight:600 !important; }
.cws-f0461e { border:none !important; }
.cws-0d4a0a { margin:6px 0 0 !important; color:#b00020 !important; font-weight:600 !important; }
.cws-1e2cc3 { align-items:center !important; }
.cws-2132a3 { justify-content:space-between !important; gap:12px !important; padding:4px 0 !important; }
.cws-37e93e { font-size:.72em !important; font-weight:700 !important; color:#fff !important; border-radius:3px !important; padding:1px 6px !important; margin-right:6px !important; vertical-align:middle !important; background:#1a7a3a !important; }
.cws-4f1adf { margin:6px 0 0 !important; padding:8px 10px !important; background:#fff6e0 !important; border:1px solid #f0d28b !important; border-radius:4px !important; color:#7a5a00 !important; font-size:0.92em !important; }
.cws-7ebe16 { margin:6px 0 0 !important; padding:6px 8px !important; background:#fff6e0 !important; border:1px solid #f0d28b !important; border-radius:4px !important; font-size:0.85em !important; color:#7a5a00 !important; }
.cws-a44400 { justify-content:space-between !important; gap:12px !important; padding:4px 0 !important; border-bottom:1px dotted #cbd9ea !important; }
.cws-b0d74d { margin:0 !important; padding:12px 14px !important; background:#f8fbff !important; border:1px solid #d4e3f5 !important; border-radius:6px !important; font-size:0.92em !important; }
.cws-e1f155 { font-size:.72em !important; font-weight:700 !important; color:#fff !important; border-radius:3px !important; padding:1px 6px !important; margin-right:6px !important; vertical-align:middle !important; background:#6b7280 !important; }
.cws-e60cba { margin:6px 0 0 !important; font-size:0.85em !important; color:#a26b00 !important; }
.cws-eeebb1 { font-size:.72em !important; font-weight:700 !important; color:#fff !important; border-radius:3px !important; padding:1px 6px !important; margin-right:6px !important; vertical-align:middle !important; background:#1a6fb5 !important; }

/* ステップの総数が決まるまでは進捗のドットを出さない（validator-enji-wizard.js が hidden を付ける）（2026-09-19） */
.wizard-progress__list[hidden] { display: none !important; }

/* 同じステップに複数のセクションがあるとき、2つ目以降の STEP バッジを出さない（2026-09-20） */
.step-badge[hidden] { display: none !important; }

/* ---- 前回入力の復元通知（validator-enji-wizard.js が生成） ---- */
.wizard-restore-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
  margin: 0 0 1.4rem;
  padding: 1.2rem 1.6rem;
  background: #eef6ff;
  border: 1px solid #b9d6f5;
  border-radius: 8px;
  color: #1f3c5c;
  font-size: 1.5rem;
  line-height: 1.7;
}

.wizard-restore-notice__text {
  margin: 0;
  font-weight: 700;
}

.wizard-restore-notice__clear {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid #1f6fb2;
  border-radius: 8px;
  color: #1f6fb2;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  min-height: 44px;
}

.wizard-restore-notice__clear:hover,
.wizard-restore-notice__clear:focus-visible {
  background: #1f6fb2;
  color: #fff;
}
