/*スクロールありの場合はフッターはポディション解除とbodyの高さを調整*/
body {
    height: 100%;
    overflow-y: auto;
}

.header {
    background: rgba(0, 0, 0, 0.8);
}

.footer {
    margin-top: 0;
}

.key-visual-box {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background-image: url("../img/top/main.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    overflow-x: hidden;
}


/*最初のローディングの処理*/
.loading {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99999;
    animation: loading-box 1s forwards 10s;
}


@keyframes loading-box {
    0% {
        opacity: 1;
    }

    99% {
        opacity: 0;
    }

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

.loading .loading-topbg,
.loading .loading-bottombg {
    width: 100%;
    height: calc(50% - 2px);
    background: #000;
    box-sizing: border-box;
}

.loading .loading-bar {
    width: 100%;
    height: 4px;
    display: block;
    position: relative;
    background: #000;
}

.loading .loading-bar::after {
    background: #fff;
    content: '';
    display: block;
    height: 4px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: loading-bar 5s forwards;
}

@keyframes loading-bar {
    0% {
        width: 0;
    }

    90% {
        width: 100%;
        background: #fff;
    }

    100% {
        width: 100%;
        background: #000;
    }
}


.loading .loading-logobox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: loading-rogo 5s forwards 5s;
    max-width: 400px;
}

.loading .loading-logobox img {
    width: 100%;
    animation: skew 0.5s infinite 5s;
}

.loading .loading-logobox01 {
    z-index: 999;
}

.loading img {
    width: 400px;
}




@keyframes loading-rogo {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

/*850px以下　SP・Tab表示処理*/
@media screen and (max-width: 850px) {
    .loading .loading-logobox {
        width: 80%;
    }

    .loading .loading-logobox01 img,
    .loading .loading-logobox02 img,
    .loading .loading-logobox03 img {
        width: 100%;
    }

    .key-visual {
        height: auto;
        margin-top: 60px;
    }

    .key-visual-box {
        position: relative;
        min-height: auto;
        height: calc(100vh - 50px);
        background-image: url("../img/top/main-sp.png");
    }

    main {
        height: auto;
        min-height: auto;
    }

    .snsbox {
        position: inherit;
        justify-content: space-around;
    }

    .snsbox li {
        height: auto;
    }

    .snsbox li:nth-child(1) {
        width: 38%;
    }

    .snsbox li:nth-child(2) {
        width: 20%;
    }

    .snsbox li img {
        height: auto;
        width: 100%;
    }

    .footer {
        margin-top: 0;
    }
}