@charset "UTF-8";

/* Reset & Base */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Vertical Writing for Nav */
.writing-vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Custom Scrollbar for Sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

/* -------------------------------------------------------------
   Layout Phases (PC Only)
------------------------------------------------------------- */
@media (min-width: 1024px) {

    /* PHASE 1: FV ~ About (Split Layout) */
    .layout-phase-1 {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        position: relative;
    }

    /* Left Sticky Area (Now Scrollable Document Flow) */
    .sticky-sidebar {
        width: 35%;
        min-height: 100vh;
        height: auto;
        position: relative;
        z-index: 50;
        background-color: #1A1A1A;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0 2rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Right Scroll Area (Now Sticky FV) */
    .scroll-content-area {
        width: 65%;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }

    /* About Broken Grid */
    .about-broken-grid {
        margin-left: -5%;
        /* Pull left visually */
        width: 90%;
        margin-top: 10vh;
    }


    /* PHASE 2: Service ~ Footer (Standard Layout) */
    .layout-phase-2 {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 4rem;
        /* Restore padding */
        position: relative;
        z-index: 20;
        /* Above any fixed bg */
        background-color: #1A1A1A;
    }

    /* Utility to break out of max-width container for full-width background */
    .break-out-full-width {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        max-width: 100vw;
        padding-left: 4rem;
        padding-right: 4rem;
    }

    /* Adjust section titles for Phase 2 */
    .layout-phase-2 .section-title-wrapper {
        display: flex;
        justify-content: center;
        margin-bottom: 5rem;
    }
}

/* Global resets for specific request */
img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Adjust Section Spacing globally */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    section {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #B03A48;
}

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

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    opacity: 0;
    animation-fill-mode: forwards;
    /* Animation is triggered by JS adding a class or IntersectionObserver, but here I'll use a simple utility class approach coupled with JS observer */
}

.fade-in-valid {
    animation: fadeInUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Ken Burns Effect for FV */
@keyframes kenburns {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.1);
    }
}

.animate-kenburns {
    animation: kenburns 10s ease-out infinite alternate;
}

/* Swiper Fade Effect Override */
.swiper-slide {
    transition: opacity 1s ease-in-out;
}

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

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

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

/* Utility Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Selection Color */
::selection {
    background: #B03A48;
    color: #fff;
}

/* FV Height Fix for mobile browsers */
#fv {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 1024px) {
    #fv {
        aspect-ratio: auto;
        height: 100vh;
        height: 100dvh;
    }
}

/* MENU text color */
#recommend,
#recommend h2,
#recommend h3,
#recommend p,
#recommend span,
#recommend div {
    color: #2b2121 !important;
}

/* ACCESS is intentionally light, independent of the site's dark brand-white token. */
#access,
#access > div,
#access .fade-in-up,
#access .fade-in-up > div,
#access .fade-in-up > div > div,
#access .bg-brand-white {
    background-color: #fff !important;
}

#access .text-white {
    color: #333 !important;
}

/* MESSAGE fixed background and dark overlay */
#message {
    position: relative;
    isolation: isolate;
    background-image: url('../img/recommendbg.jpg');
    background-position: left center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#message::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.62);
    pointer-events: none;
}

#message > * {
    position: relative;
    z-index: 1;
}

#message,
#message h3,
#message p,
#message .text-brand-purple,
#message .text-\[\#444444\],
#message .text-\[\#666666\] {
    color: #fff !important;
}

/* Smartphone-safe fixed backgrounds for iOS/Android browsers. */
@media (max-width: 767px),
       (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    #fv,
    #service,
    #message {
        position: relative;
        background: none !important;
        isolation: isolate;
        -webkit-clip-path: inset(0);
        clip-path: inset(0);
    }

    #fv::before,
    #service::before,
    #message::before {
        content: '';
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 0;
        pointer-events: none;
        background-repeat: no-repeat;
        background-size: cover;
    }

    #fv::before,
    #service::before {
        background-image: url('../img/bg1.png');
        background-position: center;
    }

    #message::before {
        background-image: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)), url('../img/recommendbg.jpg');
        background-position: left center;
    }

    #fv > *,
    #service > *,
    #message > * {
        position: relative;
        z-index: 1;
    }
}
