/* Custom Styles for Leclat Updated */

:root {
    --brand-dark: #333333;
    --brand-white: #ffffff;
    --brand-gray: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px; /* PC default */
    user-select: none;
    -webkit-user-select: none;
}

/* SP Font Size */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* All sections padding */
section {
    padding-top: 70px;
    padding-bottom: 70px;
    margin-bottom: 0 !important; /* Remove extra space/margin */
}

/* SP Padding 10px */
@media (max-width: 768px) {
    .px-6, .px-12, .px-4, .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

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

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

/* Header Adjustments */
header {
    background-color: rgba(255, 255, 255, 0.95);
}

/* FV Image below Header */
#fv {
    padding-top: 80px; /* Header height approx */
    height: auto !important;
}

/* Image styles for sections - Standard Rectangular as requested */
.section-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0 !important;
    clip-path: none !important;
    box-shadow: none !important;
    border: none !important;
}

.img-style-1, .img-style-2, .img-style-3, .img-style-4 {
    border-radius: 0 !important;
    clip-path: none !important;
    box-shadow: none !important;
    border: none !important;
}


/* Marquee Gallery Style */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

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

.marquee-item {
    flex-shrink: 0;
    width: 450px; /* Increased size */
    height: 300px; /* Increased size */
    margin-right: 20px;
}


.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SP Menu Overlay Styles */
#sp-menu {
    transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#sp-menu.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Hamburger Button Animation */
#menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

#menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#btt.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Modal Centering & Fixes */
#gallery-modal {


    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

#gallery-modal.flex {
    display: flex;
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-img {
    width: 1000px; /* Fixed width for consistency */
    height: 660px; /* Fixed height for 3:2 aspect ratio */
    max-width: 90vw;
    max-height: 80vh;
    object-fit: cover;
    background-color: #000;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    user-select: none;
}

.modal-prev { left: -60px; }
.modal-next { right: -60px; }

@media (max-width: 768px) {
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
    .modal-nav { background: rgba(0,0,0,0.3); font-size: 30px; }
}

