:root {
    --bg: #eef6ff;
    --panel: rgba(255, 255, 255, 0.94);
    --panel-edge: rgba(38, 92, 203, 0.14);
    --ink: #12305f;
    --muted: #59739b;
    --accent: #1d63e3;
    --accent-strong: #1448b8;
    --accent-soft: #dce9ff;
    --accent-highlight: #7ed6ff;
    --danger: #b43c49;
    --shadow: 0 18px 48px rgba(17, 52, 117, 0.14);
    --radius: 24px;
    --max-width: 1120px;
    --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(126, 214, 255, 0.42), transparent 26%),
        radial-gradient(circle at top right, rgba(29, 99, 227, 0.16), transparent 24%),
        linear-gradient(180deg, #dcebff 0%, #eef6ff 38%, #f7fbff 100%),
        var(--bg);
    font-family: var(--font-sans);
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 1.2rem; }
button, input, select, textarea { font: inherit; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

input, select, textarea {
    width: 100%;
    border: 1px solid rgba(38, 92, 203, 0.18);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.92);
}

textarea { resize: vertical; }

.app-shell, .auth-shell { padding-bottom: 2rem; position: relative; }
.page-wrap, .auth-layout { width: min(calc(100% - 2rem), var(--max-width)); margin: 0 auto; }

