:root {
    color-scheme: dark;
    --ink: #ecedf0;
    --heading: #ffc089;
    --heading-light: #ffdab4;
    --heading-deep: #ffa966;
    --muted: #acbbce;
    --paper: #101b2a;
    --header: #132337;
    --surface: #1c2d40;
    --line: #405269;
    --control-line: #8296ad;
    --link: #c5dbef;
    --button-fill: #d9e3ec;
    --button-ink: #182a3b;
    --button-hover: #ffffff;
    --hover: #2a435b;
    --status: #25394c;
    --focus: #b8e1ff;
    --error-fill: #3b2932;
    --error-ink: #ffcabf;
    --serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
    font-family: system-ui, "Hiragino Kaku Gothic ProN", sans-serif;
    color: var(--ink);
    background: radial-gradient(ellipse at 70% 10%, #263e59, transparent 42%), var(--paper);
    line-height: 1.65;
}

* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
.work-qr-image { display: block; width: min(100%, 18rem); height: auto; margin-block: 1rem; }

@media print {
    body.work-qr-print { display: block; min-height: 0; background: #fff; color: #000; }
    body.work-qr-print > header,
    body.work-qr-print > .skip,
    body.work-qr-print > footer,
    body.work-qr-print main > :not(.work-qr-sheet),
    body.work-qr-print .work-qr-operations { display: none; }
    body.work-qr-print main { width: 100%; padding: 0; }
    body.work-qr-print .work-qr-sheet { background: #fff; border: 0; margin: 0; padding: 0; break-inside: avoid; }
    body.work-qr-print .work-qr-sheet h2 { color: #000; }
}

header { background: var(--header); color: var(--ink); border-bottom: 1px solid var(--line); }
nav, main, .site-footer-inner { width: min(100% - 2rem, 62rem); margin: auto; }
nav, .nav-links { display: flex; align-items: center; gap: .9rem 1.4rem; flex-wrap: wrap; }
nav { justify-content: space-between; min-height: 4.375rem; padding: .65rem 0; }
nav a { color: inherit; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.nav-links { font-size: .875rem; }
.brand { font: 500 clamp(1.2rem, 2.4vw, 1.6rem)/1.35 var(--serif); letter-spacing: .09em; }
main { flex: 1; padding: 1.5rem 0 4rem; }
.event-banner { display: block; margin-top: 2rem; }
.event-banner img { display: block; width: 100%; height: auto; }
.site-footer { border-top: 1px solid var(--line); background: var(--header); color: var(--muted); }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; font-size: .875rem; }
.site-footer-inner small { font-size: inherit; }
a { color: var(--link); text-underline-offset: .19em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}
.skip { position: absolute; top: .5rem; left: .5rem; padding: .55rem .8rem; background: var(--surface); translate: 0 -150%; z-index: 1; }
.skip:focus { translate: 0; }
h1, h2, h3 { color: var(--heading); font-family: var(--serif); font-weight: 600; line-height: 1.45; }
h1 { font-size: clamp(2rem, 5.4vw, 3.45rem); letter-spacing: .05em; margin: .45rem 0 1.4rem; }
@supports (background-clip: text) {
    @media (forced-colors: none) {
        h1 {
            background: linear-gradient(105deg, var(--heading-light), var(--heading-deep) min(30rem, 100%));
            background-clip: text;
            color: transparent;
        }
    }
}
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); margin: 0 0 1rem; }
h3 { font-size: 1.23rem; margin: 0 0 .35rem; }
p { margin: .45rem 0; }
section { margin: 2rem 0; }
.back, .muted { font-size: .9rem; color: var(--muted); }
.intro { margin: 0 0 2rem; padding: clamp(1rem, 5vw, 3rem) 0 1.5rem; border-bottom: 1px solid var(--line); }
.intro-copy { max-width: 44rem; margin-bottom: 1.4rem; }
.intro-copy p + p { margin-top: .85rem; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    min-height: 4.25rem;
    padding: .95rem clamp(.75rem, 3vw, 1.5rem);
    font: 600 clamp(1rem, 2.6vw, 1.3rem)/1.5 var(--serif);
    border: 1px solid var(--link);
    text-decoration: none;
}
.route:hover, .switcher a:hover { background: var(--hover); }
.route.primary, button { color: var(--button-ink); background: var(--button-fill); }
.route.primary:hover, button:hover { background: var(--button-hover); }
article, details, .panel {
    background: var(--surface);
    padding: clamp(.85rem, 2.3vw, 1.4rem);
    margin: 0 0 .8rem;
    border: 1px solid var(--line);
}
details { max-width: 44rem; }
summary { cursor: pointer; }
.show-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.15rem; }
.show-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .8rem;
    width: fit-content;
    padding: .4rem .65rem;
    margin: .45rem 0 .7rem;
    border-left: 3px solid var(--control-line);
    background: var(--status);
    font-size: 1.0625rem;
}
.tag { display: inline-block; margin-inline-start: .22rem; color: var(--link); }
.detail-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; }
.public-timing > * { display: block; }
.switcher { display: flex; flex-wrap: wrap; margin-bottom: .8rem; }
.switcher a { display: inline-flex; align-items: center; min-height: 2.75rem; border: 1px solid var(--line); padding: .35rem .85rem; text-decoration: none; }
.switcher a[aria-current] { background: var(--button-fill); color: var(--button-ink); }
.staff-navigation { width: 100%; justify-content: flex-start; min-height: 0; gap: .4rem; padding: 0; margin: 0 0 1.5rem; }
.search-form { margin-bottom: .5rem; }
.slot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.slot-list article { margin: 0; }
.times { display: flex; gap: .35rem; flex-wrap: wrap; list-style: none; padding: 0; margin: .65rem 0 0; }
.times li { padding: .12rem .4rem; border: 1px solid var(--line); }
form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: .7rem 0; }
label { display: grid; gap: .2rem; max-width: 100%; }
input, select, button { font: inherit; padding: .4rem .65rem; min-height: 2.75rem; }
input, select { border: 1px solid var(--control-line); border-radius: 0; max-width: 100%; min-width: 0; background: var(--header); color: var(--ink); }
button { border: 1px solid var(--link); border-radius: 0; cursor: pointer; }
button.secondary { color: var(--link); background: transparent; }
button.secondary:hover { background: var(--hover); }
button.line-login-button { color: #fff; background: #075c34; border-color: #4ea878; font-weight: 650; }
button.line-login-button:hover { background: #08713d; }
button.google-login-button { color: #fff; background: #1a56b8; border-color: #7aaeff; font-weight: 650; }
button.google-login-button:hover { background: #204d9b; }
.login-choices { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: .7rem 0; }
.login-choices form { margin: 0; }
.notice, .error { padding: .75rem 1rem; overflow-wrap: anywhere; border-left: 3px solid var(--link); }
.notice { background: var(--status); }
.error { background: var(--error-fill); color: var(--error-ink); border-left-color: var(--error-ink); }
code { overflow-wrap: anywhere; }

@media (max-width: 36rem) {
    .routes, .slot-list { grid-template-columns: 1fr; }
    .show-card { display: block; }
    .search-form label, .detail form label { width: 100%; }
    .search-form button, .detail form button { width: 100%; }
}

.route small { display: block; margin-top: .2rem; font: 400 .86rem/1.45 system-ui, sans-serif; }
.times li { padding: 0; }
.times a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .6rem; text-decoration: none; }
.times a:hover { background: var(--hover); text-decoration: underline; }
#request-form { margin-top: 1.25rem; }

.priority-heading { grid-column: 1 / -1; margin: .4rem 0 0; }
.search-form fieldset { margin: 0; padding: .25rem .6rem; border: 1px solid var(--line); }
.search-form fieldset label { display: inline-flex; align-items: center; width: auto; margin-inline-end: .5rem; }
.search-form input:is([type="checkbox"], [type="radio"]) { min-height: 0; }

.private-slot-day { background: #304961; }
.private-slot-night { background: #152438; }

.experience-progress { margin: 1.5rem 0; }
.experience-progress h2 { font-size: 1.1rem; margin-bottom: .55rem; }
.experience-progress dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.experience-progress dl > div { background: var(--surface); border: 1px solid var(--line); padding: .55rem .4rem; text-align: center; }
.experience-progress dt { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.experience-progress dd { color: var(--heading); font-size: clamp(1.15rem, 5vw, 1.8rem); font-variant-numeric: tabular-nums; font-weight: 700; margin: 0; }

.experience-list { list-style: none; margin: 1.25rem 0; padding: 0; }
.experience-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.experience-list h3 { font-size: 1.15rem; margin: 0; }
.experience-group-form { display: block; }
.experience-heading, .experience-form { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.experience-heading h2 { margin: 0; }
.experience-form label { display: inline-flex; align-items: center; min-height: 2.75rem; }
.experience-form input[type="checkbox"] { min-height: 0; }

.booking-kind, .staff-assignment {
    display: table;
    margin: 0 0 .32rem;
    padding: .1rem .5rem;
    border: 1px solid currentColor;
    font-size: .85rem;
    font-weight: 650;
    line-height: 1.45;
}
.booking-kind-private { color: #ffbeb7; }
.booking-kind-open, .staff-assignment { color: #b8dcff; }
.booking-kind-spectator { margin-inline-end: .5em; vertical-align: middle; color: #c3f6e7; background: #1c4746; border-color: #7dc9b6; }
.staff-assignment { overflow-wrap: anywhere; }
.reservation-list article + article { margin-top: .9rem; }
:is(.reservation-list, .reservation-history) .booking-kind-private { color: #fff; border-color: #f28a96; background: #862f3d; }
:is(.reservation-list, .reservation-history) .booking-kind-open { color: #fff; border-color: #8bbdff; background: #245587; }

.slot-work { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.25rem; }
.slot-work h3 { margin: 0; }
.slot-periods { display: flex; flex-wrap: wrap; gap: .55rem; }
.slot-period { border: 1px solid var(--control-line); padding: .35rem .85rem; }

.work-skills { align-items: center; margin: 0; }
.work-skills h3 { flex: 1 1 14rem; margin: 0; }
.work-skills-options { display: flex; flex-wrap: wrap; gap: .2rem .9rem; flex: 2 1 13rem; min-width: 0; }
.work-skills-options label { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.work-skills-options input { min-height: 0; }

.work-skills-rule { flex: 1 1 12rem; min-width: 0; }
.work-skills-rule label { display: inline-flex; align-items: center; min-height: 2.75rem; }
.work-skills-rule input { min-height: 0; }
.work-skills-rule p { margin: .25rem 0; }

.ng-tabs { width: auto; justify-content: flex-start; min-height: 0; gap: .3rem; }
.ng-form { display: block; }
.ng-table { width: 100%; border-collapse: collapse; margin: 1rem 0; table-layout: fixed; }
.ng-table caption { text-align: left; margin-bottom: .5rem; font-weight: 650; }
.ng-table th, .ng-table td { padding: .45rem .25rem; border-bottom: 1px solid var(--line); text-align: center; }
.ng-table th:first-child { text-align: left; width: 54%; }
.ng-table th[scope="row"] { font-weight: 400; }
.ng-table input { min-height: 0; width: 1.2rem; height: 1.2rem; vertical-align: middle; }

.member-time-form label { display: inline-flex; align-items: center; min-height: 2.75rem; }
.member-time-form input { min-height: 0; }

.week-range { color: var(--muted); font-size: .9rem; }
