/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Main area
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
body {
    background: #000000;
    margin: 0;
    padding: 0;
}

#mobile-menu-toggle {
    display: none;
}

#header {
    display: none;
}

#toparea {
    display: block;
    position: relative;
    background: #252525;
    background-image: url("../images/top3.avif"); /* Changed to AVIF */
    background-size: cover; /* Added for background image behavior */
    background-position: center; /* Added for background image behavior */
    width: 100%;
    height: auto;
    padding-top: 100px;
    padding-bottom: 20px;
    text-align: center;
    z-index: 0;
    overflow: hidden
}

#toparea::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 1;
    z-index: 0;
    transition: opacity 4s linear;
}

#toparea.fade-out-bg::before {
    opacity: 0;
    transition: opacity 1s linear;
}

:root {
    --toplogo-scale: 0.85;
}

@media screen and (max-width: 768px) {
    :root {
        --toplogo-scale: 0.7; /* 0.85から縮小 */
    }
}

@media screen and (max-width: 480px) {
    :root {
        --toplogo-scale: 0.5; /* さらに縮小 */
    }
}

#toplogo {
    margin-top: calc(50px * var(--toplogo-scale));
    margin-bottom: calc(50px * var(--toplogo-scale));
    position: relative;
    z-index: 3;
    filter: drop-shadow(calc(2px * var(--toplogo-scale)) calc(2px * var(--toplogo-scale)) calc(2px * var(--toplogo-scale)) rgba(0, 0, 0, 1));
    transform: translateY(150px);
}

#toplogo-image {
    width: calc(152px * var(--toplogo-scale));
    height: calc(152px * var(--toplogo-scale));
}

#titletext {
    font-weight: 400;
    font-size: calc(48px * var(--toplogo-scale));
    letter-spacing: calc(18px * var(--toplogo-scale));
    margin-top: calc(15px * var(--toplogo-scale));
    margin-bottom: calc(12px * var(--toplogo-scale));
    text-shadow: none;
    white-space: nowrap;
}

#title-yosakoi {
    letter-spacing: calc(8px * var(--toplogo-scale));
    margin-right: calc(6px * var(--toplogo-scale));
}

#subtitletext {
    font-weight: 400;
    font-size: calc(20px * var(--toplogo-scale));
    letter-spacing: calc(7px * var(--toplogo-scale));
    margin-top: 0;
    white-space: nowrap;
}

.soundcloud-container #wrapper {
    opacity: 0;
}

/* ウィンドウ幅0〜899px */
@media screen and (max-width:899px) {
    #header {
        display: none;
    }

    #toparea {
        padding-top: 30px;
    }
}

/* ウィンドウ幅0〜599px */
@media screen and (max-width:599px) {
    #toplogo {
        width: 70%;
        margin: 0 auto;
    }

    #toparea {
        background-size: 230%;
        background-repeat: no-repeat;
        background-position: top;
    }

    #wrapper {
        position: relative;
        width: 100%
    }
}