@charset "utf-8";

.slider {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	max-width: 100%;
	box-sizing: border-box;
}

.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(../images/1.jpg);
}
.slider div:nth-of-type(2){
	background-image: url(../images/2.png);
	animation-delay: 5s;
}
.slider div:last-of-type{
	background-image: url(../images/3.png);
	animation-delay: 10s;
}



/*画面幅800px以下の設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width:720px){
	
.slider {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	max-width: 100%;
	box-sizing: border-box;
}

.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;
}

.slider div:first-of-type{
	background-image: url(../images/01-sp.png);
		max-width: 100%;

}
.slider div:nth-of-type(2){
	background-image: url(../images/2-sp.png);
	animation-delay: 5s;
		max-width: 100%;

}
.slider div:last-of-type{
	background-image: url(../images/3-sp.png);
	animation-delay: 10s;
	max-width: 100%;
}
	