/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section Margins */
.section-margin {
    margin-top: 80px;
    /* SP */
    margin-bottom: 80px;
    /* SP */
}

@media (min-width: 1024px) {
    .section-margin {
        margin-top: 120px;
        /* PC */
        margin-bottom: 120px;
        /* PC */
    }
}

/* Premium Section Titles */
.section-header {
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .section-header {
        margin-bottom: 5rem;
    }
}

.section-sub-title {
    font-family: 'Outfit', sans-serif;
    color: #E60012;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.section-main-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    padding-bottom: 1.5rem;
}

@media (max-width: 767px) {
    h3.text-2xl {
        font-size: 1.25rem !important;
    }

    .text-4xl {
        font-size: 1.75rem !important;
    }

    .text-5xl {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 768px) {
    .section-main-title {
        font-size: 2.25rem;
    }
}

.section-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #E60012;
    transition: width 0.3s ease;
}

.text-center .section-main-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header:hover .section-main-title::after {
    width: 80px;
}

/* Vertical Text for Scroll Down */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Scroll Line Animation */
.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E60012;
    animation: scroll-anim 2.5s infinite;
}

@keyframes scroll-anim {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Hamburger Animation */
#hamburger-btn.active #bar1 {
    transform: rotate(45deg);
}

#hamburger-btn.active #bar2 {
    opacity: 0;
}

#hamburger-btn.active #bar3 {
    transform: rotate(-45deg);
}

/* Header Logic */
header {
    height: 80px;
}


header .container {
    height: 100%;
}

/* Header Glassmorphism on Scroll */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /* height remains 80px to keep padding consistent */
}


/* Gallery Hover Effect */
.gallery-link {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

/* Swiper Pagination Below Image */
.gallery-swiper {
    padding-bottom: 50px !important;
}

.gallery-swiper .swiper-pagination {
    bottom: 0 !important;
}

.gallery-swiper .swiper-pagination-bullet-active {
    background: #E60012 !important;
}

/* Swiper Fade Customization */
.fv-swiper {
    width: 100%;
}

.fv-swiper .swiper-slide {
    background-color: #000;
}

.fv-swiper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Ensure the picture doesn't have extra bottom space */
.fv-swiper picture {
    display: block;
    line-height: 0;
}



/* Asymmetric Layout Rhythm */
@media (min-width: 768px) {
    .asymmetry-reverse {
        flex-direction: row-reverse;
    }
}

/* Parallax Fix for Mobile */
@media (max-width: 1023px) {
    .bg-fixed {
        background-attachment: scroll !important;
    }
}

/* Brand Logo Utility */
.brand-logo {
    display: inline-block;
}

.brand-logo img {
    display: block;
    object-fit: contain;
}


/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Right Click Prevention Overlay (Optional feedback) */
#rc-msg {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}