/**
 * カテゴリーページ専用レイアウト
 * カテゴリーアーカイブページのスタイリング
 */

/* カテゴリーヘッダー */
.category-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.category-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-title span {
    color: #007cba;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-meta {
    font-size: 0.9rem;
    color: #888;
}

.category-count {
    background-color: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: inline-block;
}

/* ブログカテゴリー専用スタイル */
.main_category_blog .blog-category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.main_category_blog .category-title {
    color: #2c3e50;
    font-size: 2.2rem;
}

/* カテゴリーセクション */
.category-sections {
    margin-bottom: 3rem;
}

.category-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.post-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.section-description {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* 投稿グリッド */
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-grid .post-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-grid .post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-grid .post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-grid .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-grid .post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-grid .post-content {
    padding: 1rem;
}

.post-grid .post-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-grid .post-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-grid .post-content h3 a:hover {
    color: #007cba;
}

.post-grid .post-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.post-grid .post-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* セクション詳細リンク */
.section-more {
    text-align: center;
    margin-top: 1rem;
}

.more-link {
    display: inline-block;
    background-color: #007cba;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.more-link:hover {
    background-color: #005a87;
    color: white;
}

/* 最新記事セクション */
.latest-posts {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.latest-posts .section-title {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 1.5rem;
    }
    
    .main_category_blog .category-title {
        font-size: 1.8rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-grid .post-thumbnail {
        height: 150px;
    }
    
    .main_category_blog .blog-category-header {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-header {
        margin-bottom: 1.5rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .main_category_blog .category-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .post-grid .post-content {
        padding: 0.75rem;
    }
}
