/* フローティングナビゲーション本体 */
.floating-nav {
    position: fixed;
    bottom: 10px; /* 少し高めに浮かせる */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 420px;
    height: 60px;
    /* 透かしを強く（背景を暗くしつつ透明度を調整） */
    background: rgba(20, 20, 20, 0.6); 
    /* ぼかしを強力に（ガラスのような質感） */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    padding: 0 8px;
    /* 縁取りを薄く入れることで立体感を出す */
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* メニュー項目 */
.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: all 0.3s ease;
    /* アイコンと文字の色をほぼ白に */
    color: rgba(255, 255, 255, 0.9); 
}

/* アイコンの設定 */
.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    z-index: 2;
}

/* テキストの設定 */
.nav-item span {
    font-size: 10px;
    font-weight: 500;
    z-index: 2;
}

/* ★ 楕円の目印（アクティブ状態） */
.nav-item.active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* アイコンと文字を包むような楕円 */
    width: 85%;
    height: 80%;
    background: rgba(255, 255, 255, 0.15); /* 白の薄い塗り */
    border-radius: 30px; /* カプセル型 */
    z-index: 1;
}

/* アクティブ時の色を完全な白に */
.nav-item.active {
    color: #ffffff;
}

/* タップ時の反応（スマホ用） */
.nav-item:active {
    opacity: 0.7;
    transform: scale(0.95);
}