.slide {
  position: absolute;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: slider-1 32s linear infinite;
}

.slide-image:nth-child(1) {
  background-image: url(../img/slide8.jpg);
 background-position: left;
  animation-delay: -2s;
}

.slide-image:nth-child(2) {
  background-image: url(../img/slide9.jpeg);
  background-position: left;
  animation-delay: 6s;
}

.slide-image:nth-child(3) {
  background-image: url(../img/slide6.jpg);
  animation-delay: 14s;
}

.slide-image:nth-child(4) {
  background-image: url(../img/slide7.jpg);
  animation-delay: 22s;
}

@keyframes slider-1 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  4.16% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  41.66% {
    opacity: 0;
    transform: scale(1.2);
  }
    100% {
  opacity: 0;
  }
}



.animetest{
   opacity: 0;
  animation: slider-2 32s linear infinite;
  animation-delay: 1s;
}


@keyframes slider-2 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  1% {
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  19.00% {
    opacity: 0;
  }
  41.66% {
    opacity: 0;
  }
    100% {
  opacity: 0;
  }
}


/* TAB */
@media only screen and (min-width:640px) and (max-width:1080px) {

    .slide-image:nth-child(1) {
 background-position: center;
}

.slide-image:nth-child(2) {
 background-position: right;
}



.slide-image:nth-child(4) {
 background-position: center;
}


}





/* SP */
@media screen and (max-width:640px) {
  .slide-image:nth-child(1) {
 background-position: center;
}

.slide-image:nth-child(2) {
 background-position: right;
}



.slide-image:nth-child(4) {
 background-position: center;
}

}

