:root {
    /* Urban Legend / Stylish Palette */
    --color-primary-red: #8a0000;
    /* Darker blood red */
    --color-primary-blue: #0a0a0a;
    --color-primary-yellow: #FAFAFA;
    --color-black: #000000;
    --color-white: #e0e0e0;
    --color-bg-paper: #E0E0E0;

    --font-mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
    /* Updated to Horror font being primary mincho */
    --font-gothic: "Helvetica Neue", Arial, sans-serif;
    --font-horror: "Shippori Mincho", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-gothic);
    background-color: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.98)),
        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='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* Background Collage Styles */
.background-collage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Behind everything */
    pointer-events: none;
    overflow: hidden;
}

.bg-item {
    position: absolute;
    opacity: 0.15;
    /* Low opacity to not interfere with text */
    mix-blend-mode: multiply;
    /* Blends nicely with dark background */
    filter: grayscale(100%) contrast(1.2);
    /* Black and white aesthetic */
}

/* Individual positioning and styling for collage effect */
.item-1 {
    top: -5%;
    left: -5%;
    width: 45%;
    transform: rotate(15deg);
}

.item-2 {
    top: 35%;
    right: -15%;
    width: 50%;
    transform: rotate(-10deg);
}

.item-3 {
    bottom: -10%;
    left: 5%;
    width: 40%;
    transform: rotate(5deg);
}

.item-4 {
    top: 15%;
    left: 35%;
    width: 30%;
    transform: rotate(45deg);
    opacity: 0.08;
}

.item-5 {
    bottom: 25%;
    left: -10%;
    width: 40%;
    transform: rotate(-25deg);
}

.item-6 {
    top: -5%;
    right: 5%;
    width: 40%;
    transform: rotate(180deg);
}

.item-7 {
    bottom: -5%;
    right: -5%;
    width: 50%;
    transform: rotate(-5deg);
}


/* Scattered Mascot Styles */
/* Body relative for absolute mascot positioning */
body {
    position: relative;
}

/* Scattered Mascot Styles - Guiding the Page */
.mascot-collage {
    position: absolute;
    /* Scrolls with page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind text but above background collage */
    pointer-events: none;
    overflow: hidden;
}

.mascot-item {
    position: absolute;
    width: 500px;
    /* 2x size increase */
    opacity: 1;
    /* Fully visible */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
    /* Stronger shadow */
}

/* Strategic Placement to "Guide" - Adjusted for larger size */
/* 1. Intro/Title Area - Peeking from right */
.mascot-1 {
    top: 100px;
    right: -150px;
    transform: rotate(-10deg);
}

/* 2. Story/Cast Area - Peeking from left */
.mascot-2 {
    top: 800px;
    left: -150px;
    transform: rotate(15deg);
}

/* 3. Timetable/Ticket Area - Peeking from right */
.mascot-3 {
    top: 1500px;
    right: -180px;
    transform: rotate(-15deg);
}

/* 4. Map/Access Area - Peeking from left */
.mascot-4 {
    top: 2200px;
    left: -120px;
    transform: rotate(10deg);
}

/* 5. Footer Area - Peeking from bottom right */
.mascot-5 {
    bottom: -100px;
    right: -50px;
    transform: rotate(-5deg);
}

/* Yorokobi */

/* Typography Utils */
.font-mincho {
    font-family: var(--font-mincho);
}

.font-gothic {
    font-family: var(--font-gothic);
}

.text-red {
    color: var(--color-primary-red);
    text-shadow: 0 0 5px var(--color-primary-red);
}

/* Layout Containers */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #330000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-mincho);
    color: #888;
    letter-spacing: 0.1em;
}

/* Hero Section */
.hero {
    margin-top: 0;
    position: relative;
    width: 100%;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    border-bottom: 1px solid #330000;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

.hero-overlay {
    position: relative;
    text-align: center;
    color: var(--color-white);
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-horror);
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
    line-height: 1.2;
}

.sub-title {
    font-size: 2rem;
    font-weight: 500;
    color: #ccc;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.main-title {
    font-size: max(4rem, 8vw);
    font-weight: 800;
    color: #e0e0e0;
    letter-spacing: 0.1em;
    display: block;
    text-shadow:
        4px 4px 0px #300000,
        -1px -1px 0 rgba(100, 0, 0, 0.5);
    filter: blur(0.5px);
    transform: scaleY(1.1);
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Sections General */
section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    color: var(--color-white);
    padding: 10px 20px;
    border: none;
    border-top: 1px solid var(--color-primary-red);
    border-bottom: 1px solid var(--color-primary-red);
    box-shadow: none;
    letter-spacing: 0.3em;
    font-family: var(--font-gothic);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--color-primary-red);
    bottom: -5px;
    left: 0;
    opacity: 0.5;
}

