/* ============================================================
 * お客様の声 (/voice/) : ページ送り専用CSS
 * [kk_post_list category="voice"] の直後のページ送りだけが対象
 * 2026-10-19: 横並び対応＋全体を囲む不要な枠を除去
 * ============================================================ */

/* 子テーマ内の他のレイアウト指定による幅の制限を解除 */
.kk-post-list-voice + nav.kk-post-pagination {
    display: block !important;
    clear: both;
    width: 100% !important;
    max-width: 100% !important;
    margin: 28px 0 20px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* WordPress paginate_links(type=list) が作る ul */
.kk-post-list-voice + nav.kk-post-pagination > ul.page-numbers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    align-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.kk-post-list-voice + nav.kk-post-pagination > ul.page-numbers > li {
    display: block !important;
    flex: 0 0 auto !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.kk-post-list-voice + nav.kk-post-pagination > ul.page-numbers > li::marker {
    content: "";
}

.kk-post-list-voice + nav.kk-post-pagination > ul.page-numbers > li::before {
    display: none !important;
    content: none !important;
}

/* 各ページ番号の見た目 */
.kk-post-list-voice + nav.kk-post-pagination > ul.page-numbers > li > a,
.kk-post-list-voice + nav.kk-post-pagination > ul.page-numbers > li > span {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 44px !important;
    max-width: none !important;
    min-height: 44px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

/* 現在のページ */
.kk-post-list-voice + nav.kk-post-pagination > ul.page-numbers > li > span.current {
    background: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    font-weight: 600;
}

/* 操作時 */
.kk-post-list-voice + nav.kk-post-pagination > ul.page-numbers > li > a:hover,
.kk-post-list-voice + nav.kk-post-pagination > ul.page-numbers > li > a:focus-visible {
    background: #f2f2f2 !important;
    border-color: #999 !important;
}
