@charset "UTF-8";

@keyframes hamburger-menu {
    from {
        padding: 0;
    }

    to {
        padding: 0;
    }
}

header {
    position: fixed;
    background-color: #5d544cdc;
    height: 60px;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
}

header img {
    height: 30px;
    width: auto;
    margin-left: 40px;
}

.hamburger-menu {
    display: flex;
    align-items: center;
    margin: 0 auto;
    color: #5d544c;
    justify-content: space-between;
    height: 60px;
    z-index: 100;
}

header [type="checkbox"] {
    position: absolute;
    right: 1000vw;
}

.open {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 40px;
    cursor: pointer;
    height: 40px;
    margin-right: 40px;
}

.open span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #5d544c00;
}

.open span::before,
.open span::after {
    display: block;
    width: 100%;
    height: 2px;
    position: absolute;
    content: "";
    background-color: #f7f3f0;
    visibility: visible;
    transition: 0.5s;
}

.open span::before {
    top: 10px;
}

.open span::after {
    bottom: 10px;
}

.hamburger-menu input[type="checkbox"]:checked~.open span::before {
    top: 19px;
    transform: rotate(45deg);
}

.hamburger-menu input[type="checkbox"]:checked~.open span::after {
    bottom: 19px;
    transform: rotate(-45deg);
}

nav {
    position: fixed;
    right: 1000vw;
    top: 60px;
    height: 100%;
    width: 100vw;
}

.hamburger-menu input[type="checkbox"]:checked~nav {
    right: 0;
}

.hm-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    height: 100%;
    background-color: #5d544cdc;
    margin: 0;
    padding: 0;
    border-top: solid 1px #f7f3f0;
    list-style: none;
    gap: 1rem;
}

.hm-list li {
    align-items: center;
    padding-top: 20px;
}

.hm-list li a {
    color: #f7f3f0;
    text-decoration: none;
}