:root {
    --primary-color: #FF0055;
    --secondary-color: #00F0FF;
    --accent-color: #FFEA00;
    --bg-color: #ffffff;
    --bg-darker: #f4f4f4;
    --text-color: #012051;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: #012051 !important; /* Change default to dark text for white background */
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    
    /* Fixed Parallax Image Background (White base) */
    background-image: url('assets/bg01.webp') !important; /* Load user provided bg01.png */
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.25; /* Half the opacity for subtle analog texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    mix-blend-mode: multiply; /* Better for light backgrounds */
}

h1, h2, h3, h4, .nav-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    max-width: 1400px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
}

.top-header .header-logo {
    height: 40px;
    width: auto;
    margin-right: 20px;
}

.top-header .header-info {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 0.8rem;
    color: #666666;
    line-height: 1.2;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 20px;
}

.top-header .header-date {
    font-size: 1.3rem;
    color: #012051;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.top-header .header-venue {
    color: #888888;
    margin-top: 2px;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1rem;
    color: #012051;
    letter-spacing: 1px;
    transition: color 0.3s;
    text-transform: uppercase;
}

.header-nav a.nav-disabled {
    color: #adb5bd !important;
    cursor: default !important;
    pointer-events: none !important;
}

.header-nav a:hover {
    color: var(--primary-color);
}

/* Header Responsive Adjustments & Hamburger Menu */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1100;
    padding: 10px;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: #012051;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Active (Cross) state */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: #d9480f;
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: #d9480f;
}

.nav-backdrop {
    display: none;
}

@media (max-width: 1080px) {
    .header-info,
    .top-header .header-info {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 8px 16px;
        top: 12px;
        width: 94%;
        border-radius: 12px;
    }
    
    .top-header .header-logo {
        height: 32px;
        margin-right: 0;
    }

    .hamburger-btn {
        display: flex;
    }

    /* Mobile Drawer Navigation */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        padding: 80px 25px 40px 25px;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .header-nav.active {
        right: 0;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 15px !important;
        width: 100%;
    }

    .header-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding-bottom: 12px;
    }

    .header-nav a {
        font-size: 1.1rem !important;
        font-weight: 900 !important;
        color: #012051 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        letter-spacing: 1px;
        padding: 5px 0;
    }

    .header-nav a::after {
        content: "→";
        font-size: 0.95rem;
        color: #d9480f;
        opacity: 0.7;
        transition: transform 0.2s ease;
    }

    .header-nav a:hover::after {
        transform: translateX(4px);
    }

    /* Backdrop Overlay */
    .nav-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 6px 12px;
        top: 10px;
    }
    .top-header .header-logo {
        height: 28px;
    }
}

/* 1. Hero / Key Visual (Swiper) */
.hero {
    position: relative;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 60px; /* Offset for the fixed header */
}

.hero-bg-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroBgFade 15s infinite;
}

.hero-bg-slide:nth-child(1) { animation-delay: 0s; }
.hero-bg-slide:nth-child(2) { animation-delay: 5s; }
.hero-bg-slide:nth-child(3) { animation-delay: 10s; }

@keyframes heroBgFade {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Swiper Styles */
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    z-index: 1;
}

.swiper-slide {
    width: auto; /* Let the image aspect ratio determine the width */
    height: 60vh; /* Set a consistent height */
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s ease;
    transform: scale(0.85);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: transparent;
}

.swiper-slide-active {
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    z-index: 10;
}

.swiper-slide img {
    display: block;
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.hatarakids-visual-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.content-visual-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.mySwiper .hatarakids-visual-link {
    display: block;
    width: fit-content;
    height: 100%;
    line-height: 0;
}

/* Pagination Dots */
.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.4 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 8px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    transform: scale(1.3);
    background: var(--accent-color) !important;
    box-shadow: 0 0 10px var(--accent-color);
}

@media (max-width: 768px) {
    .swiper-slide { width: auto; height: 50vh; }
    .hero { height: 70vh; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(10,10,15,1) 100%);
    z-index: -1;
}

/* Event Info Area */
.event-info-area {
    text-align: center;
    padding: 80px 20px 20px;
    background-color: transparent;
}

.event-logo {
    max-width: 90%;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.event-date {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: 4px;
    color: var(--accent-color);
}

.event-venue {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 10px;
}

.event-catchcopy {
    font-size: 1.1rem;
    margin-top: 15px;
}



/* Sections */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

#fes-instagram-feed {
    grid-template-columns: repeat(4, 1fr) !important;
}

.fes-instagram-feed__post {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
}

.fes-instagram-feed__post:hover {
    transform: scale(1.03);
}

.fes-instagram-feed__post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    #fes-instagram-feed {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
}

.bg-darker {
    background-color: var(--bg-darker);
    max-width: 100%;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: #012051;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 5px;
    background: var(--primary-color);
}

