/* ====================================================================ローディング画面 */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 1.5s 2.5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* ====================================================================ヘッダー */

#header {
    /*fixedで上部固定*/
    position: fixed;
    height: 100px;
    width: 100%;
    z-index: 999;
    /*最前面へ*/
    /*=================================================ヘッダーのレイアウトのためのCSS*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    opacity: 0.8;
    color: #ccc;
    text-align: center;
}

#header img {
    width: 80px;
    height: 80px;
    margin-left: 20px;
    align-items: center;
}

/*　上に上がる動き　*/

#header.UpMove {
    animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 0.8;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}

/*　下に下がる動き　*/

#header.DownMove {
    animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* ===============================================================ハンバーガーボタン */

.gloval-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;
    right: -120%;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: #333;
    /*動き*/
    transition: all 0.6s;

}

/*アクティブクラスがついたら位置を0に*/
.gloval-nav.panelactive {
    right: 0;
}

/*ナビゲーションの縦スクロール*/
.gloval-nav.panelactive .gloval-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
.gloval-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*=========================================================グローバルナビゲーションのレイアウト設定*/

.gloval-nav li {
    list-style: none;
    text-align: center;

}

.gloval-nav li a {
    color: #ccc;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    font-size: 15px;
    opacity: 1;

}

.gloval-nav li a:hover {
    border-bottom: 2px solid #fff;
}

/*========= =====================================================ボタンのためのCSS*/
.openbtn {
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 25px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

/*×に変化*/
.openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #666;
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 15px;
}

.openbtn span:nth-of-type(2) {
    top: 23px;
}

.openbtn span:nth-of-type(3) {
    top: 31px;
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

/* 波 */

.wave {
    position: relative;
    height: 0px;
}

canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* フッター */

footer {
    margin: 50px auto 0;
    background-color: #666;
    text-align: center;
}

footer a {
    color: #ccc;
    text-decoration: none;
    
}
footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-link  {
    display: flex;
    justify-content: center;
    gap:0 40px;
    margin-bottom: 30px;
}
.footer-contents li {
    list-style-type: none;
    font-size: 14px;
    text-align: left;
    line-height: 2em;
    color: #ccc;
}

footer img {
    width: 40%;
    padding: 15px;
}

.copyright {
    margin: 0;
    padding-bottom: 15px;
    color: #ccc;
}

@media screen and (min-width:767px) {
    footer {
        margin: 250px auto 0;
    }

    .footer-contents {
        display: flex;
        justify-content: center;
        margin: 80px auto 0;
        padding: 40px;
        gap:0 50px;
    }



    .footer-link  {
        gap:0 50px;
    }

    footer img {
        width: 150px;
        height: 150px;
        padding: 5px;
    }
}

/* トップへ戻るボタン */

#page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    line-height: 1;
    z-index: 99;

}

#page-top a {
    text-decoration: none;
    color: #ccc;
    width: 60px;
    padding: 28px 5px;
    text-align: center;
    display: block;
    border-radius: 90px;
    transition: all .3s ease;
}

#page-top a:hover {
    text-decoration: none;
}

#page-top a img {
    border-radius: 10px;
}