.hamburgerButton {
    width: 18px;
    height: 19px;
    position: flex;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hamburgerButton.open{
    position: static;
}

.hamburgerButton .bar {
    display: inline-block;
    width: 18px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.hamburgerButton.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburgerButton.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburgerButton.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* オーバーレイ */
.menu-overlay {
    position: fixed;
    top: 66px;
    left: -50%;
    width: 1000vw;
    height: calc(100vh - 66px);
    background: #EEEEEEE6;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* メニュー本体 */
.menu-container {
    background-color: #fff;
    position: fixed;
    width: 85%;
    height: fit-content;
    top: 45px;
    right: 0;
    transform: translateX(100%);
    transition: 0.5s ease;
    z-index: 999;
    visibility: hidden;
}

.menu-container.open {
    transform: translateX(0);
    overflow-y: auto;
    max-height: calc(100vh - 44px);
    -webkit-overflow-scrolling: touch;
}

/* PC用メニュー */
.menu-container-pc {
    position: relative;
    height: 100svh;
    width: 280px;
    margin-left: auto;
    max-height: 0;
    overflow: hidden;
    z-index: 999;
    transition: max-height 0.3s ease;
    background-color: #fff;
    scrollbar-width: thin;
}

.menu-container-pc.open {
    overflow-y: auto;
    max-width: 980px;
    max-height: calc(90svh - 66px);
}

/* メニュー内 */
.menu-inner,
.menu-inner.guide {
    background-color: #fff;
    width: 100%;
    height: 100%;
    max-width: 700px;
    margin-left: auto;
    padding-top: 12px;
}
.menu-inner.guide {
    padding-top: 0;
}

/* ナビゲーション */
.menu-navContainer {
    transition: 0.5s ease;
}

.menu-navContainer-title {
    position: relative;
    font-weight: bold;
    padding: 1rem 1rem;
    border-bottom: 1.5px solid #EEEEEEE6;
    background-color: #fff;
}

.menu-container-pc .menu-navContainer-title {
    color: #666666;
    border: none;
    padding-top: 32px;
}

.menu-navContainer-title::after {
    position: absolute;
    content: "";
    top: 14px;
    right: 16px;
    background-image: url(../image/arrow/down_arrow.svg);
    width: 1.3rem;
    height: 1.3rem;
    background-size: contain;
    background-repeat: no-repeat;
}

.menu-navContainer-title.open::after {
    background-image: url(../image/arrow/up_arrow.svg);
}

.menu-container-pc .menu-navContainer-title::after {
    display: none;
}

/* ナビゲーション選択 */
.menu-navSelect {
    position: relative;
    background-color: #E6E6E6;
}

.menu-container-pc .menu-navSelect {
    background-color: #fff;
}

.menu-navSelect dt a {
    display: block;
    position: relative;
    text-decoration: none;
    color: #1B1B1B;
    padding: 21px 16px;
}

.menu-navSelect dt a:hover {
    color: #676767;
}

.menu-container-pc .menu-navSelect dt a {
    font-weight: bold;
    border-bottom: 1.5px solid #EEEEEEE6;
}

.menu-navSelect dt a::after {
    position: absolute;
    content: "";
    top: 14px;
    right: 16px;
    background-image: url(../image/arrow/right_arrow.png);
    width: 1.3rem;
    height: 1.3rem;
    background-size: contain;
    background-repeat: no-repeat;
}

.menu-container-pc .menu-navSelect dt a::after {
    content: none;
}

/* サブメニュー開閉 */
.menuFunc-nextElement {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.menuFunc-nextElement.open {
    max-height: 500px;
}

/* アクセシビリティ */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* メインコンテナ */
.maincontainer {
    width: 100%;
    max-width: 980px;
    margin: auto;
    padding: 0 14px;
}

/* ガイドメニュー */
.guideMenu {
    display: flex;
    width: 74px;
    padding: 8px 10px;
    font-size: 10px;
    background-color: #fff;
    justify-content: space-between;
    border: solid 1px #1B1B1B;
    border-radius: 8px;
    z-index: 999;
    align-items: center;
}

.guideMenu_inner {
    display: flex;
    align-items: center;
}

.guideMenu p {
    font-size: 10px;
    line-height: 13px;
    color: #333;
    margin-bottom: 0 !important;
}

.guideMenu .hamburgerButton {
    border: none;
}

/* ガイドメニュー詳細 */
.menu-container.guide {
    top: 125px;
}

.menu-container.open.guide {
    transform: translateX(50%);
    right: 50%;
    overflow-y: auto;
    max-height: calc(82vh - env(safe-area-inset-bottom));
    height: auto;
    width: 100%;
    padding: 0 8px;
    background-color: #EEEEE6;
    -webkit-overflow-scrolling: touch;
}

.menu-container.guide.open .menu-navContainer-title {
    padding: 1rem 30px 1rem 1rem;
}

.menu-container.guide.open .menuFunc-nextElement.open {
    max-height: 1000px;
}

.menu-container.guide.open .menu-navSelect dt a {
    padding: 22px 41px 22px 14px;
}

.menu-container.guide.open .menu-navContainer-title::after,
.menu-container.guide.open .menu-navContainer-title.noMenu::after,
.menu-container.guide.open .menu-navSelect dt a::after {
    width: 2.3rem;
    height: 2.3rem;
    top: 8px;
    right: 10px;
}

.menu-container.guide.open .menu-navContainer-title.noMenu::after {
    background-image: url(../image/arrow/right_arrow.svg);
}

.menu-container.guide.open .menu-navSelect dt a::after {
    top: 20px;
}

/* メニュー下部固定 */
.menu-container.at-bottom {
    position: fixed;
    bottom: 0;
    top: 125px;
    max-height: calc(100vh - 97px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* スクロール禁止 */
.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* グローバルナビ */
h1.gnav {
    display: flex;
    justify-content: space-between;
}

h1.gnav div:last-child,
h1.gnav div:last-child span {
    width: 18px;
}

/* タブレット対応 */
@media screen and (max-width: 767px) {
    .header-inner::after {
        top: 44px;
    }

    .menu-inner {
        font-family: Noto Sans JP, Bold;
    }

    .menu-container-pc {
        visibility: hidden;
    }

    .menu-container {
        visibility: initial;
    }

    .menu-overlay {
        position: fixed;
        top: 44px;
        left: 0;
        width: 100%;
        height: calc(100vh - 44px);
        background: #EEEEEEE6;
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .accountInfo {
        flex-direction: column;
        align-items: flex-end;
        padding: 5px 0;
    }

    .accountInfo-userID {
        border: none;
        padding-right: 7px;
    }

    .accountInfo-pontaPoint {
        padding-right: 10px;
    }

    .accountInfo-border {
        display: block;
        margin: 5px 0;
        width: 100vw;
        border-top: solid 1px #DBDBDB;
    }

    h1.gnav {
        display: flex;
        justify-content: space-between;
    }

    h1.gnav div:last-child,
    h1.gnav div:last-child span {
        width: 18px;
    }

    .menu-navContainer-title {
        display: flex;
        align-items: center;
        height: 48px;
        line-height: 1.5;
    }

    .menu-container.guide.open .menu-navContainer-title::after {
        top: auto;
    }

    .menu-container.guide.open .menu-navSelect dt a {
        display: flex;
        align-items: center;
        top: 0px;
        height: 48px;
        padding: 0px 36px 0px 30px;
        line-height: 1.5;
    }

    .menu-container.guide.open .menu-navSelect dt a::after {
        top: auto;
    }

}