/**
 * menu.css - 階層メニューシステムのスタイル
 * 
 * 災害時通行実績システムの3階層メニューシステムを実装
 * レスポンシブ対応、オンラインユーザー表示、機能制御を含む
 */

/* ========================================
   メインレイアウト
   グリッドレイアウトでヘッダー、サイドバー、コンテンツを配置
   ======================================== */
/* メインコンテナ - グリッドレイアウト */
.main-container {
    display: grid;
    grid-template-areas: 
        "header header"
        "sidebar content";
    grid-template-rows: 60px 1fr;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    transition: grid-template-columns 0.3s ease;
}

/* サイドバー折りたたみ時のレイアウト */
.main-container.sidebar-collapsed {
    grid-template-columns: 0 1fr;
}

/* ========================================
   ヘッダー
   グラデーション背景、ユーザー情報、ログアウトボタンを含む
   ======================================== */
/* ヘッダーコンテナ - 青色グラデーション背景 */
.header {
    grid-area: header;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    position: relative;
    overflow: visible;
}

/* ヘッダーの光沢効果 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ヘッダー左側 - タイトルとメニュートグル */
.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

/* システムタイトル */
.header-left h1 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* ハンバーガーメニューボタン（モバイル用） */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    gap: 3px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    /* タッチ操作の改善 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    position: relative;
}

/* メニュートグルのホバー効果 */
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ハンバーガーメニューの線 */
.menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 1px;
}

/* メニュー開閉時のアニメーション（×印に変化） */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ヘッダー右側 - ユーザー情報とログアウト */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 10000;
}

/* ========================================
   オンラインユーザー表示
   現在ログイン中のユーザー一覧をドロップダウンで表示
   ======================================== */
/* オンラインユーザー情報コンテナ */
.online-users-info {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10001;
}

/* オンラインユーザー表示ボタン */
.online-users-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* オンラインユーザーボタンのホバー効果 */
.online-users-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* オンライン状態を示す緑色の点滅ドット */
.online-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

/* オンラインドットの点滅アニメーション */
@keyframes pulse {
    0% {
        box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    }
    50% {
        box-shadow: 0 0 12px rgba(74, 222, 128, 0.8);
    }
    100% {
        box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    }
}

/* オンラインユーザー一覧のドロップダウン */
.online-users-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 10003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* ドロップダウン表示時のアニメーション */
.online-users-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* オンラインユーザーリストコンテナ */
.online-users-list {
    padding: 12px;
}

/* 個別のオンラインユーザー項目 */
.online-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
    color: #374151;
}

/* 最後の項目の下マージンを削除 */
.online-user-item:last-child {
    margin-bottom: 0;
}

/* ユーザー項目のホバー効果 */
.online-user-item:hover {
    background: #f3f4f6;
}

/* 現在のユーザー（自分）の強調表示 */
.online-user-item.current-user {
    background: #e0f2fe;
    border: 1px solid #0284c7;
}

/* ユーザーアバター（イニシャル表示） */
.online-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

/* ユーザー情報テキストエリア */
.online-user-info {
    flex: 1;
    min-width: 0;
}

/* ユーザー名表示 */
.online-user-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 2px;
}

/* ユーザー詳細情報（役割、ログイン時刻） */
.online-user-details {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ユーザー役割バッジ */
.online-user-role {
    background: #e5e7eb;
    color: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

/* 管理者役割の特別スタイル */
.online-user-role.admin {
    background: #fef3c7;
    color: #92400e;
}

/* ログイン時刻表示 */
.online-user-time {
    color: #9ca3af;
    font-size: 11px;
}

/* オンラインユーザードロップダウンのヘッダー */
.online-users-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* オンラインユーザー数バッジ */
.online-users-count {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* オンラインユーザーがいない場合のメッセージ */
.no-online-users {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* ヘッダー右側のユーザー情報表示 */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ユーザー情報のテキストシャドウ */
.user-info span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ユーザー役割表示（ヘッダー内） */
.user-role {
    font-size: 0.75rem;
    opacity: 0.9;
    color: #e3f2fd;
    font-weight: 500;
}

/* ログアウトボタン */
.logout-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* ログアウトボタンのホバー効果 */
.logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   サイドバー
   3階層のナビゲーションメニューを含む
   ======================================== */
/* サイドバーコンテナ - グラデーション背景 */
.sidebar {
    grid-area: sidebar;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

/* サイドバーの内容エリア */
.sidebar-content {
    padding: 20px 0;
}

/* ========================================
   ナビゲーション（1階層目）
   メインメニュー項目のスタイル
   ======================================== */
/* ナビゲーションリスト */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ナビゲーション項目 */
.nav-item {
    margin: 2px 0;
    box-sizing: border-box;
}

/* ナビゲーションリンク（1階層目） */
.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    min-height: 44px;
    box-sizing: border-box;
}

/* ナビゲーションリンクのホバー効果 */
.nav-link:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-left-color: #007bff;
}

/* アクティブなナビゲーションリンク */
.nav-link.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-left-color: #004085;
}

/* ナビゲーションアイコン */
.nav-icon {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ナビゲーションテキスト */
.nav-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 展開/折りたたみ矢印（1階層目） */
.nav-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    margin-left: 5px;
    display: inline-block;
}

/* 展開時の矢印回転（1階層目） */
.nav-item.expanded > .nav-link .nav-arrow {
    transform: rotate(90deg);
}

/* ========================================
   サブメニュー（2階層目）
   メインメニュー配下の機能メニュー
   ======================================== */
/* 展開/折りたたみ矢印（2階層目） */
.sub-nav-link .nav-arrow {
    font-size: 0.7rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    display: inline-block;
}

/* 展開時の矢印回転（2階層目） */
.sub-nav-item.expanded > .sub-nav-link .nav-arrow {
    transform: rotate(90deg);
}
/* サブメニューコンテナ（折りたたみ可能） */
.sub-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
    position: relative;
}

/* サブメニュー展開時 */
.nav-item.expanded > .sub-nav {
    max-height: 1000px;
}

/* サブメニュー項目 */
.sub-nav-item {
    margin: 1px 0;
    box-sizing: border-box;
}

/* サブメニューリンク（2階層目） */
.sub-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 50px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    min-height: 40px;
    box-sizing: border-box;
}

