.details__main {
    padding: 0 23px;
}

.details__wrap {
    padding: 40px 0 80px;
}


.details__top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
}

.details__top_item {
    border: 1px solid #2F2F2F;
    color: #2F2F2F;
    font-family: "Noto Sans JP", sans-serif;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    line-height: 20px;
    padding: 4px 8px;





}

.details__ca {
    margin-right: 20px;
}

.details__time {
    white-space: nowrap;
    margin-right: 0;
    margin-left: auto;
}

.details__time::before {
    content: "";
    background-image: url('../img/koshin.svg');
    width: 10px;
    height: 10px;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 5px;
}

.details__inner {}

h1 {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    color: #2F2F2F;
    margin-bottom: 40px;

}

h2 {
    /* h2 */
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #2F2F2F;
    min-height: 24px;
    padding-left: 32px;
    text-indent: -32px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* h2::before {
    content: "";
    background-image: url('../img/news-details/news-details__icon01.svg');
    width: 24px;
    height: 24px;
    display: inline-block;
    margin-right: 8px;
    position: relative;
    top: 4px;
    background-repeat: no-repeat;
    background-size: contain;
} */

.h2__ttl__img__wrap {
    margin: 40px 0;
}

.h2__ttl__img__wrap>img:not(:last-child) {
    margin-bottom: 24px;
}

h3 {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #F4F4F4;
    background-color: #B8972C;
    padding: 16px;
    position: relative;
    margin-bottom: 30px;
}

h3::before {
    content: "";
    background-image: url("../img/tra.svg");
    width: 8px;
    height: 7px;
    display: block;
    position: absolute;
    bottom: -7px;
    margin: auto;
    left: 0;
    right: 0;

}

h4 {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    /* text-color */
    color: #2F2F2F;
    position: relative;
    padding-left: 33px;
    padding-bottom: 8px;
    border-bottom: #B8972C 1px solid;
    margin: 40px 0 24px;
}

/* h4::before {
    content: "";
    background-image: url('../img/news-details/news-details__icon02.svg');
    width: 21px;
    height: 17px;
    display: inline-block;
    margin-right: 8px;
    position: relative;
    top: 4px;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    margin: auto;
    top: 0;
    bottom: 0;
    transform: translateY(-4px);
} */

h5 {
    padding: 8px 8px 8px 16px;
    border-width: 1px 1px 1px 8px;
    border-style: solid;
    border-color: #B8972C;
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #2F2F2F;



    margin: 40px 0 24px;


}

.navi_buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 40px auto 0 auto;
}

.navi_buttons * {
    width: 112px;
    height: 29px;
    border: 1px solid #2F2F2F;
    border-radius: 4px;
    background-color: #ffffff;
    font-weight: 400;
    line-height: 26px;
    position: relative;
    cursor: pointer;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;


    /* text-color */
    color: #2F2F2F;

}

.navi_buttons div:first-child {
    text-align: right;
    padding-right: 8px;
}

.navi_buttons .navi_btn--prev {
    text-align: right;
    padding-right: 8px;
}

.navi_buttons div:last-child {
    padding-left: 8px;
}

.navi_buttons .navi_btn--next {
    padding-left: 8px;
}

