/* 動画⑤ はじめての方（登録からログイン）専用の見た目。deck.css / manual.css / board.css の上に重ねる */

/* ---------- ログイン・会員登録・パスワード再発行（STGの body.login を、画面の中で再現） ---------- */
.hfx-stage .l5-auth { width: 1440px; min-height: 828px; background: #f4f4f4; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0 0; box-sizing: border-box; }
.hfx-stage .l5-auth .mk-login-logo { left: 0; margin: 0 auto 36px; width: 280px; }
.hfx-stage .l5-auth .mk-login-logo img { width: 280px; display: block; }
.hfx-stage .l5-auth .mk-footer-login { margin: 60px 0 30px; color: #777; font-size: 13px; }
.hfx-stage .l5-auth .auth-entry__submit { position: relative; width: 100%; padding: 16px; font-family: inherit; }
.hfx-stage .l5-auth .auth-entry__submit-arrow { width: 28px; transform: translateY(-50%); }
.hfx-stage .l5-auth .auth-entry__field input, .hfx-stage .l5-auth .has-icon input { width: 100%; font-family: inherit; font-size: 15px; }
.hfx-stage .l5-auth .has-icon > img#toggle { position: absolute; }
.hfx-stage .l5-forgot { color: #4b5563; font-size: 14px; text-decoration: underline; }
.hfx-stage .l5-forgot-form { width: 520px; text-align: center; }
.hfx-stage .l5-forgot-form .c-title h2 { color: #00199e; font-size: 24px; font-weight: 700; margin: 0 0 14px; }
.hfx-stage .l5-forgot-lead { font-size: 13px; line-height: 1.8; color: #333; margin: 0 0 28px; }
.hfx-stage .l5-forgot-form .c-form-group input { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; background: #fff; font-family: inherit; }
.hfx-stage .l5-forgot-form .c-buttons { margin-top: 22px; display: flex; justify-content: center; }
.hfx-stage .l5-forgot-form .c-button { min-width: 260px; padding: 14px 30px; border: 0; border-radius: 999px; background: #dd8dd3; color: #fff; font-size: 16px; font-weight: 700; font-family: inherit; }

/* 会社・店舗情報の入力（再現） */
.hfx-stage .l5-auth.is-form { justify-content: flex-start; padding-top: 40px; }
.hfx-stage .l5-form { width: 760px; padding: 36px 44px 40px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); text-align: center; }
.hfx-stage .l5-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid #eee; text-align: left; }
.hfx-stage .l5-row > label { font-size: 14px; font-weight: 700; color: #333; line-height: 1.5; }
.hfx-stage .l5-req, .hfx-stage .l5-opt { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; font-size: 11px; color: #fff; background: #dd8dd3; vertical-align: 1px; }
.hfx-stage .l5-opt { background: #b5b9c9; }
.hfx-stage .l5-field input[type=text], .hfx-stage .l5-field input[type=password], .hfx-stage .l5-field select { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid #e9e4ff; border-radius: 8px; background: #f3f0ff; font-size: 14px; font-family: inherit; color: #222; }
.hfx-stage .l5-field input[readonly] { background: #eceef3; color: #666; }
.hfx-stage .l5-field small { display: block; margin-top: 4px; font-size: 12px; color: #888; }
.hfx-stage .l5-check { font-size: 14px; color: #333; display: flex; align-items: center; gap: 8px; }
.hfx-stage .l5-check input { width: 18px; height: 18px; }
.hfx-stage .l5-form .c-buttons { margin-top: 28px; }

/* TOP（ログイン直後） */
.hfx-stage .l5-dash { width: 1440px; min-height: 828px; background: linear-gradient(172deg, #dd8dd3, #eec6e9); padding: 0 0 60px; box-sizing: border-box; }
.hfx-stage .l5-dash-h { position: relative; height: 120px; display: flex; align-items: center; justify-content: center; }
.hfx-stage .l5-dash-logo { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hfx-stage .l5-dash-logo img { width: 190px; filter: brightness(0) invert(1); }
.hfx-stage .l5-dash-logo span { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.hfx-stage .l5-burger { position: absolute; right: 60px; top: 38px; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hfx-stage .l5-burger i { width: 18px; height: 2px; background: #454545; }
.hfx-stage .l5-dash-items { width: 1200px; margin: 20px auto 0; display: flex; gap: 19px; justify-content: center; }
.hfx-stage .l5-item { flex: 0 0 286px; min-height: 300px; padding: 25px; box-sizing: border-box; border-radius: 20px; background: #fff; text-align: left; }
.hfx-stage .l5-ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 55px; }
.hfx-stage .l5-ic img { width: 50px; height: 50px; }
.hfx-stage .l5-item h2 { margin: 0 0 12px; color: #7954e1; font-size: 24px; font-weight: 700; }
.hfx-stage .l5-item p { margin: 0; color: #454545; font-size: 14px; line-height: 1.57; }
.hfx-stage .l5-dash-info { width: 952px; margin: 40px auto 0; padding: 40px 50px 40px 65px; box-sizing: border-box; border-radius: 30px; background: #fff; display: flex; gap: 20px; text-align: left; }
.hfx-stage .l5-dash-info > h2 { flex: 0 0 190px; margin: 0; font-size: 20px; color: #454545; }
.hfx-stage .l5-dash-info h3 { margin: 0 0 8px; font-size: 14px; color: #454545; display: flex; gap: 16px; align-items: center; }
.hfx-stage .l5-dash-info h3 span { color: #dd8dd3; font-size: 11px; }
.hfx-stage .l5-dash-info p { margin: 0; font-size: 12px; color: #454545; }

/* ---------- 説明の場面 ---------- */
.l5-cover-title { font-size: 74px !important; }
.l5-roles { margin-top: 44px; display: flex; gap: 40px; }
.l5-role { width: 700px; padding: 32px 36px 30px; border-radius: 26px; background: #fff; box-shadow: 0 18px 44px rgba(20,30,90,.1); text-align: left; box-sizing: border-box; border: 2.5px solid transparent; }
.l5-role.s { border-color: #e7a6dd; } .l5-role.b { border-color: #9fb0ff; }
.l5-role-h { display: flex; align-items: center; gap: 20px; }
.l5-role-h img { width: 96px; height: 96px; max-width: none !important; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(20,30,90,.14); }
.l5-role-h b { display: block; font-size: 36px !important; font-weight: 800; }
.l5-role.s .l5-role-h b { color: #a43f98; } .l5-role.b .l5-role-h b { color: #1f39d8; }
.l5-role-h small { display: block; margin-top: 2px; font-size: 20px !important; font-weight: 700; color: #4b5170; }
.l5-role p { margin: 18px 0 0; font-size: 23px !important; line-height: 1.6; color: #3b4166; }
.l5-url { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: #f5f6fb; }
.l5-url span { flex: none; padding: 4px 14px; border-radius: 999px; color: #fff; font-size: 18px; font-weight: 800; }
.l5-role.s .l5-url span { background: #a43f98; } .l5-role.b .l5-url span { background: #1f39d8; }
.l5-url code { font-family: inherit; font-size: 25px; font-weight: 800; color: #141a3a; letter-spacing: .01em; }
.l5-note { margin-top: 30px; max-width: 1440px; padding: 16px 28px; border-radius: 16px; background: #fff7e6; border: 1.5px solid #f5c26b; font-size: 23px !important; line-height: 1.6; color: #4a3200; text-align: left; }
.l5-note b { color: #8a5d00; font-size: 23px !important; font-weight: 800; }

.l5-flow { margin-top: 50px; display: flex; gap: 14px; align-items: stretch; }
.l5-fs { position: relative; width: 330px; padding: 34px 24px 26px; border-radius: 22px; background: #fff; border: 1px solid rgba(0,25,158,.1); box-shadow: 0 18px 44px rgba(20,30,90,.1); text-align: left; box-sizing: border-box; }
.l5-fs .no { position: absolute; left: -12px; top: -12px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #8b7bf0, #5b45d6); color: #fff; font-size: 23px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff; }
.l5-fs .ic { font-size: 42px; line-height: 1; }
.l5-fs b { display: block; margin-top: 12px; font-size: 27px !important; font-weight: 800; color: #141a3a; line-height: 1.35; }
.l5-fs p { margin: 10px 0 0; font-size: 20px !important; line-height: 1.6; color: #3b4166; }
.l5-fs.is-goal { border: 2.5px solid #8fd1ad; }
.l5-fs .who { display: inline-block; margin-top: 12px; padding: 2px 12px; border-radius: 999px; background: #eef0f8; font-size: 16px !important; font-weight: 700; color: #4b5170; }
.l5-fs .who.op { background: #e6f5ec; color: #1f7a45; }

.l5-mailbox { margin-top: 40px; display: flex; gap: 44px; align-items: flex-start; text-align: left; }
.l5-mail { width: 760px; padding: 28px 32px; border-radius: 20px; background: #fff; border: 1px solid #e3e6f0; box-shadow: 0 22px 60px rgba(20,30,90,.16); box-sizing: border-box; }
.l5-mail-h { display: flex; align-items: center; gap: 14px; }
.l5-mail-h .ic { width: 50px; height: 50px; border-radius: 12px; background: #f1f0ff; color: #5b45d6; display: grid; place-items: center; font-size: 27px; }
.l5-mail-h b { font-size: 25px; color: #141a3a; }
.l5-mail-h small { font-size: 17px; color: #8a90ac; }
.l5-mail-b { margin: 18px 0 0; font-size: 21px; line-height: 1.7; color: #3b4166; }
.l5-mail-link { display: inline-block; margin-top: 16px; padding: 10px 26px; border-radius: 999px; background: #5b45d6; color: #fff; font-size: 21px; font-weight: 800; }
.l5-tips { width: 620px; padding: 26px 32px; border-radius: 20px; background: #fff; box-shadow: 0 18px 44px rgba(20,30,90,.1); box-sizing: border-box; }
.l5-tips h3 { margin: 0 0 6px; font-size: 27px; font-weight: 800; color: #8a5d00; }
.l5-tips li { margin-top: 14px; font-size: 22px !important; line-height: 1.55; color: #3b4166; list-style: none; }
.l5-tips ul { margin: 0; padding: 0; }
.l5-tips li b { display: block; font-size: 23px !important; color: #141a3a; }

.l5-wait { margin-top: 46px; display: flex; gap: 22px; align-items: stretch; }
.l5-wait > div { width: 470px; padding: 28px 28px 26px; border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(20,30,90,.1); text-align: left; box-sizing: border-box; }
.l5-wait .lb { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 18px; font-weight: 800; color: #fff; background: #8a90ac; }
.l5-wait .is-done .lb { background: #2f9e57; }
.l5-wait b { display: block; margin-top: 12px; font-size: 29px !important; font-weight: 800; color: #141a3a; }
.l5-wait p { margin: 10px 0 0; font-size: 21px !important; line-height: 1.6; color: #3b4166; }
.l5-limits { margin-top: 30px; display: flex; gap: 22px; }
.l5-limits > div { width: 720px; padding: 18px 26px; border-radius: 16px; text-align: left; font-size: 21px !important; line-height: 1.6; box-sizing: border-box; }
.l5-limits .s { background: #fbeaf7; color: #5e1f56; } .l5-limits .b { background: #ecefff; color: #16248a; }
.l5-limits b { display: block; font-size: 20px !important; }

.l5-good { margin-top: 44px; display: flex; gap: 26px; }
.l5-good > div { width: 470px; padding: 30px 30px 28px; border-radius: 24px; background: #fff; box-shadow: 0 18px 44px rgba(20,30,90,.1); text-align: left; box-sizing: border-box; border-top: 8px solid #8b7bf0; }
.l5-good .ic { font-size: 40px; line-height: 1; }
.l5-good b { display: block; margin-top: 12px; font-size: 29px !important; font-weight: 800; color: #141a3a; line-height: 1.35; }
.l5-good p { margin: 12px 0 0; font-size: 21px !important; line-height: 1.6; color: #3b4166; }

.l5-qs .hfx-q { width: 470px; min-height: 290px; }
.l5-next .bd-nx .b.s { background: #a43f98; } .l5-next .bd-nx .b.b { background: #1f39d8; }
.l5-next .bd-nx a { color: inherit; text-decoration: none; font-size: 20px !important; line-height: 1.5; }
.l5-next .bd-nx a b { font-size: 22px !important; color: #141a3a; }

/* ---------- 最後の画面（マニュアル共通の形） ---------- */
.l5-end .hfx-title { margin-bottom: 0; }
.l5-endcheck { margin: 34px 0 0; padding: 22px 34px; list-style: none; display: grid; grid-template-columns: repeat(2, 560px); gap: 12px 40px; border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(20,30,90,.08); text-align: left; }
.l5-endcheck li { position: relative; padding-left: 38px; font-size: 24px !important; line-height: 1.5; color: #2a3056; }
.l5-endcheck li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: #e6f5ec; color: #1f7a45; font-size: 18px; font-weight: 800; display: grid; place-items: center; }
.l5-endbtns { margin-top: 40px; display: flex; gap: 26px; justify-content: center; align-items: flex-start; }
.l5-endbtn { box-sizing: border-box; width: 400px; height: 86px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 2.5px solid #c9cdea; background: #fff; color: #1d2142; font-family: inherit; font-size: 26px !important; font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: 0 12px 28px rgba(20,30,90,.10); }
.l5-endbtn:hover, .l5-endbtn:focus-visible { border-color: #5b45d6; outline: none; }
.l5-endbtn.is-main { border: 0; background: linear-gradient(135deg, #d77bcb, #7b5ce0); color: #fff; }
.l5-endreg { position: relative; }
.l5-endchoice { display: none; position: absolute; left: 0; right: 0; top: 98px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(20,30,90,.22); z-index: 5; }
.l5-endchoice.on { display: grid; gap: 10px; }
.l5-endchoice a { display: block; padding: 14px 10px; border-radius: 14px; color: #fff; font-size: 23px !important; font-weight: 800; text-decoration: none; text-align: center; }
.l5-endchoice a.s { background: #a43f98; } .l5-endchoice a.b { background: #1f39d8; }
.l5-endnext { margin-top: 40px !important; font-size: 21px !important; color: #4b5170; }
.l5-endnext span { display: inline-block; margin: 0 8px 0 10px; padding: 2px 12px; border-radius: 999px; color: #fff; font-size: 17px !important; font-weight: 800; }
.l5-endnext span.s { background: #a43f98; } .l5-endnext span.b { background: #1f39d8; }
.l5-endnext a, .l5-endconsult a { color: #2a3fc4; font-weight: 700; }
.l5-endconsult { margin-top: 18px !important; font-size: 19px !important; color: #6b7090; }
.l5-endbtns { position: relative; z-index: 10; }
.l5-endchoice { border: 1px solid #e3e6f0; }
.l5-endnext a { font-size: 21px !important; } .l5-endconsult a { font-size: 19px !important; }
/* 非表示の場面の要素が、表示中の場面のボタンの上でクリックを横取りしないように（動画④で見つかった不具合の予防） */
.scene-frame:not(.is-active), .scene-frame:not(.is-active) * { pointer-events: none !important; }