/* 3. WHAT'S NEW */
.whats-new-section {
    padding: 100px 5%;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-title.left-align {
    margin-bottom: 0;
    text-align: left;
    color: var(--text-color);
    font-size: 3.5rem;
    text-shadow: none;
    letter-spacing: 2px;
}

.section-title.left-align::after {
    display: none;
}

.btn-view-more {
    display: inline-block;
    padding: 12px 35px;
    background: #ffffff;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    border-radius: 50px;
    font-weight: 900;
    font-family: var(--font-heading);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.whats-new-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 15px;
    padding: 20px;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.news-img {
    width: 220px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    transition: transform 0.3s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.news-date {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

.date-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-tag {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .whats-new-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .news-card {
        flex-direction: column;
    }
    .news-img {
        width: 100%;
    }
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}



/* 6. CONTENTS */
.content-block {
    margin-bottom: 80px;
}

.block-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.subtitle {
    display: inline-block;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: #aaa;
    margin-left: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Artist Grid */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.artist-card {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    border-radius: 10px;
}

.artist-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.artist-info {
    padding: 20px;
}

.artist-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.artist-info p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Map */
.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.map-item h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.venue-map-img {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.access-map iframe {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .map-grid { grid-template-columns: 1fr; }
}

/* Stage Tabs */
.stage-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.stage-tab-btn {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-color);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-family: var(--font-body);
}

.stage-tab-btn.active, .stage-tab-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.4);
}

.stage-tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.stage-tab-content.active {
    display: block;
}

/* Timeline Style */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    transform: translateY(20px);
}

.timeline-time {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    padding-top: 15px;
}

#ground-stage .timeline-time {
    color: #d9480f !important;
}

#gym-stage .timeline-time {
    color: #249492 !important;
}

/* Timeline dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 116px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-color);
    border: 2px solid var(--bg-color);
    z-index: 1;
    transition: background 0.3s;
}

#ground-stage .timeline-item::after {
    background: #d9480f !important;
}

#gym-stage .timeline-item::after {
    background: #249492 !important;
}

.timeline-item:hover::after {
    background: var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color);
}

.timeline-item.special-event::after {
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.timeline-content {
    margin-left: 40px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    flex-grow: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.85);
}

.timeline-item.special-event .timeline-content {
    background: rgba(255, 234, 0, 0.05);
    border-color: rgba(255, 234, 0, 0.3);
}

.timeline-item.special-event:hover .timeline-content {
    background: rgba(255, 234, 0, 0.1);
}

.program-id {
    display: inline-block;
    padding: 2px 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.program-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
    font-family: var(--font-body);
}

.program-desc {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.4;
}

/* Responsiveness for timeline */
@media (max-width: 768px) {
    .stage-page .timeline::before {
        left: 18px;
    }
    .stage-page .timeline-item::after {
        left: 14px;
        top: 5px;
    }
    .stage-page .timeline-item {
        display: block;
        padding-left: 38px;
        margin-bottom: 24px;
    }
    .stage-page .timeline-time {
        width: auto;
        text-align: left;
        padding-top: 0;
        margin-bottom: 8px;
        font-size: 0.98rem;
        line-height: 1.25;
    }
    .stage-page .timeline-content {
        margin-left: 0;
        width: 100%;
        padding: 14px 16px;
    }
}

/* 7. Footer Nav & Graphic */
.footer {
    margin-top: 50px;
    background: var(--bg-darker);
}

.footer-content {
    padding: 50px 5%;
}



