/* Header styles */
header {
    position: fixed;
    z-index: 1000;
    display: flex;
    width: 100%;
    height: 60px;
    background: #000;
    align-items: center;
    justify-content: space-between;
}

header * {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}

#header-title {
    display: inline-flex;
    margin: 0 0 10px 10px;
    height: 100%;
    background: #000;
}

#header-title img {
    height: 38px;
}

/* PC Menu */
#menu-pc {
    margin-right: 40px;
}
#menu-pc ul {
    list-style: none;
    display: flex;
    gap: 2em;
    padding: 0;
    margin: 0;
}

.menu-pc-part {
    display: block;
    height: 1em;
    width: 1px;
    background: #fff;
}

/* Hamburger Menu */
#header-menu-sp {
    display: inline-block;
    margin: 0 5px 0 10px;
}
.menu-toggle {
    display: none;
}
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1000;
}
.hamburger-line {
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
#menu-sp-toggle:checked ~ .hamburger-icon .hamburger-line {
    transform-origin: center;
}
#menu-sp-toggle:checked ~ .hamburger-icon .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
#menu-sp-toggle:checked ~ .hamburger-icon .hamburger-line:nth-child(2) {
    opacity: 0;
}
#menu-sp-toggle:checked ~ .hamburger-icon .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Sidebar styles */
#sidebar {
    top: 70px;
    z-index: 999;
    display: grid;
    width: 80%;
    height: calc(100% - 70px);
    position: absolute;
    background: linear-gradient(to right, #000, #000a);
    backdrop-filter: blur(10px);
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.45s ease;
}

header:has(#menu-sp-toggle:checked) ~ #sidebar {
    transform: translateX(0);
}

#side-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
}

#side-license {
    margin: 0 0 20px 20px;
    align-self: end;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
#side-license img {
    display: inline-block;
    height: 38px;
    object-fit: contain;
    margin-bottom: 5px;
}
#side-license * {
    margin: 0;
}

/* Responsive design */
@media (min-width: 651px) {
    header {
        font-size: 16px;
    }
    #sidebar,
    #header-menu-sp {
        display: none;
    }
    #menu-pc {
        display: block;
    }
}

@media (max-width: 650px) {
    header {
        height: 70px;
    }
    #sidebar {
        display: grid;
    }
    #header-menu-sp {
        display: inline-flex;
    }
    #menu-pc {
        display: none;
    }
}
