/* image_tools レイアウト - ダークテーマ左メニュー */

/* 全体コンテナ */
.container-with-sidebar {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

/* 左サイドバーメニュー */
.sidebar-menu {
    width: 280px;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background-color: #0d0d1a;
    border-right: 1px solid #333;
    z-index: 1000;
}

/* サイドバー内スクロールラッパー */
.sidebar-nav-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

/* サイドバータイトル */
.sidebar-title {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #64b5f6;
    text-decoration: none;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.sidebar-title:hover {
    text-decoration: underline;
}

/* ナビゲーションリスト */
.sidebar-nav-unified {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ナビ項目 */
.sidebar-nav-unified .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-nav-unified .nav-item a {
    display: block;
    padding: 0.6rem 0.75rem;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.sidebar-nav-unified .nav-item a:hover {
    color: #81d4fa;
    background-color: rgba(100, 181, 246, 0.1);
    text-decoration: underline;
}

.sidebar-nav-unified .nav-item.current-page a {
    color: #64b5f6;
    font-weight: bold;
    border-left-color: #64b5f6;
    background-color: rgba(100, 181, 246, 0.15);
}

/* 外部リンク */
.sidebar-nav-unified .nav-external {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.sidebar-nav-unified .nav-external a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

.sidebar-nav-unified .nav-external a:hover {
    color: #81d4fa;
    text-decoration: underline;
}

/* メインコンテンツエリア */
.main-content {
    margin-left: 300px;
    padding: 30px 20px;
    flex: 1;
    min-width: 0;
    max-width: 900px;
}

/* ハンバーガーメニュー（モバイル用） */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #64b5f6;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .sidebar-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-menu.active {
        transform: translateX(0);
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 70px 15px 30px;
    }
}
