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

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

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(30deg, rgba(255,255,255,0.05) 25%, transparent 25%), linear-gradient(150deg, rgba(255,255,255,0.05) 25%, transparent 25%);
    background-size: 80px 80px;
    opacity: 0.3;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

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

.product-filters::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.03), transparent);
}

.filter-container {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

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

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

.filter-select {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    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 15px center;
    background-size: 16px;
    transition: var(--transition-fast);
    cursor: pointer;
    box-sizing: border-box;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.filter-actions {
    display: flex;
    gap: 15px;
}

.reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    height: 44px;
    line-height: 44px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    box-sizing: border-box;
}

.reset-button:hover {
    background-color: #f8f8f8;
    border-color: #d0d0d0;
}

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

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

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

.award-checkbox input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    appearance: none;
    background-color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.award-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.award-checkbox input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.award-checkbox input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
    outline: none;
}

.award-checkbox label {
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

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

.active-filter {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 8px 15px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: fadeInRight 0.3s ease;
}

.active-filter span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.remove-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.1);
    color: #333;
    font-size: 14px;
    margin-left: 10px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.remove-filter:hover {
    background-color: rgba(0,0,0,0.2);
    transform: scale(1.1);
}

/* 製品グリッド */
.products-section {
    padding-bottom: 80px;
    padding-top: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
}

.product-card {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #fff;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-link {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3比率 */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

.product-category {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.product-genre-tag {
    font-size: 0.8rem;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    line-height: 1;
}

.product-genre-more {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background-color: #f0f0f0;
    color: #666;
    line-height: 1;
}

/* 製品がない場合のメッセージ */
.no-products {
    text-align: center;
    padding: 100px 0;
    background-color: #f9f9f9;
    border-radius: var(--radius);
}

.no-products p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.no-products .icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* アニメーション */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .reset-button {
        width: 100%;
    }
    
    .products-hero {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media screen and (max-width: 576px) {
    .products-hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .active-filter span {
        max-width: 150px;
    }
}
