/* ==========================================
   Intro Banner Section
   ========================================== */

.intro-banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

/* Background Image */
.intro-banner__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.intro-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 10s ease-out;
}

.intro-banner__image img.zoomed {
    transform: scale(1.07);
}

/* Title image fade-in */
@keyframes titleFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-title-img {
    width: 95%;
    max-width: 1059px;
    height: auto;
    animation: titleFadeIn 3s ease-out 0.33s both;
}

.intro-banner__img--mobile {
    display: none;
}

.intro-banner__description--mobile {
    display: none;
}

/* Overlay */
.intro-banner__overlay {
    display: none;
}

/* Content */
.intro-banner__content {
    position: absolute;
    z-index: 3;
    width: 100%;
    padding: clamp(1rem, 3vw, 2rem);
    text-align: center;
    top: 32%;
}

.intro-banner__content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Title */
.intro-banner__title {
    margin: 0;
    line-height: 1.2;
}

/* Hero Title SVG */
.hero-title-svg {
    width: 100%;
    max-width: 1059px;
    height: auto;
    overflow: visible;
}

/* Description */
.intro-banner__description {
    font-family: 'Shippori Mincho', serif;
    color: #ffffff;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: clamp(30px, 3.2vw, 39px);
    max-width: clamp(250px, 65vw, 800px);
    margin: clamp(1.5rem, 3vw, 2rem) auto 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    max-height: 50vh;
    overflow-y: auto;
}

.intro-banner__description::-webkit-scrollbar {
    width: 6px;
}

.intro-banner__description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Body text structure */
.intro-body-line {
    display: block;
    white-space: nowrap;
}

.intro-body-spacer {
    height: 1.5rem;
}

/* Character zoom animation */
@keyframes charZoomIn {
    from {
        transform: scale(0.001);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.intro-body-line > div {
    display: inline-block;
    transform-origin: center bottom;
    animation: charZoomIn 0.95s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

@media (max-width: 1025px) and (min-width: 768px) {
    .intro-banner {
        min-height: 75vh;
    }

    .intro-banner__content {
        top: 28%;
        padding: 0 ;
    }

    .intro-banner__content .container {
        padding-top: 85px;
    }

    .hero-title-img,
    .hero-title-svg {
        max-width: 95%;
        overflow: hidden;
    }

    .intro-banner__description {
        max-height: 45vh;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .intro-banner__img--desktop {
        display: none;
    }

    .intro-banner {
        min-height: auto;
        height: 764px;
        max-height: 100vh;
    }

    .intro-banner__img--mobile {
        display: block;
    }

    .intro-banner__description--desktop {
        display: none;
    }

    .intro-banner__description--mobile {
        display: block;
    }

    .intro-banner__content {
        top: 25%;
        padding: 0 25px;
        box-sizing: border-box;
    }

    .intro-banner__description {
        margin-top: 30px;
        max-width: 256px;
        font-size: 16px;
        font-weight: 500;
        line-height: 30px;
        letter-spacing: 0;
        text-shadow: 0 4px 4px #000000;
        max-height: none;
        overflow-y: visible;
    }

    .intro-body-spacer {
        height: 30px;
    }

}
