/* --- グリッドレイアウト --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCは4カラム */
    gap: 40px 20px;
    padding: 60px 0;
}

/* レスポンシブ：タブレットは2カラム、スマホは1カラム */
@media screen and (max-width: 1024px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 599px) {
    .article-grid { grid-template-columns: 1fr; }
}

/* --- 記事カード --- */
.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 10; /* 画像の比率を統一 */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .card-img img {
    transform: scale(1.05);
}

/* メタ情報 */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 10px;
}

.card-meta .cat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta .circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.card-meta .date {
    color: #999;
}

/* タイトル */
.card-title {
    font-size: 16px;
    line-height: 1.5;
    font-weight: bold;
    margin-bottom: 10px;
    height: 3em; /* 2行分で高さを固定 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* タグ */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    font-size: 12px;
    color: #b0a090;
}

/* カラー設定（group1〜5） */
.group1 .circle { background: #ff914d; }
.group2 .circle { background: #ff914d; }
.group3 .circle { background: #4099d9; }
.group4 .circle { background: #4099d9; }
.group5 .circle { background: #4c9e18; }

