.blog-list-container {
    width: 100%;
    padding: 0 5%;
    margin-top: 30px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    gap: 3rem; /* 横方向の間隔 */
}

.blog-item {
    display: flex;
    text-decoration: none;
    overflow: hidden;
    height: 100%; /* アイテム全体を均等な高さにする */
    opacity: 0; /* 初期状態は非表示 */
    transform: translateY(20px); /* 初期位置を下に */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.blog-item.visible {
    opacity: 1; /* 表示 */
    transform: translateY(0); /* 元の位置に戻る */
}

.blog-item:hover {
    text-decoration: none;
    opacity: 0.8; /* 半透明効果 */
}

.blog-image {
    width: 50%; /* 親要素の幅を統一 */
    aspect-ratio: 8 / 5; /* 画像を16:9に統一 */
    overflow: hidden; /* 画像が枠を超えた部分を非表示にする */
}

.blog-image img {
    width: 100%; /* 横幅を親要素に合わせる */
    height: 100%; /* 高さも親要素に合わせる */
    object-fit: cover; /* 画像を枠にフィットさせつつトリミング */
    object-position: center; /* 中央を基準にトリミング */
}

.details {
    width: 50%;
    padding-top: 10px;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* テキストを上に揃える */
}

.title-text {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.post-date {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

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

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

    .post-date {
        font-size: 0.8rem;
    }

}

@media (max-width: 768px) {
    .title-text {
        font-size: 0.8rem;
    }

    .post-date {
        font-size: 0.6rem;
    }

    .blog-list-container {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .blog-list-container {
        margin-top: 10px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

    .blog-image {
        width: 40%; /* 親要素の幅を統一 */
        aspect-ratio: 8 / 5; /* 画像を16:9に統一 */
        overflow: hidden; /* 画像が枠を超えた部分を非表示にする */
    }

    .title-text {
        margin-bottom: 4px;
        font-size: 0.7rem;
    }

    .details {
        width: 60%;
        padding-top: 5px;
        padding-left: 10px;
    }

    .post-date {
        font-size: 0.6rem;
    }
}
