/* サイドバーコンポーネント */
.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

.hamburger-btn:hover {
    background: #555;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #111;
    z-index: 1002;
    transition: right 0.3s;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 20px;
}

.sidebar-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 0;
    transition: opacity 0.3s;
}

.sidebar-nav a:hover {
    opacity: 0.7;
}

.tools-toggle {
    background: none;
    border: none;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 0;
    transition: opacity 0.3s;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.tools-toggle:hover {
    opacity: 0.7;
}

.tools-list {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding-left: 20px;
}

.tools-list.show {
    max-height: 300px;
}

.tools-list li {
    margin-bottom: 10px;
}

.tools-list a {
    font-size: 14px;
    padding: 5px 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* ライトモード対応 */
@media (prefers-color-scheme: light) {
    .hamburger-btn {
        background: #e0e0e0;
    }
    
    .hamburger-btn span {
        background: #000;
    }
    
    .hamburger-btn:hover {
        background: #d0d0d0;
    }
    
    .sidebar {
        background: #fff;
    }
    
    .sidebar-close {
        color: #000;
    }
    
    .sidebar-nav a {
        color: #000;
    }
    
    .tools-toggle {
        color: #000;
    }
}
