/*
 * 記事一覧ページ (`articles/index.php`) 専用スタイル
 */

/* 記事一覧ヘッダー */
.article-list-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 20px;
    background-color: #fdfdfd;
    border-bottom: 1px solid #eee;
}

.article-list-header .article-list-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.article-list-header p {
    font-size: 1rem;
    color: #777;
    margin: 0;
}

/* 記事カードのコンテナ */
.article-list {
    display: grid;
    gap: 30px;
}

/* 記事カード */
.article-card {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.article-card-image {
    width: 220px;
    flex-shrink: 0;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-content {
    padding: 25px;
}

.article-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.article-card-date {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 15px;
}

.article-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .article-list-header {
        margin-bottom: 30px;
        padding: 15px;
    }

    .article-list-header .article-list-title {
        font-size: 1.8rem;
    }

    .article-list {
        gap: 20px;
    }

    .article-card {
        flex-direction: column;
    }
    .article-card-image {
        width: 100%;
        height: 200px;
    }
    .article-card-content {
        padding: 20px;
    }
    .article-card-title {
        font-size: 1.1rem;
    }
}