/* Radical Decorations */
/* About Section */
.about-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border: 1px solid var(--color-white);
    position: relative;
    box-shadow: 15px 15px 0 var(--color-black), 0 0 20px rgba(211, 0, 0, 0.1);
    color: var(--color-white);
}

.about-decoration {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1px solid var(--color-primary-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary-red);
}

.radical-decoration {
    /* Renamed concept but keeping class for HTML compatibility */
    position: absolute;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    filter: invert(1);
    mix-blend-mode: exclusion;
}

.circle-deco {
    border-radius: 50%;
    border: 1px solid var(--color-white);
    background: transparent !important;
    /* Override inline styles */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.triangle-deco {
    /* Hide triangles or convert to lines */
    display: none;
}

/* Info Section (Bulletin Board) */
.info-board {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-white);
    padding: 30px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(211, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}

.info-item {
    border-bottom: 1px solid var(--color-primary-red);
    padding: 15px 0;
    display: flex;
    gap: 20px;
    transition: background 0.3s;
}

.info-item:hover {
    background: rgba(211, 0, 0, 0.1);
}

.info-date {
    font-weight: bold;
    color: var(--color-primary-red);
    font-family: var(--font-gothic);
    letter-spacing: 0.1em;
}

.info-text {
    font-family: var(--font-mincho);
}

/* Performance Section */
.performance-card {
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid var(--color-primary-red);
    padding: 40px;
    position: relative;
    transform: none !important;
    /* Override rotation */
    box-shadow: 10px 10px 0 var(--color-black), -5px -5px 15px rgba(211, 0, 0, 0.2);
}

.performance-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-white);
    padding-bottom: 20px;
}

.performance-title {
    font-size: 3.5rem;
    font-family: var(--font-mincho);
    line-height: 1.1;
    margin: 10px 0;
    text-shadow: 0 0 5px var(--color-primary-red);
    color: var(--color-white);
}

.performance-badge {
    background: var(--color-primary-red);
    color: var(--color-white);
    padding: 5px 15px;
    font-weight: bold;
    border: 1px solid var(--color-white);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    box-shadow: 0 0 10px rgba(211, 0, 0, 0.5);
}

.btn-ticket {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 5px 5px 0 var(--color-primary-red);
    transition: all 0.2s;
    font-family: var(--font-gothic);
}

.btn-ticket:hover {
    background: var(--color-primary-red);
    box-shadow: 2px 2px 0 var(--color-white);
    transform: translate(3px, 3px);
    text-shadow: 0 0 5px white;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.staff-item strong {
    display: block;
    background: transparent;
    color: var(--color-primary-red);
    padding: 0;
    width: fit-content;
    font-size: 0.9rem;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--color-primary-red);
    letter-spacing: 0.1em;
}

.staff-item span {
    font-family: var(--font-mincho);
    font-size: 1.1rem;
}

/* Cast Section */
.cast-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cast-item {
    text-decoration: none;
    text-align: center;
    color: var(--color-white);
    transition: transform 0.3s;
}

.cast-item:hover {
    transform: translateY(-5px);
}

/* Featured Music Section */
.music-item img {
    width: 130px;
    /* Slightly smaller than cast (150px) */
    height: 195px;
    /* Proportional vertical oval */
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-primary-red);
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: #333;
    transition: transform 0.3s;
}

.music-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--color-primary-red);
}

/* Main Title Spacing Adjustment */
.main-title {
    /* ... existing styles ... */
    margin-bottom: 20px;
    /* Reduced spacing */
    white-space: nowrap;
    /* Prevent line break on large screens */
}

.hero-section {
    padding-bottom: 20px;
    /* Reduced padding */
}

/* Flyer Style Timetable */
.flyer-timetable {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: transparent;
    font-family: var(--font-gothic);
}

.flyer-timetable th {
    background: var(--color-primary-red);
    color: var(--color-white);
    padding: 8px;
    font-weight: bold;
    border: 1px solid var(--color-white);
    font-size: 1rem;
}

.flyer-timetable td {
    border: 1px solid var(--color-white);
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.flyer-timetable .ft-date {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-white);
    background: #222;
}

.flyer-timetable .ft-day {
    font-size: 0.9rem;
    font-weight: normal;
}

.flyer-timetable .ft-cell {
    color: var(--color-white);
    font-size: 1.2rem;
}

.flyer-timetable .circle {
    color: var(--color-primary-red);
    font-weight: 900;
}

