/* Jaz.log システム共通CSS */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.logo-image:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.5));
    transform: scale(1.05);
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* ハンバーガーボタン */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 6px;
    cursor: pointer;
    color: white;
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 0 auto;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* 管理者用メニューのスタイリング */
.nav-menu #nav-admin-dashboard a {
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    font-weight: 600;
}

.nav-menu #nav-admin-dashboard a:hover {
    background-color: rgba(220, 53, 69, 1);
}

/* 役割・担当楽器表示 */
.role-badge {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 0.125rem;
    font-weight: 500;
}

.artist-roles {
    margin: 0.5rem 0;
}

/* メンバー管理 */
.members-management {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.add-member-section {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
}

.add-member-section h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.member-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.member-form .form-group {
    margin-bottom: 0;
}

.members-list {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}

.member-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.member-info h5 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.member-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* フォーム行レイアウト */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

@media (max-width: 768px) {
    .member-form,
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .member-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ユーザーメニュー */
.user-info {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 500;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-info:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    color: #333;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1rem;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background-color: #f3f4f6;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* カード */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* グリッド */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* フォーム */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

/* プレースホルダー（入力例）の視認性: 入力値より薄く */
.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #9ca3af; /* gray-400 相当 */
    opacity: 1; /* Firefoxが薄くし過ぎないように */
}

/* 旧ブラウザ互換 */
.form-input::-ms-input-placeholder,
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* アラート */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* デバッグ情報表示のスタイリング */
.debug-info {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: monospace;
    font-size: 0.875rem;
}

.debug-info h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1rem;
}

.debug-info pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #ffffff;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* ローディング */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* モバイル専用要素（PCでは非表示） */
.mobile-only {
    display: none;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #4a90e2;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #c5d5e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4a90e2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    margin-top: 2rem;
}

/* ハンバーガーメニュー用のオーバーレイ */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.show {
    display: block;
    opacity: 1;
}

/* PC版の表示（1025px以上） */
@media (min-width: 1025px) {
    /* ハンバーガーボタンを非表示 */
    .hamburger {
        display: none !important;
    }
    
    /* モバイル専用要素を非表示 */
    .mobile-only {
        display: none !important;
    }
    
    /* ナビゲーションメニューを横並びで表示 */
    header .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        background: transparent !important;
        gap: 2rem !important;
        padding: 0 !important;
        height: auto !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
    }
    
    header .nav-menu li {
        border: none !important;
        width: auto !important;
    }
    
    header .nav-menu a {
        padding: 0.5rem 1rem !important;
    }
    
    /* 認証ボタンのテキストを表示 */
    .auth-btn .btn-text {
        display: inline;
    }
    
    .auth-btn {
        padding: 0.5rem 1rem;
    }
    
    /* header-actionsを横並びに */
    .header-actions {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    
    /* 言語切替ボタンを通常サイズで表示 */
    .language-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .language-toggle i.fa-globe {
        font-size: 1.1rem;
    }
    
    .language-toggle .current-lang {
        display: inline;
    }
    
    .language-toggle i.fa-chevron-down {
        font-size: 0.75rem;
    }
}

/* レスポンシブ対応（タブレット・スマホ） */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
    }

    /* ハンバーガー表示 */
    .hamburger { display: flex; }
    
    /* スマホサイズで言語切替ボタンを小さく */
    .language-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .language-toggle i.fa-globe {
        font-size: 0.9rem;
    }
    
    .language-toggle .current-lang {
        display: none; /* テキストを非表示にしてアイコンのみ */
    }
    
    .language-toggle i.fa-chevron-down {
        font-size: 0.65rem;
    }
    
    /* header-actionsを横並びに */
    .header-actions {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
    
    /* スマホサイズではheader-actions内の認証ボタンとユーザーメニューを完全に非表示（言語切替とハンバーガーボタンのみ表示） */
    .header-actions #auth-buttons,
    .header-actions #user-menu {
        display: none !important;
    }
    
    /* 言語切替はモバイルでも表示 */
    .header-actions .language-switcher {
        display: block;
    }

    /* 初期はメニュー非表示にして、開閉クラスで制御 */
    header .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 70% !important;
        max-width: 400px !important;
        height: 100vh !important;
        background: #333 !important;
        backdrop-filter: blur(8px) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0.5rem 0 !important;
        padding-top: 80px !important;
        z-index: 1001 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    header .nav-menu.open { 
        display: flex !important;
        transform: translateX(0) !important;
    }

    header .nav-menu li { 
        border-top: 1px solid rgba(255,255,255,0.15); 
        width: 100%;
    }
    header .nav-menu li:first-child,
    header .nav-menu li.mobile-user-header { 
        border-top: none; 
    }
    header .nav-menu a { 
        display: block; 
        padding: 0.9rem 1rem; 
        width: 100%;
        box-sizing: border-box;
    }
    
    /* モバイルサイズではモバイル専用要素を表示 */
    .mobile-only {
        display: block;
    }
    
    /* モバイル用ユーザー名表示 */
    .mobile-user-header {
        padding: 1rem;
        font-weight: 600;
        font-size: 1.1rem;
        color: white;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .mobile-user-name {
        color: white;
    }
    
    /* モバイル用区切り線 */
    .mobile-divider {
        height: 1px;
        background: rgba(255,255,255,0.15);
        margin: 0.5rem 0;
        padding: 0;
        border: none;
        list-style: none;
    }
    
    /* メニュー閉じるボタン */
    .menu-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.3s ease;
        z-index: 10;
    }
    
    .menu-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* モバイル用新規登録リンク */
    #mobile-register-item {
        padding: 0;
    }
    
    .mobile-register-link {
        display: block;
        padding: 0.9rem 1rem;
        color: white;
        text-decoration: none;
    }
    
    .mobile-register-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* モバイル用ログインリンク */
    #mobile-login-item {
        padding: 0;
    }
    
    .mobile-login-link {
        display: block;
        padding: 0.9rem 1rem;
        color: white;
        text-decoration: none;
    }
    
    .mobile-login-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* モバイル用マイページリンク */
    #mobile-mypage-item a {
        display: block;
        padding: 0.9rem 1rem;
        color: white;
        text-decoration: none;
    }
    
    #mobile-mypage-item a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* モバイル用アーティストページリンク */
    #mobile-artist-page-item a {
        display: block;
        padding: 0.9rem 1rem;
        color: white;
        text-decoration: none;
    }
    
    #mobile-artist-page-item a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* モバイル用ログアウトボタン */
    #mobile-logout-item {
        padding: 0;
    }
    
    .mobile-logout-btn {
        width: 100%;
        padding: 0.9rem 1rem;
        text-align: left;
        background: transparent;
        border: none;
        color: white;
        text-decoration: none;
        cursor: pointer;
        font-size: 1rem;
    }
    
    .mobile-logout-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* 言語切替とハンバーガーボタンは横並びを維持 */
    .header-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    /* ヘッダーの認証ボタンのみ横幅100% */
    .header-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ユーティリティクラス */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; } 

