/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* ナビゲーションバー基本スタイル */
.navbar.navbar-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    min-height: 75px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1000;
}

.navbar.navbar-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    opacity: 0.8;
}

/* ブランドロゴ */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: #60a5fa;
    font-size: 1.6rem;
}

/* ナビゲーションリンク */
.nav-link {
    padding: 0.75rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    position: relative;
    border-radius: 0.5rem;
    margin: 0 0.125rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link i {
    margin-right: 0.5rem;
}

/* ドロップダウントグル */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ドロップダウンメニュー */
.dropdown-menu {
    min-width: 240px;
    margin-top: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    backdrop-filter: blur(10px);
    animation: dropdownSlide 0.3s ease-out;
    z-index: 1050;
    position: absolute;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    transition: background-color 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 0.6rem;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: #334155;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: #1e40af;
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

.dropdown-divider {
    margin: 0.75rem 0;
    opacity: 0.15;
    background: linear-gradient(90deg, transparent, #94a3b8, transparent);
}

/* トグラーボタン */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.5);
}

.navbar-toggler-icon {
    filter: brightness(1.2);
}

/* ナビゲーションアイテム間のギャップ */
.navbar-nav {
    gap: 0.25rem;
}

/* ドロップダウンアイテムのz-index */
.nav-item.dropdown {
    position: relative;
    z-index: 1010;
}

/* コンテナ */
.navbar .container-fluid {
    position: relative;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .navbar.navbar-dark {
        min-height: 65px;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        margin: 0.25rem 0;
    }

    .dropdown-menu {
        margin-top: 0.5rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }
}

/* アクティブ状態 */
.nav-item.active .nav-link,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* スクロール時のアニメーション */
.navbar.navbar-scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

/* ユーザーメニュー位置調整 */
.navbar-nav .nav-item:last-child .dropdown-menu {
    right: 0;
    left: auto;
}
