.under-post-list__list{flex-flow:column;display:flex;}.under-post-list__item{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}.under-post-list__image{margin:0;min-width:0;overflow:hidden}.under-post-list__image.ratio-square{aspect-ratio:1/1}.under-post-list__image.ratio-4-3{aspect-ratio:4/3}.under-post-list__image.ratio-3-2{aspect-ratio:3/2}.under-post-list__image.ratio-16-9{aspect-ratio:16/9}.under-post-list__image.ratio-3-4{aspect-ratio:3/4}.under-post-list__image-link{display:block;height:100%}.under-post-list__image-element{display:block;height:100%;object-fit:cover;width:100%}.under-post-list__content{border-bottom:1px solid var(--color-gray1);flex-flow:column;gap:8px;padding:24px 0;display:flex}.under-post-list__meta{flex-flow:row;align-items:center;gap:8px;font-size:12px;display:flex;margin-bottom: 16px;}.under-post-list__terms{background-color:var(--color-gray1);flex-flow:row;padding:4px 8px;display:flex}.under-post-list__excerpt{font-size:14px}

@media (min-width: 900px) {
    .under-post-list__item:has(> .under-post-list__image) {
        grid-template-columns: minmax(160px, 32%) minmax(0, 1fr);
    }
}

/* スクリーンリーダー用テキスト（存在する場合） */
.pagenation .screen-reader-text {
    opacity: 0;
}

/* ラッパー（flexコンテナ） */
.pagenation .page-numbers {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
    gap: 1.125rem;
    list-style: none;
    padding: 0;
}

/* ページ番号ボタンの基本スタイル */
.pagenation .page-numbers a,
.pagenation .page-numbers span {
    align-items: center;
    background: #fff;
    border: 1px solid #333;
    color: #000;
    display: flex;
    font-size: 0.875rem;
    font-weight: 700;
    height: 2.8125rem;
    justify-content: center;
    width: 2.8125rem;
    border-radius: 4px;
    padding: 0.375rem 0.875rem;
    text-decoration: none;
    box-sizing: border-box;
}

/* カレント（現在地）のスタイル */
.pagenation .page-numbers .current {
    background: #333;
    border: 1px solid #333;
    color: #fff;
}

/* 省略記号（…）のスタイル */
.pagenation .page-numbers .dots {
    background: none;
    border: none;
    color: #666;
    font-size: 2rem;
    width: 2rem;
}

/* 次へ・前へボタン設定 */
.pagenation .page-numbers .prev,
.pagenation .page-numbers .next {
    display: flex;
    align-items: center;     /* 縦方向の中央揃え */
    justify-content: center;  /* 横方向の中央揃え */
    font-size: 0;            /* デフォルトの「»」文字を非表示化 */
    line-height: 1;          /* 行高によるズレを防止 */
}

/* 前へ・次へボタンの矢印アイコン共通設定 */
.pagenation .page-numbers .prev::before,
.pagenation .page-numbers .next::before {
    border-bottom: 0.125rem solid #000;
    border-left: 0.125rem solid #000;
	position: absolute;
    content: "";
    display: block;          /* flexアイテムとして正確に扱うためblockに変更 */
    height: 0.5625rem;
    width: 0.5625rem;
    box-sizing: border-box;  /* サイズ崩れ防止 */
}

/* 前へボタンの向き（左矢印） */
.pagenation .page-numbers .prev::before {
    transform: rotate(45deg);
    margin-left: 0.125rem;   /* 回転時の視覚的な位置微調整（お好みで） */
}

/* 次へボタンの向き（右矢印） */
.pagenation .page-numbers .next::before {
    transform: rotate(-135deg);
    margin-right: 0.125rem;  /* 回転時の視覚的な位置微調整（お好みで） */
}

/* PCサイズでの余白調整 */
@media (min-width: 769px) {
    .pagenation .page-numbers {
        margin-bottom: 5rem;
    }
}
