
/* Keep banner content in normal flow so wrapped mobile text cannot be clipped. */
@media (max-width: 768px), (max-width: 1024px) and (max-height: 500px) {
    .banner.responsive-hero { height: auto; overflow: visible; }
    .responsive-hero .owl-carousel { height: auto; }
    .responsive-hero .owl-stage { display: flex; }
    .responsive-hero .owl-stage:after { display: none; }
    .responsive-hero .owl-item { display: flex; float: none; flex: 0 0 auto; }
    .responsive-hero .slide {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: 85vh;
        margin-top: 0;
        padding: 32px 0 48px;
        box-sizing: border-box;
    }
    .responsive-hero .slide:before { height: 100%; pointer-events: none; }
    .responsive-hero .slide-content-1,
    .responsive-hero .slide-content-2,
    .responsive-hero .slide-content-3 {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0 6%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }
    .responsive-hero .slideContent1 { margin-left: 0; }
    .responsive-hero .slide-content-2 .txtRow-2 { transform: none; }
    .responsive-hero .logo_row_sc1,
    .responsive-hero .logo_row_bottom { width: 100%; max-width: 250px; margin: 20px auto 0; }
    .responsive-hero .logo_row_sc1 img,
    .responsive-hero .logo_row_bottom img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }
    .responsive-hero .slide-content-2 .logo_row { display: none; }
}
/* Desktop preserves the full artwork; mobile uses a cover image behind the content. */
.banner.responsive-guide-banner {
    display: grid;
    /* Stretch the image track beyond its intrinsic 1600px width on large screens. */
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    background: #163b60;
    overflow: visible;
}
.responsive-guide-banner > .guide-banner-image {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    align-self: center;
}
.responsive-guide-banner > .banner-content {
    grid-area: 1 / 1;
    position: relative;
    align-self: center;
    justify-self: center;
    width: calc(100% - 48px);
    max-width: 700px;
    margin: 24px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .banner.responsive-guide-banner {
        position: relative;
        display: grid;
        min-height: 50vh;
    }
    .responsive-guide-banner > .guide-banner-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .responsive-guide-banner > .banner-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 32px 20px;
        z-index: 1;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 0;
    }
}
#mainText > .guide-title-img-pc,
#mainText > .guide-title-img-wap {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
