@charset "utf-8";

.webgene-pagination {
    width: 100%;
    grid-column: 1/3;
}

.webgene-pagination>ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.webgene-pagination>ul>li {
    display: flex;
    margin: 30px 0 0;
    height: 40px;
    min-height: 40px;
    width: 100%;
    max-width: 40px;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 4px 0;
    align-items: center;
    border-radius: 50%;
}

.webgene-pagination>ul>li>a {
    width: 100%;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: initial;
    font-size: 15px;
    transition: all .3s;
    color: var(--primary);
}

.webgene-pagination>ul>li>a:hover {
    color: #fff;
    background-color: var(--primary);
    text-decoration: none;
    transition: all .3s;
}

.webgene-pagination>ul>li.selected>a {
    color: #fff;
    background: var(--primary);
    cursor: inherit;
    border-radius: 50%;
    transition: all .3s;
}

.webgene-pagination>ul>li.selected>a:hover {
    color: #fff;
    background-color: var(--black);
    transition: all .3s;
}

.webgene-pagination>ul>.prev>a,
.webgene-pagination>ul>.next>a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 40px;
    border: 0;
    font-size: 0;
    font-weight: 500;
    letter-spacing: .05em;
    color: var(--black);
}

.webgene-pagination>ul>.prev>a:hover,
.webgene-pagination>ul>.next>a:hover {
    color: #fff;
    opacity: .5;
    background-color: initial;
}


.webgene-pagination>ul>.prev>a::before,
.webgene-pagination>ul>.next>a::before {
    content: "";
    display: block;
    top: 50%;
    width: 20px;
    height: 16px;
    margin: 0 0 .3em;
    transition: all .3s;
}

.webgene-pagination>ul>.prev>a::before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 16px 10px 0;
    border-color: transparent var(--primary) transparent transparent;
}

.webgene-pagination>ul>.next>a::before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--primary);
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width: 576px) {
    .webgene-pagination {
        grid-column: 1/4;
    }
}

/* min-width: 576px ここまで */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width: 768px) {

    .webgene-pagination {
        grid-column: 1/5;
    }

    .webgene-pagination>ul>li>a {
        height: 40px;
        width: 40px;
        font-size: 18px;
    }

}

/* min-width: 768px ここまで */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
@media screen and (min-width:1024px) {

    .webgene-pagination>ul>li {
        margin: 40px 10px 0;
    }
}

/* min-width: 1024px ここまで */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */