:root {
    --primary-blue: #0284c7;     /* Casual Medium Blue */
    --light-blue: #38bdf8;       /* Sky Blue */
    --accent-yellow: #facc15;    /* Bright Yellow */
    --bg-sky: #f0f9ff;           /* Very Light Sky Blue bg */
    --text-dark: #0c4a6e;        /* Deep Blue text */

    /* Blue to Sky Blue gradient */
    --blue-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 60%, #7dd3fc 100%);
    /* Yellow accent gradient */
    --accent-gradient: linear-gradient(135deg, #facc15 0%, #fbbf24 100%);

    /* Mappings for existing classes */
    --primary-beige: var(--bg-sky);
    --warm-orange: var(--accent-yellow);
    --dark-brown: var(--text-dark);
    --accent-red: var(--accent-yellow);
    --onzs-dark: #0369a1;        /* Deep Blue dark backgrounds */
    --sand-beige: #bae6fd;
    --deep-green: #0ea5e9;
}

/* Updated Utilities */
.bg-gold-gradient {
    background: var(--blue-gradient) !important;
}

.text-gold-gradient {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

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

body {
    background-color: var(--primary-beige);
    color: var(--dark-brown);
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
}


/* Global Mobile Padding Reduction */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .px-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .grid {
        gap: 1.5rem !important; /* Slightly tighter grid gaps on mobile */
    }
}

/* Character Animation Base (Used in FV) */
.char {
    display: inline-block;
    opacity: var(--opacity, 0);
    transform: translateY(var(--translate-y, 15px));
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1),
        transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: calc(0.04s * var(--char-index));
    white-space: pre;
}

