/* ========================================
   フローティングナビゲーション
   ======================================== */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-nav-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 102, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.floating-nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 12px 40px rgba(0, 102, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 1);
}

.floating-nav-items {
    display: none;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-nav.active .floating-nav-items {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.floating-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.floating-nav-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.floating-nav-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.floating-nav-item i {
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.floating-nav-item span {
    display: inline-block;
}

/* タブレット以下 */
@media (max-width: 1024px) {
    .floating-nav {
        right: 15px;
    }
    
    .floating-nav-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-nav-item {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .floating-nav-item i {
        font-size: 1rem;
    }
}

/* モバイル */
@media (max-width: 768px) {
    .floating-nav {
        left: 10px;
        right: auto;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    
    .floating-nav-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .floating-nav-items {
        position: fixed;
        left: 10px;
        right: auto;
        bottom: 80px;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        padding: 10px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 16px;
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-lg);
    }
    
    .floating-nav.active .floating-nav-items {
        display: flex;
    }
    
    .floating-nav-item span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* モバイルでは右にスライド */
    .floating-nav-item:hover {
        transform: translateX(5px);
    }
}

/* 小型モバイル */
@media (max-width: 480px) {
    .floating-nav {
        left: 8px;
        right: auto;
        bottom: 15px;
    }
    
    .floating-nav-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .floating-nav-items {
        left: 8px;
        right: auto;
        bottom: 70px;
        padding: 8px;
        max-height: calc(100vh - 150px);
    }
    
    .floating-nav-item {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 10px;
    }
    
    .floating-nav-item i {
        font-size: 0.9rem;
        min-width: 18px;
    }
    
    .floating-nav-item span {
        max-width: 120px;
    }
}

/* スクロールバーのスタイル（モバイル用） */
@media (max-width: 768px) {
    .floating-nav-items::-webkit-scrollbar {
        width: 4px;
    }
    
    .floating-nav-items::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }
    
    .floating-nav-items::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    .floating-nav-items::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
}
