@charset "utf-8";

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

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

.slideshow,
.slideshow:after {
    position: absolute; /* fixed */
    width: 100vw;
	max-width: 100%;
    height: 65vh;  /* 78vh */
    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 24s linear infinite 0s; /* 36s→18s */
}
.slideshow li div {
    z-index: 1000;
    position: absolute;
    top: 30%;
    bottom: 30px;
    /* bottom: 30px; */
    left: 0px;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: titleAnimation 24s linear infinite 0s; /* 36s→18s */
    outline: 0px solid #f00;
}
.slideshow li div h3 {
  font-family: Meiryo UI, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
  /*
    font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
  */
    font-size: 67px;
    font-weight: 700;
    padding: 20px;
    line-height: 80px;
    color: rgba(255,255,255,0.8);
}
@font-face {
    font-family: 'BebasNeueRegular';
    src: url('fonts/BebasNeue-webfont.eot');
    src: url('fonts/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/BebasNeue-webfont.woff') format('woff'),
         url('fonts/BebasNeue-webfont.ttf') format('truetype'),
         url('fonts/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.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: 22px;
    font-weight: 500;
    padding: 20px;
    line-height: 25px;
    color: rgba(255,255,255,0.8);
}

.slideshow li:nth-child(1) span { background-image: url(../img/slideshow-05.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-03.jpg);
    animation-delay: 12s;
}
.slideshow li:nth-child(4) span {
    background-image: url(../img/slideshow-04.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% { /* 0% */
	    opacity: 0;
	    animation-timing-function: ease-in;
	}
	8% { /* 16%　8% */
	    opacity: 1;
	    transform: scale(1.05);
	    animation-timing-function: ease-out;
	}
	17% { /* 34% 17% */
	    opacity: 1;
	    transform: scale(1.1);
	}
	30% {
		opacity: 0;
		transform: scale(1.1); 
	}

	50% { /* 17% */
	    opacity: 0;
	    transform: scale(1.1) ; /* translateY(-100%) */
	}
	100% { opacity: 0 }
}

/* Animation for the title */
@keyframes titleAnimation {
    0% { opacity: 0 }
    8% { opacity: 1 } /* 16% 8% */
    17% { opacity: 1 } /* 34% 17% */
    22% { opacity: 0 } /* 38% 19% */
    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 }
}

@media screen and (max-width: 576px) {
.top-screen {
  top: 10px;
  right: 10px;
}
.top-screen img {
  width:100px;
}

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