@charset "UTF-8";

[hidden] {
  display: none !important;
}

:root {
  /* 2026-08-07 ネイビー塗替え: 本サイト(es-g.jp/money)の主色#1e3a5f×白に統一（ユーザー決定）
     変数名は互換のためphase2-teal系のまま流用 */
  --phase2-teal: #1e3a5f;
  --phase2-teal-deep: #142b47;
  --phase2-teal-soft: #e9eff8;
  --phase2-teal-line: #c5d4e6;
  --phase2-ink: #1f2733;
  --phase2-muted: #64707d;
  --phase2-bg: #f3f5f8;
  --phase2-card: #fff;
  --phase2-line: #e3e8ee;
  --phase2-input-line: #d5dce4;
  --phase2-required: #d94f43;
  --phase2-required-soft: #fdf1ef;
  --phase2-warning-bg: #fff8ec;
  --phase2-warning-line: #f0dcb2;
  --phase2-shadow: 0 1px 2px rgba(16, 30, 50, 0.05);
  /* 2026-08-07 アクセント: 「次に進む操作」だけオレンジ(1画面1箇所・本サイトのシミュレーションボタンと同系)
     文字は#142b47(コントラスト7.07:1。白は2.03:1で不可) */
  --phase2-accent: #f5a623;
  --phase2-accent-deep: #e0951a;
}

