/* サイドバー折りたたみ共通スタイル */
.sidebar {
    width: 250px;
    min-width: 250px;
    overflow-x: hidden;
    transition: width 0.2s ease, min-width 0.2s ease, padding 0.2s ease, border 0.2s ease;
}

.content {
    min-width: 0;
    flex: 1;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.sidebar-toggle-btn:focus-visible {
    outline: 3px solid #ffd166;
    outline-offset: 2px;
}

.toggle-icon {
    font-size: 20px;
}

.sidebar-toggle-btn--sidebar {
    display: flex;
    margin: 0 10px 12px auto;
    color: var(--text-color);
    border-color: var(--border-color);
}

.sidebar-toggle-btn--sidebar:hover {
    background: #e9ecef;
}

html.sidebar-collapsed .sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: none !important;
    overflow: hidden !important;
    pointer-events: none;
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar {
        transition: none;
    }
}
