/* 選ばれたあとの進め方（動画⑦）専用の見た目。deck.css / manual.css / board.css の上に重ねる */

/* ---------- 全体の流れ ---------- */
.af-flow { margin-top: 44px; display: flex; gap: 18px; }
.af-fstep { position: relative; width: 300px; padding: 30px 22px 22px; border-radius: 22px; background: #fff; border: 1px solid rgba(0,25,158,.1);
  box-shadow: 0 16px 40px rgba(20,30,90,.1); text-align: left; box-sizing: border-box; }
.af-fstep .no { position: absolute; left: -12px; top: -14px; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #5b6cff, #00199E);
  color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff; }
.af-fstep b { display: block; font-size: 28px !important; font-weight: 800; color: #141a3a; }
.af-fstep p { margin: 10px 0 0; font-size: 20px !important; line-height: 1.6; color: #3b4166; }
.af-fstep.is-goal { border: 2.5px solid #d77bcb; }
.af-fstep.is-goal .no { background: linear-gradient(135deg, #d77bcb, #a43f98); }
.af-lanes { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; width: 1580px; }
.af-lane { display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-radius: 18px; background: #fff; text-align: left; box-shadow: 0 10px 26px rgba(20,30,90,.08); }
.af-lane img { width: 58px; height: 58px; max-width: none !important; border-radius: 50%; }
.af-lane b { flex: none; width: 150px; font-size: 24px !important; font-weight: 800; }
.af-lane p { margin: 0; font-size: 21px !important; line-height: 1.5; color: #24294a; }
.af-lane.s { border-left: 8px solid #a43f98; } .af-lane.s b { color: #a43f98; }
.af-lane.b { border-left: 8px solid #1f39d8; } .af-lane.b b { color: #1f39d8; }

/* ---------- 2列（提供者・取得者） ---------- */
.af-two { margin-top: 40px; display: flex; gap: 34px; text-align: left; }
.af-col { width: 740px; padding: 28px 34px; border-radius: 24px; background: #fff; box-shadow: 0 18px 44px rgba(20,30,90,.1); box-sizing: border-box; }
.af-col.s { border: 2.5px solid #e6b3df; } .af-col.b { border: 2.5px solid #b3c0ff; }
.af-col h3 { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 28px; font-weight: 800; }
.af-col.s h3 { color: #a43f98; } .af-col.b h3 { color: #1f39d8; }
.af-col h3 img { width: 56px; height: 56px; max-width: none !important; border-radius: 50%; }
.af-col ul { margin: 6px 0 0; padding: 0; list-style: none; }
.af-col li { margin-top: 14px; list-style: none; }
.af-col li b { display: block; font-size: 24px !important; font-weight: 800; color: #141a3a; }
.af-col li span { display: block; margin-top: 3px; font-size: 20px !important; line-height: 1.5; color: #3b4166; }
.af-col p { margin: 10px 0 0; font-size: 22px !important; line-height: 1.6; color: #24294a; }
.af-two-sm { margin-top: 30px; }
.af-two-sm .af-col { padding: 22px 30px; }
.af-tip { margin-top: 30px; max-width: 1500px; padding: 18px 28px; border-radius: 16px; background: #fdf1fb; border: 1.5px solid #e6b3df;
  font-size: 22px !important; line-height: 1.6; color: #4a2045; text-align: left; }
.af-tip b { display: block; font-size: 20px !important; color: #a43f98; margin-bottom: 4px; }
.af-tip-gray { background: #f3f5fb; border-color: #cfd5ea; color: #2b3150; }
.af-tip-gray b { color: #4b5170; }
.af-law { max-width: 1500px; }

/* ---------- 契約 ---------- */
.af-pair { margin-top: 36px; display: flex; align-items: center; gap: 40px; }
.af-who { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 200px; }
.af-who img { width: 96px; height: 96px; max-width: none !important; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 10px 22px rgba(20,30,90,.16); }
.af-who b { font-size: 22px !important; font-weight: 800; }
.af-who small { font-size: 17px !important; color: #4b5170; font-weight: 700; }
.af-who.s b { color: #a43f98; } .af-who.b b { color: #1f39d8; } .af-who.o b { color: #2f8a5f; }
.af-doc { display: flex; flex-direction: column; align-items: center; padding: 18px 40px; border-radius: 18px; background: #fff; border: 2.5px solid #9aa6ff; box-shadow: 0 14px 34px rgba(0,25,158,.14); }
.af-doc-ic { font-size: 40px; }
.af-doc b { font-size: 28px !important; font-weight: 800; color: #00199E; }
.af-doc small { font-size: 18px !important; color: #3b4166; }
.af-three { margin-top: 34px; }
.af-three .bd-card { width: 500px; }
.af-three .bd-card b { font-size: 28px !important; }
.af-three .bd-card p { font-size: 22px !important; }
.af-three .bd-card .no { background: linear-gradient(135deg, #5b6cff, #00199E); }
.af-warn { color: #8a3a00 !important; font-weight: 700; }

.af-tri { margin-top: 44px; display: flex; align-items: center; gap: 10px; }
.af-tri .af-who img.g { display: none; }
.af-tri .af-who.is-gray img.n { display: none; }
.af-tri .af-who.is-gray img.g { display: block; }
.af-tri .af-who.is-gray b, .af-tri .af-who.is-gray small { color: #a9adc2; }
.af-line { position: relative; width: 300px; height: 0; border-top: 5px solid #2f8a5f; }
.af-line.dot { border-top: 5px dashed #c9a3c4; width: 220px; }
.af-line span { position: absolute; left: 50%; top: -48px; transform: translateX(-50%); white-space: nowrap; padding: 4px 16px; border-radius: 999px; font-size: 20px; font-weight: 800; background: #fff; }
.af-line.solid span { color: #1d6b45; border: 2px solid #8fd1ad; }
.af-line.dot span { color: #8a4f84; border: 2px dashed #d9b3d4; }

/* ---------- お金のタイミング ---------- */
.af-money { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; width: 1500px; }
.af-mrow { display: flex; gap: 22px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgba(20,30,90,.1); text-align: left; }
.af-mrow.is-close { border: 2.5px solid #d77bcb; }
.af-mwhen { width: 360px; flex: none; padding: 6px 10px; }
.af-mwhen span { display: inline-block; padding: 4px 14px; border-radius: 999px; background: #00199E; color: #fff; font-size: 17px; font-weight: 800; }
.af-mrow.is-close .af-mwhen span { background: #a43f98; }
.af-mwhen b { display: block; margin-top: 10px; font-size: 28px !important; font-weight: 800; color: #141a3a; line-height: 1.35; }
.af-mwhen small { display: block; margin-top: 6px; font-size: 19px !important; color: #4b5170; }
.af-mitems { flex: 1; display: flex; gap: 18px; }
.af-mi { flex: 1; padding: 18px 22px; border-radius: 16px; background: #f5f7fc; }
.af-mi b { display: block; font-size: 26px !important; font-weight: 800; color: #141a3a; }
.af-mi p { margin: 8px 0 0; font-size: 22px !important; font-weight: 700; color: #1f39d8; }
.af-mi small { display: block; margin-top: 8px; font-size: 19px !important; line-height: 1.5; color: #3b4166; }
.af-mrow.is-close .af-mi p { color: #a43f98; }

/* ---------- まとめ（3列） ---------- */
.af-sum { gap: 26px; }
.af-sum .hfx-check, .af-sum .hfx-status { width: 540px; padding: 28px 30px; }
.af-sum .hfx-check li { font-size: 20px !important; padding-left: 38px; }
.af-check.s h3 { color: #a43f98; } .af-check.b h3 { color: #1f39d8; }
.af-check.b li::before { color: #1f39d8; }

/* ---------- 画面の再現：提案詳細・連絡先・確認ダイアログ ---------- */
.hfx-page .floating-negotiate-box { position: relative !important; inset: auto !important; left: auto !important; right: auto !important; bottom: auto !important; top: auto !important; margin: 26px auto 0; width: 760px; transform: none !important; }
.hfx-page .floating-negotiate-box__inner p { font-size: 13px; line-height: 1.6; margin-top: 10px; }
.hfx-ctable { width: 100%; border-collapse: collapse; }
.hfx-ctable th, .hfx-ctable td { border: 1px solid #e3e6f0; padding: 10px 16px; text-align: left; vertical-align: top; font-size: 16px !important; line-height: 1.6; }
.hfx-ctable th { width: 180px; background: #f5f7fc; color: #4b5170; font-weight: 700; }
.hfx-ctable td { color: #222; font-weight: 700; }
.af-contact { max-width: 760px; margin: 26px auto 0; padding: 20px 24px 18px; border-radius: 14px; background: #fff; border: 2px solid #e55a8f; box-shadow: 0 10px 26px rgba(229,90,143,.16); }
.af-contact-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: #fdeaf2; color: #b8336a; font-size: 17px; font-weight: 800; }
.af-ok { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #e55a8f; color: #fff; align-items: center; justify-content: center; font-size: 15px; }
.af-contact-n { margin: 12px 0 0; font-size: 14px; color: #4b5170; }
.af-confirm { position: absolute; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(20,28,80,.35); }
.af-confirm.on { display: flex; }
.af-confirm-box { width: 560px; padding: 28px 30px 22px; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.af-confirm-box p { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.6; color: #141a3a; }
.af-confirm-box small { font-size: 15px; font-weight: 500; color: #4b5170; }
.af-confirm-btns { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.af-cbtn { padding: 9px 26px; border-radius: 8px; border: 1.5px solid #cfd5ea; font-size: 16px; font-weight: 700; color: #4b5170; }
.af-cbtn.is-ok { background: #a43f98; border-color: #a43f98; color: #fff; }
.af-bhero { max-width: 760px; margin: 10px auto 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(20,30,90,.08); }
.af-bcase { margin: 0; font-size: 18px; font-weight: 800; color: #141a3a; }
.af-bsum { max-width: 760px; margin: 16px auto 0; display: flex; gap: 16px; }
.af-bsum div { flex: 1; padding: 14px 18px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(20,30,90,.08); }
.af-bsum span { display: block; font-size: 14px; color: #4b5170; font-weight: 700; }
.af-bsum b { display: block; margin-top: 4px; font-size: 22px; color: #141a3a; }
.af-bsum small { font-size: 14px; }
.hfx-stage .badge { white-space: nowrap; }

.af-col p b, .af-tip b.in, .bd-link p b { font-size: inherit !important; }
.af-col p b { font-weight: 800; color: #141a3a; }

/* ---------- まとめ：マニュアル用の終わり方（全マニュアル動画で統一） ---------- */
#scene-after .hfx-title { margin-top: 0; }
#scene-after .af-sum { margin-top: 30px; }
.af-rel { display: flex; flex-direction: column; gap: 4px; }
.af-rel a.bd-nx { text-decoration: none; color: inherit; cursor: pointer; padding: 8px 10px; margin-top: 8px; border-radius: 14px; }
.af-rel a.bd-nx:hover { background: #f5f7fc; }
.af-endbtns { margin-top: 34px; display: flex; gap: 26px; justify-content: center; }
.af-endbtn { width: 420px; padding: 20px 0; border-radius: 999px; font: inherit; font-size: 26px; font-weight: 800; cursor: pointer;
  border: 2.5px solid #a43f98; background: #fff; color: #a43f98; box-shadow: 0 12px 28px rgba(164,63,152,.16); }
.af-endbtn.is-main { background: linear-gradient(135deg, #d77bcb, #a43f98); color: #fff; border-color: transparent; }
.af-foot { margin: 26px 0 0; font-size: 17px !important; color: #626789; }
.af-foot a { color: #1a33c8; font-weight: 700; }

/* まとめ：チェックリスト2列 → 主ボタン → 関連する動画（横1列） → 小さな案内 */
.af-sum .hfx-check { width: 760px; }
.af-rel { margin-top: 26px; display: flex; flex-direction: row; align-items: center; gap: 18px; justify-content: center; }
.af-rel-h { font-size: 19px; font-weight: 800; color: #4b5170; }
.af-rel a.bd-nx { margin-top: 0; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: #fff; border: 1px solid #e3e6f0; border-radius: 999px; }
.af-rel a.bd-nx p { font-size: 18px !important; white-space: nowrap; }
.af-rel a.bd-nx p b { font-size: 19px !important; }
.af-foot { margin-top: 20px; }

/* 前の場面の要素が、表示中の場面のボタンのクリックを横取りしないように */
.scene-frame:not(.is-active), .scene-frame:not(.is-active) * { pointer-events: none !important; }
