/* CSS slide スライドショー */

/* https://weblasts.com/css/css-slideshow */
.slide {
  position: relative; 
  width: 1200px;
  height: 450px;
  overflow: hidden;
}
 
@keyframes slideshow{
  0%{
    opacity: 0;
  }
  10%{
    opacity: 1;
  }
  28%{
    opacity: 1
  }
  38%{
    opacity: 0;
  }
  100%{
    opacity: 0;
  }
}
 
.slide img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
/*  width: 100%; */
  width: 1200px;

  height: 450px;
  opacity: 0;
  animation :slideshow 24s linear infinite;
}
 
.slide img:nth-child(2){
  animation-delay: 8s;
}
 
.slide img:last-child{
  animation-delay: 16s;
}




/* 流れるスライドショーはこちら　
 <div class="slide">
  <img src="img/sample1.png">
  <img src="img/sample2.png">
  <img src="img/sample3.png">
  <img src="img/sample4.png">
  <img src="img/sample5.png">
</div>

.slide {
  position: relative;
  overflow: hidden;
  width: 1038px;
  height: 300px;
  margin: auto;
  background: #fff;
}
.slide img {
  display: block;
  position: absolute;
  width: inherit;
  height: inherit;
  left: 100%;
  animation: slide-anime 15s ease infinite;
}
.slide img:nth-of-type(1) {animation-delay: 0s;}
.slide img:nth-of-type(2) {animation-delay: 3s;}
.slide img:nth-of-type(3) {animation-delay: 6s;}
 
@keyframes slide-anime{
  0% {left: 100%;}
  2% {left: 0;}
  18% {left: 0;}
  20% {left: -100%;}
  100% {left: -100%;}
}

*/