/* サブメニューリンクのホバー効果 */
.sub-nav-link:hover {
    background: rgba(0, 123, 255, 0.05);
    color: #007bff;
    border-left-color: #007bff;
}

/* アクティブなサブメニューリンク */
.sub-nav-link.active {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 600;
}

/* ========================================
   サブサブメニュー（3階層目）
   サブメニュー配下の詳細機能
   ======================================== */
/* サブサブメニューコンテナ（折りたたみ可能） */
.sub-sub-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.04);
    position: relative;
}

/* サブサブメニュー展開時 */
.sub-nav-item.expanded > .sub-sub-nav {
    max-height: 500px;
}

/* サブサブメニュー項目 */
.sub-sub-nav-item {
    margin: 1px 0;
    box-sizing: border-box;
}

/* サブサブメニューリンク（3階層目） */
.sub-sub-nav-link {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 70px;
    color: #868e96;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    min-height: 36px;
    box-sizing: border-box;
}

/* サブサブメニューリンクのホバー効果 */
.sub-sub-nav-link:hover {
    background: rgba(0, 123, 255, 0.03);
    color: #007bff;
    border-left-color: #007bff;
}

/* アクティブなサブサブメニューリンク */
.sub-sub-nav-link.active {
    background: rgba(0, 123, 255, 0.08);
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 600;
}

/* ========================================
   機能制御要素
   トグルスイッチと実行間隔設定
   ======================================== */
/* 機能トグルスイッチの配置 */
.function-toggle {
    margin-left: auto;
    margin-right: 10px;
}

/* トグルスイッチコンテナ */
.toggle-switch {
    position: relative;
    display: inline-block;
}

/* トグルスイッチのチェックボックス（非表示） */
.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

/* トグルスイッチの背景 */
.toggle-label {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* トグルスイッチのスライダー */
.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* トグルスイッチON時の背景色 */
.toggle-switch input[type="checkbox"]:checked + .toggle-label {
    background-color: #28a745;
}

/* トグルスイッチON時のスライダー位置 */
.toggle-switch input[type="checkbox"]:checked + .toggle-label .toggle-slider {
    transform: translateX(20px);
}

/* 実行間隔設定コンテナ */
.interval-setting {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    margin-right: 10px;
}

/* 実行間隔入力フィールド */
.interval-input {
    width: 50px;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* 実行間隔の単位表示 */
.interval-unit {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ========================================
   メインコンテンツエリア
   各機能画面の表示領域
   ======================================== */
/* メインコンテンツコンテナ */
.main-content {
    grid-area: content;
    background: #ffffff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* コンテンツヘッダー */
.content-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

/* コンテンツヘッダーのタイトル */
.content-header h2 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.5rem;
}

/* パンくずリスト */
.breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
}

/* パンくずリストの各項目 */
.breadcrumb span {
    margin-right: 5px;
}

/* パンくずリストの区切り記号 */
.breadcrumb span:not(:last-child)::after {
    content: ' > ';
    margin-left: 5px;
}

/* コンテンツ本体エリア */
.content-body {
    flex: 1;
    padding: 20px;
}

/* コンテンツセクション（非表示） */
.content-section {
    display: none;
}

/* アクティブなコンテンツセクション */
.content-section.active {
    display: block;
}

/* ========================================
   概要カード
   ダッシュボードの統計情報表示
   ======================================== */
/* 概要カードのグリッドレイアウト */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 個別の概要カード */
.overview-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

/* 概要カードのホバー効果 */
.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* カードアイコン */
.card-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    color: white;
}

/* カードコンテンツのタイトル */
.card-content h3 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 1rem;
}