.footer-graphic {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.footer-links a {
    margin: 0 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .mid-nav .nav-links { flex-wrap: wrap; }
    .mid-nav .nav-links li { flex: 50%; border: 1px solid var(--glass-border); border-top: none; }
    .hero-date { font-size: 1.8rem; }
    .section-title { font-size: 2.5rem; }
    .news-list li { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Stage Guide Box & Digest (on index.html) */
.stage-digest-container {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    max-width: 900px;
}

.stage-digest-block {
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.digest-stage-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stage-digest-block:nth-child(2) .digest-stage-title {
    border-bottom: none !important;
}

.digest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Digest item list */
.digest-list li {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px dashed var(--glass-border);
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.digest-time {
    display: inline-block;
    width: 150px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #666666;
    margin-right: 15px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.digest-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 5px;
}

.stage-digest-block:nth-child(2) .digest-list li::before,
.gym-digest-block .digest-list li::before,
.gym-digest-list li::before {
    color: #249492 !important;
}

.digest-list li:last-child {
    border-bottom: none;
}

.stage-guide-btn {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.3);
}

.stage-guide-btn:hover {
    background: #e0004c !important;
    border-color: #e0004c !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 85, 0.5);
}

@media (max-width: 768px) {
    .stage-digest-container {
        flex-direction: column;
    }

    .digest-stage-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 6px;
    }

    .digest-stage-title img {
        max-width: 100% !important;
        height: auto !important;
    }

    .digest-stage-title span {
        display: block;
        white-space: nowrap;
        line-height: 1.4;
    }

    .digest-list li {
        display: block;
        line-height: 1.55;
        padding: 11px 0 12px 18px;
        position: relative;
    }

    .digest-list li::before {
        position: absolute;
        left: 0;
        top: 11px;
        margin-left: 0;
    }

    .digest-time {
        display: block;
        width: auto;
        margin: 0 0 3px;
        line-height: 1.25;
    }
}

/* Subpage Styles (on stage.html) */
.subpage-hero {
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.8), rgba(0, 240, 255, 0.8)), url('assets/hero_bg_1.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Header offset */
}

.subpage-hero-content {
    color: #ffffff;
}

.subpage-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #012051 !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.subpage-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #012051 !important;
    text-shadow: none !important;
}

.subpage-back-home {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

/* Parallel Timetable Layout */
.stages-container {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
}

.stage-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.stage-column-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

#gym-stage .stage-column-title {
    color: var(--secondary-color);
}

.stage-column-title span {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: #888;
    margin-left: 10px;
}

@media (max-width: 900px) {
    .stages-container {
        flex-direction: column;
        gap: 30px;
    }
}

.stage-sponsors-section {
    display: block;
    margin: 0 auto 70px;
}

.stage-sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.stage-sponsor-logo {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    min-height: 112px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(1, 32, 81, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(1, 32, 81, 0.04);
    overflow: hidden;
}

.stage-sponsor-logo img {
    max-width: min(100%, 240px);
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.stage-sponsor-logo--yamato img {
    transform: scale(1.6);
}

.stage-sponsor-logo--secondary {
    flex-basis: 100%;
    min-height: 140px;
}

.stage-sponsor-logo--secondary img {
    width: 100%;
    max-width: 440px;
    max-height: 110px;
}
.stage-sponsor-logo--primary {
    flex-basis: 100%;
    min-height: 180px;
    padding: 28px 32px;
}

.stage-sponsor-logo--primary img {
    width: 100%;
    max-width: 860px;
    max-height: none;
}

@media (max-width: 900px) {
    .stage-sponsor-logo {
        flex-basis: calc((100% - 16px) / 2);
    }

    .stage-sponsor-logo--primary,
    .stage-sponsor-logo--secondary {
        flex-basis: 100%;
    }
}

@media (max-width: 560px) {
    .stage-sponsor-logo {
        flex-basis: 100%;
    }

    .stage-sponsor-logo--secondary {
        min-height: 120px;
    }

    .stage-sponsor-logo--secondary img {
        max-width: 82%;
    }

    .stage-sponsor-logo--primary {
        min-height: 130px;
        padding: 24px 16px;
    }
}

/* Artists Profile Section */
.subpage-section-title {
    font-size: 2.6rem;
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
    color: #012051 !important;
    background: none !important;
    -webkit-text-fill-color: #012051 !important;
    -webkit-text-stroke: 0 !important;
    -webkit-text-stroke-width: 0 !important;
    text-shadow: none !important;
    letter-spacing: 2px !important;
    border: none !important;
}

.subpage-section-title .subtitle,
.subpage-section-title span {
    color: #868e96 !important;
    -webkit-text-fill-color: #868e96 !important;
    -webkit-text-stroke: 0 !important;
    font-size: 1rem !important;
    font-weight: normal !important;
    margin-left: 12px !important;
    letter-spacing: normal !important;
}

.special-programs-grid,
.artists-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .special-programs-grid,
    .artists-profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.artist-profile-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.artist-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.artist-profile-img {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.special-programs-grid .artist-profile-img,
#stage-mc .artist-profile-img {
    width: 100%;
    height: auto;
    aspect-ratio: 2240 / 2540;
    background-size: cover;
    background-position: center;
    position: relative;
}

.artist-stage-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    color: #ffffff;
    font-family: var(--font-heading);
}

.artist-stage-badge.ground {
    background: var(--primary-color);
}

.artist-stage-badge.gym {
    background: var(--secondary-color);
    color: #012051;
}

.artist-profile-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.citizens-stage-lists {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 22px 0;
}

.citizens-stage-list {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.citizens-stage-list h4 {
    margin: 0;
    padding: 12px 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ffffff;
    background: #d9480f;
}

.citizens-stage-list--gym h4 {
    background: #249492;
}

.citizens-stage-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.citizens-stage-list li {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    font-size: 0.88rem;
    line-height: 1.55;
    color: #212529;
}

.citizens-stage-list li:first-child {
    border-top: 0;
}

.citizens-stage-list li span {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #d9480f;
    white-space: nowrap;
}

.citizens-stage-list--gym li span {
    color: #249492;
}

@media (max-width: 520px) {
    .citizens-stage-list li {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .citizens-stage-list li span {
        display: block;
        line-height: 1.3;
    }
}

.food-marche-card-link {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.food-marche-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1) !important;
}

.food-marche-card-link:focus-visible {
    outline: 4px solid rgba(217, 72, 15, 0.35);
    outline-offset: 4px;
}

.creator-workshop-art {
    transform: scale(1.045);
    transform-origin: center;
}

.exhibitors-template {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.exhibitors-lead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}

.exhibitors-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 6px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.exhibitors-label--food {
    background: #d9480f;
}

.exhibitors-label--marche {
    background: #c05ac8;
}

.exhibitors-label--combined {
    background: linear-gradient(135deg, #d9480f, #c05ac8);
}

.exhibitors-label--creator {
    background: #2f6fed;
}

.exhibitors-lead h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    color: #012051;
    margin: 0 0 14px;
    line-height: 1.25;
}

.exhibitors-lead p {
    margin: 0;
    color: #495057;
    line-height: 1.8;
    font-size: 0.95rem;
}

.exhibitors-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.exhibitors-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid rgba(1, 32, 81, 0.16);
    border-radius: 999px;
    color: #012051;
    background: rgba(255, 255, 255, 0.78);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.exhibitors-filter.active,
.exhibitors-filter:hover {
    background: #012051;
    color: #ffffff;
}

.exhibitors-filter--wonderful {
    border-color: rgba(24, 163, 161, 0.38);
    color: #0f8583;
}

.exhibitors-filter--wonderful:hover {
    background: #18a3a1;
    border-color: #18a3a1;
    color: #ffffff;
}

.exhibitors-filter--colorful {
    border-color: rgba(239, 0, 13, 0.36);
    color: #c9141d;
}

.exhibitors-filter--colorful:hover {
    background: #ef000d;
    border-color: #ef000d;
    color: #ffffff;
}

.exhibitors-filter--food {
    border-color: rgba(217, 72, 15, 0.34);
    color: #b7410c;
}

.exhibitors-filter--food:hover {
    background: #d9480f;
    border-color: #d9480f;
    color: #ffffff;
}

.exhibitors-filter--marche {
    border-color: rgba(192, 90, 200, 0.36);
    color: #9d3aa8;
}

.exhibitors-filter--marche:hover {
    background: #c05ac8;
    border-color: #c05ac8;
    color: #ffffff;
}

.exhibitors-filter--creator {
    border-color: rgba(47, 111, 237, 0.36);
    color: #2559bd;
}

.exhibitors-filter--creator:hover {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #ffffff;
}

.exhibitors-label--ennichi {
    background: #b45309;
}

.exhibitors-filter--ennichi {
    border-color: #b45309;
    color: #b45309;
}

.exhibitors-filter--ennichi:hover {
    background: #b45309;
    border-color: #b45309;
    color: #ffffff;
}

.exhibitors-list-section--ennichi {
    margin-top: 64px;
}

.exhibitors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.exhibitors-list-section {
    scroll-margin-top: 96px;
    margin-top: 34px;
}

.exhibitors-list-section:first-of-type {
    margin-top: 0;
}

.exhibitors-list-section > h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: #012051;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    padding-left: 14px;
    border-left: 5px solid #18a3a1;
}

#colorful-food > h3 {
    border-left-color: #ef000d;
}

.exhibitors-list-section--food > h3 {
    border-left-color: #d9480f;
}

.exhibitors-list-section--marche {
    margin-top: 64px;
}

.exhibitors-list-section--creator {
    margin-top: 64px;
}

.exhibitors-list-section--creator > h3 {
    border-left-color: #2f6fed;
}

.exhibitors-lead--section {
    margin-bottom: 28px;
}

/* Hide exhibitor cards awaiting details and images. */
.exhibitors-page--combined .exhibitor-card:has(.exhibitor-card__image[style*="comingsoon"]) {
    display: none;
}

.exhibitor-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.exhibitor-card__image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #f1f3f5;
}

