/* ============================================
   全体コンテナ
============================================ */
.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

/* ============================================
   カテゴリーヘッダー
============================================ */
.category-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    position: relative;
}

.category-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.category-description {
    font-size: 1.1rem;
    color: #5a6c7d;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   記事グリッド - 幅を統一
============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

/* ============================================
   記事カード
============================================ */
.article-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 左側のアクセントライン */
.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3498db 0%, #2ecc71 100%);
    transition: width 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.article-card:hover::before {
    width: 6px;
}

/* ============================================
   メタ情報
============================================ */
.article-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.article-date {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.article-date::before {
    content: "📅";
    margin-right: 0.5rem;
}

.article-category-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================
   タイトル
============================================ */
.article-card-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
    color: #2c3e50;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.article-card-title a:hover {
    color: #3498db;
}

/* ============================================
   記事の抜粋
============================================ */
.article-excerpt {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6c7d;
    flex-grow: 1;
}

/* ============================================
   続きを読むボタン
============================================ */
.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    margin-top: auto;
    align-self: flex-start;
}

.article-read-more:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
    transform: translateX(4px);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.article-read-more:hover .arrow-icon {
    transform: translateX(4px);
}

/* ============================================
   タブレット（768px〜1024px）
============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

/* ============================================
   タブレット・スマホ（769px以下）
============================================ */
@media (max-width: 768px) {
    .category-page {
        padding: 2rem 1.25rem 3rem;
    }

    .category-header {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

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

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

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

    .article-card {
        padding: 1.75rem;
    }

    .article-card-title {
        font-size: 1.35rem;
        text-align: left;
    }

    .article-excerpt {
        font-size: 0.95rem;
    }
}

/* ============================================
   スマホ（480px以下）
============================================ */
@media (max-width: 480px) {
    .category-page {
        padding: 1.5rem 1rem 2.5rem;
    }

    .category-title {
        font-size: 1.75rem;
    }

    .category-description {
        font-size: 0.95rem;
    }

    .article-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .article-card-title {
        font-size: 1.25rem;
    }

    .article-meta-info {
        gap: 0.75rem;
    }

    .article-read-more {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
}