/* 製品一覧ページのスタイル */

/* ヒーローセクション */
.products-hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0 40px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* フィルターエリア */
.product-filters {
    background-color: var(--light-color);
    padding: 20px 0;
    margin-bottom: 20px;
}

.filter-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 受賞歴チェックボックススタイル */
.awards-filter-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.awards-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
}

.award-checkbox {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 8px;
}

.award-checkbox input[type="checkbox"] {
    margin-right: 6px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.award-checkbox label {
    font-size: 14px;
    cursor: pointer;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    line-height: 44px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    margin-bottom: 0;
    box-sizing: border-box;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.reset-button {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #ddd;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 44px;
    line-height: 44px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.reset-button:hover {
    background-color: #f5f5f5;
}

/* アクティブフィルター表示 */
.filter-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    background-color: var(--light-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 14px;
}

.remove-filter {
    margin-left: 8px;
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
}

.remove-filter:hover {
    color: var(--primary-color);
}

/* 製品グリッド */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-link {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.product-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* アスペクト比 4:3 */
    position: relative;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 600;
}

.product-category {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.product-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.product-genre-tag {
    font-size: 12px;
    background-color: var(--light-color);
    padding: 3px 8px;
    border-radius: 4px;
}

.product-genre-more {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #666;
}

/* 製品がない場合のメッセージ */
.no-products {
    text-align: center;
    padding: 60px 0;
}

.no-products p {
    font-size: 18px;
    color: #666;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .reset-button {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}
