@charset "utf-8";

.hum-menu {
    background-color: #fff;
    position: fixed;
    top: 3.125rem;
    bottom: 0;
    right: -100%;
    left: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

/* メニューが開いているとき */
body.open nav {
    transform: translateX(-100%);
}

body.open .hum-button-line {
    background-color: transparent;
}

body.open .hum-button-line:before {
    top: 0;
    transform: rotate(45deg);
}

body.open .hum-button-line:after {
    top: 0;
    transform: rotate(-45deg);

}

/* ハンバーガーボタン */
.hum-button {
    width: 50px;
    height: 50px;
}

.hum-button-line {
    display: block;
    height: 1px;
    width: 30px;
    background-color: #fff;
    margin: auto;
    position: relative;
}

.hum-button-line:before,
.hum-button-line:after {
    display: block;
    content: '';
    height: 100%;
    width: 100%;
    background-color: #fff;
    position: absolute;
}

.hum-button-line:before {
    top: -8px;
}

.hum-button-line:after {
    top: 8px;
}

.main-nav {
    width: 90%;
    margin: 3rem auto 0;
    font-size: 1.5rem;
    list-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.main-nav li {
    text-align: left;
    font-size: 1.25rem;
    padding-bottom: 1.25rem;
    padding-left: 0.9rem;
    border-bottom: 1px solid #000;
}

.main-nav li a {
    letter-spacing: 0.3rem;
    text-decoration: none;
}

.main-nav a {
    color: #000;
}

.main-nav a:hover {
    color: #9F7D55;
}


@media screen and (min-width:768px) {
    .hum-menu {
        left: 130%;
        opacity: 0.7;
    }

    .hum-button-line:before,
    .hum-button-line:after,
    .hum-button-line {
        background-color: #fff;
    }
}