/* ボタン外側 */
.openbtn {
    position: fixed;
    top: 15px;
    right: 10px;
    background: #C5BBA6;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    z-index: 1000;
}

@media(max-width:640px) {
    .openbtn {
        top: 6px;
    }
}

/* ボタンの中の線（3本） */
.openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 15px;
}

.openbtn span:nth-of-type(2) {
    top: 23px;
}

.openbtn span:nth-of-type(3) {
    top: 31px;
}

/* アクティブ状態（×マーク） */
.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

/* メニュー（前のまま） */
#header-menu {
    transform: translateX(100%);
    transition: transform 0.5s ease;
    background-color: #7f705e;
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    z-index: 999;
    opacity: 0.94;
    /* border-radius: 20px 0 0 20px; */
}

#header-menu.active {
    transform: translateX(0);
}

#header-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* padding: 0 0 0 2rem; */
    list-style: none;
    line-height: 3;
}

#header-menu ul a {
    text-decoration: none;
    color: #fff
}