/* アウトライン　 */
.blk_slider {
    position: relative;
    margin: 0 0 10px;
    width: 100%;
}

/* arrow 基本 */
.splide__arrow {
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    padding: 0;
    z-index: 1;
}

.splide__arrow svg {
    fill: #fff;
    height: 30px;
    transition: fill 0.2s linear;
    width: 40px;
}

.splide__arrow--prev svg {
    transform: scaleX(-1);
}

/* main slider */
#main-slider{
    position: relative;
    margin: 0 0 3px 0;
}

#main-slider .splide__arrow--prev{
    left: 0;
}

#main-slider .splide__arrow--next{
    right: 0;
}

#main-slider video {
    margin: auto;
    width: 100%;
    height: 100%;
    display: block;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

#main-slider img {
    display: block;
    margin: auto;
    max-height: 65vw;
    width: auto;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.splide__slide--cta {
    display: block;
    margin: auto;
    max-height: 65vw;
    width: auto;
}

#main-slider .splide__slide {
    position: relative;
    overflow: hidden;
}

#main-slider .splide__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    filter: blur(3px);
    z-index: -1;
}

#main-slider .txt_caption {
    background: rgba(0, 0, 0, .4);
    padding: .5rem .625rem;
    bottom: 0;
    box-sizing: border-box;
    display: block;
    line-height: 1.3;
    margin: 0;
    position: absolute;
    color: #fff;
    width: 100%;
}

#main-slider .splide__arrow svg{
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.9));
}

/* thumbnail carousel */
#thumbnail-carousel{
    margin: 0;
    width: 100%;
}

#thumbnail-carousel li{
    cursor: pointer;
}

#thumbnail-carousel .is-active{
    border: #05aa22 solid 2px;
}

#thumbnail-carousel .splide__list{
    gap: 4px 0;
}

#thumbnail-carousel .splide__slide {
    overflow: hidden;
}

#thumbnail-carousel .splide__slide img{
    display: block;
    height: 100px;
    left: 50%;
    max-width: inherit;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
}

/* view内に掲載するページネーション */
.place-slider__pagination {
    display: none;
}

/* スライダー内CTA */