.exhibitor-card__image--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(22px, 3vw, 42px);
    background: #fff;
}

.exhibitor-card__image--logo img {
    width: min(100%, 280px);
    height: 100%;
    object-fit: contain;
}

.exhibitor-card__body {
    padding: 18px;
}

.exhibitor-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.exhibitor-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(1, 32, 81, 0.08);
    color: #012051;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
}

.exhibitors-page--food .exhibitor-card__meta span:first-child {
    display: none;
}

.exhibitor-card__meta .area-badge--wonderful {
    background: rgba(24, 163, 161, 0.12);
    color: #0f8583;
}

.exhibitor-card__meta .area-badge--colorful {
    background: rgba(239, 0, 13, 0.1);
    color: #c9141d;
}

.exhibitor-card__meta .area-badge--creator {
    background: rgba(47, 111, 237, 0.12);
    color: #2559bd;
}

.exhibitor-card h3 {
    color: #012051;
    font-size: 1.1rem;
    margin: 0 0 8px;
    line-height: 1.45;
}

.exhibitor-card p {
    color: #495057;
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 0;
}

.exhibitor-card--interactive {
    cursor: default;
}

.exhibitor-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 16px;
    min-height: 38px;
    padding: 8px 16px;
    border: 0;
    border-radius: 4px;
    background: #012051;
    color: #ffffff;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.exhibitor-detail-button:hover,
.exhibitor-detail-button:focus-visible {
    background: #ffffff;
    color: #012051;
    box-shadow: inset 0 0 0 1px #012051;
    outline: none;
}

.exhibitor-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.exhibitor-modal.is-active {
    display: flex;
}

.exhibitor-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 32, 81, 0.72);
    backdrop-filter: blur(4px);
}

.exhibitor-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(520px, 1.05fr) minmax(320px, 0.95fr);
    width: min(1100px, 100%);
    height: min(88vh, 720px);
    max-height: min(88vh, 820px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.exhibitor-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(1, 32, 81, 0.88);
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.exhibitor-modal__carousel {
    position: relative;
    min-height: 0;
    background: #f8f4e8;
}

.exhibitor-modal__slides,
.exhibitor-modal__slide {
    width: 100%;
    height: 100%;
}

.exhibitor-modal__slide {
    display: none;
    object-fit: contain;
    background: #f8f4e8;
}

.exhibitor-modal__slide.is-active {
    display: block;
}

.exhibitor-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #012051;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.exhibitor-modal__nav--prev {
    left: 16px;
}

.exhibitor-modal__nav--next {
    right: 16px;
}

.exhibitor-modal__dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.exhibitor-modal__dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
}

.exhibitor-modal__dots button.is-active {
    background: #18a3a1;
}

.exhibitor-modal__content {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 42px 34px 34px;
}

