.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.controls-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.filter-tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.results-info {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.color-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.color-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgb(0 0 0 / 0.1);
}

.color-preview {
    height: 120px;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.color-info {
    padding: 1.5rem;
}

.color-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.color-codes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.code-label {
    font-weight: 600;
    color: #374151;
    min-width: 40px;
}

.code-value {
    color: #1f2937;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.code-value:hover {
    color: #3b82f6;
}

.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #059669;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(300px);
    transition: transform 0.3s ease;
}

.copy-feedback.show {
    transform: translateX(0);
}

.no-results {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 12px;
    margin: 2rem 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .colors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .color-preview {
        height: 100px;
    }
    
    .color-info {
        padding: 1rem;
    }
    
    .filter-tabs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .colors-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tab {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
}