.fv-catch,
.fv-sub,
.fv-logo,
.fv-read-more {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fv-catch.is-active,
.fv-sub.is-active,
.fv-logo.is-active {
    opacity: 1;
    --opacity: 1;
    --translate-y: 0;
}

.fv-read-more.is-visible {
    opacity: 1;
}

.fv-catch {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.75;
    color: #333;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.fv-catch-line {
    display: block;
}

.fv-catch-line:nth-child(2) {
    white-space: nowrap;
}

.fv-sub {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    letter-spacing: 0.18em;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.fv-logo {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 500;
    color: #333;
    letter-spacing: 0.2em;
    margin-bottom: 2.8rem;
    line-height: 1.2;
}

.fv-logo .char {
    transition-delay: calc(0.06s * var(--char-index));
}

.fv-read-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.fv-read-more-line {
    width: 1px;
    height: 0;
    background-color: #333;
}

.fv-read-more-line.animate {
    animation: lineGrow 1.2s ease-out forwards;
}

@keyframes lineGrow {
    from {
        height: 0;
    }

    to {
        height: 70px;
    }
}

.fv-read-more-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #666;
    text-transform: lowercase;
}

@media (max-width: 1024px) {
    .fv-catch {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin-bottom: 1rem;
    }

    .fv-sub {
        margin-bottom: 2rem;
    }

    .fv-logo {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 2rem;
    }

    .fv-read-more {
        align-items: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .fv-catch {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .fv-sub {
        font-size: 0.85rem;
    }

    .fv-logo {
        font-size: 2.5rem;
    }

    .fv-read-more-line.animate {
        animation: lineGrowMobile 1.2s ease-out forwards;
    }

    @keyframes lineGrowMobile {
        from {
            height: 0;
        }

        to {
            height: 50px;
        }
    }

    .fv-read-more-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .fv-catch {
        font-size: 1.1rem;
    }

    .fv-logo {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* CTA & Reservation */
.reservation-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .reservation-title {
        font-size: 1.8rem;
    }
}

/* Menu Course Card */
.course-menu-card {
    background:
        radial-gradient(circle at 90% 10%, #FFF9E6, transparent 50%),
        radial-gradient(circle at 10% 90%, #FFF9E6, transparent 50%),
        #FBF8F1;
    /* Warm Off-White Base */
}

/* About Section Customization */
/* Outdated About/Recommend rules removed to avoid conflict */



img {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
}

/* Plumeria Accent */
.section-title h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--onzs-dark);
    /* Subtle blue shadow */
    text-shadow: 2px 2px 4px rgba(0, 119, 182, 0.2);
    margin-bottom: 0.5rem;
}

.section-title p {
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--dark-brown);
    margin-bottom: 25px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

/* Section Title Underline */
.section-title p::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    transform: translateX(-50%);
    opacity: 0.9;
}

.gallery-swiper .swiper-slide {
    width: 600px; /* Increased from 450px */
}

@media (max-width: 768px) {
    .gallery-swiper .swiper-slide {
        width: 100%; /* Increased from 90% */
    }
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.menu-link:hover::after {
    width: 100%;
}

main {
    padding-bottom: 0;
}

@media (min-width: 768px) {
    main {
        padding-bottom: 0;
    }
}

main {
    padding-bottom: 0;
}

/* Add padding to footer on mobile to prevent sticky bar overlap */
@media (max-width: 768px) {
    footer {
        padding-bottom: 90px;
    }
}

/* Scroll Animation */
.scroll-fade-up {
    opacity: 0 !important;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-fade-up.is-visible {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Scroll Animation - Zoom In */
.scroll-zoom-in {
    opacity: 0 !important;
    transform: scale(0.8);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-zoom-in.is-visible {
    opacity: 1 !important;
    transform: scale(1);
}

/* Scroll Animation - Stagger Children */
.scroll-stagger>* {
    opacity: 0 !important;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-stagger.is-visible>* {
    opacity: 1 !important;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.scroll-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.3s;
}

.scroll-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.5s;
}

.scroll-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.7s;
}

.scroll-stagger.is-visible>*:nth-child(5) {
    transition-delay: 0.9s;
}



/* ==========================================================================
   Gallery Modal (Lightbox)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    cursor: zoom-out;
    padding: 20px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active img {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
    transition: transform 0.2s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    transform: scale(1.1);
}

.modal__prev, .modal__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 2200;
}

.modal__prev:hover, .modal__next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal__prev { left: 30px; }
.modal__next { right: 30px; }

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    .modal__prev, .modal__next {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    .modal__prev { left: 10px; }
    .modal__next { right: 10px; }
    
    .modal img {
        max-width: 98%;
        max-height: 80vh;
    }
}

.gallery-item img {
    cursor: pointer;
}

/* Map height on mobile */
@media (max-width: 768px) {
    #access iframe {
        min-height: 550px !important;
    }
}

/* Review content adjustment */
.review-content-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    pointer-events: none;
    transition: opacity 0.3s;
}

.review-content-wrapper[style*="max-height: none"]::after {
    opacity: 0;
}

/* =========================================
   New Design Updates (Ref: buko-onsen)
   ========================================= */

/* Info Bar */
.info-bar {
    z-index: 101;
    position: relative;
}

/* FV Section - Full Background */
.fv-section-new {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    /* background-image: url('../img/fv_food_01.jpg'); */
    /* Replaced by slideshow */
    background-color: #f9f7f2;
    /* Fallback */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .fv-section-new {
        height: auto !important;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Content Wrapper visual adjustments */
    .fv-content-wrapper {
        background-color: var(--primary-beige);
        position: relative;
        z-index: 20;
        padding-bottom: 2rem;
        order: 1;
    }

    /* Wave positioning on mobile */
    .wave-container {
        bottom: -5px;
        z-index: 30;
        height: 50px;
        opacity: 0;
        animation: simple-fade-in 1.5s ease-out 3.2s forwards;
    }

    /* Wave orientation correction */
    .wave-svg {
        transform: scaleY(-1);
    }

    /* Background video on mobile: show below content */
    .fv-bg-video {
        position: relative !important;
        height: 35vh;
        min-height: 250px;
        width: 100%;
        inset: auto !important;
        order: 2;
        z-index: 1;
        opacity: 0;
        animation: simple-fade-in 1.5s ease-out 3.2s forwards;
    }
}

/* Mobile Slide Animations */
@keyframes fv-fade-mobile {
    0% {
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    10% {
        opacity: 1;
    }

    /* Holds for approx 4s in a 32s cycle */
    13% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes simple-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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


@media (min-width: 768px) {
    .fv-section-new {
        height: 85vh;
        min-height: 650px;
    }
}

/* Background Video (replaces fv-slideshow / fv-slide) */
.fv-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}



/* Overlay to improve text readability */
.fv-new-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.4);
    /* Adjust opacity */
    z-index: 1;
}

/* Center textual content */
.fv-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 60px;
    /* Space for wave */
}

/* Adjust text colors/shadows for visibility on image */
.fv-content-wrapper .fv-catch {
    color: #333;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.fv-content-wrapper .fv-sub {
    color: #444;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.fv-content-wrapper .fv-logo {
    color: #333;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.fv-content-wrapper .fv-read-more-text {
    color: #333;
    font-weight: 600;
}

.fv-content-wrapper .fv-read-more-line {
    background-color: #333;
}

/* Wave Animation Container */
.wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    /* Reduced slightly to prevent excessive overlap */
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    /* Lowered z-index to stay well below sections with z-50 */
    transform: rotate(180deg);
}

.wave-svg {
    position: relative;
    display: block;
    width: 300%;
    /* Make wider to allow horizontal movement */
    height: 100%;
    margin-left: -100%;
    /* Center the wider element */
}

@media (min-width: 768px) {
    .wave-container {
        height: 150px;
    }

    /* Taller on PC */
}

/* Base style for all paths */
.wave-svg path {
    transform-origin: center top;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    /* Sway back and forth to simulate seamless flow */
}

/* Layer 1 (Lightest, Back) */
.wave-svg path:nth-child(1) {
    animation-name: wave-flow-1;
    animation-duration: 8s;
    /* Slower, majestic flow */
    animation-delay: 0s;
    opacity: 0.3;
}

/* Layer 2 (Medium, Middle) */
.wave-svg path:nth-child(2) {
    animation-name: wave-flow-2;
    animation-duration: 6s;
    animation-delay: -2s;
    opacity: 0.5;
}

/* Layer 3 (Solid, Front) */
.wave-svg path:nth-child(3) {
    animation-name: wave-flow-3;
    animation-duration: 5s;
    animation-delay: -1s;
}

/* Animations for Left-to-Right Flow (In rotated 180deg container: -X is Right, +X is Left) */

@keyframes wave-flow-1 {
    0% {
        transform: scaleY(1) translateX(10%);
    }

    100% {
        transform: scaleY(1.1) translateX(-10%);
    }
}

@keyframes wave-flow-2 {
    0% {
        transform: scaleY(1.1) translateX(15%);
    }

    100% {
        transform: scaleY(1.2) translateX(-15%);
    }
}

@keyframes wave-flow-3 {
    0% {
        transform: scaleY(1) translateX(8%);
    }

    100% {
        transform: scaleY(1.1) translateX(-8%);
    }
}

/* Sticky Navigation below FV */
.sticky-nav {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Utility Classes for New Bali Palette */
.text-warm-orange {
    color: var(--warm-orange) !important;
}

.text-dark-brown {
    color: var(--dark-brown) !important;
}

.text-deep-green {
    color: var(--deep-green) !important;
}

.text-sand-beige {
    color: var(--sand-beige) !important;
}

.bg-warm-orange {
    background-color: var(--warm-orange) !important;
}

.bg-dark-brown {
    background-color: var(--dark-brown) !important;
}

.bg-deep-green {
    background-color: var(--deep-green) !important;
}

.bg-sand-beige {
    background-color: var(--sand-beige) !important;
}

.border-warm-orange {
    border-color: var(--warm-orange) !important;
}

.border-dark-brown {
    border-color: var(--dark-brown) !important;
}

/* About Section (Reset) */
#about {
    position: relative;
    background-color: #0284c7;
    color: #ffffff;
}

#about p {
    color: #ffffff !important;
    text-shadow: none !important;
}

#about .section-title h2 {
    color: var(--onzs-dark) !important;
    text-shadow: none !important;
}

