/*========= 背景動画設定のCSS ===============*/

/*header設定*/
#ytwrap{
    position: relative;/*ローディング画像などを表示す際の基点とするため指定*/
    height: 100vh;/*高さを全画面にあわせる*/
    text-align: center;
    color: #fff;
    /*ローディング画面時＆動画が表示されないときに表示する背景画像のレスポンシブ化*/
    background: url("../img/movie.jpg") no-repeat;
    background-size: cover;
}
@media screen and (max-width: 768px) {
    #ytwrap {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
/* ローディングアイコン設定 */

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/*jQueryで付与されたdisappearクラスがついたらロゴエリアを非表示*/

#loading.disappear{
    display: none;
}


/* youtube設定 */

#youtube-area{
    position: relative;
    z-index: 0;/*最背面に設定*/
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/*jQueryで付与されたappearクラスがついたらYoutubeエリアをふわっと表示*/
#youtube-area.appear {
    animation-name:PageAnimeAppear;
    animation-duration:.5s;
    animation-fill-mode:forwards;
}

@keyframes PageAnimeAppear{
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#youtube {
    /*天地中央配置*/
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*縦横幅指定*/
    width: 177.77777778vh; /* 16:9 の幅→16 ÷ 9＝ 177.77% */
    height: 56.25vw; /* 16:9の幅 → 9 ÷ 16 = 56.25% */
    min-height: 100%;
    min-width: 100%;
}

@media screen and (max-width: 768px) {
    #youtube {
        width: 100%;
        height: 56.25%;
        aspect-ratio: 16 / 9;
    }


}


/*youtubeがクリックされないためのマスク*/
#youtube-mask{
    position: absolute;
    top:0;
    width:100%;
    height: 100%;
    background-color: rgba(238, 0, 190, 0);
    opacity: 0;
}
