/* */
/*ハンバーガーメニューここから↓↓↓*/
.hamburger {
    display: block;
    z-index: 2;
}

.sp-header {
    position: fixed;
    width: 100%;
    height: 52px;
    margin-top: 0px;
}

/* Nav items */
.menu {
    list-style: none;
    position: absolute;
    width: 20%;
    max-width: 200px;
    height: auto;
    top: 0;
    left: 10px;
    margin-top: 52px;
    padding: 0 0 10px 0;
    border-radius: 20px;
    clear: both;
    background: var(--maincolor);
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
    transform: scale(0, 1);
    transform-origin: top;
    opacity: 0.8;
}

/* Hamburger menu button */
.menu.active {
    transform: scale(1, 1);
    transform-origin: top;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger menbu text */
.menu a {
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 100%;
    text-transform: capitalize;
    color: var(--text-subcolor);
    opacity: 0;
    transition: 0.5s;
}

.menu li {
    padding: 15px 0;
    margin: 0 10%;
    opacity: 0;
    transition: 0.5s;
}

.menu li:not(:first-child) {
    border-top: 1px solid var(--text-subcolor);
}

.menu.menu.active a,
.menu.menu.active li {
    opacity: 1;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
}

/*　メニューアイコン */
.menu-icon {
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding: 24px 14px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.navicon {
    background: var(--maincolor);
    display: block;
    height: 3px;
    width: 26px;
    position: relative;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before,
.navicon:after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    background: var(--maincolor);
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
    top: 9px;
}

.navicon:after {
    bottom: 9px;
}

/* Hamburger Menu Animation Start */
.navicon.active:before {
    transform: rotate(-45deg);
    top: 0;
}

.navicon.active::after {
    transform: rotate(45deg);
    bottom: 0;
}


.navicon.active {
    background: rgba(0, 0, 0, 0);
    transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger Menu Animation End */
/*ハンバーガーメニューここまで↑↑↑*/