@charset "utf-8";

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

.slideshow,
.slideshow:after {
    position: absolute;  /* fixed */
    width: 100vw;
    height: 82vh;  /* 78vh */
    top: 0px;
    left: 0px;
    z-index: 0;
    overflow: hidden;
}
.slideshow:after {
    content: '';
    background-color: rgba(0,0,0,0.3);
}
.slideshow li{
  list-style-type: none;
}
.slideshow li span {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    z-index: 0;
	-webkit-backface-visibility: hidden;
    animation: imageAnimation 18s linear infinite 0s; /* 36s→18s */
}
.slideshow li div {
    z-index: 1000;
    position: absolute;
    top: 35%;
    bottom: 30%;
    /* bottom: 30px; */
    left: 0px;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: titleAnimation 18s linear infinite 0s; /* 36s→18s */
    outline: 0px solid #f00;
}
.slideshow li div h3 {
    font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
    font-size: 140px; /* 160px */
    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: 25px;
    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-1-1500x840.jpg) }
.slideshow li:nth-child(2) span {
    background-image: url(../img/slideshow-2-1500x840.jpg);
    animation-delay: 6s;
}
.slideshow li:nth-child(3) span {
    background-image: url(../img/slideshow-3-1500x840.jpg);
    animation-delay: 12s;
}


.slideshow li:nth-child(2) div {
  animation-delay: 6s;
}
.slideshow li:nth-child(3) div {
  animation-delay: 12s;
}

@keyframes imageAnimation {
	0% { /* 0% */
	    opacity: 0;
	    animation-timing-function: ease-in;
	}
	16% { /* 8% */
	    opacity: 1;
	    transform: scale(1.05);
	    animation-timing-function: ease-out;
	}
	34% { /* 17% */
	    opacity: 1;
	    transform: scale(1.1);
	}
  /*
	22% {
		opacity: 0;
		-webkit-transform: scale(1.1) translateY(-20%);
	}
  */
	50% { /* 17% */
	    opacity: 0;
	    transform: scale(1.1) ; /* translateY(-100%) */
	}
	100% { opacity: 0 }
}

/* Animation for the title */
@keyframes titleAnimation { 
    0% { opacity: 0 }
    16% { opacity: 1 } /* 8% */
    34% { opacity: 1 } /* 17% */
    38% { opacity: 0 } /* 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-slide { padding-top: 82vh;}
.slideshow,
.slideshow:after { height: 82vh;}
.slideshow li div h3 { font-size: 90px;
        padding: 15px;
        line-height: 60px;}
.slideshow li div img { width: 200px;}
.slideshow li div p   { font-size: 20px }
}

@media screen and (max-width: 576px) {
.top-slide { padding-top: 50vh;}
.slideshow,
.slideshow:after { height: 50vh;}
.slideshow li div h3 { font-size: 55px;
        padding: 10px;
        line-height: 40px; }
.slideshow li div img { width: 150px;}
.slideshow li div p   { font-size: 14px }
}