* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; background: #fff; color: #333; font: 14px/1.5 Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
[hidden] { display: none !important; }
.page { min-height: 100vh; padding-top: 51px; }
.site-header { position: fixed; z-index: 4; inset: 0 0 auto; height: 51px; background: #ffc100; border-bottom: 1px solid #fff; }
.header-inner { height: 50px; display: flex; align-items: center; padding: 5px 5px 5px 0; }
.brand { margin: 0; padding: 6px 0 2px 10px; line-height: 1; }
.brand img { display: block; width: 167px; height: 19px; }
.usage-button { flex: 0 0 40px; width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: 4px; background: #fff; color: #1f2a69; font-size: 0; cursor: pointer; }
.usage-button { background: #fff url('/assets/icon/usage-blue.svg') no-repeat center / 27px 29px; }
.help-panel { position: absolute; top: 54px; right: 10px; z-index: 10; width: min(364px, calc(100vw - 20px)); padding: 22px 20px 16px; background: #fff; border: 1px solid #bfbfbf; box-shadow: 0 2px 5px #0002; }
.help-panel p { margin: 0 0 12px; color: #222; font-weight: bold; }
.help-panel ul { margin: 12px 0 0; padding-left: 19px; }
.help-panel li { margin: 6px 0; }
.help-close { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #555; font-size: 23px; cursor: pointer; }
.login-card { width: 100%; margin: 40px 0 0; padding: 40px 0 0; }
.credential-list { margin: 0 9% 10px; padding: 0; list-style: none; }
.credential-list li { width: 100%; margin: 0 0 15px; padding: 0; background: none; }
.field-label { margin: 0 0 4px; font-weight: 700; }
.fake-input { width: 100%; min-height: 46px; margin: 0; padding: 10px 2% 9px 10px; border: 1px solid #ccc; border-radius: 5px; background: #fff; color: #333; font-size: 16px; line-height: 25px; }
.show-password-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.fake-checkbox { position: relative; display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid #999; border-radius: 3px; background: #fff; }
.login-button { position: relative; display: block; width: 84%; min-height: 51px; margin: 0 8% 30px; padding: 12px 10px; border: 1px solid #ccc; border-radius: 3px; background: #00006c url('/assets/loginbtn-icon.png') no-repeat 15% center / 24px auto; color: #fff; font: inherit; font-size: 1.2em; font-weight: 700; text-align: center; cursor: pointer; }
.login-button:hover { background: #15157a; }
.login-button:focus-visible, button:focus-visible { outline: 3px solid #78aef3; outline-offset: 2px; }
.text-link { display: inline; padding: 0; border: 0; background: none; color: #1f2a69; font: inherit; text-decoration: underline; cursor: pointer; }
.footer-area { margin-top: 0; padding-top: 30px; background: #fafafa; }
.terms-band { padding: 0 0 30px; background: transparent; border: 0; text-align: center; }
.terms-inner { width: min(960px, 92%); margin: 0 auto; }
.terms-inner > .text-link { display: inline-block; margin-bottom: 14px; color: #666; }
.maintenance-note { width: min(490px, 100%); margin: 0 auto; padding: 10px 20px; background: #f2f2f2; text-align: left; font-size: 12px; line-height: 18px; }
.terms-inner .maintenance-note ul { margin: 0; padding: 0; list-style: none; }
.maintenance-note li { margin: 0; padding: 0; line-height: 18px; }
.maintenance-note li::before { content: "※"; margin-right: 4px; color: #e00; }
.terms-inner ul, .recommend-area ul { margin: 4px 0; padding-left: 18px; }
.terms-inner li, .recommend-area li { padding: 0; background: none; }
.recommend-area { width: min(1180px, calc(100vw - 30px)); max-width: none; margin: 0 auto; padding: 30px 0 32px; border-top: 1px solid #ddd; color: #555; font-size: 12px; }
.recommend-content { width: min(100%, 472px); margin: 0 auto; }
.recommend-area h2 { margin: 0 0 12px; padding: 0; background: none; text-align: left; font-size: 14px; }
.recommend-area h3 { margin: 11px 0 3px; font-size: 13px; }
.recommend-area p { margin: 0 0 10px; line-height: 1.65; }
.notice { width: min(480px, calc(100% - 36px)); margin: 15vh auto 0; padding: 24px; border: 1px solid #d0d0d0; border-radius: 5px; background: #fff; box-shadow: 0 2px 8px #0000000d; }
.notice h1 { margin: 0 0 12px; color: #222; font-size: 19px; }
.notice p { margin: 0 0 12px; }
.retry-button { padding: 8px 17px; border: 0; border-radius: 3px; background: #00006c; color: white; font: inherit; cursor: pointer; }
.debrief { position: fixed; z-index: 20; inset: 0; display: flex; overflow-y: auto; padding: 18px; background: #21080de6; }
.debrief-card { width: min(560px, 100%); margin: auto; overflow: hidden; border: 1px solid #d64853; border-radius: 14px; background: #fff; box-shadow: 0 20px 70px #100306a6, 0 0 32px #b61b3a4d; }
.debrief-alert { display: flex; align-items: center; gap: 18px; padding: 26px 28px; background: linear-gradient(110deg, #b1122d, #790e23); color: #fff; }
.debrief-icon { flex: 0 0 auto; width: 54px; height: 54px; color: #ffe397; }
.debrief-kicker { margin: 0 0 4px; color: #ffdde3; font-size: 13px; font-weight: 700; letter-spacing: 0.09em; }
.debrief-alert h2 { margin: 0; font-size: clamp(20px, 4.4vw, 28px); line-height: 1.35; text-wrap: balance; }
.debrief-content { padding: 22px 28px 26px; }
.debrief-content h3 { margin: 18px 0 8px; color: #8c132a; font-size: 16px; }
.debrief-content p { margin: 0 0 12px; }
.debrief-content ul { margin: 0 0 18px; padding-left: 1.4em; }
.debrief-content li { margin: 0 0 8px; }
.contact-line { font-weight: bold; }
.event-status { padding: 10px 12px; border: 1px solid #d9b349; border-radius: 4px; background: #fff8df; color: #493d1a; }
.debrief-close { width: 100%; min-height: 46px; margin-top: 8px; padding: 10px 14px; border: 0; border-radius: 7px; background: #a8152d; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.debrief-close:hover { background: #861125; }
@media (prefers-reduced-motion: no-preference) {
  .debrief-icon { animation: debrief-heartbeat 760ms ease-out; }
}
@keyframes debrief-heartbeat {
  0%, 32%, 62%, 100% { transform: scale(1); }
  16% { transform: scale(1.19); }
  48% { transform: scale(1.10); }
}
@media (min-width: 600px) {
  .login-card { width: 384px; min-height: 327px; margin: 60px auto 100px; padding: 30px 0 0; border: 1px solid #ccc; box-shadow: 0 3px 9px #0002; }
  .credential-list { margin: 0 8% 31px; }
  .fake-input { min-height: 41px; padding: 10px 2% 8px 10px; font-size: 13px; line-height: 21px; }
}
@media (max-width: 599px) {
  .login-card { margin-top: 35px; margin-bottom: 76px; padding-top: 0; }
  .credential-list { margin-bottom: 31px; }
  .login-button { width: 82%; margin: 6px 9% 30px; }
  .footer-area { padding-top: 30px; }
  .terms-band { padding-bottom: 30px; }
  .maintenance-note { width: 100%; }
  .recommend-area { width: calc(100% - 30px); padding-top: 30px; }
  .recommend-area h2 { text-align: left; }
  .debrief-alert { gap: 13px; padding: 20px 18px; }
  .debrief-icon { width: 42px; height: 42px; }
  .debrief-content { padding: 18px; }
}
