/* カテゴリー一覧のレイアウト */
.category-post-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.archive-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* PC：フレックスボックスで横並び */
.archive-item-wrapper {
    display: flex;
    gap: 20px;
}

/* アイキャッチ画像のサイズ調整（正方形トリミング） */
.archive-item-thumbnail {
    flex: 0 0 180px;
}

.archive-item-thumbnail a {
    display: block;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
}

.archive-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.archive-item-thumbnail a:hover img {
    transform: scale(1.05);
}

/* 右側のコンテンツエリア */
.archive-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-item-content h2 {
    margin: 5px 0 10px; /* 日付との間隔を調整 */
    font-size: 1.5rem;
    line-height: 1.5;
}

.archive-item-content h2 a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* 概要（後で追加した時用） */
.item-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 記事を読むボタン */
.read-more-container {
    margin-top: auto;
    text-align: right;
}

.read-more-button {
    display: inline-block;
    padding: 8px 20px;
    border: #333 solid 1px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.read-more-button:hover {
    background-color: #666;
}

/* ページャー */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    margin: 0 2px;
}

.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* --- スマホ対応 (600px以下) --- */
@media (max-width: 600px) {
    .archive-item-wrapper {
        display: grid;
        /* 画像固定(100px) と 残り全幅 の2カラム構成 */
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }

    .archive-item-thumbnail {
        grid-column: 1;
        grid-row: 1;
    }

    .archive-item-thumbnail a {
        width: 100px;
        height: 100px; /* スマホではコンパクトに */
    }

    /* コンテンツの中身をGridのセルに直接配置できるようにする */
    .archive-item-content {
        display: contents; 
    }

    .item-header {
        grid-column: 2;
        grid-row: 1;
    }

    .item-header h2 {
        font-size: 1.5rem;
        margin: 4px 0 8px;
        line-height: 1.4;
    }

    .item-header time {
        font-size: 0.85rem;
        color: #888;
    }

    .item-excerpt {
        grid-column: 1 / span 2; /* 横いっぱいに広げる */
        grid-row: 2;
        margin: 5px 0;
    }

    .read-more-container {
        grid-column: 1 / span 2;
        grid-row: 3;
    }
}