/* news */
/* 記事一覧全体のコンテナ */
.custom-post-archive {
    width: 70%;
    margin: 40px auto;
}

/* 記事一覧の1行分の設定 */
.post-list-item {
    padding: 30px 0;
    border-bottom: 1px solid #D6D2CD;
}

.post-list-item:hover {
    background-color: #FFF5E6;
}

.post-list-item:last-child {
    border-bottom: none;
}

/* 日付 */
.post-date {
    color: #888;
}

/* カテゴリーラベル（オレンジ色の枠と背景） */
.post-category {
    color: #33302C;
    border: 1px solid #F69300;
    background-color: #fff7ed;
    padding: 2px 16px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

/* 記事タイトル */
.post-title-link {
    font-size: 1.25rem;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: block;
}

.post-title-link:hover {
    color: #F69300;
}

/* 抜粋文 */
.post-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* サムネイル画像（カプセル型の切り抜き） */
.post-thumbnail {
    width: 70%;
    height: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 9999px;
    object-position: top center;
}

/* 画像がない場合のダミー画像用 */
.no-image-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 9999px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.85rem;
    border: 1px solid #D6D2CD;
}


.shared-post-item {
    border-bottom: 1px solid #D6D2CD;
}

.shared-post-item:last-child {
    border-bottom: none;
}

.shared-post-link {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 20px 0;
}

.shared-post-link:hover .shared-post-title {
    color: #F69300;
}


/* 画像と抜粋文を強制的に隠して、シンプルなテキストだけにする */
.layout-front .shared-post-thumb,
.layout-front .shared-post-excerpt {
    display: none;
}

/* 日付とカテゴリーを横並びに */
.layout-front .shared-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #888;
}

.layout-front .shared-post-title {
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .custom-post-archive {
        width: 100%;
        margin: 0 auto;
    }

    .post-list-item .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        gap: 10px;
    }

    .post-list-item .row>div:nth-child(1) {
        order: 1 !important;
        width: 65% !important;
        flex: 0 0 65% !important;
        max-width: 65% !important;
        padding: 0 !important;
    }

    /* 7. 画像ブロック (元col-12, order-1) を右に、幅固定 */
    .post-list-item .row>div:nth-child(2) {
        order: 2;
        width: 35%;
        flex: 0 0 35%;
        max-width: 35%;
        padding: 0;
    }

    /* 8. スマホでは抜粋文を非表示 */
    .post-list-item .post-excerpt {
        display: none;
    }

    /* 9. スマホ時の文字サイズ微調整 */
    /* .post-list-item h3 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-top: 5px !important;
    } */

    .post-list-item .post-date {
        font-size: 13px;
    }

    .post-list-item .post-category {
        padding: 2px 10px;
        font-size: 12px;
    }

    .post-thumbnail {
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 5px;
    }

    .no-image-box {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: 5px !important;
    }
}






/* カプセル画像の切り抜き設定 */
.layout-archive .shared-post-thumb img,
.layout-archive .no-image-box {
    width: 70%;
    aspect-ratio: 16 / 9;
    border-radius: 9999px;
    object-fit: cover;
}

/* テキスト・カテゴリーの装飾 */
.layout-archive .shared-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.layout-archive .shared-post-category {
    color: #F69300;
    border: 1px solid #F69300;
    background-color: #FFF5E6;
    padding: 2px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.layout-archive .shared-post-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.layout-archive .shared-post-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.news-list .news-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* #ajax-post-container {
    display: block !important;
}

#ajax-post-container .news-card {
    display: block !important;
} */



.ajax-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

/* 数字や矢印の基本デザイン（楕円形） */
.ajax-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    height: 52px;
    padding: 0 10px;
    border-radius: 26px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* ホバー時のアクション */
.ajax-pagination a.page-numbers:hover {
    border-color: #F69300;
    color: #F69300;
}

.ajax-pagination .current {
    background-color: #FFF5E6;
    color: #F69300;
    border-color: #FFF5E6;
    font-weight: bold;
}


.ajax-pagination .dots {
    border: none;
    background: transparent;
    color: #333;
    min-width: auto;
}

@media (max-width: 767px) {

    .custom-archive-item h3 {
        font-size: 15px;
        line-height: 1.4;
    }

    .custom-archive-item .post-date {
        font-size: 13px;
    }

    .post-category-badge {
        padding: 2px 10px;
        font-size: 12px;
    }
}