/* ===============================
=           pagination           =
=============================== */

.pagination_list {
    margin-top: 40px;
}

/* common */
.pagination_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wp--custom--color--gray--50);
    color: var(--wp--custom--color--gray--500);
    font-weight: 700;
    font-size: 10px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.pagination_btn_accent,
.pagination_list_button {
    background: var(--wp--custom--color--gradation--blue);
    color: var(--wp--custom--color--gray--50);
    padding: 1px;
    box-shadow: 0 0 var(--xs, 4px) 0 rgba(0, 157, 253, 0.35);
}

.pagination_btn > svg {
    width: fit-content;
    height: fit-content;
}

.pagination_btn > svg > path {
    fill: var(--wp--custom--color--gray--500);
}

.pagination_btn:hover:not(.pagination_btn_accent):not(.pagination_ellipsis),
.pagination_btn:hover:not(.pagination_btn_accent):not(.pagination_ellipsis) > svg > path,
.pagination_angle_left:hover,
.pagination_angle_right:hover,
.pagination_angle_left > svg:hover > path,
.pagination_angle_right > svg:hover > path {
    background: var(--wp--custom--color--blue--200);
    color: var(--wp--custom--color--blue--500);
    fill: var(--wp--custom--color--blue--500);
}

.pagination_angle_right,
.pagination_angle_left {
    padding: 8px;
}

.pagination_disabled,
.pagination_disabled > svg > path {
    cursor: default;
    background: var(--wp--custom--color--gray--100);
    color: var(--wp--custom--color--gray--300);
    fill: var(--wp--custom--color--gray--300);
    pointer-events: none;
}

.pagination_ellipsis,
.pagination_ellipsis > svg > path {
    cursor: default;
    background: transparent;
    pointer-events: none;
}

@media screen and (min-width: 1280px) {
    .pagination_btn {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}

.pagination_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.pagination_main_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: var(--wp--custom--color--gray--50);
    width: fit-content;
    border-radius: 9999px;
    padding: 0 8px;
    gap: 4px;
    height: 30px;
}

@media screen and (min-width: 1280px) {
    .pagination_wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    .pagination_main_wrapper {
        height: 40px;
        padding: 0 12px;
        gap: 8px;
    }
}

/* 一覧に戻る */
.pagination_list_button {
    width: fit-content;
    border-radius: 0;
    padding: 0 32px;
    border-radius: 9999px;
    border: none;
    height: 30px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

@media screen and (min-width: 1280px) {
    .pagination_list_button {
        height: 40px;
        font-size: 12px;
        padding: 0 40px;
    }
}

.pagination_info_text {
    font-size: 10px;
    color: var(--wp--custom--color--gray--500);
    font-weight: 600;
    text-align: center;
    width: 100%;
}

@media screen and (min-width: 1280px) {
    .pagination_info_text {
        font-size: 12px;
        text-align: right;
    }
}