.exhibitor-modal__content > .area-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(1, 32, 81, 0.08);
    color: #012051;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.exhibitor-modal__content > .area-badge--wonderful {
    background: rgba(24, 163, 161, 0.12);
    color: #0f8583;
}

.exhibitor-modal__content > .area-badge--colorful {
    background: rgba(239, 0, 13, 0.1);
    color: #c9141d;
}

.exhibitor-modal__content > .area-badge--creator {
    background: rgba(47, 111, 237, 0.12);
    color: #2559bd;
}

.exhibitor-modal__content h2 {
    color: #012051;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.25;
    margin: 14px 0 18px;
}

.exhibitor-modal__content p {
    color: #343a40;
    line-height: 1.9;
    margin: 0 0 22px;
    font-size: 0.96rem;
}

.exhibitor-modal__info {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
}

.exhibitor-modal__info div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.exhibitor-modal__info dt {
    color: #012051;
    font-weight: 900;
}

.exhibitor-modal__info dd {
    margin: 0;
    color: #495057;
}

.exhibitor-modal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exhibitor-modal__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 4px;
    background: #18a3a1;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.exhibitor-modal__links a:hover {
    background: #012051;
}

@media (max-width: 860px) {
    .exhibitor-modal {
        padding: 24px;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .exhibitor-modal.is-active {
        display: block;
    }

    .exhibitor-modal__dialog {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0 auto;
        overflow: visible;
    }

    .exhibitor-modal__carousel {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        padding: 0;
        background: #ffffff;
    }

    .exhibitor-modal__slides {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .exhibitor-modal__slide {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
    }

    .exhibitor-modal__content {
        flex: 1 1 auto;
        min-height: 0;
        overflow: visible;
        padding: 28px 22px 26px;
    }

    .exhibitor-modal__info div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.exhibitors-note {
    margin: 24px 0 0;
    text-align: center;
    color: #868e96;
    font-size: 0.84rem;
}

.exhibitors-page-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.exhibitors-page-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 4px;
    background: #012051;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.exhibitors-page-nav a:hover {
    background: #ffffff;
    color: #012051;
    box-shadow: inset 0 0 0 1px #012051;
}

@media (max-width: 900px) {
    .exhibitors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .exhibitors-grid {
        grid-template-columns: 1fr;
    }
}

.artist-id-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 8px;
    display: block;
}

.artist-profile-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-color);
    font-family: var(--font-body);
}

.artist-profile-info p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.artist-sns-links {
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
}

.sns-icon {
    font-size: 0.75rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.sns-icon:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Timeline Thumb styles */
.timeline-header-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.timeline-thumb {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.timeline-title-area {
    display: flex;
    flex-direction: column;
}

.timeline-title-area .program-title {
    margin-bottom: 0;
}

/* Clickable timeline item */
.timeline-item.clickable {
    cursor: pointer;
}

.timeline-item.clickable:hover .timeline-content {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.15);
}

.timeline-item.clickable.special-event:hover .timeline-content {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 234, 0, 0.2);
}

/* Modal Popup Window */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
}

.modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal.active .modal-wrapper {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 24px;
    line-height: 36px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    color: #012051;
}

.modal-close:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.modal-content {
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
}

/* Modal Content details (matches cloned artist-profile-card structure) */
.modal-content .artist-profile-card {
    border: none;
    background: #ffffff;
    box-shadow: none;
    border-radius: 0;
    height: auto;
    backdrop-filter: none;
}

.modal-content .artist-profile-card:hover {
    transform: none;
    box-shadow: none;
}

.modal-content .artist-profile-img {
    height: 250px;
}

.modal-content .artist-profile-info {
    padding: 30px;
}

/* AI generated temporary text indicator */
.ai-temp-text {
    color: #e03131 !important; /* Vivid Red */
}

/* Featured full-width card layout for 2-column grids */
@media (min-width: 768px) {
    .artist-profile-card.featured-full {
        grid-column: 1 / -1;
    }
    .artist-profile-card.featured-full .artist-profile-img {
        height: 380px;
    }
}

/* Marche and Food page styles */
.marche-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 50px;
}

@media (min-width: 576px) {
    .marche-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .marche-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.marche-card {
    background: rgba(18, 18, 18, 0.75); /* Darker and more opaque background for readability */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 !important; /* Remove card padding completely to fix flex margins */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    overflow: hidden; /* For rounded image corners */
}

.marche-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.02); /* Placeholder bg */
    position: relative;
    border-radius: 11px 11px 0 0;
    margin: 0 !important; /* Zero margin to perfectly align with top edge */
    border-bottom: 1px solid var(--glass-border);
}

.marche-card > :not(.marche-img) {
    padding-left: 20px;
    padding-right: 20px;
}

.marche-card > :last-child {
    padding-bottom: 20px;
}

.marche-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.marche-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    margin-bottom: 12px;
    align-self: flex-start;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.marche-badge.food {
    background: #ff922b; /* Orange for Foods */
    color: #ffffff;
}

.marche-badge.workshop {
    background: #339af0; /* Blue for Workshop */
    color: #ffffff;
}

.marche-badge.goods {
    background: #51cf66; /* Green for Goods */
    color: #ffffff;
}

.marche-badge.other {
    background: #868e96; /* Gray for Others */
    color: #ffffff;
}

.marche-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #ffffff;
    font-family: var(--font-body);
}

