@charset "utf-8";

.fadeup {
    animation-name: fade-up;
    animation-duration: 1s;
}

@keyframes fade-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fadeup:nth-child(2) {
    animation-delay: 0.5s;
}

.fadeup:nth-child(3) {
    animation-delay: calc(0.5s + 0.5s);
}

.fadeup:nth-child(4) {
    animation-delay: calc(0.5s + 0.5s + 0.5s);
}

.fadeup:nth-child(5) {
    animation-delay: calc(0.5s + 0.5s + 0.5s + 0.5s);
}

.fadeup {
    opacity: 0;
}


/* アニメーション消えない方法 */
.fadeup{
    opacity: 0;

    animation-fill-mode: forwards;
}

/* 開始時間を、ディレイを使ってタイミングずらす */
.fadeup:nth-child(1){
    animation-delay: 0.3s;
}

/* ↑の開始タイミングに揃うよう、中身のメニューのアニメタイミングを揃える*/

.fadeup:nth-child(2) {
    animation-delay: calc(0.3s + 0.5s);
}

.fadeup:nth-child(3) {
    animation-delay: calc(0.3s + 0.5s + 0.5s);
}

.fadeup:nth-child(4) {
    animation-delay: calc(0.3s + 0.5s + 0.5s + 0.5s);
}

.fadeup:nth-child(5) {
    animation-delay: calc(0.3s + 0.5s + 0.5s + 0.5s + 0.5s);
}



/* イントロの文章を浮かび上がらせる */

.index-text{
    animation-name: blur;
    animation-duration: 3s;
}

/* ↓動かす呪文 上の2.5秒の中の始め０％と最後１００どうしたいか設定。最初と最後ならfrom,toでも可能*/
@keyframes blur{
    0%{
        filter: blur(5px);  
        opacity: 0;     
    }
    100%{
        filter: blur(0);
        opacity: 1;
    }
}

/* テキストをメニューの後にアニメ動かす。*/

.index-text{
    animation-delay: 2s;
}
/* テキストに映っちゃってる鯨を見えないようにしておく */
.index-text{
    opacity: 0;
}
/* テキストを表示したままにする */
.index-text{
    opacity: 0;
    animation-fill-mode: forwards;
}

    /* テキストをメニューの後にアニメ動かす。animation-duration: 1s;に calc(0.3s + 0.5s + 0.5s + 0.5s);たす*/
    
    .index-text{
        animation-delay: 2s;
    }
 
    /* テキストを表示したままにする */
    .index-text{
        opacity: 0;
        animation-fill-mode: forwards;
    }
    

    /* 650px以下だとメニューがボタンに格納されているので、イントロテキストが表示されるのが遅い
    メディアクエリでアニメーションの開始時間を調整できるのか */

    @media(max-width:650px){
        .index-text{
            animation-delay: 0.5s;
        }
        

    }