/*---------------------------------------------
                    Voice
----------------------------------------------*/
/*-----Voice perpage----*/
.post-perpage-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.post-perpage-wrap h4 {
    font-weight: 700;
    line-height: 1.8;
    padding: 5px 20px;
    border: solid 1px;
    border-radius: 3px;
    margin-bottom: 0;
}

.post-perpage-wrap button {
    border: none;
    padding: 5px 50px;
    margin-right: 10px;
    line-height: 27px;
    font-size: 16px;
    background: #91743f;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.post-perpage-wrap button:hover {
    background-color: #000;
}

/*-----Voice Main----*/

#voice-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

#voice-wrap:after {
    content: "";
    width: calc(100% / 4 - 10px);
    display: block;
}

#voice-wrap .voice-item {
    width: calc(100% / 4 - 10px);
    width: -webkit-calc(100% / 4 - 10px);
    width: -moz-calc(100% / 4 - 10px);
    background-color: #fffbf7;
    box-shadow: 0 0 5px 2px #ececec;
}

#voice-wrap .voice-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

#voice-wrap .voice-text {
    padding: 20px;
}

.news-archive-day {
    background-color: #ff9800;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.voice-item h3 {
    margin: 0 auto 10px;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 10px;
}

.voice-item h3:after {
    content: "";
    background: url(/wp-content/uploads/2021/02/voice-title-before.png);
    width: 100%;
    height: 10px;
    margin-top: 10px;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
}

.voice-item p {
    margin-bottom: 0;
}

/*---------------------------------------------

                    PC

----------------------------------------------*/
@media only screen and (min-width: 1025px) {}

/*---------------------------------------------

                    PC-Under

----------------------------------------------*/
@media only screen and (max-width: 1024px) {}

/*---------------------------------------------

                    Tablet

----------------------------------------------*/
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    #voice-wrap:after {
        width: calc(100% / 2 - 10px);
    }

    #voice-wrap .voice-item {
        width: calc(100% / 2 - 10px);
    }

    #voice-wrap .voice-img img {
        height: 230px;
    }
}

/*---------------------------------------------

                    Mobile

----------------------------------------------*/
@media only screen and (max-width: 767px) {
    .post-perpage-wrap {
        display: block;
    }

    .post-perpage-wrap h4 {
        text-align: center;
    }

    .post-perpage-wrap button {
        width: 100%;
        margin-bottom: 10px;
        padding: 5px;
    }

    .voice-item {
        width: 100% !important;
        margin-bottom: 30px;
    }

    #voice-wrap {
        margin-bottom: 0;
    }
}