/* Ticket Styles (No Border) */
.ticket-info {
    max-width: 400px;
    margin: 0 auto;
    /* Removed background and border */
    padding: 10px;
    font-family: var(--font-gothic);
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1.2rem;
    border-bottom: 1px dotted #555;
    /* Minimal separator if needed, or remove */
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-label {
    font-weight: bold;
}

.ticket-price {
    color: var(--color-primary-red);
    font-weight: bold;
    font-size: 1.4rem;
}

/* Cast Section Image Overrides */
.cast-item img {
    width: 150px;
    height: 225px;
    /* Vertical oval (1.5x width) */
    object-fit: cover;
    border-radius: 50%;
    /* Makes it oval */
    border: 2px solid var(--color-primary-red);
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: #333;
}

.cast-name {
    font-family: var(--font-mincho);
    font-size: 1.1rem;
    text-shadow: 0 0 5px black;
}

/* Map Container */
.map-container {
    width: 100%;
    margin-top: 15px;
    border: 1px solid var(--color-primary-red);
    filter: invert(0.9) hue-rotate(180deg);
    /* Dark mode map effect */
    transition: filter 0.3s;
}

.map-container:hover {
    filter: invert(0) hue-rotate(0deg);
    /* Normal map on hover */
}

/* Author Section */
.author-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: transparent;
    color: var(--color-white);
    padding: 40px;
    border-radius: 0;
    border: 1px solid var(--color-white);
    position: relative;
    overflow: hidden;
}

.author-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(211, 0, 0, 0.1), transparent);
    z-index: 0;
}

.author-img-container {
    width: 150px;
    height: 150px;
    border: 1px solid var(--color-white);
    padding: 5px;
    /* Frame gap */
    flex-shrink: 0;
}

.author-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid var(--color-white);
    border-radius: 0;
    /* Square for starkness */
    filter: grayscale(100%) contrast(1.2);
    z-index: 1;
}

/* Footer */
footer {
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 60px 20px;
    margin-top: 100px;
    border-top: 1px solid var(--color-primary-red);
    font-family: var(--font-gothic);
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link {
    color: var(--color-primary-red);
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.footer-link:hover {
    border-bottom: 1px solid var(--color-primary-red);
    text-shadow: 0 0 10px var(--color-primary-red);
}



/* Mascot Canvas */
#mascot-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: exclusion;
    opacity: 0.8;
}

/* Scattered Mascots - HIDDEN per user request */
.scattered-mascot {
    position: absolute;
    pointer-events: none;
    z-index: 50;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    display: none;
    /* Hide mascots */
}

.mascot-header {
    top: 20px;
    right: 40px;
    width: 225px;
    height: auto;
    z-index: 1001;
}

.mascot-hero {
    bottom: 15%;
    left: 10%;
    width: 375px;
}

.mascot-info {
    bottom: -60px;
    right: -40px;
    width: 420px;
    transform: rotate(-10deg);
}

.mascot-performance {
    bottom: 40px;
    right: 40px;
    width: 330px;
}

.mascot-footer {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mascot-header {
        width: 150px;
        right: 10px;
    }

    .mascot-hero {
        width: 225px;
        left: 5%;
        bottom: 10%;
    }

    .mascot-info {
        width: 210px;
        right: -20px;
    }

    .mascot-performance {
        width: 180px;
    }

    .mascot-footer {
        width: 180px;
        top: -120px;
    }
}

/* End of File Cleanup */

/* Mobile Responsive Adjustments */
/* Mobile Responsive Adjustments */
@media (max-width: 768px) {

    /* Title Fix */
    .main-title {
        font-size: 11vw;
        /* Condensed slightly */
        white-space: normal;
        /* Allow wrapping */
        word-break: break-all;
        /* Ensure break if line is too long, though 'normal' is usually fine for JP */
        overflow-wrap: break-word;
        /* Safer */
        line-height: 1.2;
        padding: 0 10px;
    }

    /* Background Visibility */
    .bg-item {
        opacity: 0.35;
        /* Increased opacity from 0.15 */
    }

    /* Mascot Resizing & Positioning */
    .mascot-item {
        width: 80vw;
        /* 2x size (was 40vw) */
    }

    /* Move Mascots further off-screen to avoid overlaying text, since they are HUGE */
    .mascot-1 {
        top: 350px;
        right: -30vw;
        /* Pushed out */
        transform: rotate(-10deg);
    }

    .mascot-2 {
        top: 900px;
        left: -30vw;
        /* Pushed out */
        transform: rotate(15deg);
    }

    .mascot-3 {
        top: 1900px;
        right: -30vw;
        /* Pushed out */
        transform: rotate(-15deg);
    }

    .mascot-4 {
        top: 2700px;
        left: -30vw;
        /* Pushed out */
        transform: rotate(10deg);
    }

    .mascot-5 {
        bottom: -50px;
        right: -20vw;
        /* Pushed out */
        transform: rotate(-5deg);
    }
}