.topbar {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 1.25rem auto 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, rgba(17, 71, 184, 0.92), rgba(30, 111, 235, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.brand-mark { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; color: #fff; }
.brand-sub, .muted-copy, .meta-text { color: var(--muted); margin: 0.2rem 0 0; }
.topbar .brand-sub { color: rgba(255, 255, 255, 0.82); }
.topbar-actions, .inline-actions, .hero-actions, .footer-links { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.topbar-actions { justify-content: flex-end; }
.page-wrap, .content-page { display: grid; gap: 1.25rem; }

.panel, .hero-panel, .auth-card {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.panel, .auth-card { padding: 1.4rem; }

.hero-panel {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
    background:
        linear-gradient(135deg, rgba(29,99,227,0.12), rgba(255,255,255,0.76)),
        var(--panel);
}

.home-hero { grid-template-columns: 1.15fr .95fr; align-items: start; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

.section-title, h1, h2 { font-family: var(--font-sans); margin: 0; }

.cta-grid, .grid.two-column, .feature-grid, .plan-grid, .article-grid, .legal-link-grid {
    display: grid;
    gap: 1rem;
}

.grid.two-column { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature-grid, .article-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.legal-link-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card-link, .stack-card, .chip-card, .link-card, .feature-card, .plan-card, .article-card, .legal-link-card, .promo-banner {
    display: block;
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(38, 92, 203, 0.12);
}

.card-link.accent, .primary-button {
    background: linear-gradient(135deg, #164dbf, #2f79ff 68%, #66d6ff);
    color: white;
}

.plan-card.is-premium,
.promo-banner {
    background: linear-gradient(180deg, rgba(29,99,227,0.12), rgba(255,255,255,0.92));
}

.legal-link-card { text-align: center; font-weight: 700; }
.feature-card, .article-card, .promo-banner { display: grid; gap: 0.6rem; }

.secondary-button, .ghost-link {
    background: transparent;
    color: var(--accent-strong);
}

.primary-button, .secondary-button, .danger-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 16px;
    padding: 0.95rem 1.1rem;
    cursor: pointer;
}

.compact { padding: 0.7rem 0.95rem; }
.danger-button, .danger-link { color: var(--danger); }

.stack-form, .field, .stack-list, .link-card-list, .timeline, .chip-list, .subsection, .section-stack, .definition-list {
    display: grid;
    gap: 0.9rem;
}

.inner-panel {
    padding: 1.2rem;
}

.field span { display: block; margin-bottom: 0.4rem; font-size: 0.92rem; color: var(--muted); }
.checkbox-row { display: flex; gap: 0.6rem; align-items: center; }
.checkbox-row input { width: auto; }

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.timeline-item, .stack-card { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.stack-card > div, .timeline-item > div { display: grid; gap: 0.25rem; }
.stack-card.plain { align-items: center; }

.flash { border-radius: 18px; padding: 0.95rem 1rem; }
.flash.success { background: #ddf8ef; color: #0a5f58; }
.flash.error { background: #fde9e4; color: #8b342b; }
.flash-list { margin: 0; padding-left: 1.1rem; }

.empty-state, .note-box {
    border-radius: 18px;
    padding: 1rem;
    background: rgba(246, 248, 247, 0.92);
    color: var(--muted);
}

.bullet-list { color: var(--muted); display: grid; gap: 0.45rem; }

.pill, .status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.rich-copy { display: grid; gap: 1rem; line-height: 1.8; }
.rich-copy h2 { margin-top: 0.4rem; }
.rich-copy p { margin: 0; }

.definition-list {
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 0.9rem 1rem;
}

.definition-list dt { font-weight: 700; }
.definition-list dd { margin: 0; color: var(--muted); }

.table-scroll {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(38, 92, 203, 0.12);
    background: rgba(255, 255, 255, 0.82);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.data-table th,
.data-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(38, 92, 203, 0.1);
    white-space: nowrap;
}

.data-table th {
    background: rgba(29, 99, 227, 0.08);
    color: var(--accent-strong);
    font-size: 0.92rem;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.auth-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.auth-hero p { max-width: 38rem; }
.auth-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.legal-footer {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 1rem auto 0;
    padding: 1.1rem 1.15rem 1.35rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(38, 92, 203, 0.1);
    box-shadow: var(--shadow);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (min-width: 721px) {
    .legal-footer {
        display: none;
    }
}

.footer-primary-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-primary-links a {
    text-align: center;
    padding: 0.85rem 0.75rem;
    border-radius: 16px;
    background: rgba(29, 99, 227, 0.06);
    color: var(--accent-strong);
    font-weight: 700;
}

.home-summary-panel,
.summary-card,
.ticket-modal-card,
.history-image-card {
    display: grid;
    gap: 0.85rem;
}

.home-summary-head {
    text-align: center;
}

.home-summary-grid,
.park-hours-grid {
    display: grid;
    gap: 1rem;
}

.home-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.summary-card {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(38, 92, 203, 0.1);
    background: rgba(255, 255, 255, 0.82);
}

.summary-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.summary-heading h2 {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--font-sans);
}

.park-hours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.park-hours-card {
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    display: grid;
    gap: 0.25rem;
    color: #fff;
}

.park-hours-card span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.park-hours-card strong {
    font-size: 1.2rem;
}

.park-hours-card.is-land {
    background: linear-gradient(135deg, #ff6a47, #ff9536 72%, #ffc15a);
}

.park-hours-card.is-sea {
    background: linear-gradient(135deg, #1750c5, #3381ff 70%, #77deff);
}

.weather-now {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.weather-table-scroll .data-table {
    min-width: 460px;
    table-layout: fixed;
}

.weather-table td,
.weather-table th {
    text-align: center;
    padding: 0.7rem 0.45rem;
    font-size: 0.84rem;
}

.steps-list { padding-left: 1.2rem; color: var(--muted); }
.danger-zone { margin-top: 1rem; }
.is-inactive { opacity: 0.72; }
[hidden] { display: none !important; }

.menu-button, .menu-close, .segmented-button, .filter-chip, .map-node {
    cursor: pointer;
}

.menu-button, .menu-close {
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.menu-button {
    padding: 0.8rem 1rem;
    min-width: 6.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.menu-close {
    width: auto;
    min-height: 2.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    border: 1px solid rgba(17, 71, 184, 0.12);
    background: linear-gradient(135deg, #173b93, #235edb);
    color: #fff;
    box-shadow: 0 10px 26px rgba(17, 52, 117, 0.18);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 28, 78, 0.38);
    z-index: 20;
}

.site-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 380px);
    height: 100vh;
    transform: translateX(106%);
    transition: transform 180ms ease;
    z-index: 24;
}

.site-menu.is-open { transform: translateX(0); }

.site-menu-inner {
    height: 100%;
    padding: 1.4rem 1.2rem 1.8rem;
    background: rgba(247, 251, 255, 0.98);
    border-left: 1px solid rgba(38, 92, 203, 0.12);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 1.1rem;
}

.site-menu-head, .waittime-park-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.site-menu-nav, .site-menu-legal {
    display: grid;
    gap: 0.65rem;
}

.menu-link {
    display: block;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(29, 99, 227, 0.06);
}

.mypage-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.55rem;
    border-radius: 999px;
    background: rgba(247, 251, 255, 0.96);
    border: 1px solid rgba(38, 92, 203, 0.12);
}

.mypage-tabs a {
    text-align: center;
    padding: 0.9rem 0.5rem;
    border-radius: 999px;
    color: var(--muted);
}

.mypage-tabs a.is-active {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
}

.site-menu-section {
    display: grid;
    gap: 0.65rem;
}

.tab-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(17, 71, 184, 0.12), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(38, 92, 203, 0.12);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.segmented-button, .filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(38, 92, 203, 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: var(--accent-strong);
}

.segmented-button {
    min-height: 4.1rem;
    width: 100%;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.segmented-button.is-active[data-park-tone="land"] {
    background: linear-gradient(135deg, #ff6448, #ff8c2f 72%, #ffbb4d);
    color: #fff;
    box-shadow: 0 12px 28px rgba(243, 107, 44, 0.24);
    font-weight: 700;
}

.segmented-button.is-active[data-park-tone="sea"],
.filter-chip.is-active {
    background: linear-gradient(135deg, #174ebf, #3381ff 70%, #77deff);
    color: #fff;
    box-shadow: 0 12px 28px rgba(23, 78, 191, 0.22);
    font-weight: 700;
}

.segmented-button[data-park-tone="land"] {
    border-color: rgba(255, 133, 70, 0.24);
    color: #d9621f;
    background: rgba(255, 247, 241, 0.92);
}

.segmented-button[data-park-tone="sea"] {
    border-color: rgba(29, 99, 227, 0.16);
    color: var(--accent-strong);
}

.waittime-panel { display: grid; gap: 1rem; }
.waittime-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 0.75rem;
}

.waittime-search-field,
.waittime-filter-select {
    display: block;
}

.waittime-park {
    display: none;
    gap: 1rem;
}

.waittime-park.is-active { display: grid; }

.waittime-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.waittime-map-shell {
    display: grid;
    gap: 0.75rem;
}

.leaflet-map {
    height: 480px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(38, 92, 203, 0.12);
}

.zoom-controls {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-start;
}

.map-zoom-button {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    border: 1px solid rgba(38, 92, 203, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-strong);
    font-size: 1.55rem;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(17, 52, 117, 0.08);
}

.waittime-park[data-park-tone="land"] .map-zoom-button {
    border-color: rgba(243, 107, 44, 0.25);
    color: #d9621f;
}

.waittime-park[data-park-tone="sea"] .map-zoom-button {
    border-color: rgba(23, 78, 191, 0.18);
    color: #174ebf;
}

.waittime-list {
    display: grid;
    gap: 1rem;
    max-height: 480px;
    overflow: auto;
}

.waittime-area-group {
    display: grid;
    gap: 0.7rem;
}

.waittime-area-group.is-stopped {
    margin-top: 0.2rem;
}

.waittime-area-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(238, 246, 255, 0.96);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(38, 92, 203, 0.1);
}

.waittime-area-header h3 {
    margin: 0;
    font-size: 0.98rem;
    font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.waittime-area-items {
    display: grid;
    gap: 0.75rem;
}

.waittime-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border-radius: 18px;
    border: 1px solid rgba(38, 92, 203, 0.1);
    background: rgba(255, 255, 255, 0.84);
    padding: 0.95rem 1rem;
}

.waittime-item.is-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.waittime-item.is-button:hover,
.waittime-item.is-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(38, 92, 203, 0.22);
    box-shadow: 0 12px 30px rgba(17, 52, 117, 0.08);
}

.waittime-item-left {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
}

.facility-avatar {
    width: 4.6rem;
    height: 4.6rem;
    flex: 0 0 4.6rem;
    border-radius: 18px;
    border: 1px solid rgba(38, 92, 203, 0.14);
    background: rgba(29, 99, 227, 0.08);
    position: relative;
    overflow: hidden;
}

.facility-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.facility-avatar-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    line-height: 1;
}

.facility-avatar.is-attraction {
    background:
        linear-gradient(180deg, rgba(29, 99, 227, 0.08), rgba(126, 214, 255, 0.22)),
        rgba(255, 255, 255, 0.92);
}

.facility-avatar.is-greeting {
    background:
        linear-gradient(180deg, rgba(194, 59, 114, 0.1), rgba(255, 138, 179, 0.22)),
        rgba(255, 255, 255, 0.92);
}

.facility-avatar.has-image .facility-avatar-fallback {
    display: none;
}

.facility-avatar.is-food {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(255, 141, 47, 0.18), rgba(255, 193, 90, 0.28));
}

.event-list {
    display: grid;
    gap: 0.75rem;
}

.event-park-panel {
    display: grid;
    gap: 1rem;
}

.event-item {
    display: grid;
    gap: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(38, 92, 203, 0.1);
    background: rgba(255, 255, 255, 0.84);
    padding: 0.95rem 1rem;
}

.event-item.is-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.event-main {
    display: grid;
    gap: 0.35rem;
}

.event-description-snippet {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.event-time {
    color: var(--accent-strong);
    font-weight: 700;
}

.event-meta {
    display: flex;
    justify-content: flex-end;
    color: var(--muted);
}

.event-stopped {
    display: grid;
    gap: 0.75rem;
}

.event-stopped h3 {
    margin: 0;
    font-size: 1rem;
}

.operations-happy-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.operations-mini-grid {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.operations-mini-grid span {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.table-link-button {
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.operations-table-scroll .data-table {
    min-width: 0;
    table-layout: fixed;
}

.operations-table th,
.operations-table td {
    padding: 0.8rem 0.7rem;
    font-size: 0.92rem;
}

.operations-table th:first-child,
.operations-table td:first-child {
    width: 6.4rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(8, 28, 78, 0.44);
}

.ticket-modal {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ticket-modal-card {
    width: min(100%, 760px);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1.25rem;
    border-radius: 24px;
    position: relative;
    isolation: isolate;
    background: #f7fbff;
    border: 1px solid rgba(38, 92, 203, 0.12);
    box-shadow: var(--shadow);
}

.facility-modal {
    position: fixed;
    inset: 0;
    z-index: 1220;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.facility-modal-card {
    width: min(100%, 880px);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1.25rem;
    border-radius: 24px;
    position: relative;
    isolation: isolate;
    background: #f7fbff;
    border: 1px solid rgba(38, 92, 203, 0.12);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
}

.facility-modal-body {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.facility-modal-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(38, 92, 203, 0.1);
}

.facility-modal-content {
    display: grid;
    gap: 1rem;
}

.facility-note,
.facility-menu-block {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(38, 92, 203, 0.1);
    background: rgba(255, 255, 255, 0.84);
}

.facility-note {
    display: grid;
    gap: 0.28rem;
}

.facility-note strong {
    color: var(--accent-strong);
    font-size: 0.88rem;
}

.facility-menu-block strong {
    display: block;
    margin-bottom: 0.65rem;
}

.facility-menu-list {
    display: grid;
    gap: 0.65rem;
}

.facility-menu-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.facility-menu-item small,
.facility-menu-empty {
    color: var(--muted);
}

.ticket-catalog-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(38, 92, 203, 0.1);
    display: grid;
    gap: 0.6rem;
}

.ticket-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.ticket-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(29, 99, 227, 0.08);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.ticket-catalog-card .ghost-link {
    justify-self: start;
}

.ticket-catalog-prices {
    display: flex;
    gap: 0.6rem 1rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
    color: var(--muted);
}

.ticket-section-block {
    display: grid;
    gap: 0.8rem;
}

.ticket-park-group {
    display: grid;
    gap: 0.65rem;
}

.ticket-park-group h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.leaflet-container,
.leaflet-map {
    z-index: 0;
}

.leaflet-pane,
.leaflet-control-container,
.leaflet-top,
.leaflet-bottom {
    z-index: 1 !important;
}

.leaflet-map.is-rotated .leaflet-tile-pane,
.leaflet-map.is-rotated .leaflet-overlay-pane,
.leaflet-map.is-rotated .leaflet-shadow-pane,
.leaflet-map.is-rotated .leaflet-marker-pane,
.leaflet-map.is-rotated .leaflet-tooltip-pane,
.leaflet-map.is-rotated .leaflet-popup-pane {
    transform: rotate(var(--map-rotation));
    transform-origin: 50% 50%;
}

.leaflet-map.is-rotated .leaflet-popup-content-wrapper,
.leaflet-map.is-rotated .leaflet-popup-tip,
.leaflet-map.is-rotated .leaflet-tooltip {
    transform: rotate(var(--map-rotation-inverse));
    transform-origin: center;
}

.ticket-section-block h3 {
    margin: 0;
    font-size: 1rem;
}

.history-filter-form {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 180px) 180px;
    align-items: end;
}

.history-source-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.history-image-stack {
    display: grid;
    gap: 1rem;
}

.history-inline-note {
    margin: 0;
}

.history-local-stack {
    display: grid;
    gap: 1rem;
}

.history-local-group {
    display: grid;
    gap: 0.75rem;
}

.history-local-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.history-local-heading h2 {
    margin: 0;
    font-size: 1rem;
}

.history-local-table {
    min-width: 980px;
}

.history-local-table th,
.history-local-table td {
    min-width: 88px;
    vertical-align: top;
}

.history-local-table th:first-child,
.history-local-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 220px;
    background: rgba(248, 250, 255, 0.98);
}

.history-local-table thead th:first-child {
    z-index: 2;
}

.history-local-facility strong,
.history-local-table td strong,
.history-local-table td span {
    display: block;
}

.history-local-facility span,
.history-local-empty,
.history-local-table td span {
    color: var(--muted);
    font-size: 0.84rem;
}

.history-local-table td.is-empty {
    background: rgba(244, 247, 252, 0.58);
}

.history-image-card {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(38, 92, 203, 0.1);
}

.history-image-card img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(38, 92, 203, 0.1);
}

.waittime-main {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.waittime-item strong, .waittime-item small {
    display: block;
}

.waittime-badges {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.waittime-reading {
    display: grid;
    gap: 0.2rem;
    text-align: right;
    white-space: nowrap;
    align-self: center;
}

.waittime-item.is-stopped {
    background: rgba(244, 247, 252, 0.96);
    border-color: rgba(89, 115, 155, 0.2);
}

.waittime-reading span, .small-note, .waittime-submeta { color: var(--muted); }
.waittime-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem 1rem;
    color: var(--muted);
    font-size: 0.88rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(38, 92, 203, 0.1);
}

.pill-dpa {
    background: rgba(22, 77, 191, 0.14);
    color: #174dbf;
}

.pill-pp {
    background: rgba(255, 166, 0, 0.16);
    color: #b26000;
}

.pill-pp-status {
    background: rgba(255, 237, 188, 0.92);
    color: #8a5b00;
}

.pill-mobile-order {
    background: rgba(0, 148, 118, 0.14);
    color: #0c7a63;
}

.pill-dpa,
.pill-pp,
.pill-pp-status,
.pill-mobile-order {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.pill-dpa img,
.pill-pp img,
.pill-pp-status img,
.pill-mobile-order img {
    width: 1rem;
    height: 1rem;
    display: block;
}

.event-modal-note {
    line-height: 1.7;
    color: var(--muted);
}

.access-panel,
.access-panel-head,
.access-card-grid,
.access-card {
    display: grid;
    gap: 1rem;
}

.access-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.access-card {
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(38, 92, 203, 0.1);
    background: rgba(255, 255, 255, 0.84);
}

.access-card-head {
    display: grid;
    gap: 0.35rem;
}

.access-fact-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.access-fact-item {
    display: grid;
    gap: 0.15rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(29, 99, 227, 0.05);
    border: 1px solid rgba(38, 92, 203, 0.08);
}

.access-fact-item dt {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 700;
}

.access-fact-item dd {
    margin: 0;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.radio-pill {
    display: block;
}

.radio-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(38, 92, 203, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--accent-strong);
    font-weight: 700;
    text-align: center;
}

.radio-pill input:checked + span {
    background: linear-gradient(135deg, #174ebf, #3381ff 70%, #77deff);
    color: #fff;
    box-shadow: 0 12px 28px rgba(23, 78, 191, 0.22);
}

.leaflet-control-attribution { font-size: 0.75rem; }
.leaflet-popup-content-wrapper {
    border-radius: 16px;
    border: 1px solid rgba(38, 92, 203, 0.12);
}
.leaflet-container a { color: var(--accent-strong); }

@media (max-width: 720px) {
    .topbar {
        width: 100%;
        margin: 0 0 1rem;
        border-radius: 0 0 24px 24px;
        padding: 1rem;
        align-items: center;
        flex-direction: row;
    }
    .panel-heading, .timeline-item, .stack-card, .definition-list { flex-direction: column; grid-template-columns: 1fr; }
    .home-hero { grid-template-columns: 1fr; }
    .waittime-layout { grid-template-columns: 1fr; }
    .site-menu { width: 100vw; }
    .site-menu-inner {
        border-left: 0;
        padding: 1.1rem 1rem 1.5rem;
    }
    .leaflet-map { height: 400px; }
    .waittime-list { max-height: none; }
    .waittime-footer { justify-content: flex-start; }
    .footer-primary-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .park-hours-grid,
    .history-filter-form,
    .mypage-tabs {
        grid-template-columns: 1fr;
    }
    .waittime-tools,
    .facility-modal-body,
    .radio-grid {
        grid-template-columns: 1fr;
    }
    .ticket-modal,
    .facility-modal {
        place-items: start center;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    .waittime-item {
        flex-direction: column;
    }
    .waittime-reading {
        width: 100%;
        text-align: left;
        justify-items: start;
    }
    .history-local-table {
        min-width: 820px;
    }
    .history-local-table th:first-child,
    .history-local-table td:first-child {
        min-width: 170px;
    }
    .topbar-actions {
        margin-left: auto;
    }
}