#campaign {
    position: relative;
    background-color: #0ea5e9;
    overflow: hidden;
}

.campaign-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

#campaign .container {
    position: relative;
    z-index: 1;
}

/* Text overrides for readability over video */
/* Text overrides for readability over video */
#campaign .section-title h2,
#campaign>div>p {
    color: white !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ensure text inside white cards remains dark */
#campaign .bg-white h3,
#campaign .bg-white p,
#campaign .bg-white span,
#campaign .bg-white div {
    color: inherit !important;
    text-shadow: none !important;
}

#campaign .section-title h2,
#campaign>div>div>p,
/* Targeting paragraph inside container or generic p */
#campaign>div>p {
    color: white !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Fix for #recommend to match #tv background (Reset to default beige) */
#recommend {
    background-image: none !important;
    background-color: var(--primary-beige) !important;
    color: var(--dark-brown) !important;
}

#recommend .section-title h2,
#recommend p,
#recommend span {
    color: var(--dark-brown) !important;
}

#recommend .section-title h2::after {
    background: var(--accent-red) !important;
}



/* Gradient Blur Overlay - Strong blur at top, fading out */
#tv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Fade out the blur from top (opaque mask) to bottom (transparent mask) */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
}

#tv .container {
    width: 100%;
}

#tv h2,
#tv p,
#tv span,
#tv li {
    color: white !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Good for readability on bg image */
}

/* Fix border color in TV section (was dark brown) */
#tv .border-onzs-dark {
    border-color: white !important;
}

/* Glass Card effect: Deep brown with 38% alpha (user requested #3b2a1e61) */
.glass-card {
    background-color: #3b2a1ea1;
    /* Adjusted for better readability than 61 if it's too light, but user said 61. I'll use 61 as requested. */
    background-color: #3b2a1e61;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease;
}

.glass-card:hover {
    background-color: rgba(0, 0, 0, 0.2);
    /* Lightens on hover (like reference bg-black/20 -> 10) */
}


#tv .container {
    position: relative;
    z-index: 1;
}