.marche-items {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.marche-desc {
    font-size: 0.82rem;
    color: #dddddd; /* Brighter gray for better visibility */
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Light Mode overrides for Marche page */
body.light-mode {
    background: #f8f9fa !important;
    color: #012051 !important;
}

body.light-mode .subpage-hero {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa) !important;
    border-bottom: 1px solid #dee2e6;
}

body.light-mode .subpage-title {
    color: #012051 !important;
    text-shadow: none !important;
}

body.light-mode .subpage-subtitle {
    color: #495057 !important;
}

body.light-mode .subpage-section-title {
    color: #012051 !important;
    -webkit-text-fill-color: #012051 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

body.light-mode .subpage-section-title span {
    color: #868e96 !important;
}

body.light-mode .marche-card {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .marche-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary-color) !important;
}

body.light-mode .marche-card h3 {
    color: #012051 !important;
}

body.light-mode .marche-items {
    color: #d9480f !important; /* Brighter contrast orange on light bg */
}

body.light-mode .marche-desc {
    color: #495057 !important;
}

body.light-mode .marche-img {
    background-color: #ffffff !important; /* White margins for thumbnails */
    border-bottom: 1px solid #e9ecef;
    background-size: cover !important; /* Change contain to cover to eliminate all white margins completely */
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 11px 11px 0 0 !important; /* Ensure correct rounding on light mode border */
    margin: 0 !important;
}

body.light-mode .sns-icon {
    background: #f1f3f5 !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
}

body.light-mode .sns-icon:hover {
    background: #012051 !important;
    color: #ffffff !important;
}

body.light-mode .btn-view-more {
    background: #ffffff !important;
    color: #012051 !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode .btn-view-more:hover {
    background: #012051 !important;
    color: #ffffff !important;
}

body.light-mode .top-header {
    background: #ffffff !important;
    border-bottom: 1px solid #dee2e6;
}

body.light-mode .top-header .header-logo {
    filter: none !important;
}

body.light-mode .top-header .header-date,
body.light-mode .top-header .header-venue,
body.light-mode .top-header .header-nav a {
    color: #012051 !important;
}

body.light-mode .top-header .header-nav a.nav-disabled {
    color: #adb5bd !important;
    cursor: default !important;
    pointer-events: none !important;
}

.header-nav a:hover {
    color: var(--primary-color) !important;
}

body.light-mode .footer {
    background: #f1f3f5 !important;
    border-top: 1px solid #dee2e6;
}

body.light-mode .footer-nav a,
body.light-mode .footer-links a,
body.light-mode .footer-meta .copyright {
    color: #495057 !important;
}

body.light-mode .footer-logo {
    filter: none !important;
}

/* Infinite Autoplay Carousel (Ticker) for Sponsor/Food Logos */
.logo-ticker-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100vw !important; /* Force take up full screen width */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 30px 0;
    background: #ffffff; /* White background for the ticker container ribbon */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.ticker-wrap {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-row {
    display: flex;
    width: max-content;
    gap: 20px;
    flex-shrink: 0;
}

.ticker-item {
    width: 240px; /* Double width */
    height: 150px; /* Double height */
    background: #ffffff;
    border: 1px solid #e9ecef; /* Thin gray border to distinguish card inside white background */
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exhibitor-ticker-group {
    margin-top: 28px;
}

.exhibitor-ticker-group + .exhibitor-ticker-group {
    margin-top: 40px;
}

.ticker-category {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: 'Oswald', 'Noto Sans JP', sans-serif;
}

.ticker-category span {
    color: #012051;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ticker-category a {
    color: #012051;
    border: 1px solid rgba(1, 32, 81, 0.24);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ticker-category a:hover,
.ticker-category a:focus-visible {
    background: #012051;
    color: #ffffff;
    border-color: #012051;
}

.exhibitor-ticker-group--marche .ticker-category span {
    color: #d9480f;
}

@media (max-width: 767px) {
    .ticker-item {
        width: 180px;
        height: 112px;
        padding: 12px;
    }

    .ticker-category {
        justify-content: center;
        gap: 12px;
    }
}

/* Animations (Slower speeds: 90s / 84s for elegant movement) */
.ticker-rtl {
    animation: ticker-scroll-rtl 90s linear infinite;
}

.ticker-ltr {
    animation: ticker-scroll-ltr 84s linear infinite;
}

@keyframes ticker-scroll-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px)); /* Loop at exactly half of the double width + half gap */
    }
}

@keyframes ticker-scroll-ltr {
    0% {
        transform: translateX(calc(-50% - 10px));
    }
    100% {
        transform: translateX(0);
    }
}

/* -------------------------------------------------------------
   Dynamic Background Watermark Typography for Titles
------------------------------------------------------------- */
.section-title,
.block-title {
    position: relative;
    z-index: 2;
}

/* Bypass watermark typography for clean left-aligned section headers */
.section-title.left-align::before {
    display: none !important;
}

