/* タイトル */
#id_title {
	font-family:'Hachi Maru Pop', cursive; 
	text-align:center; 
	color:#dc143c; 
	font-weight:bold; 
	font-size:130%;
}
#id_title::before {
	content:'秋　も　深　ま　り　...やがて';
	animation: titleMoving 13s linear 18s forwards;
}
@keyframes titleMoving {
	0%   { opacity:1.0; content:'秋　も　深　ま　り　...やがて'; }
	24%  { opacity:0.0; content:'秋　も　深　ま　り　...やがて'; }
	25%  { opacity:0.0; content:'　';}
	26%  { opacity:0.0; content:'木々の葉もすっかり落ちて'; color:#808000; }
	47%  { opacity:1.0; content:'木々の葉もすっかり落ちて'; color:#808000; }
	79%  { opacity:0.0; content:'木々の葉もすっかり落ちて'; color:#808000; }
	80%  { opacity:0.0; content:'　';}
	81%  { opacity:0.0; content:'そして...　冬の訪れ'; color:#0000ff; }
	100% { opacity:1.0; content:'そして...　冬の訪れ'; color:#0000ff; }
}

/* 落ち葉画面エリア */
#id_haikei {
	position: relative;
	display:block;
	max-width: 360px;
	height: 250px;
	overflow: hidden;
	border-radius: 12px;
	//box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	margin:2px auto 0 auto;
}

/* 風景画像３枚 */
.imgCommon {
	position: absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
}
.img1 {
	opacity:1.0;
	animation: img1Moving 11s linear 14s forwards;
}
@keyframes img1Moving {
	0%   {opacity:1.0;}
	100% {opacity:0.0;}
}
.img2 {
	opacity:0.0;
	animation: img2Moving 23s linear 14s forwards;
}
@keyframes img2Moving {
	0%   {opacity:0.0;}
	50%  {opacity:1.0;}
	100% {opacity:0.0;}
}
.img3 {
	opacity:0.0;
	animation: img3Moving 12s linear 25s forwards;
}
@keyframes img3Moving {
	0%   {opacity:0.0;}
	100% {opacity:1.0;}
}

#game-area {
	position: absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	user-select: none;
}

/* 落ち葉のスタイル */
.leaf {
	position: absolute;
	top: -20px;
	font-size: 24px;
	transition: transform 0.1s;
	/* ひらひら落ちるアニメーション */
	//animation: fall1 linear forwards;
}

.leaf:active {
	transform: scale(0.8); /* クリック時に少し縮む */
}

/* 落ちる動き1（上から下へ、左右に揺れながら回転） */
@keyframes fall1 {
	0% {
		transform: translateX(0) rotate(0deg);
	}
	50% {
		transform: translateX(60px) translateY(190px) rotate(180deg);
	}
	100% {
		transform: translateX(-60px) translateY(300px) rotate(360deg);
	}
}
/* 落ちる動き2 */
@keyframes fall2 {
	0% {
		transform: translateX(0) rotate(0deg);
	}
	30% {
		transform: translateX(-30px) translateY(110px) rotate(-180deg);
	}
	100% {
		transform: translateX(50px) translateY(300px) rotate(-270deg);
	}
}
/* 落ちる動き3 */
@keyframes fall3 {
	0% {
		transform: translateX(0) rotate(0deg);
	}
	40% {
		transform: translateX(60px) translateY(200px) rotate(90deg);
	}
	90% {
		transform: translateX(-50px) translateY(180px) rotate(360deg);
	}
	100% {
		transform: translateX(50px) translateY(300px) rotate(270deg);
	}
}

.snowfallArea {
	position:absolute; 
	left:0; 
	top:0; 
	width:100%; 
	height:100%;
	opacity:0.0;
	animation: snowfalling 5s linear forwards;
	animation-play-state:paused;
}
@keyframes snowfalling {
	0%   { opacity:0.0; }
	100% { opacity:1.0; }
}
