@charset "UTF-8";

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --color-bg: #030308;
    --color-bg-alt: #0a0a1a;
    --color-text: #f0f0f0;
    --color-accent: #c9a764;
    --color-accent-light: #f0d070;
    --color-gold-gradient: linear-gradient(135deg, #f0d070 0%, #c9a764 50%, #9a7b3d 100%);
    
    /* Wicked-inspired dual tones */
    --color-glow-pink: rgba(255, 0, 127, 0.2);
    --color-glow-blue: rgba(0, 255, 255, 0.15);
    
    --font-heading: 'Shippori Mincho', 'Noto Serif JP', serif;
    --font-body: 'Noto Serif JP', serif;

    --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-mid: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(circle at 10% 20%, var(--color-glow-pink) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--color-glow-blue) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.is-loading {
    overflow: hidden;
    height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--color-bg-alt);
}

.section-title {
    font-size: 3.5rem;
    background: var(--color-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text; /* Fix lint error */
    -webkit-text-fill-color: transparent;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    letter-spacing: 0.15em;
    font-weight: 200;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--color-gold-gradient);
}

.section-title::before {
    top: -20px;
}

.section-title::after {
    bottom: -20px;
}

.section-title .ja {
    display: block;
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-top: 15px;
    letter-spacing: 0.4em;
    -webkit-text-fill-color: var(--color-accent);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.header.scrolled {
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
}

.nav a:not(.btn-support)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav a:not(.btn-support):hover::after {
    width: 100%;
}

.btn-ticket {
    background: var(--color-gold-gradient);
    padding: 10px 30px;
    color: #000 !important;
    border-radius: 2px;
    font-weight: 700;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(201, 167, 100, 0.3);
}

.btn-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 167, 100, 0.6);
}



/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%; 
    left: -10%; 
    width: 120%; 
    height: 120%;
    background-image: url('../assets/images/poster.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.6);
    z-index: 0;
}

.hamburger { display: none; }
.sp-only { display: none; }

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../assets/images/poster.jpeg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(3, 3, 8, 1) 95%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-text);
    max-width: 800px;
}

.hero-brand {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1.5s 0.3s forwards ease-out;
}

.movie-type {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.hero-logo {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    background: linear-gradient(to bottom, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.catchphrase {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s 0.8s forwards ease-out;
    letter-spacing: 0.1em;
}

.sub-catchphrase {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    opacity: 0;
    animation: fadeIn 1.5s 1.5s forwards ease-out;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--color-white);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}

.scroll-down::after {
    content: '';
    width: 1px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    animation: scrollLine 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top;
}

/* ==========================================================================
   Intro Section
   ========================================================================== */
.intro-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 1.5rem;
    text-align: left; /* Changed from justify */
}

.intro-text p:first-child {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 2.5rem;
}

.intro-image {
    flex: 1;
    position: relative;
    width: 100%;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.intro-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-accent);
    z-index: 0;
}

