@charset "utf-8";
/* 動きを制御するCSS */

/*========= ローディング画面のためのCSS ===============*/
#splash {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #1d2088;      /*最初の背景色 青 */
	z-index: 9999999;
}

#splash-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	font-size: 300%;
	font-weight: bold;
	color: #ffffff;            /*最初の文字色 白 */
}

/*========= 画面遷移のためのCSS ===============*/

/*画面遷移アニメーション*/

body{
    background: #ffa500;      /*遷移開始時の背景色 オレンジ */
}

body.appear{
    background:#ffffff;       /*画面を開いた後の背景色 白 */
}

.splashbg{
    display: none;
	content: "";
	position:fixed;
	transform: scale(100);
	background-color: #ffa500; /*円になる背景色 オレンジ*/
	z-index: 999;
    /*丸のスタートの形状*/
    top:calc(50% - 1rem);      /*50%から円の半径を引いた値*/
    left:calc(50% - 1rem);     /*50%から円の半径を引いた値*/
	width: 2rem;
	height: 2rem;
}

/*bodyにappearクラスがついたら出現*/
body.appear .splashbg{
    display: block;
    border-radius: 50%;	
	animation-name:PageAnime;
	animation-duration:1s;
	animation-fill-mode:forwards;
}

@keyframes PageAnime{
	0% {                      /*丸のスタート位置と形状*/
		transform: scale(100);
	
	}
	100% {                    /*丸の終了位置と形状*/
		transform: scale(0);
		display: none;        /*終了時は消える*/
	}
}

/*画面遷移の後現れるコンテンツ設定*/
#container{
	opacity: 0;               /*はじめは透過0に*/
}

                              /*bodyにappearクラスがついたら出現*/
body.appear #container{
	animation-name:PageAnimeAppear;
	animation-duration:1s;
	animation-delay: 0.8s;
	animation-fill-mode:forwards;
	opacity: 0;
}

@keyframes PageAnimeAppear{
	0% {
	opacity: 0;
	}
	100% {
	opacity: 1;
}
}

