/* スライダー全体の設定 */
.slider{
  position: relative;
  top: 0;
  left: 0;
  overflow: hidden;
  margin:3% 0 1% 0;
  width: 95%;
  max-width:700px;
  height: 60vh;
  border-radius: 10px;
}

/* スライダー画像の設定 */
.slider .image{
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* スライド画像と表示時間を定義 */
.slider .image:nth-of-type(1){
  background-image: url(https://shosakren-sagamihara.info/coopaoba/images/1-700.jpg);
}
.slider .image:nth-of-type(2){
  animation-delay: 6s;
  background-image: url(https://shosakren-sagamihara.info/coopaoba/images/2-700.jpg);
}
.slider .image:nth-of-type(3){
  animation-delay: 12s;
  background-image: url(https://shosakren-sagamihara.info/coopaoba/images/3-700.jpg);
}

/* アニメーションの設定 */
.slider .image{
  animation-name: anime;
  animation-delay: 0;
  animation-iteration-count: infinite;
  animation-duration: 18s;  /* 前段 animation-delay の合計を記入 */
}

/* アニメーションを定義 */
@keyframes anime {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
    transform: scale(1.2) ;
    z-index: 10;
  }
  100%{
    opacity: 0;
    transform: scale(1.2) ;
  }
}
