
    #id{
        position: relative
    }
    .slide {
        position: relative;
        width: 100rem;
        overflow: hidden;
    }

    .slide img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: auto;
    }

    
    
@media screen and (max-width: 766px){ /*スマホ*/
    .slide {
        height: 118.9rem;
    }
    
}

@media screen and (min-width: 767px){ /*PC*/
    .slide {
        height: 42.9rem;
    }
}


/*2枚->45%～55%
  3枚->28%～38%
  4枚->20%～30%
  5枚->15%～25%*/
@keyframes slideshow {
    0%{
        opacity: 0;
    }
    10%{
        opacity: 1;
    }
    15%{
        opacity: 1
    }
    25%{
        opacity: 0;
    }
    100%{
        opacity: 0;
    }
}
.slide img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    opacity: 0;
/*  8×枚数秒  */
    animation :slideshow 40s linear infinite;
}

.slide img:nth-child(2){
    animation-delay: 8s;
}
.slide img:nth-child(3){
    animation-delay: 16s;
}
.slide img:nth-child(4){
    animation-delay: 24s;
}
.slide img:last-child{
    /*  8×枚数-1秒  */
    animation-delay: 32s;
}
