/* 洗練されたナビバーのスタイル */
.navbar {
    background: linear-gradient(to right, #2c3e50, #3498db) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    padding: 0.8rem 1rem !important;
}

.navbar-brand {
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: #f1c40f;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 0.3rem;
    transition: all 0.3s ease;
}

.nav-link:hover i {
    color: #f1c40f;
}

/* ドロップダウンを持つナビ項目のスタイル - 矢印のみ強調 */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.3em solid #f1c40f;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover::after {
    opacity: 0.8;
}

/* ドロップダウンメニューを持つ項目のラベルに小さな黄色のドットを追加 */
.nav-item.dropdown > .nav-link {
    position: relative;
    padding-right: 1.5rem !important;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-top: 0.5rem;
    background: linear-gradient(to right, #2c3e50, #3498db);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1.2rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 4px;
    margin-bottom: 0.2rem;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: black !important;
    transform: translateX(5px);
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ユーザードロップダウンの特別なスタイル */
#navbarDropdown {
    display: flex;
    align-items: center;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: #2c3e50;
        border-radius: 0 0 8px 8px;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .nav-link {
        margin: 0.3rem 0;
    }
    
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .dropdown-item:hover {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.1);
    }
}
