@charset "UTF-8";
/* CSS Document */

.slider {
	width: 100vw;
	height: 70vh;
	overflow: hidden;
	position: relative;
	max-width: 100%;
}

.slider div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	z-index: 10;
	opacity: 0;
	animation-name: slide-fade;
	animation-duration: 15s;
	animation-iteration-count: infinite;
}

@keyframes slide-fade {
	0%{
		opacity: 0;
	}
	20%{
		opacity: 1;
	}
	80%{
		opacity: 0;
	}
	100%{
		opacity: 0;
		z-index: 0;
	}
}
.slider div:first-of-type{
	background-image: url(../img/slide/img_slide01@2x.png);
}

.slider div:nth-of-type(2){
	background-image: url(../img/slide/img_slide02@2x.png);
	animation-delay: 5s;
}
.slider div:last-of-type{
	background-image: url(../img/slide/img_slide03@2x.png);
	animation-delay: 10s;
}

@media screen and (max-width: 820px) {
	.slider div:first-of-type{
	background-image: url(../img/slide/img_sp_slide01@2x.png);
	}
	.slider div:nth-of-type(2){
	background-image: url(../img/slide/img_sp_slide02@2x.png);
	animation-delay: 5s;
	}
	.slider div:last-of-type{
	background-image: url(../img/slide/img_sp_slide03@2x.png);
	animation-delay: 10s;
	}

	.slider	{	 height: 100vh;	}
		
	}
