/* Base Styles using Noto Serif JP is handled by Tailwind config in HTML */

body {
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Mobile Menu Animation */
#menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

#menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Fade In Animation Utility */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

/* Grayscale to Color transition on scroll */
.fade-in img {
    filter: grayscale(100%);
    transition: filter 0.8s ease-out;
}

.fade-in.visible img {
    filter: grayscale(0%);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Text Selection */
::selection {
    background-color: #b91c1c;
    color: #ffffff;
}

/* Utility for aspect ratio if needed */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* --- High-end Adult Neon Heading Style --- */
.neon-title-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.neon-heading-box {
    position: relative;
    padding: 1.25rem 3.5rem;
    background: rgba(5, 5, 5, 0.75);
    border: 1.5px solid #b91c1c;
    /* brand-red */
    border-radius: 2px;
    box-shadow:
        0 0 15px rgba(185, 28, 28, 0.4),
        inset 0 0 10px rgba(185, 28, 28, 0.2);
    transition: all 0.5s ease;
}

/* Optional glow accent on corners */
.neon-heading-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.neon-heading-text {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin: 0;
    text-shadow:
        0 0 4px #fff,
        0 0 10px rgba(185, 28, 28, 0.8),
        0 0 18px rgba(185, 28, 28, 0.6);
}

@media (min-width: 768px) {
    .neon-heading-text {
        font-size: 1.875rem;
        /* md:text-3xl */
    }

    .neon-heading-box {
        padding: 1.5rem 5rem;
    }
}

/* Subtle Flicker Animation - sophisticated, not distracting */
@keyframes neon-subtle-flicker {

    0%,
    100% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    89% {
        opacity: 0.94;
    }

    90% {
        opacity: 1;
    }

    94% {
        opacity: 1;
    }

    95% {
        opacity: 0.98;
    }
}

.neon-flicker {
    animation: neon-subtle-flicker 5s infinite ease-in-out;
}

/* Blue variant for flexibility */
.neon-blue .neon-heading-box {
    border-color: #0ea5e9;
    /* Light blue */
    box-shadow:
        0 0 15px rgba(14, 165, 233, 0.4),
        inset 0 0 10px rgba(14, 165, 233, 0.2);
}

.neon-blue .neon-heading-text {
    text-shadow:
        0 0 4px #fff,
        0 0 10px rgba(14, 165, 233, 0.8),
        0 0 18px rgba(14, 165, 233, 0.6);
}

/* --- Premium Enhanced Neon (For ABOUT section) --- */
.neon-premium .neon-heading-box {
    border-color: #ef4444;
    /* Slightly brighter red for the core */
    box-shadow:
        0 0 20px rgba(185, 28, 28, 0.5),
        0 0 40px rgba(185, 28, 28, 0.2),
        inset 0 0 15px rgba(185, 28, 28, 0.3);
}

.neon-premium .neon-heading-text {
    text-shadow:
        0 0 5px #fff,
        0 0 12px rgba(239, 68, 68, 0.9),
        0 0 25px rgba(185, 28, 28, 0.7),
        0 0 40px rgba(185, 28, 28, 0.4);
}

/* Breathing animation for a "living" glow */
@keyframes neon-breathing {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.95;
        filter: brightness(1.15);
    }
}

.neon-premium {
    animation: neon-breathing 4s infinite ease-in-out;
}

/* --- FV Neon Gallery Styles --- */
.fv-section {
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    padding: 60px 0 100px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .fv-section {
        min-height: 100vh;
        padding: 80px 0;
    }
}

/* Swiper Slide custom sizes */
.fv-swiper .swiper-slide {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease;
    padding: 40px 20px;
    /* Vertical padding to prevent clipping */
    overflow: visible !important;
}

.fv-img-wrapper {
    position: relative;
    padding: 6px;
    /* Border thickness */
    background: linear-gradient(45deg, #a855f7, #ec4899, #3b82f6);
    box-shadow:
        0 0 15px rgba(168, 85, 247, 0.4),
        0 0 30px rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    transition: all 0.5s ease;
    transform: rotate(var(--fv-rotate, 0deg));
    transform-origin: center center;
    will-change: transform;
}

/* Ensure image stays within border-radius */
.fv-img-wrapper img {
    border-radius: 2px;
}

/* Base sizes - Modified to prevent cropping */
.fv-img-large {
    height: 320px;
}

.fv-img-small {
    height: 220px;
}

@media (min-width: 768px) {
    .fv-img-large {
        height: 520px;
    }

    .fv-img-small {
        height: 360px;
    }
}

.fv-img-wrapper img {
    width: auto;
    height: 100%;
    max-width: 85vw;
    object-fit: contain;
    display: block;
    filter: brightness(0.7) contrast(1.1);
    transition: filter 0.5s ease;
}

.swiper-slide-active .fv-img-wrapper img {
    filter: brightness(1.1) contrast(1.0);
}

.swiper-slide-active .fv-img-wrapper {
    transform: rotate(var(--fv-rotate, 0deg)) scale(1.05);
    box-shadow:
        0 0 25px rgba(168, 85, 247, 0.6),
        0 0 50px rgba(59, 130, 246, 0.3);
}

/* Tilt effects using variables */
.fv-tilt-left {
    --fv-rotate: -6deg;
}

.fv-tilt-right {
    --fv-rotate: 6deg;
}

/* Allow swiper container to bleed for rotation */
.fv-swiper,
.fv-swiper .swiper-wrapper {
    overflow: visible !important;
}

/* FV Content Text */
.fv-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 100%;
    text-align: center;
    pointer-events: none;
    padding: 0 20px;
}

.fv-main-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.7),
        0 0 25px rgba(168, 85, 247, 0.5);
    line-height: 1.2;
}

.fv-sub-title {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .fv-main-title {
        font-size: 5.5rem;
        letter-spacing: 0.3em;
    }

    .fv-sub-title {
        font-size: 1.25rem;
        letter-spacing: 0.2em;
    }
}