.intro-image img {
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Cast Section
   ========================================================================== */
.cast-grid-top,
.cast-grid-bottom {
    display: grid;
    gap: 40px;
}

.cast-grid-top { margin-bottom: 40px; }

@media (min-width: 769px) {
    .cast-grid-top {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px; /* Limits width so they don't look too wide */
        margin-left: auto;
        margin-right: auto;
    }
    .cast-grid-bottom {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cast-grid-top, .cast-grid-bottom {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.cast-item {
    text-align: center;
}

.cast-img {
    margin-bottom: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    border: 1px solid rgba(201, 167, 100, 0.2);
    position: relative;
    transition: border-color 0.5s ease;
}

.cast-img::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(201, 167, 100, 0);
    z-index: 2;
    transition: all 0.5s ease;
    pointer-events: none;
}

.cast-item:hover .cast-img::before {
    border-color: rgba(201, 167, 100, 0.5);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cast-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(20%) contrast(1.1);
}

.cast-item:hover .cast-img img {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1);
}

.cast-info h3 {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.cast-info h4 {
    font-size: 1.5rem;
    color: var(--color-white);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
/* Gallery Marquee */
.gallery-marquee {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(201, 167, 100, 0.1);
    border-bottom: 1px solid rgba(201, 167, 100, 0.1);
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.gallery-item {
    width: 350px;
    margin: 0 10px;
    flex-shrink: 0;
    overflow: hidden;
    aspect-ratio: 16/9;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: grayscale(40%) brightness(0.8);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

/* Responsive adjustments for gallery */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Staff & Support Settings
   ========================================================================== */
.staff-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
}

.staff-member {
    max-width: 300px;
    text-align: center;
}

.staff-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid var(--color-accent);
}

.staff-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
}

.staff-info h3 {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.staff-info h4 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.staff-info p {
    font-size: 0.9rem;
    text-align: left;
}

.staff-credits {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    line-height: 2.2;
}

.support-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-bg);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 3px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    color: var(--color-bg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

/* Footer Copyright Styles */
.footer-copyright {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.05em;
}

.stealth-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.stealth-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-blur {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* ==========================================================================
   Cinematic Opening
   ========================================================================== */
.site-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-pan-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.intro-pan-img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.4);
    transform: translateY(-33.33%);
    will-change: transform;
    transition: transform 5s cubic-bezier(0.16, 1, 0.3, 1), filter 5s ease;
}

.site-intro.panning .intro-pan-img {
    transform: translateY(0);
    filter: brightness(0.8);
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.intro-tagline {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    opacity: 0;
    margin-top: 20px;
    transform: translateY(10px);
    transition: opacity 1s ease, transform 1s ease;
    text-shadow: 0 0 20px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
}

.site-intro.text-reveal .intro-tagline {
    opacity: 1;
    transform: translateY(0);
}

.intro-blackout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.site-intro.blackout .intro-blackout {
    opacity: 1;
}

.site-intro.finished {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: rgba(201, 167, 100, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-accent);
    color: #000;
    transform: translateY(-5px);
}

.back-to-top .arrow {
    font-size: 20px;
    line-height: 1;
}

/* ==========================================================================
   Modal Popup
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: 5px;
    border: 1px solid rgba(201, 167, 100, 0.3);
    max-width: 600px;
    width: 90%;
    position: relative;
    margin: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

body.modal-open {
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-body h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(201, 167, 100, 0.2);
    padding-bottom: 10px;
}

.modal-works {
    margin-bottom: 25px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 3px;
}

.modal-comment {
    font-size: 1rem;
    line-height: 1.8;
}

/* Make cast/staff items clickable visually */
.cast-item, .staff-member {
    cursor: pointer;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .sp-only {
        display: block;
    }
    
    .intro-tagline {
        font-size: 1.5rem !important;
        line-height: 1.5;
    }

    .container {
        padding: 0 8%;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        width: 100%;
    }
    
    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 100;
    }
    .hamburger span {
        position: absolute;
        width: 100%;
        height: 2px;
        background: #fff;
        transition: 0.3s;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 9px; }
    .hamburger span:nth-child(3) { top: 18px; }
    
    .hamburger.active span:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        top: 9px;
        transform: rotate(-45deg);
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 15, 20, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 90;
    }
    
    .nav.nav-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .footer-copyright .separator {
        display: none;
    }
    
    .footer-copyright .produced-by {
        display: block;
        margin-top: 5px;
    }

    .btn-ticket {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .hero-logo {
        font-size: 2.2rem;
    }

    .catchphrase {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-parallax-bg {
        background-position: center 10%;
    }

    .gallery-item {
        width: 250px;
    }

    .intro-content,
    .staff-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .intro-image {
        margin-left: 0;
        width: 100%;
    }
    
    .intro-image::before {
        top: -10px;
        left: -10px;
    }
}