/* カードコンテンツの数値 */
.card-content p {
    margin: 0;
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ========================================
   クイックアクション
   よく使う操作のボタン群
   ======================================== */
/* クイックアクションコンテナ */
.quick-actions {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
}

/* クイックアクションのタイトル */
.quick-actions h3 {
    margin: 0 0 15px 0;
    color: #495057;
}

/* アクションボタンのコンテナ */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* アクションボタン */
.action-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* アクションボタンのホバー効果 */
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* ========================================
   レスポンシブ対応
   タブレット、モバイル端末向けのスタイル調整
   ======================================== */
/* タブレット向けレイアウト（1024px以下） */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 250px 1fr;
    }
    
    .header-left h1 {
        font-size: 1.1rem;
    }
}

/* モバイル向けレイアウト（768px以下） */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "content";
    }
    
    .sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        width: 280px;
        height: calc(100vh - 60px);
        z-index: 999;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    /* モバイル用オーバーレイ */
    .sidebar-overlay {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .header-left h1 {
        font-size: 1rem;
    }
    
    .user-info {
        display: none;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* 小型モバイル向けレイアウト（480px以下） */
@media (max-width: 480px) {
    .header {
        padding: 0 15px;
    }
    
    .header-left h1 {
        font-size: 0.9rem;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .online-users-indicator {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .online-users-dropdown {
        right: -10px;
        min-width: 260px;
        max-height: 300px;
    }
    
    .online-user-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .online-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .online-user-name {
        font-size: 13px;
    }
    
    .online-user-details {
        font-size: 11px;
    }
    
    .user-info {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .logout-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .content-header {
        padding: 15px;
    }
    
    .content-body {
        padding: 15px;
    }
    
    .overview-card {
        padding: 15px;
        gap: 10px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .sidebar {
        background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
        border-right-color: #495057;
    }
    
    .nav-link {
        color: #e9ecef;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    }
    
    .sub-nav-link {
        color: #ced4da;
    }
    
    .main-content {
        background: #1a1a1a;
    }
    
    .content-header {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-bottom-color: #495057;
    }
    
    .content-header h2 {
        color: #e9ecef;
    }
    
    .overview-card {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-color: #495057;
    }
    
    .card-content h3 {
        color: #e9ecef;
    }
    
    .quick-actions {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-color: #495057;
    }
    
    .quick-actions h3 {
        color: #e9ecef;
    }
}

/* ========================================
   アニメーション
   メニュー項目のスライドインエフェクト
   ======================================== */
/* スライドインアニメーションの定義 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ナビゲーション項目にアニメーション適用 */
.nav-item {
    animation: slideIn 0.3s ease-out;
}

/* 各項目のアニメーション遅延設定 */
.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   無効化されたメニュー項目
   利用不可の機能を視覚的に表示
   ======================================== */
/* 無効化されたメニューリンクの基本スタイル */
.sub-nav-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f8f8;
    border-left: 3px solid #e74c3c;
    position: relative;
}

/* 無効化されたメニューのホバー効果 */
.sub-nav-link.disabled:hover {
    background-color: #f0f0f0;
    transform: none;
    opacity: 0.7;
}

/* 無効化された項目の斜線パターン */
/* 無効化された項目の斜線パターン背景 */
.sub-nav-link.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(231, 76, 60, 0.1) 2px,
        rgba(231, 76, 60, 0.1) 4px
    );
    pointer-events: none;
}

/* 無効化されたテキストのスタイル */
.sub-nav-link .nav-text.disabled {
    color: #999;
    text-decoration: line-through;
}

.disabled-badge {
    background-color: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

/* 無効化されたメニュー項目のアニメーション */
.sub-nav-link.disabled .nav-text {
    position: relative;
}

/* 無効化されたテキストの取り消し線 */
.sub-nav-link.disabled .nav-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #999;
    transform: translateY(-50%);
}

/* 無効化アイコンのスタイル */
.disabled-icon {
    font-size: 14px;
    margin-right: 8px;
    opacity: 0.7;
    filter: grayscale(100%);
}

/* 無効化されたメニュー項目のポインターイベント無効化 */
.sub-nav-link.disabled {
    pointer-events: none;
    user-select: none;
}

/* 無効化されたメニュー項目のホバー時のカーソル */
.sub-nav-link.disabled:hover {
    pointer-events: auto;
    cursor: not-allowed;
}

/* 無効化されたメニュー項目のレイアウト調整 */
.sub-nav-link.disabled {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

/* 無効化されたテキストの伸縮設定 */
.sub-nav-link.disabled .nav-text.disabled {
    flex: 1;
}

/* 無効化バッジの縮小防止 */
.sub-nav-link.disabled .disabled-badge {
    flex-shrink: 0;
}