/*
home-slider
*/
:root {
    /* アニメ速度 */
    --speed: 800ms;
    /* スライド間マージン（px） */
    --gap: 12px;
}

.slider-wrap a {
    display: block;
}

.strip-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    /* height:min(80vh, 760px); */
    overflow: hidden;
    background: #fff;
}

/* 横並びトラック（transform スライドは使用しない） */
.strip-slider .track {
    display: flex;
    height: 100%;
    will-change: auto;
    transition: none;
    padding-inline: 0;
}

/* スライド間のマージンは gap ではなく margin-left で厳密制御 */
.strip-slider .slide+.slide {
    margin-left: var(--gap);
}

/* 各スライド。幅はJSで big / small をpx指定 */
.strip-slider .slide {
    margin: 0;
    flex: 0 0 auto;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #fff;
    transition: width var(--speed) cubic-bezier(.22, .61, .36, 1);
    cursor: pointer;
    isolation: isolate;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, .25),
        inset -1px 0 0 rgba(255, 255, 255, .25);
}

.strip-slider .slide.is-current {
    cursor: default;
}

/* 画像は中央寄せトリミング */
.strip-slider .slide img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    transform: translateZ(0);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    object-position: center;
    object-fit: contain;
}

/* 横だけ中央寄せ */
.strip-slider .slide img {
    top: auto !important;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    object-position: center bottom;
}

/* 非カレントにほんのり暗幕（任意） */
.strip-slider .slide:not(.is-current)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .12);
    pointer-events: none;
}

/* caption */
.slider-wrap .caption {
    display: none;
    width: 380px;
    min-width: 380px;
    position: absolute;
    left: 4vw;
    bottom: 6vh;
    padding: 0 2rem 2rem 2rem;
    z-index: 2;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: .01em;
    background-color: #fff;
}

.slider-wrap .caption .h2 {
    background: transparent url(/wp-content/themes/thejumpshop/images/arrow-right.svg) center right no-repeat;
    background-size: 17px;
    font-size: 18px;
    font-family: var(--secondary-font);
    font-weight: bold;
    letter-spacing: -0.06em;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0 1.5rem 0;
    cursor: pointer;
}

.slider-wrap .caption .h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 3行で丸める */
    font-size: var(--font-size-xx-large);
    letter-spacing: -0.02em;
    padding-top: 1rem;
    line-height: 1.3;
}

.slider-wrap .progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #fff;
    overflow: hidden;
}

.slider-wrap .progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
}

/* ページ別カラー指定 */
.slider-wrap .progress-fill.home, .slider-wrap .progress-fill.feature {
    background: var(--secondary-color);
}

.slider-wrap .progress-fill.goods, .slider-wrap .progress-fill.about, .slider-wrap .progress-fill.faq {
    background: var(--tertiary-color);
}

/* ～768px（SP） */
@media (max-width: 768.98px) {
    .slider-outer {
        position: relative;
    }

    .strip-slider {
        height: calc(var(--bigWpx) * 1.25) !important;
    }

    .strip-slider .slide picture>img,
    .strip-slider .slide.is-current picture>img {
        height: 100% !important;
        width: auto !important;
        left: 50%;
        bottom: 0;
        top: auto;
        transform: translateX(-50%) scale(var(--mScale)) !important;
        object-fit: contain !important;
        object-position: center bottom !important;
    }

    /* caption */
    .strip-slider .slide .caption {
        display: none !important;
    }

    .fixed-caption .caption {
        display: block;
        position: relative;
        left: auto;
        right: 0;
        bottom: 46px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        min-width: auto;
        margin-left: 20px;
        z-index: 2;
        box-shadow: 8px 8px 40px 0px #0000000D;
    }

    .slider-wrap .caption .h2 {
        margin: 0 0 4px;
        font-size: 16px;
    }

    .slider-wrap .caption .h3 {
        margin: 0;
        font-size: 20px;
        /* 3行高で固定 */
        height: calc(3 * 1.3em + 1rem);
        height: calc(3lh + 1rem);
    }
}