/* メニュー切り替えアイコンの回転アニメーション */
.menu-switcher-icon {
    transition: transform 0.6s ease;
    display: inline-block;
}

.rotating .menu-switcher-icon {
    transform: rotate(360deg);
}

/* メニュー切り替えアニメーション */
.header-menu {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top center;
}

.header-menu.hiding {
    opacity: 0;
    transform: perspective(1000px) rotateX(-90deg);
    pointer-events: none;
}

.header-menu.showing {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg);
}

/* メニューが非表示の場合 */
.header-menu.d-none {
    display: none !important;
}

/* ステータスインジケーター */
.menu-status {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 11px;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-status.show {
    opacity: 1;
}

.menu-status.user-mode {
    border-left: 3px solid #667eea;
}

.menu-status.partner-mode {
    border-left: 3px solid #f093fb;
}