/*==================================================
　5-2-1 3本線が×に
===================================*/
/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.menu-button-inner {
    /*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
    position: relative;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 5px;
    }

/*ボタン内側*/
.menu-button-inner span {
    display: inline-block;
    transition: all .4s;
    /*アニメーションの設定*/
    position: absolute;
    left: 0px;
    height: 3px;
    border-radius: 2px;
    background-color: #ff8585;
    width: 45%;
}

.menu-button-inner span:nth-of-type(1) {
    top: 2px;
}

.menu-button-inner span:nth-of-type(2) {
    top: 11px;
}

.menu-button-inner span:nth-of-type(3) {
    top: 20px;
}

/*activeクラスが付与されると線が回転して×に*/

.menu-button-inner.active span:nth-of-type(1) {
    top: 8px;
    left: 0px;
    transform: translateY(6px) rotate(-45deg);
    width: 45%;
}

.menu-button-inner.active span:nth-of-type(2) {
    opacity: 0;
    /*真ん中の線は透過*/
}

.menu-button-inner.active span:nth-of-type(3) {
    top: 20px;
    left: 0px;
    transform: translateY(-6px) rotate(45deg);
    width: 45%;
}