.splide__slide--cta .slide-cta {
    position: relative;
    text-align: center;
    width: 100%;
    height: 100%;
    background: url(https://cdn.e-ohaka.com/detail/img/slide-cta-backimage.jpg) no-repeat center center / cover;
}

.slide-cta::before {
    content: "";
    height: 100%;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
}

.splide__slide--cta .slide-cta-inner,
.splide__slide--cta.is-active .slide-cta-inner {
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

/* CTA 吹き出し */

.slide-cta__balloon {
    background-color: #fff;
    border-radius: 28px;
    display: inline-block;
    width: 100%;
    text-align: center;
    position: relative;
    padding: 4px 0;
    margin-bottom: 4px;
}

.slide-cta__balloon:before {
    content: "";
    position: absolute;
    top: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-top: 15px solid #fff;
    border-right: 15px solid transparent;
    border-left: 15px solid transparent;
}

.slide-cta__balloon-top,
.slide-cta__balloon-btm {
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
}

.slide-cta__balloon-top {
    color: #232b39;
}

.slide-cta__balloon-btm {
    color: #c33d64;
}

/* CTAボタン */
.slide-cta-btnWrap {
    display: flex;
    justify-content: center;
    flex-flow: column wrap;
    align-items: center;
    gap: 5px 0;
    margin: 11px auto 0;
}

.slide-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    padding: 7px 0;
}

.slide-cta-btn:hover {
    opacity: 0.8;
}

.slide-cta-btn-green {
    background: linear-gradient(180deg, #57dd06 0%, #05aa22 100%);
    border: 1px solid #05aa22;
}

.slide-cta-btn-greenText {
    color: #05aa22;
}

.slide-cta-btn-orange {
    background: linear-gradient(180deg, #ffaa00 0%, #ff7700 100%);
    border: 1px solid #ff7700;
}

.slide-cta-btn-orangeText {
    color: #ff7700;
}

.slide-cta-btn-text {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    display: inline-block;
    margin-right: 5px;
    font-size: 20px;
    line-height: 30px;
}

.slide-cta-btn-free {
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
    background: #fff;
    border-radius: 2px;
    display: inline-block;
    padding: 0 3px;
}

/* CTA 電話でお問い合わせ */
.slide-cta__tel-wrap.cta-tel-pc {
    display: none;
}

.slide-cta__tel-wrap.cta-tel-sp {
    display: block;
}

.slide-cta__tel-link {
    border-radius: 5px;
    text-align: center;
    border: 1px solid #ccc;
    text-decoration: none;
    display: block;
    pointer-events: auto;
    padding: 7px 0 6px;
    background: linear-gradient(180deg, #fff 0%, #efefef 100%);
}

.slide-cta__tel-textWrap {
    display: inline-flex;
    align-items: center;
}

.slide-cta__tel-text {
    color: #232b39;
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    display: inline-block;
}

.slide-cta__tel-numWrap {
    display: inline-flex;
    align-items: center;
}

.material-icons.material-icons-sp,
.material-icons.material-icons-pc {
    color: #05aa22;
    vertical-align: middle;
    margin-right: 9px;
}

.material-icons.material-icons-pc {
    display: none;
}

.slide-cta__tel-num {
    display: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 38px;
    color: #232b39;
}

.slide-cta__tel-text {
    display: inline-block;
}

.slide-cta__tel-text-sp {
    display: inline-block;
    font-size: 14px;
    line-height: 21px;
}

@media screen and (max-width: 320px) {

    /* スライダー内CTA */
    .slide-cta-inner {
    position: static;
    transform: translate(0, 0);
    width: auto;
    }

    /* CTA 吹き出し */

    .slide-cta__balloon-top,
    .slide-cta__balloon-btm {
    font-size: 12px;
    }

    /* CTAボタン */
    .slide-cta-btn {
    padding: 0;
    }

    .slide-cta-btn-text {
    font-size: 16px;
    }

    .slide-cta-btnWrap {
    margin: 5px auto;
    max-width: 250px;
    }

}

@media (min-width: 768px){

    /*  アウトライン 　*/
    .blk_slider {
        padding: 0;
        position: relative;
        margin: 0 auto;
        max-width: 1000px;
    }

    /* main slider */
    #main-slider video {
        max-width: none;
        max-height: none;
    }

    #main-slider img,
    .splide__slide--cta {
        max-width: none;
        max-height: none;
        height: 100%;
    }


    /* スライダー最後のCTA部分　splideの幅指定を制御するため */
    .splide__slide--cta {
        width: 800px !important;
    }

    #main-slider .splide__arrow {
        background: rgba(0, 0, 0, 0.4);
        padding: 0 20px;
        width: 70px;
        height: 240px;
    }

    #main-slider .splide__slide {
        margin: 0 10px;
    }

    .splide__slide .txt_caption {
        line-height: 1.4;
        padding: 40px 16px 8px;
    }

    #main-slider .splide__arrow svg{
        filter: none;
    }

    /* thumbnail carousel */
    #thumbnail-carousel{
        max-width: 600px;
        margin: 16px auto 0;
    }

    #thumbnail-carousel .splide__list{
        flex-wrap: wrap;
    }

    #thumbnail-carousel .splide__arrow {
        background: #999;
        height: 56px;
        padding: 0 7px;
        top: auto;
        transform: none;
    }

    #thumbnail-carousel .splide__arrow svg {
        position: relative;
        top: 3px;
        height: 20px;
        width: 12px;
    }

    #thumbnail-carousel .splide__arrow--prev{
        left: 0;
    }

    #thumbnail-carousel .splide__arrow--next{
        right: 0;
    }

    /* view内に掲載するページネーション */
    .place-slider__pagination {
        background: rgba(0,0,0,.5);
        border-radius: 16px;
        color: #fff;
        display: inline-block;
        font-family: Roboto, sans-serif;
        font-weight: 700;
        height: 32px;
        left:20px;
        letter-spacing: -1px;
        line-height: 32px;
        top: 20px;
        font-size: 16px;
        position: absolute;
        text-align: center;
        width: 64px;
    }

    /* スライダー内CTA */
    .splide__slide--cta .slide-cta {
        background: #ccc;
    }

    .splide__slide--cta.is-active .slide-cta{
        background: url(https://cdn.e-ohaka.com/detail/img/slide-cta-backimage.jpg) no-repeat center center / cover;
        height: 100%;
    }

    .splide__slide--cta .slide-cta-inner {
        display: none;
    }

    .splide__slide--cta.is-active .slide-cta-inner  {
        max-width: 610px;
        display: block;
    }

    /* CTA 吹き出し */
    .slide-cta__balloon {
        padding: 10px 0 6px;
        margin-bottom: 18px;
    }

    .slide-cta__balloon:before {
        top: 100%;
    }

    .slide-cta__balloon-top,
    .slide-cta__balloon-btm {
        font-size: 16px;
        line-height: 24px;
    }

    /* CTAボタン */

    .slide-cta-btnWrap {
        flex-flow: row;
        align-items: flex-start;
        gap: 0 10px;
        margin: 8px 0 10px;
    }

    .slide-cta-btn {
        padding: 12px 0;
    }

    .slide-cta-btn-text {
        font-size: 22px;
        line-height: 33px;
    }

    /* CTA 電話でお問い合わせ */

    .slide-cta__tel-wrap.cta-tel-pc {
        display: block;
    }

    .slide-cta__tel-wrap.cta-tel-sp {
        display: none;
    }

    .slide-cta__tel-link {
        pointer-events: none;
        padding: 5px 0 3px;
        background: #fff;
    }

    .slide-cta__tel-textWrap {
        display: block;
    }

    .material-icons.material-icons-pc {
        display: inline-block;
        font-size: 32px;
    }

    .slide-cta__tel-num {
        display: inline-block;
    }

    .material-icons.material-icons-sp {
        display: none;
    }

    .slide-cta__tel-text-sp {
        display: none;
    }

}
