@charset "UTF-8";

/* 3列グリッドレイアウト用スタイル */
.blog-wrapper {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3列 */
    gap: 30px;
    /* カード間の余白 */
}

/* カード型デザイン */
.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.blog-card:visited {
    color: #fff;
}

/* サムネイル画像（アスペクト比維持） */
.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f0f0f0;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: bold;
    color: #242424;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.loading-text {
    text-align: center;
    padding: 100px 0;
}

/* ページネーション */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 5px;
}

.pagination a:hover {
    background: #f0f0f0;
    border-color: #999;
}

.pagination a.active {
    background: #333 !important;
    color: #fff !important;
    border-color: #333 !important;
    cursor: default;
}