/* =========================================
   推し情報 共通メニュー（デザイン刷新 #331、グッズメニューと同系統）
   ========================================= */

.oshi-menu-modal{
    position:fixed;
    inset:0;
    z-index:1000;
    display:none;
}

.oshi-menu-modal.active{
    display:block;
}

.oshi-menu-overlay{
    position:absolute;
    inset:0;
    background:rgba(30,50,70,.45);
}

.oshi-menu-panel{
    position:absolute;
    top:62px;
    right:10px;
    max-height:calc(100dvh - 82px - env(safe-area-inset-bottom));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    width:min(340px,calc(100vw - 20px));
    padding:12px;
    box-sizing:border-box;
    border-radius:20px;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    box-shadow:0 12px 32px rgba(30,60,90,.18);
}

.oshi-menu-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:40px;
    padding:0 4px 10px 8px;
}

.oshi-menu-title{
    color:var(--theme-heading);
    font-size:16px;
    font-weight:bold;
}

.oshi-menu-close{
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    padding:0;
    border:0;
    border-radius:50%;
    background:var(--theme-tint);
    color:var(--theme-text-sub);
    font-family:inherit;
    font-size:20px;
    line-height:1;
    cursor:pointer;
}

.oshi-menu-list{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.oshi-menu-item{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    min-height:52px;
    padding:6px 8px;
    box-sizing:border-box;
    border-radius:12px;
    color:var(--theme-text);
    text-decoration:none;
    font-size:14.5px;
    font-weight:bold;
}

.oshi-menu-item:hover,
.oshi-menu-item:active{
    background:var(--theme-blush);
}

.oshi-menu-item-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 36px;
    width:36px;
    height:36px;
    border-radius:10px;
    background:var(--theme-blush);
    color:var(--theme-primary);
}

.oshi-menu-item-icon svg{
    width:20px;
    height:20px;
}

.oshi-menu-item-label{
    min-width:0;
    flex:1;
}

.oshi-menu-item-arrow{
    flex:0 0 auto;
    display:flex;
    color:var(--theme-text-muted);
}

body.oshi-menu-open{
    overflow:hidden;
}

@media(min-width:768px){
    .oshi-menu-panel{
        top:90px;
        right:30px;
        max-height:calc(100dvh - 110px);
        width:min(360px,calc(100vw - 60px));
        padding:16px;
        border-radius:20px;
    }

    .oshi-menu-header{
        min-height:44px;
        padding:0 6px 8px 10px;
    }

    .oshi-menu-title{
        font-size:16.5px;
    }

    .oshi-menu-close{
        width:38px;
        height:38px;
        font-size:22px;
    }

    .oshi-menu-item{
        min-height:56px;
        padding:7px 10px;
        font-size:15px;
    }

    .oshi-menu-item-icon{
        flex-basis:38px;
        width:38px;
        height:38px;
    }

    .oshi-menu-item-icon svg{
        width:21px;
        height:21px;
    }
}
