:root {
    --event-navy: #082b59;
    --event-navy-dark: #041d3d;
    --event-red: #ef2d1f;
    --event-gold: #c99226;
    --event-cream: #f8f3e9;
    --event-border: #aab5c5;
    --event-muted: #5d6673;
}

* { box-sizing: border-box; }
body.event-page { margin: 0; color: #101722; background: #fff; font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; }
.event-page img { max-width: 100%; height: auto; }
.event-hero { display: grid; grid-template-columns: 50% 50%; grid-template-rows: minmax(0, 1fr); height: 315px; overflow: hidden; border-top: 3px solid var(--event-navy-dark); }
.event-hero-logo { min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px 4%; background: #fff; }
.event-hero-logo img { width: min(90%, 680px); max-height: 275px; object-fit: contain; }
.event-hero-photo { min-height: 0; overflow: hidden; }
.event-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.event-facts { min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 38px; padding: 12px 20px; background: linear-gradient(90deg, #fbf8f2, #f4ecdd, #fbf8f2); color: var(--event-navy-dark); }
.event-fact { display: flex; align-items: center; gap: 14px; min-width: 300px; }
.event-fact strong, .event-fact small { display: block; }
.event-fact strong { font-size: clamp(1.08rem, 2vw, 1.55rem); letter-spacing: .04em; }
.event-fact small { font-size: 1rem; }
.event-facts-divider { width: 1px; height: 44px; background: #b79861; }
.round-icon { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--event-navy); }
.event-icon { flex-shrink: 0; text-align: center; }
.round-icon .event-icon, .btn-icon .event-icon { width: 28px; font-size: 28px; }
.event-main { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 18px; }
.event-main.narrow { width: min(870px, calc(100% - 28px)); }
.event-heading { position: relative; margin: 0 0 10px; color: var(--event-navy-dark); text-align: center; font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: .16em; }
.event-subheading { margin: 0 0 18px; text-align: center; font-size: 1.12rem; letter-spacing: .12em; }
.form-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px 24px; align-items: center; }
.form-label-title { margin: 0; font-weight: 700; }
.required-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; color: #fff; background: #d9271c; border-radius: 2px; font-size: .73rem; vertical-align: 2px; }
.event-page .form-control, .event-page .form-select { min-height: 50px; border-color: #7d8ca2; border-radius: 4px; font-size: 1rem; }
.event-page .form-control:focus, .event-page .form-select:focus { border-color: var(--event-navy); box-shadow: 0 0 0 .2rem rgb(8 43 89 / 12%); }
.event-notice { margin: 20px 0 16px; padding: 12px 18px; border: 1px solid #e9b85f; border-radius: 5px; background: #fffaf1; text-align: center; }
.event-notice > .event-icon { width: 26px; margin-right: 10px; color: var(--event-navy); font-size: 26px; vertical-align: middle; }
.event-notice strong { color: #e52519; }
.consent-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.consent-row .form-check { margin: 0; }
.event-link { color: #064bb5; text-underline-offset: 4px; }
.btn-event-primary { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 18px; width: min(940px, 100%); margin: 0 auto; border: 0; border-radius: 6px; color: #fff; background: linear-gradient(90deg, #ec2619, #f33b27, #e92d1f); font-size: clamp(1.15rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: .05em; box-shadow: none; }
.btn-event-primary:hover, .btn-event-primary:focus { color: #fff; background: #d92216; }
.btn-event-primary:disabled { background: #8b929c; }
.btn-icon { display: inline-flex; }
.btn-event-secondary { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; border: 2px solid var(--event-navy); border-radius: 6px; color: var(--event-navy); background: #fff; font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.btn-event-secondary > .event-icon { width: 28px; flex: 0 0 auto; font-size: 28px; }
.event-back-link { display: block; margin: 14px auto 0; text-align: center; }
.event-footer { padding: 22px 16px; color: #fff; background: linear-gradient(90deg, var(--event-navy-dark), #0b376d, var(--event-navy-dark)); text-align: center; letter-spacing: .08em; }
.event-closed { max-width: 850px; margin: 24px auto; padding: 30px; border: 1px solid #d5dce5; border-radius: 8px; text-align: center; background: #fafbfc; }
.event-compact-header { min-height: 205px; display: flex; align-items: center; justify-content: space-between; gap: 50px; width: min(1280px, calc(100% - 48px)); margin: auto; padding: 15px 32px; }
.event-compact-header > img { width: min(510px, 45%); max-height: 185px; object-fit: contain; }
.registration-step { flex: 1; display: flex; align-items: flex-start; justify-content: center; color: var(--event-muted); }
.step { min-width: 180px; text-align: center; }
.step span { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 10px; border: 2px solid #888; border-radius: 50%; font-size: 2.2rem; }
.step.active { color: var(--event-navy); }
.step.active span { color: #fff; background: var(--event-navy); border-color: var(--event-navy); }
.step strong, .step small { display: block; }
.step-line { width: 180px; height: 2px; margin-top: 35px; background: #838b96; }
.registration-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; padding-top: 16px; }
.registration-layout:not(.has-parking-map) { grid-template-columns: 1fr; }
.registration-form .form-grid { grid-template-columns: 175px minmax(0, 1fr); }
.transport-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.transport-option input { position: absolute; opacity: 0; pointer-events: none; }
.transport-option label { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid #7c8ba1; border-radius: 4px; cursor: pointer; }
.transport-option label .event-icon { width: 27px; margin-right: 7px; font-size: 23px; }
.transport-option input:checked + label { color: #fff; border-color: var(--event-navy); background: var(--event-navy); }
.parking-panel { grid-column: 1 / -1; border-top: 1px solid #c8ced7; padding-top: 16px; }
.parking-status { margin-top: 10px; padding: 12px; border: 1px solid #e8b665; border-radius: 4px; background: #fff9ee; }
.parking-status strong { color: #ba6600; }
.parking-map { border: 1px solid #8290a4; border-radius: 5px; overflow: hidden; align-self: center; }
.parking-map img { display: block; width: 100%; }
.registration-submit { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid #d3d8df; }
.pass-page { background: var(--event-navy-dark); padding: 4px; }
.pass-sheet { width: min(860px, 100%); margin: 0 auto; padding: 24px 42px 0; border-radius: 12px 12px 0 0; background: #fff; }
.pass-logo { display: block; width: min(560px, 82%); margin: 0 auto 8px; }
.pass-title { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 8px 0 14px; color: var(--event-navy); font-size: clamp(1.7rem, 4vw, 2.35rem); font-weight: 800; letter-spacing: .08em; }
.pass-card, .pass-map { border: 2px solid var(--event-navy); border-radius: 8px; overflow: hidden; }
.pass-card-title, .pass-map-title { margin: 0; padding: 8px; color: #fff; background: linear-gradient(90deg, var(--event-navy-dark), #0d417d); text-align: center; font-size: 1.35rem; font-weight: 700; }
.qr-wrap { padding: 10px; text-align: center; }
.qr-wrap img { width: min(360px, 80vw); image-rendering: pixelated; }
.pass-facts { border-top: 1px solid var(--event-navy); }
.pass-details { width: 100%; margin: 14px 0; border-collapse: collapse; }
.pass-details th, .pass-details td { padding: 8px 14px; border-bottom: 1px solid #d5d8dd; text-align: left; }
.pass-details th { width: 200px; color: var(--event-navy); }
.pass-warning { margin: 14px 0; padding: 12px 20px; border: 1px solid #e8a83b; border-radius: 8px; background: #fff8eb; }
.pass-parking-notice { padding: 14px 18px; border-bottom: 1px solid #e8a83b; background: #fff8eb; text-align: center; }
.pass-parking-notice strong { display: block; color: var(--event-navy); font-size: 1.2rem; line-height: 1.6; }
.pass-parking-notice strong span { color: #b3261e; font-size: 1.45em; white-space: nowrap; }
.pass-parking-notice p { margin: 6px 0 0; font-size: .95rem; }
.pass-actions { display: grid; gap: 10px; padding: 10px 0 14px; }
.pass-sheet + .event-footer { width: min(860px, 100%); margin: auto; }
.mail-complete { max-width: 800px; margin: 35px auto; padding: 30px; text-align: center; }

@media (max-width: 767.98px) {
    .event-hero { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
    .event-hero-logo { min-height: 190px; padding: 12px; }
    .event-hero-photo { height: 170px; }
    .event-facts { gap: 12px; justify-content: space-around; padding: 10px; }
    .event-fact { min-width: 0; gap: 8px; }
    .event-fact strong { font-size: .9rem; }
    .event-fact small { font-size: .76rem; }
    .round-icon { width: 38px; height: 38px; }
    .round-icon .event-icon { width: 21px; font-size: 21px; }
    .event-facts-divider { height: 38px; }
    .event-main { width: min(100% - 24px, 720px); padding-top: 20px; }
    .form-grid, .registration-form .form-grid { grid-template-columns: 1fr; gap: 7px; }
    .form-grid .form-label-title:not(:first-child) { margin-top: 9px; }
    .event-compact-header { min-height: auto; width: 100%; flex-direction: column; gap: 8px; padding: 12px; }
    .event-compact-header > img { width: min(520px, 88%); }
    .registration-step { width: 100%; transform: scale(.82); }
    .step-line { width: 70px; }
    .registration-layout { grid-template-columns: 1fr; gap: 20px; }
    .transport-options { grid-template-columns: 1fr; }
    .registration-submit { grid-column: auto; }
    .pass-sheet { padding: 16px 14px 0; }
    .pass-details th { width: 118px; }
    .pass-details th, .pass-details td { padding: 7px 5px; font-size: .92rem; }
}

@media print {
    @page { size: A4 portrait; margin: 8mm; }
    body.pass-page { background: #fff; padding: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .pass-sheet { width: 100%; padding: 6mm 8mm 0; }
    .pass-logo { width: 50%; }
    .pass-title { font-size: 20pt; margin: 2mm 0; }
    .qr-wrap { padding: 2mm; }
    .qr-wrap img { width: 58mm; }
    .pass-card-title, .pass-map-title { padding: 2mm; font-size: 13pt; }
    .event-facts { min-height: 15mm; padding: 1mm; }
    .event-fact strong { font-size: 11pt; }
    .event-fact small { font-size: 9pt; }
    .round-icon { width: 9mm; height: 9mm; }
    .pass-details { margin: 2mm 0; }
    .pass-details th, .pass-details td { padding: 1.5mm 3mm; font-size: 10pt; }
    .pass-warning { margin: 2mm 0; padding: 2mm 4mm; font-size: 10pt; }
    .pass-map { break-inside: avoid; }
    .pass-parking-notice { padding: 2mm 4mm; }
    .pass-parking-notice strong { font-size: 11pt; line-height: 1.4; }
    .pass-parking-notice p { margin: 1mm 0 0; font-size: 9pt; }
    .pass-map img { max-height: 70mm; object-fit: contain; }
    .pass-actions, .pass-sheet + .event-footer { display: none !important; }
}
