/* カテゴリページ専用スタイル */

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーローセクション */
.category-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title i {
    margin-right: 15px;
    color: #FFD700;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* 人気記事ランキング */
.popular-articles {
    margin-bottom: 50px;
}

.popular-articles h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 3px solid #FF6B6B;
    padding-bottom: 10px;
}

.popular-articles h2 i {
    color: #FF6B6B;
    margin-right: 10px;
}

.popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.popular-item {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.popular-item.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border: 2px solid #FFD700;
}

.rank-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 3;
}

.rank-badge.gold {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
}

.rank-badge.silver {
    background: linear-gradient(45deg, #C0C0C0, #808080);
    color: white;
}

.rank-badge.bronze {
    background: linear-gradient(45deg, #CD7F32, #8B4513);
    color: white;
}

.article-card {
    padding: 25px;
}

.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #667eea;
}

.article-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.views i {
    margin-right: 5px;
}

.status.coming-soon {
    background: #4ECDC4;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* カテゴリセクション */
.category-articles {
    margin-bottom: 50px;
}

.category-articles > h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 40px;
    border-bottom: 3px solid #4ECDC4;
    padding-bottom: 10px;
}

.category-articles > h2 i {
    color: #4ECDC4;
    margin-right: 10px;
}

.category-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.section-header {
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.section-header h3 i {
    margin-right: 10px;
    color: #667eea;
}

.section-header p {
    color: #666;
    font-size: 1rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.article-card {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
}

.card-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-badge.hot {
    background: linear-gradient(45deg, #FF6B6B, #FF4757);
    color: white;
}

.card-badge.new {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
}

.article-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-card h4 a {
    color: #333;
    text-decoration: none;
}

.article-card h4 a:hover {
    color: #667eea;
}

.article-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 市場動向セクション */
.market-trends {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.market-trends h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 25px;
    border-bottom: 3px solid #45B7D1;
    padding-bottom: 10px;
}

.market-trends h2 i {
    color: #45B7D1;
    margin-right: 10px;
}

.trends-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.trends-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.trends-text ul {
    list-style: none;
    padding: 0;
}

.trends-text li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.trends-text li::before {
    content: '📈';
    position: absolute;
    left: 0;
    top: 0;
}

.trends-chart {
    position: relative;
    height: 300px;
}

.chart-caption {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

.chart-caption a {
    color: #667eea;
    text-decoration: none;
}

/* 価格帯別おすすめ */
.price-recommendations {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.price-recommendations h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 3px solid #96CEB4;
    padding-bottom: 10px;
}

.price-recommendations h2 i {
    color: #96CEB4;
    margin-right: 10px;
}

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

.price-range {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 25px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.price-range:hover {
    border-color: #667eea;
}

.price-range h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.price-range h3 i {
    margin-right: 8px;
    color: #667eea;
}

.price-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #667eea;
}

.price-item h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.price-item p {
    color: #666;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* 購入ガイド */
.buying-guide {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.buying-guide h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 3px solid #FFEAA7;
    padding-bottom: 10px;
}

.buying-guide h2 i {
    color: #FFEAA7;
    margin-right: 10px;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.guide-tips, .purchase-timing {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 20px;
}

.guide-tips h3, .purchase-timing h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.guide-tips ul, .purchase-timing ul {
    list-style: none;
    padding: 0;
}

.guide-tips li, .purchase-timing li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.guide-tips li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.purchase-timing li::before {
    content: '💰';
    position: absolute;
    left: 0;
    top: 0;
}

.recommended-stores h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.store-item {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.store-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.store-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.store-item p {
    color: #666;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .category-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .trends-content {
        grid-template-columns: 1fr;
    }

    .trends-chart {
        height: 250px;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .guide-content {
        grid-template-columns: 1fr;
    }

    .stores-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .category-section {
        padding: 20px;
    }

    .article-card {
        padding: 15px;
    }

    .market-trends, 
    .price-recommendations, 
    .buying-guide {
        padding: 20px;
    }
}