.hamburgerButton {
    width: 18px;
    height: 19px;
    position: relative;
    cursor: pointer;
    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;
    content: "";
}

.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: 100vh;
    top: 45px;
    right: 0;
    transform: translateX(100%);
    transition: 0.5s ease;
    z-index: 999;
    visibility: hidden;	
    height: fit-content;

}

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


}

.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{
    background-color: #fff;
    width:100%;
    height: 100%;
    max-width: 700px;
    margin-left: auto;
    padding-top: 12px


}

.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;
    background-color: #fff;
    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: 0px;
    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;
}

.guideMenu .hamburgerButton {
    border: none;

}

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


.menu-container.guide.open  .menu-navContainer-title::after{

    width: 2.3rem;
    height: 2.3rem;
    top:8px;
    right: 10px;

}

.menu-container.guide.open  .menu-navContainer-title.noMenu::after{

    width: 2.3rem;
    height: 2.3rem;
    top:8px;
    right: 10px;
    background-image: url(../image/arrow/right_arrow.svg);

}
.menu-container.guide.open .menu-navSelect dt a::after{
    width: 2.3rem;
    height: 2.3rem;
    top: 20px;
    right: 10px;
}

.menu-inner.guide{
    padding-top:0px;
}


.menu-container.guide{
    top: 125px;
}

.menu-container.open.guide{
    position: fixed;
    transform: translateX(50%);
    right: 50%;
    overflow-y: auto;
    max-height: calc(82vh - env(safe-area-inset-bottom));
    height: auto;        
    width: 100%;
    padding: 0px 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.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;   /* iOS対策 */
  width: 100%;       /* スクロールバーが消えて横ずれするのを防止 */
}
/* ガイドメニュー */


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

	.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 0px;

    }

    .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;
    }
}