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

body {
	margin: 0;
}

.slider {
	width: 100vw;
	height: 93vh; /* 表示の高さに対しての比率 */
	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;
	transform: scale(1); /* 最初の画像のサイズ */
}

@keyframes slide-fade {
	0%{
		opacity: 0;
	}
	10%{
		opacity: 1;
	}
	80%{
		opacity: 0;
		transform: scale(1.25); /* ここで画像サイズを1.5倍にする */
	}
	100%{
		opacity: 0;
		z-index: 0;
	}
}
.slider div:first-of-type{
	background-image: url(../sl/01.webp);
}
.slider div:nth-of-type(2){
	background-image: url(../sl/02.webp);
	animation-delay: 5s; /* ここまでの秒数を変更 */
}
.slider div:last-of-type{
	background-image: url(../sl/03.webp);
	animation-delay: 10s; /* ここまでの秒数を変更 */
}