/* 横はみ出しのクリップはhtmlが担当する(bodyに持たせるとbodyがスクロールコンテナ化し
   sticky=サイドバー/CTAバーが死ぬため。CTAバーの全幅ブリードのはみ出しもここで吸収) */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--phase2-bg);
  color: var(--phase2-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body:not(.top) main.phase2-page {
  padding: 24px 16px 0;
}

/* 本番サイト準拠ヘッダー: es-g.jp/money実測の1段目を再現・非固定
   （form_confirm.css / form_complete.css にも同一ブロックを複製） */
.l-header {
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.l-header-contents {
  display: flex;
  position: static;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  min-height: 88px;
  margin: 0 auto;
  padding: 14px 40px;
}

body:not(.top) main {
  padding-top: 24px;
}

.l-header__logo {
  padding: 0;
  text-align: left;
}

.phase2-header-logo {
  display: inline-flex;
  flex-direction: column;
}

.l-header__logo img {
  width: 280px;
  height: auto;
}

.phase2-header-logo__tm {
  display: block;
  margin-top: 3px;
  color: #9aa3ad;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: right;
}

.l-header__tel.phase2-header-tel {
  position: static;
  transform: none;
  text-align: left;
}

.phase2-header-tel__number {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e3a5f;
  font-family: Lato, "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-decoration: none;
}

.phase2-header-tel__icon {
  width: 22px;
  height: auto;
  /* teal画像をネイビーへ変換（本番 .eh-header__tel-icon と同一フィルタ） */
  filter: brightness(0) saturate(1) invert(0.2) sepia(0.27) saturate(15.48) hue-rotate(174deg) brightness(0.89) contrast(0.91);
}

.l-header__tel > .phase2-header-tel__hours {
  display: block;
  margin: 7px 0 0;
  color: #555;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .l-header-contents {
    min-height: 64px;
    padding: 10px 12px;
  }

  body:not(.top) main {
    padding-top: 16px;
  }

  .l-header__logo img {
    width: 190px;
  }

  .phase2-header-logo__tm {
    font-size: 10px;
  }

  .phase2-header-tel__number {
    padding: 6px;
  }

  .phase2-header-tel__num-text {
    display: none;
  }

  .phase2-header-tel__icon {
    width: 27px;
  }

  .l-header__tel > .phase2-header-tel__hours {
    display: none;
  }
}

/* 1024px未満(サイドバー非表示域)はヘッダー電話をアイコンのみに */
@media (max-width: 1023px) {
  .phase2-header-tel__num-text {
    display: none;
  }
}

.phase2-page button,
.phase2-page input,
.phase2-page select {
  font-family: inherit;
}

.phase2-shell {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.phase2-main {
  min-width: 0;
}

.phase2-side {
  display: none;
}

.phase2-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  /* ヘッダー〜ステップバー間の縦リズムを16pxで統一(デザイナーレビュー260807 #2) */
  margin: 0 0 16px;
}

.phase2-trust span {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b6673;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.phase2-trust span::before {
  width: 14px;
  height: 14px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a5f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E");
  content: "";
}

.phase2-campaign-bnr {
  display: block;
  max-width: 100%;
  /* margin-top 0: PCで右カラムと上端を揃える(デザイナーレビュー260807 #1) */
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 10px;
}

.phase2-campaign-bnr img {
  display: block;
  width: 100%;
  height: auto;
}

.phase2-page .l-progressbar {
  margin: 0 auto 20px;
}

.phase2-card {
  margin: 0 0 14px;
  padding: 18px 16px;
  border: 1px solid var(--phase2-line);
  border-radius: 14px;
  background: var(--phase2-card);
  box-shadow: var(--phase2-shadow);
  scroll-margin-top: 94px;
}

.phase2-card.phase2-field {
  margin-bottom: 14px;
}

.phase2-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.phase2-section-head__number {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  border: 2px solid var(--phase2-teal);
  border-radius: 7px;
  background: var(--phase2-card);
  color: var(--phase2-teal-deep);
  font-size: 14px;
  font-weight: 700;
}

.phase2-section-head h2 {
  margin: 0;
  color: var(--phase2-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.phase2-field {
  margin-bottom: 20px;
  scroll-margin-top: 94px;
}

.phase2-field:last-child {
  margin-bottom: 4px;
}

.phase2-field-row > .phase2-field:last-child {
  margin-bottom: 20px;
}

.phase2-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.phase2-label,
.phase2-sub-label {
  color: var(--phase2-ink);
  font-weight: 700;
}

.phase2-label {
  font-size: 15px;
}

.phase2-sub-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.phase2-badge {
  flex: none;
  padding: 1.5px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.phase2-badge--required {
  background: var(--phase2-required);
  color: #fff;
}

.phase2-badge--optional {
  background: var(--phase2-line);
  color: var(--phase2-muted);
}

.phase2-badge--done {
  display: none;
  border: 1px solid var(--phase2-teal-line);
  background: var(--phase2-teal-soft);
  color: var(--phase2-teal);
}

.phase2-field.is-ok > .phase2-label-row .phase2-badge--required {
  display: none;
}

.phase2-field.is-ok > .phase2-label-row .phase2-badge--done {
  display: inline-block;
}

.phase2-field.is-ok > .phase2-section-head .phase2-badge--required {
  display: none;
}

.phase2-field.is-ok > .phase2-section-head .phase2-badge--done {
  display: inline-block;
}

.phase2-side__card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--phase2-line);
  border-radius: 12px;
  background: var(--phase2-card);
  box-shadow: var(--phase2-shadow);
}

.phase2-side__card:last-child {
  margin-bottom: 0;
}

.phase2-side__card h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--phase2-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.phase2-side__check {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--phase2-teal-soft);
  color: var(--phase2-teal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.phase2-side__product-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase2-side__product-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--phase2-line);
}

.phase2-side__product-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.phase2-side__product-list li:last-child {
  padding-bottom: 0;
}

.phase2-side__product-list img {
  flex: none;
  width: 52px;
  max-height: 36px;
  object-fit: contain;
}

.phase2-side__product-list li > span {
  min-width: 0;
  color: var(--phase2-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.phase2-side__product-list small {
  display: block;
  color: var(--phase2-muted);
  font-size: 11px;
  font-weight: 400;
}

.phase2-side__facts p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--phase2-ink);
  font-size: 12.5px;
  line-height: 1.5;
}

.phase2-side__facts p:last-child {
  margin-bottom: 0;
}

.phase2-side__facts .phase2-side__check {
  margin-top: 1px;
}

.phase2-side__tel {
  border-color: var(--phase2-teal-line);
  background: var(--phase2-teal-soft);
  text-align: center;
}

.phase2-side__tel h2 {
  display: block;
  margin-bottom: 6px;
  color: var(--phase2-teal-deep);
}

.phase2-side__tel a {
  color: var(--phase2-teal-deep);
  font-size: 23px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-decoration: none;
}

.phase2-side__tel p {
  margin: 6px 0 0;
  color: var(--phase2-muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* サイドバー版 認証マーク帯: フッター共有パーシャル(.footer-agency__cert系)を明色・コンパクトに上書き
   （本サイト同様にロゴ左・テキスト右の横並び。番号各行は折返しなしで収める） */
.phase2-side__cert {
  padding: 14px 12px;
}

.phase2-side__cert .footer-agency__cert {
  gap: 12px;
}

.phase2-side__cert .footer-agency__cert-item {
  gap: 8px;
}

.phase2-side__cert .footer-agency__cert-logo {
  height: 40px;
}

.phase2-side__cert .footer-agency__licenses {
  min-width: 0;
  align-self: center;
}

.phase2-side__cert .footer-agency__licenses li {
  font-size: 9.5px !important;
  color: var(--phase2-muted) !important;
  letter-spacing: 0 !important;
  line-height: 1.7 !important;
  white-space: nowrap;
}

.phase2-side__cert .footer-agency__cert-note {
  font-size: 9.5px !important;
  color: var(--phase2-muted) !important;
  letter-spacing: 0 !important;
  line-height: 1.6 !important;
  padding-top: 0 !important;
  align-self: center;
}

.phase2-page input[type="text"],
.phase2-page input[type="tel"],
.phase2-page input[type="email"],
.phase2-page select {
  width: 100%;
  padding: 13px 12px;
  border: 1.5px solid var(--phase2-input-line);
  border-radius: 10px;
  background: var(--phase2-card);
  color: var(--phase2-ink);
  font-size: 16px;
  line-height: 1.3;
}

.phase2-page input[type="text"]:focus,
.phase2-page input[type="tel"]:focus,
.phase2-page input[type="email"]:focus,
.phase2-page select:focus {
  border-color: var(--phase2-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.phase2-page button:focus-visible,
.phase2-page a:focus-visible,
.phase2-header-tel__number:focus-visible,
.phase2-product-card:focus-within,
.phase2-segment:focus-within,
.phase2-agreement:focus-within {
  border-color: var(--phase2-teal);
  outline: 2px solid var(--phase2-teal);
  outline-offset: 2px;
}

.phase2-page input::placeholder {
  color: var(--phase2-muted);
  opacity: 0.65;
}

.phase2-field.is-error input[type="text"],
.phase2-field.is-error input[type="tel"],
.phase2-field.is-error input[type="email"],
.phase2-field.is-error select {
  border-color: var(--phase2-required);
  background: var(--phase2-required-soft);
}

.phase2-field.is-error .phase2-product-card,
.phase2-field.is-error .phase2-segment,
.phase2-field.is-error .phase2-agreement {
  border-color: var(--phase2-required);
}

.phase2-error {
  display: none;
  margin: 5px 0 0;
  color: var(--phase2-required);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.phase2-field.is-error > .phase2-error {
  display: block;
}

.phase2-hint,
.phase2-service-error,
.phase2-zip-help {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.phase2-hint {
  color: var(--phase2-muted);
}

.phase2-service-error {
  color: var(--phase2-required);
}

.phase2-zip-help a {
  color: var(--phase2-teal-deep);
  text-decoration: underline;
}

.phase2-row-two {
  display: flex;
  gap: 10px;
}

.phase2-row-two > div {
  flex: 1;
  min-width: 0;
}

.phase2-zip-row {
  display: flex;
  gap: 8px;
}

.phase2-zip-row input {
  flex: 1;
  min-width: 0;
}

.phase2-zip-row button {
  flex: none;
  padding: 0 14px;
  border: 1.5px solid var(--phase2-teal-line);
  border-radius: 8px;
  background: var(--phase2-teal-soft);
  color: var(--phase2-teal-deep);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.phase2-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase2-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--phase2-teal-line);
  border-radius: 10px;
  background: var(--phase2-card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.phase2-product-card > input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--phase2-teal);
}

.phase2-product-card__logo {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 44px;
  padding: 3px;
  border-radius: 6px;
  background: #fff;
}

.phase2-product-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.phase2-product-card__text {
  color: var(--phase2-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.phase2-product-card__text small {
  display: block;
  color: var(--phase2-muted);
  font-size: 12px;
  font-weight: 400;
}

.phase2-product-card.is-selected {
  border-color: var(--phase2-teal);
  background: var(--phase2-teal-soft);
}

.phase2-segments {
  display: flex;
  gap: 10px;
}

.phase2-segment {
  position: relative;
  flex: 1;
  padding: 12px;
  overflow: hidden;
  border: 1.5px solid var(--phase2-line);
  border-radius: 8px;
  color: var(--phase2-muted);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.phase2-segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.phase2-segment.is-selected {
  border-color: var(--phase2-teal);
  background: var(--phase2-teal-soft);
  color: var(--phase2-teal-deep);
}

.phase2-birth {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phase2-birth select {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

.phase2-birth span {
  flex: none;
  color: var(--phase2-muted);
  font-size: 14px;
}

.phase2-cross-sell {
  border: 1.5px solid var(--phase2-teal-line);
  background: var(--phase2-teal-soft);
}

.phase2-cross-sell h3 {
  margin: 0 0 10px;
  color: var(--phase2-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.phase2-cross-sell .phase2-product-card {
  background: var(--phase2-card);
}

.phase2-cross-sell .phase2-product-card.is-selected {
  background: var(--phase2-teal-soft);
}

.phase2-consent-summary {
  margin: 0 0 10px;
  padding-left: 22px;
  list-style: disc;
  color: var(--phase2-ink);
  font-size: 13.5px;
  line-height: 1.6;
}

.phase2-consent-summary li {
  margin-bottom: 4px;
}

.phase2-privacy {
  margin-bottom: 14px;
  border: 1px solid var(--phase2-line);
  border-radius: 8px;
  font-size: 13px;
}

.phase2-privacy summary {
  padding: 10px 12px;
  color: var(--phase2-teal-deep);
  font-weight: 700;
  cursor: pointer;
}

.phase2-privacy__body {
  max-height: 210px;
  padding: 12px;
  overflow-y: auto;
  border-top: 1px solid var(--phase2-line);
  color: var(--phase2-muted);
  line-height: 1.65;
}

.phase2-privacy__body h4,
.phase2-privacy__body p,
.phase2-privacy__body dl,
.phase2-privacy__body dt,
.phase2-privacy__body dd {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.65;
}

.phase2-privacy__body h4,
.phase2-privacy__body dt {
  margin-top: 12px;
  font-weight: 700;
}

.phase2-privacy__body h4:first-child {
  margin-top: 0;
}

.phase2-agreement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 2px solid var(--phase2-teal-line);
  border-radius: 10px;
  color: var(--phase2-ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.phase2-agreement input {
  flex: none;
  width: 24px;
  height: 24px;
  accent-color: var(--phase2-teal);
}

.phase2-agreement__text {
  flex: 1;
}

.phase2-field--agreement.is-ok .phase2-agreement .phase2-badge--required {
  display: none;
}

.phase2-field--agreement.is-ok .phase2-agreement .phase2-badge--done {
  display: inline-block;
}

.phase2-agreement.is-selected {
  border-color: var(--phase2-teal);
  background: var(--phase2-teal-soft);
}

.phase2-tel-alternative {
  margin: 0 0 14px;
  padding: 20px 16px;
  border: 1px solid var(--phase2-line);
  border-radius: 14px;
  background: var(--phase2-card);
  box-shadow: var(--phase2-shadow);
  color: var(--phase2-muted);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}

.phase2-tel-alternative a {
  color: var(--phase2-teal-deep);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

/* sticky=スクロール中は画面下に固定・ページ末尾ではフッターの上に着地。
   全幅ブリードは下のメディア別マージンで実現 */
.phase2-cta-bar {
  position: sticky;
  bottom: 0;
  z-index: 1500;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--phase2-line);
  background: var(--phase2-card);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.phase2-cta-bar__inner {
  max-width: 640px;
  margin: 0 auto;
}

.phase2-cta-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* 電話ボタン: サイドバー(電話カード)が見えないSP/タブレットのみ表示 */
.phase2-cta-tel {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 68px;
  padding: 5px 10px;
  border: 1.5px solid #1e3a5f;
  border-radius: 10px;
  background: #fff;
  color: #1e3a5f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.phase2-cta-tel__icon {
  width: 18px;
  height: auto;
  /* teal画像をネイビーへ変換（ヘッダーと同一フィルタ） */
  filter: brightness(0) saturate(1) invert(0.2) sepia(0.27) saturate(15.48) hue-rotate(174deg) brightness(0.89) contrast(0.91);
}

#submit-btn {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 10px;
  /* ボタン自体が進捗ゲージ: JSが更新する--cta-progressぶんだけ左から塗る
     (background-sizeはアニメーション可能なためゲージが滑らかに伸びる) */
  background-color: #eef1f5;
  background-image: linear-gradient(#ccdaee, #ccdaee);
  background-repeat: no-repeat;
  background-size: var(--cta-progress, 0%) 100%;
  color: #5b6673;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-size 0.25s, background-color 0.2s, color 0.2s;
}

#submit-btn.is-ready {
  background-color: var(--phase2-accent);
  background-image: none;
  color: var(--phase2-teal-deep);
}

#submit-btn.is-ready:hover,
#submit-btn.is-ready:focus-visible {
  background-color: var(--phase2-accent-deep);
}

/* 入力完了前の強調(デザイナーFB 2026-08-07): 未完了の間は「電話でご請求」をオレンジ塗りにし、
   「あと〇項目で完了します」の文字を濃色にする。完了後はJSがバーへis-readyを付け、
   電話は白枠に戻り送信ボタンがオレンジを引き継ぐ(=オレンジは常に1画面1箇所) */
.phase2-cta-bar:not(.is-ready) .phase2-cta-tel {
  border-color: var(--phase2-accent);
  background: var(--phase2-accent);
  color: var(--phase2-teal-deep);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35);
}

.phase2-cta-bar:not(.is-ready) #submit-btn {
  color: var(--phase2-ink);
}

.phase2-cta-bar p {
  margin: 6px 0 0;
  color: var(--phase2-muted);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
}

@supports selector(:has(*)) {
  .phase2-product-card:has(> input[type="checkbox"]:checked) {
    border-color: var(--phase2-teal);
    background: var(--phase2-teal-soft);
  }

  .phase2-segment:has(input:checked) {
    border-color: var(--phase2-teal);
    background: var(--phase2-teal-soft);
    color: var(--phase2-teal-deep);
  }

  .phase2-cross-sell .phase2-product-card:has(> input[type="checkbox"]:checked) {
    background: var(--phase2-teal-soft);
  }

  .phase2-agreement:has(input:checked) {
    border-color: var(--phase2-teal);
    background: var(--phase2-teal-soft);
  }
}

@media (max-width: 767px) {
  body:not(.top) main.phase2-page {
    padding-top: 16px;
  }
}

/* 1024px未満: CTAバーの全幅ブリード（親=中央寄せカラムのため対称マージンでよい）
   bodyのoverflow-x:hiddenはstickyを殺すためvisibleに（クリップはhtmlが担当） */
@media (max-width: 1023px) {
  body:not(.top) {
    overflow: visible;
  }

  .phase2-cta-bar {
    margin: 0 calc(50% - 50vw);
  }
}

@media (min-width: 480px) {
  .phase2-card,
  .phase2-tel-alternative {
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  body:not(.top) {
    overflow: visible;
  }

  .phase2-shell {
    display: grid;
    grid-template-columns: minmax(0, 640px) 300px;
    gap: 24px;
    max-width: 964px;
  }

  .phase2-main {
    min-width: 0;
  }

  .phase2-side {
    display: block;
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100dvh - 16px - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .phase2-trust {
    display: none;
  }

  .phase2-cta-bar__inner {
    box-sizing: border-box;
    max-width: 964px;
    padding-right: 324px;
  }

  /* CTAバー全幅ブリード: バーの親=左カラム(640px)はシェル964px中央配置の左側で
     画面中央からずれるため、非対称マージンで左右端を画面端に一致させる
     (width auto = 640px - mL - mR = 100vw になる組み合わせ) */
  .phase2-cta-bar {
    margin-left: calc((964px - 100vw) / 2);
    margin-right: calc(158px - 50vw);
  }

  .phase2-cta-tel {
    display: none;
  }

  /* サイドバーに電話カードがあるため「お電話でのご請求もできます」はPC非表示（重複回避） */
  .phase2-tel-alternative {
    display: none;
  }

  .phase2-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
  }

  /* 入力画面のPCはサイドバーに認証マーク帯があるためフッター側は非表示（重複回避） */
  main.phase2-page ~ footer .l-footer__cert {
    display: none;
  }
}

@media (max-width: 390px) {
  .phase2-birth {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase2-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ============================================
   商品未選択時の救済画面(旧「フォームは存在しません」)
   ============================================ */
.phase2-noselect {
  margin: 0 0 48px;
}

.phase2-noselect__card {
  background: var(--phase2-card);
  border: 1px solid var(--phase2-line);
  border-radius: 14px;
  box-shadow: var(--phase2-shadow);
  padding: 32px 28px;
}

.phase2-noselect__title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--phase2-teal-deep);
  text-align: center;
  text-wrap: balance;
}

.phase2-noselect__lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--phase2-ink);
}

.phase2-noselect__links {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--phase2-line);
}

.phase2-noselect__links li {
  border-bottom: 1px solid var(--phase2-line);
}

.phase2-noselect__links a {
  position: relative;
  display: block;
  padding: 13px 28px 13px 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--phase2-teal);
  text-decoration: none;
}

.phase2-noselect__links a::after {
  content: "\203A";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--phase2-muted);
}

.phase2-noselect__links a:hover {
  background: var(--phase2-teal-soft);
}

.phase2-noselect__tel {
  padding: 18px 16px;
  background: var(--phase2-teal-soft);
  border-radius: 10px;
  text-align: center;
}

.phase2-noselect__tel-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--phase2-teal-deep);
}

.phase2-noselect__tel-number {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  color: var(--phase2-teal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.phase2-noselect__tel-note {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--phase2-muted);
}

@media (min-width: 1024px) {
  /* PCはサイドバーの電話カードがあるため救済画面カード内の電話は非表示(重複回避=入力画面と同ルール) */
  .phase2-noselect__tel {
    display: none;
  }
}
