.thl_pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    font-size: 13px;
}

.thl_pagination span,
.thl_pagination a {
    display: block;
    min-width: 32px;
    margin: 4px;
    padding: 8px;
    border: 1px solid #000;
    background-color: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 16px;
}

/* ページ番号 */
.thl_pagination .pager{
    width: auto;
}

/* ホバー時 & 現在のページ */
.thl_pagination a:hover,
.thl_pagination .current  {
    color: #fff;
    border-color: #000;
    background-color: #000;
}

/* 前へ */
.thl_pagination a.prev {
    margin-right: 16px;
}
/* 次へ */
.thl_pagination a.next {
    margin-left: 16px;
}
/* 最初へ */
.thl_pagination a.first {}
/* 最後へ */
.thl_pagination a.last {}

/* Page x / y */
.thl_pagination span.page_num {
    display: none;
}

/** WordPress5.0未満 */

.thl_o_pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    font-size: 13px;
}

.thl_o_pagination span /**,
.thl_o_pagination a */ {
    display: block;
    min-width: 32px;
    margin: 4px;
    padding: 8px;
    border: 1px solid #000;
    background-color: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 16px;
}

/* ページ番号 */
.thl_o_pagination .pager{
    width: auto;
}

/* ホバー時 & 現在のページ */
/** .thl_pagination a:hover, */
.thl_o_pagination > span /** .thl_pagination .current */ {
    display: block;
    min-width: 32px;
    margin: 4px;
    padding: 8px;
    border: 1px solid #000;
    background-color: #000;
    text-decoration: none;
    text-align: center;
    line-height: 16px;
    color: #fff;
}

/* 前へ */
.thl_o_pagination a.prev {
    margin-right: 16px;
}
/* 次へ */
.thl_o_pagination a.next {
    margin-left: 16px;
}
/* 最初へ */
.thl_o_pagination a.first {}
/* 最後へ */
.thl_o_pagination a.last {}

/* Page x / y */
.thl_o_pagination span.page_num {
    display: none;
}



.pagination {
    min-height: 76px;
    height: auto !important;
    max-width: 100% !important;
}
.pagination nav-links {
    max-width: 100% !important;
}
.pagination .nav-links .page-numbers {
    word-break: break-all !important;
}