.navi_buttons *::before {
    position: absolute;
    display: block;
    height: 9.33px;
    width: 12px;
    content: "";
    background-image: url('../img/np__arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    top: 52%;
    transform: translateY(-50%);
}

.navi_buttons div:first-child::before {
    left: 10px;
}

.navi_buttons .navi_btn--prev::before {
    left: 10px;
}

.navi_buttons div:last-child::before {
    right: 10px;
    transform: translateY(-50%) rotate(180deg);
}

.navi_buttons .navi_btn--next::before {
    right: 10px;
    transform: translateY(-50%) rotate(180deg);
}

.navi_btn--next {
    margin-left: auto;
    margin-right: 0;
}

.navi_buttons .navi_btn--next::before {
    transform: translateY(-50%) rotate(180deg);
}

.wp-pagenavi {
    display: flex;
    justify-content: center;
}

.wp-pagenavi a:hover, .wp-pagenavi span.current {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: #4d4d4d;
    color: #F8F2E9;
    border-radius: 50%;
    border: none;
}

body .wp-pagenavi a, body .wp-pagenavi span {
    border: none;
}

.page.larger, .page.smaller {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    font-size: 14px;
    color: var(--main-color);
    font-weight: 500;
    font-family: var(--main-font);
    border: none;
}

.previouspostslink {
    width: 40px;
    height: 40px;
    text-indent: 10000px;
    background: url(../images/works/ui_arrow-left.png) 0 0 no-repeat;
    background-size: 80% 80%;
    background-position: center center;
}

.nextpostslink {
    width: 40px;
    height: 40px;
    text-indent: 10000px;
    background: url(../images/works/ui_arrow-right.png) 0 0 no-repeat;
    background-size: 80% 80%;
    background-position: center center;
}


@media screen and (min-width: 768px) {
    .details__wrap {
        padding: 64px 0 128px;
        max-width: 1032px;
        margin: 0 auto;
    }


    .details__top {

        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 64px;

    }

    .details__top_item {
        border: 1px solid #2F2F2F;
        color: #2F2F2F;
        font-family: "Noto Sans JP", sans-serif;
        border-radius: 4px;
        background: #fff;
        font-size: 14px;
        line-height: 20px;
        padding: 4px 8px;





    }

    .details__ca {
        margin-right: 20px;
    }

    .details__time {
        white-space: nowrap;
    }

    .details__time::before {
        content: "";
        background-image: url('../img/koshin.svg');
        width: 10px;
        height: 10px;
        background-repeat: no-repeat;
        display: inline-block;
        margin-right: 5px;
    }

    .details__inner {
        max-width: 984px;
        margin: 0 auto;
    }

    h1 {
        font-family: 'Noto Sans JP';
        font-style: normal;
        font-weight: 500;
        font-size: 24px;
        line-height: 32px;
        text-align: center;
        color: #2F2F2F;
        margin-bottom: 64px;

    }

    h2 {
        /* h2 */
        font-family: 'Noto Sans JP';
        font-style: normal;
        font-weight: 500;
        font-size: 20px;
        line-height: 24px;
        color: #2F2F2F;
        min-height: 32px;
        padding-left: 40px;
        text-indent: -40px;
        margin-top: 64px;
        margin-bottom: 28px;
    }

    /* h2::before {
        content: "";
        background-image: url('../img/news-details/news-details__icon01.svg');
        width: 32px;
        height: 32px;
        display: inline-block;
        margin-right: 8px;
        position: relative;
        top: 8px;
    } */

    .h2__ttl__img__wrap {
        margin: 64px 0 96px;
        display: flex;
        justify-content: center;
        gap: 24px;
        width: 100%;
    }

    .h2__ttl__img__wrap>img:not(:last-child) {
        margin-bottom: 0;
    }

    .h2__ttl__img__wrap>img {
        display: block;
        width: calc((100% - 24px)/2);
    }

    h3 {
        font-family: 'Noto Sans JP';
        font-style: normal;
        font-weight: 700;
        font-size: 18px;
        line-height: 24px;
        color: #F4F4F4;
        background-color: #B8972C;
        padding: 16px;
        position: relative;
        margin-bottom: 23px;
    }

    h3::before {
        content: "";
        background-image: url("../img/tra.svg");
        width: 8px;
        height: 7px;
        display: block;
        position: absolute;
        bottom: -7px;
        margin: auto;
        left: 0;
        right: 0;

    }

    h4 {
        font-family: 'Noto Sans JP';
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        /* text-color */
        color: #2F2F2F;
        position: relative;
        padding-left: 33px;
        padding-bottom: 8px;
        border-bottom: #B8972C 1px solid;
        margin: 64px 0 28px;
    }

    /* h4::before {
        content: "";
        background-image: url('../img/news-details/news-details__icon02.svg');
        width: 21px;
        height: 17px;
        display: inline-block;
        margin-right: 8px;
        position: relative;
        top: 4px;
        background-repeat: no-repeat;
        position: absolute;
        left: 0;
        margin: auto;
        top: 0;
        bottom: 0;
        transform: translateY(-4px);
    } */

    h5 {
        padding: 8px 8px 8px 16px;
        border-width: 1px 1px 1px 8px;
        border-style: solid;
        border-color: #B8972C;
        font-family: 'Noto Sans JP';
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        color: #2F2F2F;



        margin: 64px 0 28px;


    }

    .navi_buttons {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 64px auto 0 auto;
    }

    .navi_buttons * {
        width: 112px;
        height: 29px;
        border: 1px solid #2F2F2F;
        border-radius: 4px;
        background-color: #ffffff;
        font-weight: 400;
        line-height: 26px;
        position: relative;
        cursor: pointer;
        font-family: "Noto Sans JP", sans-serif;
        font-size: 14px;


        /* text-color */
        color: #2F2F2F;

    }

    .navi_buttons div:first-child {
        text-align: right;
        padding-right: 8px;
    }

    .navi_buttons div:last-child {
        padding-left: 8px;
    }

    .navi_buttons a.navi_btn--prev {
        text-align: right;
        padding-right: 8px;
    }

    .navi_buttons a.navi_btn--next {
        padding-left: 8px;
    }

    .navi_buttons *::before {
        position: absolute;
        display: block;
        height: 9.33px;
        width: 12px;
        content: "";
        background-image: url('../img/np__arrow.svg');
        background-size: contain;
        background-repeat: no-repeat;
        top: 52%;
        transform: translateY(-50%);
    }

    .navi_buttons div:first-child::before {
        left: 10px;
    }

    .navi_buttons div:first-child::before {
        left: 10px;
    }

    .navi_buttons div:last-child::before {
        right: 10px;
        transform: translateY(-50%) rotate(180deg);
    }

    .navi_buttons a.navi_btn--prev::before {
        left: 10px;
    }

    .navi_buttons a.navi_btn--next::before {
        right: 10px;
        /* transform: translateY(-50%) rotate(180deg); */
    }
}