/* 商品ページ専用CSS */

/* 記事セクション */
.articles-section {
    padding: 4rem 0;
    background: #fafafa;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* カテゴリタブ */
.article-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 記事グリッド */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.article-card.featured {
    border: 2px solid var(--primary-color);
}

.article-image {
    position: relative;
    height: 200px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* placeholder-imageスタイルは下部で統一定義 */

/* バッジスタイルはstyle.cssで統一定義 */

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.articles-more {
    text-align: center;
}

.load-more-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* パンくずナビ */
.breadcrumb {
    background: var(--background-light);
    padding: 1rem 0;
    margin-top: 80px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ページヘッダー */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.page-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.page-stats .stat {
    text-align: center;
}

.page-stats .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.page-stats .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* フィルターセクション */
.filter-section {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-reset {
    background: var(--text-light);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease;
}

.filter-reset:hover {
    background: var(--text-dark);
}

/* 商品セクション */
.products-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 商品グリッド */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    max-width: none;
}

.products-grid.list-view .product-image {
    width: 200px;
    flex-shrink: 0;
}

/* 商品カード（詳細版） */
.product-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

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

/* 商品バッジ */
.product-badge {
    position: absolute;
    top: 1rem;
    z-index: 10;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.product-badge.ranking {
    left: 1rem;
    background: var(--secondary-color);
}

.product-badge.hot {
    right: 1rem;
    background: #ef4444;
}

.product-badge.recommended {
    right: 1rem;
    background: var(--accent-color);
}

.product-badge.best-value {
    left: 1rem;
    background: #8b5cf6;
}

.product-badge.design {
    left: 1rem;
    background: #ec4899;
}

.product-badge.premium {
    left: 1rem;
    background: #f59e0b;
}

/* 商品画像 */
.product-image {
    height: 220px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.placeholder-image {
    font-size: 4rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    color: var(--primary-color);
}

/* 商品情報 */
.product-info {
    padding: 1.5rem;
}

.product-brand {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-dark);
}

/* 評価 */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--secondary-color);
    font-size: 1rem;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* スペック */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec {
    background: var(--background-light);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 機能リスト */
.product-features {
    margin-bottom: 1.5rem;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.feature {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* 価格 */
.product-price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
}

.discount {
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* アクション */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.product-actions .btn {
    text-align: center;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.75rem 0.5rem;
}

.product-actions .btn-primary {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

/* ペイジネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-dots {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

/* ガイドセクション */
.guide-section {
    background: var(--background-light);
    padding: 3rem 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.guide-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.guide-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.guide-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.guide-card ul {
    list-style: none;
    text-align: left;
}

.guide-card li {
    padding: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.guide-card li::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-stats {
        gap: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .filter-group select {
        min-width: 200px;
    }
    
    .filter-reset {
        margin-top: 0;
        align-self: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .product-actions .btn-primary {
        grid-column: 1;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .products-section {
        padding: 1rem 0;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
}

/* 準備中表示スタイル */
.coming-soon {
    color: var(--text-light);
    cursor: default;
    opacity: 0.7;
}

.coming-soon:hover {
    color: var(--text-light);
    text-decoration: none;
}

small {
    color: #999;
    font-size: 0.8rem;
    font-weight: normal;
}