/* =========================================================================
   Base & Resets
   ========================================================================= */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 右クリック禁止（インラインの oncontextmenu に追加） */
    user-select: none;
    -webkit-user-select: none;
}

/* =========================================================================
   Typography & Utilities
   ========================================================================= */
.section-wrapper {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .section-wrapper {
        margin-bottom: 0;
    }

    .md\:gap-24 {
        gap: 30px !important;
    }

    .md\:gap-20 {
        gap: 0px !important;
    }

    .flex.flex-col.md\:flex-row.items-center.gap-12.md\:gap-24.js-reveal.active {
        padding-bottom: 0px;
    }
}

/* SPのみ p-8 / p-6 のパディングを上書き */
@media (max-width: 767px) {

    .p-8,
    .p-6 {
        padding: 40px 10px !important;
    }

    .gap-12 {
        gap: 40px !important;
    }

    .-bottom-44 {
        bottom: -100px !important;
    }

    .flex.flex-col-reverse.md\:flex-row.items-center.gap-12.md\:gap-24.js-reveal.active {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
}

/* 画像スタイル制御 (角丸・シャドウ禁止 / object-fit必須) */
img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* =========================================================================
   First View (FV) Slider
   ========================================================================= */
.fv-container {
    height: auto;
    /* Default auto */
}

.fv-swiper {
    width: 100%;
    /* Keep width 100% and height auto as per requirement */
}

.fv-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* PC FV height is now governed by width:100% to keep aspect ratio */
@media (min-width: 768px) {
    .fv-swiper .swiper-slide img {
        height: auto;
    }
}

/* Scroll Animation at the bottom of FV */
@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

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

.animate-scrollDown {
    animation: scrollDown 2s infinite ease-in-out;
}

/* =========================================================================
   Marquee Gallery (Infinite Loop)
   ========================================================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    user-select: none;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
    will-change: transform;
}

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

.marquee-item {
    flex-shrink: 0;
    width: 280px;
    margin-right: 20px;
}

@media (min-width: 768px) {
    .marquee-item {
        width: 350px;
        margin-right: 30px;
    }
}

.marquee-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.marquee-item img:hover {
    opacity: 0.8;
}

/* Ensure animation NEVER stops for hover or click */
.marquee-content:hover {
    animation-play-state: running !important;
}

/* =========================================================================
   Hamburger Menu Anime
   ========================================================================= */
#hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

/* =========================================================================
   Mobile Menu Overlay
   ========================================================================= */
#mobile-menu.active {
    display: flex;
    opacity: 1;
}

/* =========================================================================
   Swiper custom paginations
   ========================================================================= */
.swiper-pagination-bullet-active {
    background-color: #6aa38b !important;
    /* Mint Dark */
}

/* =========================================================================
   Scroll Reveal Animations
   ========================================================================= */
.js-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.5, 0, 0, 1), transform 1s cubic-bezier(0.5, 0, 0, 1);
}

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

@supports (-webkit-touch-callout: none) {
    /* iOS devices don't always play nice with background-attachment: fixed */
    .parallax-bg {
        background-attachment: scroll !important;
    }
}