/* プロフィール編集画面のスタイリング */
.profile-edit-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.page-header h1 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #d1d5db;
}

.profile-edit-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input[rows] {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* 言語切り替え（ドロップダウン形式） */
.language-switcher {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
}

.language-toggle i.fa-globe {
    font-size: 1.1rem;
}

.language-toggle i.fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.language-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.current-lang {
    font-weight: 500;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 160px;
    z-index: 1001;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: none;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.language-option:hover {
    background-color: #f3f4f6;
}

.language-option.active {
    background-color: #e0e7ff;
    color: #4a90e2;
    font-weight: 600;
}

.lang-label {
    font-size: 0.95rem;
}

.lang-code {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.language-option.active .lang-code {
    color: #4a90e2;
}

/* 認証ボタンコンテナ */
#auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 認証ボタンのレスポンシブ対応 */
.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.auth-btn i {
    font-size: 1rem;
}

/* ログインボタン - 透明感のあるデザイン */
#login-btn {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid white;
}

#login-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid white;
    transform: translateY(-1px);
}

/* 登録ボタン - 目立つアクセントカラー */
.auth-btn.btn-primary {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(85, 104, 211, 0.4);
}

.auth-btn.btn-primary:hover {
    background: linear-gradient(135deg, #6a3f8f 0%, #5568d3 100%);
    border: 2px solid white;
    box-shadow: 0 4px 14px rgba(85, 104, 211, 0.5);
    transform: translateY(-1px);
}

/* スマホではテキストを非表示にしてアイコンのみ */
@media (max-width: 1024px) {
    .auth-btn .btn-text {
        display: none;
    }
    
    .auth-btn {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .auth-btn i {
        font-size: 1.2rem;
    }
    
    #auth-buttons {
        display: flex;
        gap: 0.5rem;
    }
} 

/* ============================================================
   管理者ナビゲーションバー共通スタイル
   ============================================================ */
.dashboard-nav {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #dee2e6;
}

.nav-item.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.nav-icon { font-size: 1.2rem; }
.nav-text  { font-size: 0.9rem; }

@media (max-width: 768px) {
    .dashboard-nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-item {
        justify-content: center;
    }
}