.section-title::before,
.block-title::before {
    display: none !important;
    content: attr(data-bg-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    color: #ffffff;
    opacity: 0.04; /* Extremely subtle blend in dark background */
    transition: opacity 0.3s, font-size 0.3s;
}

@media (min-width: 480px) {
    .section-title::before,
    .block-title::before {
    display: none !important;
        font-size: 5.5rem;
    }
}

@media (min-width: 768px) {
    .section-title::before,
    .block-title::before {
    display: none !important;
        font-size: 8rem;
    }
}

/* -------------------------------------------------------------
   Full-Width White Background Ribbon for Food & Marche Tickers
------------------------------------------------------------- */
#food-ticker-section {
    background: transparent !important; /* Make section background transparent */
    color: #012051 !important;
    padding: 70px 0 30px 0 !important;
    margin-bottom: 0 !important;
    width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

#marche-ticker-section {
    background: transparent !important; /* Make section background transparent */
    color: #012051 !important;
    padding: 30px 0 70px 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

/* Force dark text color on white background sections */
#food-ticker-section .block-title,
#marche-ticker-section .block-title {
    color: #012051 !important;
}

#food-ticker-section .block-title .subtitle,
#marche-ticker-section .block-title .subtitle {
    color: #868e96 !important;
}

/* White background watermark overrides */
#food-ticker-section .block-title::before,
#marche-ticker-section .block-title::before {
    display: none !important;
    color: #012051 !important;
    opacity: 0.045 !important; /* Elegant subtle dark watermark for light background */
}

/* Customize list view buttons inside white sections */
#food-ticker-section .stage-guide-btn,
#marche-ticker-section .stage-guide-btn {
    background: #012051 !important;
    color: #ffffff !important;
    border: 1px solid #012051 !important;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

#food-ticker-section .stage-guide-btn:hover,
#marche-ticker-section .stage-guide-btn:hover {
    background: #ffffff !important;
    color: #012051 !important;
    border-color: #012051 !important;
}

/* Clean up unnecessary container styles inside white sections */
#food-ticker-section .logo-ticker-container,
#marche-ticker-section .logo-ticker-container {
    background: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 10px 0 !important;
}

/* -------------------------------------------------------------
   Parallax Page Layout overrides (Fuji Rock inspired - Light Mode Base)
------------------------------------------------------------- */
/* Force center text alignment on main titles and align with WHAT'S NEW style */
.section-title {
    font-size: 3.5rem !important;
    margin-bottom: 50px !important;
    color: #012051 !important; /* Plain solid dark text for light theme compatibility */
    background: none !important;
    -webkit-text-fill-color: initial !important;
    -webkit-text-stroke: none !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    text-shadow: none !important;
    letter-spacing: 2px !important;
}

.section-title::after {
    display: none !important; /* Hide old yellow underlines */
}

/* Override What's New layout style to center title and buttons */
.section-title.left-align {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.section-header-flex {
    display: block !important;
    text-align: center !important;
}

.section-header-flex .btn-view-more {
    margin-top: 20px !important;
    display: inline-block !important;
    background: #012051 !important;
    color: #ffffff !important;
    border: 1px solid #012051 !important;
}

.section-header-flex .btn-view-more:hover {
    background: #ffffff !important;
    color: #012051 !important;
    border-color: #012051 !important;
}

/* Light transparent overlays to allow fixed background image to show through beautifully */
#whats-new,
#contents,
#map {
    background: transparent !important; /* Make sections completely transparent */
    backdrop-filter: none !important;
    color: #012051 !important;
    position: relative;
    z-index: 5;
    border: none !important;
}

.footer {
    background: rgba(255, 255, 255, 0.85) !important; /* Keep footer slightly white-opaque for visual weight */
    backdrop-filter: blur(8px) !important;
    color: #012051 !important;
    position: relative;
    z-index: 5;
    
    /* Force footer to stretch 100% full-width to eliminate any right-side gaps */
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 50px 0 0 0 !important; /* margin-top 50px */
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Ensure sub-section content blocks have clean transparent bg for white theme */
.content-block {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* What's New specific typography and card overrides on light background */
.news-card {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    color: #012051 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.news-date {
    color: #d9480f !important;
}

.news-content h4 {
    color: #012051 !important;
}

.news-desc {
    color: #495057 !important;
}

/* Map content text and titles */
#map {
    color: #012051 !important;
}

#map .map-item h4 {
    color: #012051 !important;
    border-bottom: 2px solid #012051 !important;
}

/* Footer elements text colors */
.footer-nav a,
.footer-links a,
.footer-meta .copyright {
    color: #495057 !important;
}

.footer-logo {
    filter: none !important; /* Do not invert header logo to white, keep it dark */
}

/* Exclude the full-width white ticker sections from transparency rules */
#food-ticker-section,
#marche-ticker-section {
    background: transparent !important;
    z-index: 10;
}

#food-ticker-section .content-block,
#marche-ticker-section .content-block {
    background: transparent !important;
    border: none !important;
}

