@charset "utf-8";

/*========= ローディング画面のためのCSS ===============*/
#splash {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #333;
    z-index: 9999999;
    text-align: center;
    color: #fff;
}

#splash-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}




/*========= 画面遷移のためのCSS ===============*/

/*画面遷移アニメーション*/

body {
    background: #333;
    /*遷移アニメーションと同じ色を指定*/
}

body.appear {
    background: #332d2f;
    /*画面を開いた後の背景色を指定*/
}

.splashbg {
    display: none;
    content: "";
    position: fixed;
    transform: scale(100);
    background-color: #333;
    /*伸びる背景色の設定*/
    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;
    }
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
}

.loader>.spin {
    border: solid 5px cyan;
    border-radius: 100%;
    position: absolute;
    box-shadow: 0px 0px 2px 2px cyan;
}

.spin.a {
    width: 80px;
    height: 80px;
    top: -45px;
    left: -45px;
    -webkit-animation: rotOuter 1.5s infinite linear;
}

.spin.b {
    width: 70px;
    height: 70px;
    top: -40px;
    left: -40px;
    -webkit-animation: rotInner 1.5s infinite linear;
}

.loader .txt {
    position: absolute;
    width: 90px;
    line-height: 90px;
    color: white;
    top: -45px;
    left: -45px;
    text-align: center;
}

@-webkit-keyframes rotInner {
    0% {
        -webkit-transform: rotateY(-0deg) rotateX(30deg);
    }

    50% {
        -webkit-transform: rotateY(-180deg) rotateX(210deg);
    }

    100% {
        -webkit-transform: rotateY(-360deg) rotateX(390deg);
    }
}

@-webkit-keyframes rotOuter {
    0% {
        -webkit-transform: rotateY(0deg) rotateX(30deg);
    }

    50% {
        -webkit-transform: rotateY(180deg) rotateX(30deg);
    }

    100% {
        -webkit-transform: rotateY(360deg) rotateX(30deg);
    }
}