@charset "utf-8";

.top-slide {
  display: block;
  padding-top: 65vh;
}

.top-screen {
  display: inline-block;
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 20;
}
.top-screen img {
  width: 75px;
}

.top-screen p {
 font-size: 1.0rem;
 color: #00b0f0;  /* Lightblue  */
 font-style: italic;
}

.slideshow,
.slideshow:after {
  position: absolute; /* fixed */
  width: 100vw;
  max-width: 100%;
  height: 65vh;
  top: 0px;
  left: 0px;
  z-index: 0;
  overflow: hidden;
}
.slideshow:after {
  content: '';
  background-color: rgba(0,0,0,0.35);
}
.slideshow li{
  list-style-type: none;
}
.slideshow li span {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  color: transparent;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  webkit-backface-visibility: hidden;
  animation: imageAnimation 18s linear infinite 0s;
}
.slideshow li div {
  z-index: 1000;
  position: absolute;
  top: 30%;
  bottom: 30px;
  left: 0px;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: titleAnimation 18s linear infinite 0s;
}
.slideshow li div h3 {
  font-family: Meiryo UI, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
  font-size: 48px;
  font-weight: 700;
  padding: 20px;
  line-height: 80px;
  color: rgba(255,255,255,0.85);
}

.slideshow li div img {
  width: 250px;
}
.slideshow li div p {
  font-family: 'Noto Sans JP', "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #ffd700; /* yellow */
  padding: 20px;
  line-height: 25px;

}

.slideshow li:nth-child(1) span { background-image: url(../img/slideshow-00.jpg) }
.slideshow li:nth-child(2) span {
  background-image: url(../img/slideshow-01.jpg);
  animation-delay: 6s;
}
.slideshow li:nth-child(3) span {
  background-image: url(../img/slideshow-02.jpg);
  animation-delay: 12s;
}
/*
.slideshow li:nth-child(4) span {
  background-image: url(../img/slideshow-03.jpg);
  animation-delay: 18s;
}
*/
.slideshow li:nth-child(2) div {
  animation-delay: 6s;
}
.slideshow li:nth-child(3) div {
  animation-delay: 12s;
}
/*
.slideshow li:nth-child(4) div {
  animation-delay: 18s;
}
*/

@keyframes imageAnimation {
  0% { 
  opacity: 0;
  animation-timing-function: ease-in;
}
  8% {
  opacity: 1;
  transform: scale(1.05);
  animation-timing-function: ease-out;
}
  17% {
  opacity: 1;
  transform: scale(1.1);
}
  25% {
  opacity: 1;
  transform: scale(1.1); 
}
  45% { 
  opacity: 0;
  transform: scale(1.1) ; 
}
  100% { opacity: 0 }
}

/* Animation for the title */
@keyframes titleAnimation {
  0% { opacity: 0 }
  8% { opacity: 1 } 
  25% { opacity: 1 } 
  30% { opacity: 0 }
  100% { opacity: 0 }
}

/* Show at least something when animations not supported */
.no-cssanimations .slideshow li span{
  opacity: 1;
}

@media screen and (max-width: 767px) {
.top-screen {
  top: 20px;
  right: 20px;
}
.top-screen img {
  width: 120px;
}
.top-slide { padding-top: 45vh;}
.slideshow,
.slideshow:after { height: 45vh;}
.slideshow li div h3 { font-size: 50px;
  padding: 15px;
  line-height: 30px;}
.slideshow li div img { width: 200px;}
.slideshow li div p   { font-size: 20px }
}

/* スマホで表示する場合のCSS */
@media screen and (max-width: 576px) {
.top-screen {
  top: 10px;
  right: 10px;
}

.top-screen img {
  width:100px;
}

.top-screen p {
   font-size: 13px;
}

.top-slide { padding-top: 30vh;}

.slideshow,
.slideshow:after { height: 30vh;}
.slideshow li div h3 { font-size: 22px;
  padding: 10px;
  line-height: 30px; }
.slideshow li div img { width: 150px;}
.slideshow li div p   { font-size: 11px }

}