/* Mega Footer hover interactions */
.footer-column ul li a {
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-column ul li a:hover {
    color: #d9480f !important; /* Accent orange on hover */
    text-decoration: underline !important;
}

.footer-column > a {
    transition: opacity 0.2s ease;
}

.footer-column > a:hover {
    opacity: 0.7 !important;
}

/* Stage Digest Grid Responsive Override */
.stage-digest-breakout {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.stage-digest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1500px;
    width: 95%;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .stage-digest-grid {
        grid-template-columns: 1fr;
    }
}

/* Stage Digest Thumbnail Aspect Ratio (2240 : 2540) */
#digest-special-img,
#digest-ground-img,
#digest-gym-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2240 / 2540 !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Image Lightbox Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-modal.is-active {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.image-modal-container {
    position: relative;
    z-index: 10;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-body {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-modal-body img {
    max-width: min(850px, 85vw);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.image-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    background: #012051;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    z-index: 20;
}

.image-modal-close:hover {
    background: #d9480f;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .image-modal-close {
        top: -14px;
        right: -10px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    .image-modal-body {
        padding: 8px;
    }
    .image-modal-body img {
        max-width: 88vw;
        max-height: 75vh;
    }
}

/* Swiper Navigation Buttons Customization */
.mySwiper .swiper-button-prev,
.mySwiper .swiper-button-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #012051;
    transition: all 0.25s ease;
    z-index: 20;
}

.mySwiper .swiper-button-prev:after,
.mySwiper .swiper-button-next:after {
    font-size: 1.15rem;
    font-weight: 900;
}

.mySwiper .swiper-button-prev:hover,
.mySwiper .swiper-button-next:hover {
    background: #012051;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.mySwiper .swiper-button-prev {
    left: 20px;
}

.mySwiper .swiper-button-next {
    right: 20px;
}

@media (max-width: 768px) {
    .mySwiper .swiper-button-prev,
    .mySwiper .swiper-button-next {
        width: 38px;
        height: 38px;
    }
    .mySwiper .swiper-button-prev:after,
    .mySwiper .swiper-button-next:after {
        font-size: 0.9rem;
    }
    .mySwiper .swiper-button-prev {
        left: 8px;
    }
    .mySwiper .swiper-button-next {
        right: 8px;
    }
}

/* Countdown Timer Section (Minimal & Zero-Jitter) */
.countdown-section {
    position: relative;
    z-index: 10;
}

.countdown-minimal-timer {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: clamp(10px, 3vw, 24px);
    font-family: 'Oswald', sans-serif;
}

.countdown-minimal-timer .cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 2.2em;
    text-align: center;
}

.countdown-minimal-timer .cd-item.cd-days-item {
    width: 2.8em;
}

.countdown-minimal-timer .cd-item span:first-child {
    display: block;
    width: 100%;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.countdown-minimal-timer .cd-separator {
    display: inline-block;
    width: 0.8em;
    text-align: center;
    user-select: none;
}

/* CONTENTS Section Grid Responsive Styles */
@media (max-width: 1024px) {
    .contents-area-block > div:last-child {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #contents .contents-area-block > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* -------------------------------------------------------------
   Strict Shadow & Stroke Removal for Titles & Stage Headers
------------------------------------------------------------- */
#contents .block-title,
#contents .block-title *,
#contents .block-title span,
#stage .block-title,
#stage .block-title *,
#stage .block-title span,
.block-title,
.block-title *,
.block-title span,
.section-title,
.section-title *,
.subpage-section-title,
.subpage-section-title * {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -webkit-text-stroke: 0 !important;
    -webkit-text-stroke-width: 0 !important;
}

#contents .block-title::before,
#contents .block-title::after,
#stage .block-title::before,
#stage .block-title::after,
.block-title::before,
.block-title::after,
.section-title::before,
.section-title::after,
.subpage-section-title::before,
.subpage-section-title::after {
    content: none !important;
    display: none !important;
}

/* -------------------------------------------------------------
   Page Top Floating Button & Parent Site Link Button
------------------------------------------------------------- */
.page-top-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background: #012051;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(1, 32, 81, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    border: 2px solid #ffffff;
    cursor: pointer;
}

.page-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-top-btn:hover {
    background: #d9480f !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(217, 72, 15, 0.4);
}

.page-top-btn .arrow {
    font-size: 13px;
    line-height: 1;
    margin-bottom: 2px;
}

.page-top-btn .label {
    font-size: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-parent-site:hover {
    background: #00163a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 32, 81, 0.25) !important;
}

.btn-parent-site:hover span:last-child {
    transform: translateX(4px);
}

/* -------------------------------------------------------------
   Scroll Margin Offset for Fixed Header Navigation
------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

[id] {
    scroll-margin-top: 85px;
}

#map,
#stage,
#whats-new,
#contents,
#special-programs,
#artists-profile,
#ground-stage,
#gym-stage {
    scroll-margin-top: 90px !important;
}

/* -------------------------------------------------------------
   Clean Japanese Line Breaks for FES Headings
------------------------------------------------------------- */
.section-title .subtitle,
.block-title .subtitle {
    line-height: 1.55 !important;
    word-break: keep-all;
    overflow-wrap: normal;
}

.subtitle-line {
    display: inline-block;
    white-space: nowrap;
}

.download-page-title span {
    display: inline;
}

#contents .block-title .subtitle,
#map .section-title .subtitle {
    display: block !important;
    margin-left: 0 !important;
    margin-top: 8px !important;
}

.contents-area-block h3,
#map .map-content-item h3 {
    flex-wrap: wrap;
    line-height: 1.35 !important;
    row-gap: 6px;
}

.contents-area-block h3 span,
#map .map-content-item h3 span {
    word-break: keep-all;
    overflow-wrap: normal;
}

@media (max-width: 480px) {
    #contents .block-title .subtitle,
    #map .section-title .subtitle {
        max-width: 18em;
        margin-right: auto !important;
        margin-left: auto !important;
        font-size: 0.9rem !important;
    }

    .download-page-title span {
        display: block;
    }
}

