/* Slideshow Landing Section Styles */

.lp-slide-image-sp {
    display: block;
}

.lp-slide-image-pc {
    display: none;
}

.lp-slideshow {
    --transition-timing-function: linear;

    width: 100%;
    height: var(--main-wrapper-height);
    isolation: isolate;
}

.lp-slideshow-inner {
    position: relative;
}

.lp-slide-title {
    display: none;
    letter-spacing: 15px;
}

.lp-slide-title span {
    font-weight: 600;
    font-family: var(--font-noto);
    font-size: inherit;
    line-height: 35px;
}

.lp-slideshow-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(var(--main-wrapper-height) / 2);
}

.lp-slideshow-title-box {
    position: absolute;
    z-index: 999;
}

/* Default slide styles */
.lp-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    justify-content: end;
}

.lp-slide img {
    width: var(--main-wrapper-width);
    height: var(--main-wrapper-height);
    position: absolute;
    object-fit: cover;
}

.lp-slide--ltr img {
    left: 0;
    bottom: 0;
}

.lp-slide--rtl img {
    top: 0;
    right: 0;
}

.lp-slide--btt img {
    bottom: 0;
    right: 0;
}

.lp-slide--ttb img {
    top: 0;
    left: 0;
}

.lp-slide--ltr {
    top: 0;
    right: 100%;
    transition: right 0.6s var(--transition-timing-function);
}

.lp-slide--rtl {
    top: 0;
    left: 100%;
    transition: left 0.6s var(--transition-timing-function);
}

.lp-slide--btt {
    top: 100%;
    left: 0;
    transition: top 0.6s var(--transition-timing-function);
}

.lp-slide--ttb {
    bottom: 100%;
    left: 0;
    transition: bottom 0.6s var(--transition-timing-function);
}

/* Active slide */
.lp-slide.active {
    opacity: 1;
    z-index: 2;
}

.lp-slide--ltr.active {
    right: 0;
}

.lp-slide--rtl.active {
    left: 0;
}

.lp-slide--btt.active {
    top: 0;
}

.lp-slide--ttb.active {
    bottom: 0;
}

/* Prev slide */
.lp-slide.prev {
    opacity: 1;
    z-index: 1;
}

.lp-slide--ltr.prev {
    right: -100%;
}

.lp-slide--rtl.prev {
    left: -100%;
}

.lp-slide--btt.prev {
    top: -100%;
}

.lp-slide--ttb.prev {
    bottom: -100%;
}

.lp-slideshow-pagination {
    position: absolute;
    bottom: 10px;
    left: 20px;
    display: flex;
    flex-direction: row;
    z-index: 10;
}

.lp-slideshow-pagination .lp-slideshow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c1c1c1;
    cursor: pointer;
    transition: background 0.3s;
}

.lp-slideshow-pagination .lp-slideshow-dot.active {
    background: #50b848;
}

.lp-slideshow-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 18px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.lp-slideshow-dot.active {
    background: #333;
}

.lp-slideshow-title-box {
    position: absolute;
    left: var(--left-margin, 30%);
    top: var(--top-margin, 30%);
    transition: opacity 0.5s ease;
}

/* Hide non-active text */
.lp-slide-title:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.lp-slide-title.active {
    display: flex;
}

@media screen and (max-width: 767px) {
    .lp-slide-title-sp--vertical {
        flex-direction: column;
        font-feature-settings: "vert" on;
    }

    .lp-slide-title-sp--horizontal {
        flex-direction: row;
        font-feature-settings: "hori" on;
    }

    .lp-slideshow-title-box {
        left: var(--left-margin-sp, 30%);
        top: var(--top-margin-sp, 30%);
    }

    .lp-slide-title {
        letter-spacing: 0;
        font-size: var(--font-size-sp, 25px) !important;
        color: var(--text-color-sp, #FFFFFF) !important;
    }
}

@media screen and (min-width: 768px) {
    .lp-slide-image-sp {
        display: none;
    }

    .lp-slide-image-pc {
        display: block;
    }

    .lp-slideshow-dot {
        margin: 0;
    }

    .lp-slideshow-title-box {
        /*left: 300px;*/
        /*top: 100px;*/
        position: absolute;
    }

    .lp-slide-title span {
        font-size: inherit;
        line-height: 60px;
        text-align: right;
    }

    .lp-slide-title--vertical {
        flex-direction: column;
        font-feature-settings: "vert" on;
    }

    .lp-slide-title--horizontal {
        flex-direction: row;
        font-feature-settings: "hori" on;
    }

    .lp-slideshow-media {
        flex: 1;
    }

    .lp-slideshow-pagination {
        flex-direction: column;
        top: 50%;
        right: 34px;
        transform: translateY(-50%);
    }

    .lp-slideshow-pagination {
        top: 50%;
        right: 10px;
        bottom: auto;
        left: auto;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 10;
    }
}

@media (min-width: 768px) and (max-width: 995px) {
    /*.lp-slideshow-title-box {*/
    /*    left: 175px;*/
    /*    top: 65px;*/
    /*}*/

    .lp-slide-title span {
        font-size: inherit;
        line-height: 40px;
    }
}

@media (min-width: 996px) and (max-width: 1199px) {
    /*.lp-slideshow-title-box {*/
    /*    left: 220px;*/
    /*    top: 85px;*/
    /*}*/

    .lp-slide-title span {
        font-size: inherit;
        line-height: 50px;
    }
}
