@charset "utf-8";

.loopWrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: auto;
}

.loopImgBox {
    position: relative;
    width: 240px;
    height: 180px;
    margin: 0 8px;
}

.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 80s 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) {

    .loopImgBox {
        width: 240px;
        height: 180px;
        margin: 0 8px;
    }

} */

@media screen and (min-width:1024px) {

    .loopImgBox {
        width: 320px;
        height: 240px;
        margin: 0 10px;
    }

    .loopImgArea {
        display: flex;
        animation: loop-slide 120s infinite linear 1s both;
    }

}