/* ==========================================================================
   Home Page - Scrolling Image Hero
   ========================================================================== */

/* ===== Container ===== */
.home-content-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

/* ===== Scroll Wrapper & Image ===== */
.home-scroll-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home-scroll-img {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform;
}

/* ===== Overlays (shared) ===== */
.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.home-overlay-inner {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    max-width: 90%;
    width: 800px;
    padding: 40px;
}

/* Start overlay: smaller & black */
.home-overlay-start .home-overlay-inner {
    color: #000;
    text-shadow: none;
}

.home-overlay-start .home-overlay-inner h1 {
    font-size: 2em;
    letter-spacing: 4px;
}

.home-overlay-start .home-overlay-inner p {
    font-size: 1em;
}

.home-overlay-inner h1 {
    font-size: 3.5em;
    font-weight: normal;
    letter-spacing: 8px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.home-overlay-inner h2 {
    font-size: 2.5em;
    font-weight: normal;
    letter-spacing: 6px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.home-overlay-inner p {
    font-size: 1.3em;
    line-height: 1.8;
    letter-spacing: 3px;
}

/* ===== Start Overlay (fade in → out in 3s) ===== */
.home-overlay-start {
    opacity: 0;
}

.home-overlay-start.animating {
    animation: heroFadeInOut 3s ease-in-out forwards;
}

@keyframes heroFadeInOut {
    0%   { opacity: 0; }
    25%  { opacity: 1; }
    75%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== End Overlay (fade in when scroll finishes) ===== */
.home-overlay-end {
    opacity: 0;
    transition: opacity 1.2s ease-in;
}

.home-overlay-end.visible {
    opacity: 1;
}

.home-end-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* ===== Fallback (no image set) ===== */
.home-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #005731 0%, #009944 100%);
    color: #fff;
    text-align: center;
    padding: 40px;
}

.home-no-image h1 {
    font-size: 3em;
    letter-spacing: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    /* --- Mobile: static image, no scroll --- */
    .home-scroll-wrapper {
        width: 100%;
        height: 100%;
    }

    .home-scroll-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        will-change: auto;
    }

    /* --- Mobile: smaller text --- */
    .home-overlay-start .home-overlay-inner h1 {
        font-size: 1.1em;
        letter-spacing: 1px;
    }

    .home-overlay-start .home-overlay-inner p {
        font-size: 0.8em;
        letter-spacing: 0.5px;
    }

    .home-overlay-inner h1 {
        font-size: 1.5em;
        letter-spacing: 2px;
    }

    .home-overlay-inner h2 {
        font-size: 1.2em;
        letter-spacing: 1px;
    }

    .home-overlay-inner p {
        font-size: 0.85em;
        letter-spacing: 0.5px;
    }

    .home-end-logo {
        max-width: 160px;
    }
}

/* ==========================================================================
   Hero Banners (shown after animation completes)
   ========================================================================== */

/* ===== Shared ===== */
.hero-banners {
    opacity: 0;
    transition: opacity 0.8s ease-in;
    pointer-events: none;
}

.hero-banners.visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-banner-item {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-banner-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===== PC: fixed right side, vertical stack ===== */
.hero-banners-pc {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 240px;
}

.hero-banners-pc .hero-banner-item img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ===== Mobile: below hero, vertical stack ===== */
.hero-banners-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
    background: #fff;
}

.hero-banners-mobile .hero-banner-item img {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}