/* 折りたたみ可能なフィルタパネル */
.filter-panel {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    font-weight: 600;
    color: #2d3748;
}

.filter-panel-header:hover {
    background: #f7fafc;
}

.filter-panel-header i {
    transition: transform 0.3s ease;
}

.filter-panel-header.active #filterToggleIcon {
    transform: rotate(180deg);
}

.filter-count {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.filter-panel-content {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.filter-section {
    margin-bottom: 16px;
}

.filter-section-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 14px;
    color: #4a5568;
}

.checkbox-label:hover {
    background: #f7fafc;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.filter-checkbox:checked + span {
    color: #667eea;
    font-weight: 600;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}