/* Section BG Colors */
.bg-section-1 { background-color: #ffffff; }
.bg-section-2 { background-color: #eeeeee; }


.bg-section-3 { background-color: rgba(245, 245, 245, 0.8); }
.bg-section-4 { background-color: #f0f0f0; }
.bg-section-5 { background-color: #ffffff; border-top: 1px solid #eee; }

/* Scroll Indicator Fix */
#btt.active {
    opacity: 1;
    pointer-events: auto;
}

/* Section Heading Style (Reference Image) */
.section-heading-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading-star {
    font-size: 1.5rem;
    color: #4a4a4a; /* Dark Gray */
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-heading-text {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 400;

    color: #333333; /* Dark Gray */
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
    width: auto;
    padding-bottom: 0;
    text-align: center;
    position: static;
}

.section-heading-text::after {
    display: none;
}

.section-heading-sub {
    font-size: 0.85rem;
    color: #666666; /* Gray */
    letter-spacing: 0.1em;
    font-weight: 500;
    display: block;
}


@media (min-width: 768px) {
    .section-heading-text {
        font-size: 4rem;
    }
}


/* FV Redesign (New Reference Image) */
#fv {
    position: relative;
    width: 100%;
    background-image: url('../img/bg1.jpg');
    background-size: 100% auto; /* Show 100% width */
    background-repeat: no-repeat;
    background-position: top center;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Slider on the right */
    padding-top: 80px; /* Header height offset */
    min-height: 80vh; /* Adjust base height */
}

/* Custom Diagonal Loop Animation for FV Images */
.fv-diagonal-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #eee; /* Temporary placeholder to see container */
}

.fv-diagonal-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    display: block;
    animation: diagonalLoop 24s linear infinite;
}

@keyframes diagonalLoop {
    0% {
        transform: translate(100%, -100%) scale(1.1);
        opacity: 0;
    }
    2% {
        opacity: 1;
    }
    5% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    30% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    35% {
        transform: translate(-100%, 100%) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translate(-100%, 100%) scale(0.9);
        opacity: 0;
    }
}


.fv-diagonal-img:nth-child(1) { animation-delay: 0s; }
.fv-diagonal-img:nth-child(2) { animation-delay: 8s; }
.fv-diagonal-img:nth-child(3) { animation-delay: 16s; }



/* Slide-in Animation for FV Text */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.fv-text-animate {
    animation: slideInFromLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.fv-text-1 { animation-delay: 0.5s; }
.fv-text-2 { animation-delay: 0.8s; }
.fv-text-3 { animation-delay: 1.1s; }



@media (min-width: 1024px) {
    #fv {
        min-height: 100vh;
        background-size: cover; /* Back to cover for PC if wide screen to avoid gaps, or keep contain? */
    }
}


.fv-text-wrapper {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40%;
}

.fv-text-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: horizontalLoop 24s linear infinite; /* Left to Right */
    text-align: center; /* Center align all text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes horizontalLoop {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    5% {
        transform: translateX(0);
        opacity: 1;
    }
    30% {
        transform: translateX(0);
        opacity: 1;
    }
    35% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}



.fv-text-layer:nth-child(1) { animation-delay: 0s; }
.fv-text-layer:nth-child(2) { animation-delay: 8s; }
.fv-text-layer:nth-child(3) { animation-delay: 16s; }


.fv-top-box {
    border: 1px solid #333;
    padding: 10px 20px;
    display: inline-block;
    margin-bottom: 2rem;
    background-color: rgba(255,255,255,0.8);
}

.fv-top-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #333;
}

.fv-brand-box {
    color: #333;
}

.fv-brand-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.fv-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.fv-brand-type {
    font-size: 1rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.fv-slider-container {
    width: 55%;
    height: 60vh; /* Fixed height for image visibility */
    z-index: 10;
    margin-right: 5%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    #fv {
        flex-direction: column-reverse; /* Image top, Text bottom */
        justify-content: center;
        background-color: white;
        min-height: calc(100vh - 60px); /* Fill most of the screen */
        padding-top: 80px; /* Space for header */
        gap: 0;
    }

    .fv-text-wrapper {
        position: relative;
        width: 100%;
        left: 0;
        height: 300px; /* Fixed height for consistency */
        transform: none;
        overflow: hidden; /* Prevent horizontal scroll from animation */
        margin-bottom: 2rem;
        z-index: 15;
    }

    .fv-slider-container {
        width: 100%;
        height: 300px; /* Matching height or slightly more */
        margin-right: 0;
        box-shadow: none; /* Cleaner look for mobile */
    }
    .fv-brand-name { font-size: 3rem; }
    .fv-top-text { font-size: 1rem; }
    .p-8, .p-10 {
        padding: 40px 10px !important;
    }
}






/* Vertical text from previous instruction removed for this new design */
.fv-vertical-text, .fv-main-catch, .fv-sub-catch, .fv-content {
    display: none;
}

/* Header Adjustments - Solid header as per recent logic */
header.transparent {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    color: #333 !important;
}

header.transparent .logo h1, 
header.transparent nav ul li a,
header.transparent #menu-btn span {
    color: #333 !important;
}

header.transparent #menu-btn span {
    background-color: #333 !important;
}
/* Custom Overrides for Service Section Glass Boxes */
@media (min-width: 768px) {
    .md\:p-16 {
        padding: 2rem !important;
    }
}

/* Service Image Sizing */
#service img {
    width: 100%;
    height: 450px; /* Fixed height for all images on PC */
    object-fit: cover;
}

#service .bg-white\/40 {
    height: 450px; /* Match image height */
    overflow-y: auto; /* Allow scrolling if text is too long */
}

/* Custom Scrollbar for Service Text Box */
#service .bg-white\/40::-webkit-scrollbar {
    width: 4px;
}
#service .bg-white\/40::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    #service img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    #service .bg-white\/40 {
        height: auto;
        overflow-y: visible;
    }
}

