﻿/* オーバーレイスタイル */
.overlay {
    position: fixed;
    z-index: 540;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.5s, visibility 0.5s;
    opacity: 0;
    visibility: hidden;
}

.overlay.d-block {
    opacity: 1;
    visibility: visible;
}

/* メニューの内容 */
.overlay-content {
    text-align: center;
}

.hamburger {
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 550;
    position: relative;
}

.sp-hamburger-parent {
    background: rgba(0, 0, 0, 0.5) 0 0 no-repeat padding-box;
    border-radius: 26px;
    z-index: 1000;
    top: 5rem;
    inset-inline-end: 1.5rem;
    padding: 5px 10px;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--unnamed-color-ffffff);
    transition: all 0.3s ease;
}

/* ハンバーガーメニューがアクティブなときのスタイル */
.hamburger.active .top-bar {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .middle-bar {
    opacity: 0;
}

.hamburger.active .bottom-bar {
    transform: rotate(-45deg) translate(7px, -6px);
}

.header-menu-text {
    font-size: 1.5rem;
    color: white;
}

.header-game-logo {
    height: 75%;
}

.header-store-logo {
    height: 25%;
}

@media (min-width: 768px) {
    .header-game-logo {
        height: 75%;
    }

    .header-store-logo {
        height: 35%;
    }
}