/*** ハンバーガーが押す / サイドバー表示 ***/
.l-header__sidebar {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 290px;
    height: 100%;
    background-color: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    overflow-y: scroll;
    overflow-x: hidden;
    transform: translate(-290px);
    transition: transform 0.3s cubic-bezier(0.83, 0, 0.17, 1);
}

.l-header__sidebar.open {
    transform: translateZ(0);
}

/*** ハンバーガーを開いた時に表示される閉じるボタン ***/
.l-header__close {
    position: relative;
    transform: translate(-290px);
    transition: transform 0.3s cubic-bezier(0.83, 0, 0.17, 1);
}

.l-header__close.open {
    position: absolute;
    display: block;
    top: 8px;
    right: calc(50% - 160px);
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background-color: #FFF;
    z-index: 10;
    transform: translateZ(0);
}

@media screen and (min-width: 640px) {
    .l-header__close.open {
        right: calc(100% - 350px);
    }
}


.l-header__close.open::after {
    content: '';
    position: absolute;
    top: calc(25% - 9px);
    right: calc(25% - 11px);
    width: 100%;
    height: 100%;
    background: url(/images/icon/header/ic_header-hamburger_cancel.svg) no-repeat;
}

/*** ハンバーガー開く / 背景色を暗くする ***/
.l-header__hamburger {
    display: block;
    width: 0;
    height: 0;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    opacity: 0;
    transition: opacity .5s;
}

.l-header__hamburger.open {
    width: 100%;
    height: 100vh;
    opacity: 1;
}

.l-header__logo {
    max-width: 150px;
    width: 100%;
}

.l-header__logo.is-purchase {
    max-width: 120px;
    width: 100%;
}

.l-header__design-reset-button {
    position: absolute;
    top: 3px;
    left: calc(100% - 225px)
}

.l-header__purchase {
    position: absolute;
    top: 6px;
    left: calc(100% - 160px)
}

@media screen and (min-width: 640px) {
    .l-header__purchase {
        left: calc(100% - 230px);
    }
}