/* Reservation Section Updates */
#reservation-cta {
    background-color: #0c4a6e;
    color: white;
    position: relative;
    z-index: 2;
}

#reservation-cta h2 {
    color: var(--sand-beige);
    /* Title Color */
}

#reservation-cta p {
    color: #f1f1f1;
}

/* TV Section - Gradient Overlay for Smooth Transition */
#tv::after {
    content: '';
    position: absolute;
    top: -1px;
    /* Slightly overlap to avoid gap lines */
    left: 0;
    width: 100%;
    height: 15rem;
    /* Sufficient height for smooth fade */
    background: linear-gradient(to bottom, var(--dark-brown) 0%, transparent 100%);
    z-index: 10;
    /* Above background image/blur but below container content */
    pointer-events: none;
}

/* Bottom Gradient for TV Section */
.section-bottom-gradient {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 15rem;
    /* Fade from transparent (TV) to dark (About) */
    background: linear-gradient(to bottom, transparent 0%, #0f2e2e 100%);
    z-index: 10;
    pointer-events: none;
}

/* Menu Section */

#tv h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#tv span,
#tv li {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

#tv .glass-card {
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark glass for image bg */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

#tv .container {
    position: relative;
    z-index: 20;
}

/* Recommend Section - Video Background via HTML */
#recommend {
    background: transparent;
    color: white;
    position: relative;
    padding-bottom: 6rem;
}

#recommend .section-title h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#recommend .section-title p {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Menu Section */
#menu {
    background-color: #f8fafc;
    position: relative;
    z-index: 50;
}

@media (max-width: 768px) {
    #menu {
        background-size: 300px auto, 300px auto, 300px auto, cover;
        background-position: left -20px top 5%, right -20px center, left -20px bottom 5%, center;
    }
}

/* About Section */
#about {
    background-color: #023e8a;
    color: white;
    padding-bottom: 8rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Removed decorative pseudo-element background images */
#about::before {
    content: none;
}

#about .section-title h2 {
    color: #ffffff;
    /* Adjusted to White */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#about .section-title p {
    color: #ffffff;
    /* Pure white for subtitle */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

#about p,
#about span,
#about li,
#about div {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Service Section */
#service {
    background-color: var(--primary-beige, #f0f9ff);
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    #service {
        background-size: 150px auto;
        background-position: top 0 right 0;
        /* separated menu_bt */
    }
}

/* Q&A Section */
#qa {
    background-color: var(--dark-brown);
    color: white;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Removed decorative pseudo-element */
#qa::before {
    content: none;
}

#qa .section-title h2 {
    color: var(--sand-beige);
}

#qa .section-title p {
    color: white;
}

/* Override utility classes for Q&A items to fit dark theme */
#qa .bg-white {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

#qa .border-onzs-dark {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

#qa button {
    color: white !important;
}

#qa button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

#qa .bg-\[\#f9f9f9\] {
    background-color: transparent !important;
    color: white !important;
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

#qa .qa-icon {
    color: var(--sand-beige);
}

/* Background Video Styling for Recommend & Flow */
.bg-video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Slight transparency to blend or soften */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: 1;
}

#recommend .video-overlay {
    background: rgb(203 203 203 / 50%);
}

#flow .video-overlay {
    background: #3b2a1eab;
}

#flow .section-title h2 {
    color: white !important;
}

/* Campaign Top Gradient for Smooth Transition from Recommend */
#campaign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15rem;
    /* Sufficient height for smooth fade */
    background: linear-gradient(to bottom, #3b2a1e 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

/* Service English Title Animation */
.service-eng-title {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-eng-title.is-active {
    opacity: 1;
}

.service-eng-title .char {
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s linear;
}

/* Payment Section Decoration */
/* Payment background moved to pseudo-element for opacity control */

/* Access Section Background */
#access {
    background-color: #0c4a6e;
    position: relative;
}

/* Customer Voice Styles */
#customer-voice .section-title p::after {
    background: #0ea5e9 !important;
}

/* Access Title White */
#access .section-title h2,
#access .section-title p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}


/* Reservation & Payment: solid backgrounds, no pseudo-element images */
#reservation-cta,
#payment {
    position: relative;
    z-index: 10;
    background-image: none !important;
}

#reservation-cta::before,
#payment::before {
    content: none;
}

/* Scroll Animations */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.reveal {
    opacity: 0;
    transition: opacity 1.2s ease-out;
}

.reveal.is-visible {
    opacity: 1;
}

.scroll-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.scroll-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for stagger children */
.scroll-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.scroll-stagger.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.scroll-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.scroll-stagger.is-visible > *:nth-child(4) { transition-delay: 0.4s; }
.scroll-stagger.is-visible > *:nth-child(5) { transition-delay: 0.5s; }