@charset "utf-8";

/*--------------管理画面用-------------------*/

.gjs-dashed .loopWrap {
    display: block;
    height: auto;
    overflow: auto;
}

.gjs-dashed .loopImgArea {
    -webkit-animation: auto !important;
    animation: auto !important;
    flex-wrap: wrap;
    height: 150px;
}

.gjs-dashed .loopImgBox {
    width: 20%;
    height: auto;
    margin: 0;
}

/*-----------------------------------*/

.loopWrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: auto;
}

.loopImgBox {
    position: relative;
    width: 220px;
    height: 165px;
    margin: 0 5px;
}

.loopImgBox>img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.loopImgArea {
    display: flex;
    animation: loop-slide 70s infinite linear 1s both;
}

/*ここまで*/

.loopImgBx img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    max-width: 100%;
    width: auto;
    max-height: 100%;
    height: auto;
}

/*アニメーション*/

@keyframes loop-slide {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }

}

@media screen and (min-width:768px) {

    .loopImgArea {
        animation: loop-slide 70s infinite linear 1s both;
    }

    .loopImgBox {
        width: 400px;
        height: 300px;
    }

}

@media screen and (min-width:1024px) {

    .loopImgArea {
        animation: loop-slide 60s infinite linear 1s both;
    }

    .loopImgBox {
        width: 480px;
        height: 360px;
        margin: 0 10px;
    }

}