/* single related post in the content */
.related-post-box {
    width: 100%;
    margin: 4rem auto;
    border: 1px solid var(--main_subcolor);
    background-color: rgba(255, 255, 255, .03);
}

@media screen and (max-width:767px) {
    .related-post-box {
        padding: 3vw;
    }
}

.related-post-box .thumb-wrp {
    width: 40%;
}

@media screen and (max-width:767px) {
    .related-post-box .thumb-wrp {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.related-post-box .related-text-box {
    width: 60%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 min(2rem, 3vw);
    background-color: #fff;
}

@media screen and (max-width:767px) {

    .related-post-box .related-text-box {
        width: 100%;
    }
}

.related-post-box .related-label {
    font-size: .9rem;
    padding: 0;
    margin: 0 0 .25rem;
}

.related-post-box .related-post-title {
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

/* single related area wrapper */
.wrp.single .related-wrp {
    width: 18%;
    margin: 0 auto;
    position: relative;
}

@media screen and (max-width:1280px) {
    .wrp.single .related-wrp {
        width: 25%;
    }

    @media screen and (max-width:1100px) {
        .wrp.single .related-wrp {
            width: 100%;
            margin-top: 3em;
            padding: 0 var(--main-margin);
        }
    }
}

.related-wrp-inner {
    position: sticky;
    top: 125px;
}

.wrp.single .related-wrp .entry-meta-wrp {
    padding: 0 0 1em 1em;
}

.wrp.single .related-wrp .related-title {
    font-size: 1.2rem;
    color: var(--main_color);
    margin-top: 0;
}

.wrp.single .related-wrp .entry-list {
    display: block;
}

@media screen and (max-width:1100px) {
    .wrp.single .related-wrp .entry-list {
        display: flex;
        justify-content: space-between;
    }
}

.wrp.single .related-wrp .entry {
    width: 100%;
    border: none;
    border: none;
    border-bottom: 1px solid var(--main_subcolor);
    padding: .5em 0;
    transition: .3s;
}

.wrp.single .related-wrp .entry::before {
    content: unset;
}

.wrp.single .related-wrp .entry-inner {
    display: grid;
    grid-template-columns: 25% 70%;
    gap: 5%;
    width: 100%;
    padding: .5em 0;
    position: relative;
}

@media screen and (max-width:1100px) {
    .wrp.single .related-wrp .entry {
        width: 48%;
    }

    @media screen and (max-width:767px) {
        .wrp.single .related-wrp .entry {
            width: 100%;
        }
    }
}

.wrp.single .related-wrp .entry-list .entry .thumb-wrp {
    padding: 0;
    margin: 0;
}

.wrp.single .related-wrp .entry-list .entry-meta {
    padding: 0;
    padding-right: .5em;
    font-size: clamp(13px, 1vw, 15px);
}

.wrp.single .related-wrp .entry .entry-title {
    font-size: .85rem;
    font-feature-settings: "palt";
}

.wrp.single .related-wrp .entry .entry-title br {
    display: none;
}

@media screen and (max-width:767px) {
    .wrp.single .related-wrp .entry .entry-title {
        font-size: 12px;
    }
}

.wrp.single .related-wrp .entry .exc {
    font-size: .7rem;
}

@media screen and (max-width:767px) {
    .wrp.single .related-wrp .entry .exc {
        font-size: .75rem;
    }
}

.wrp.single-2columns .related-wrp {
    width: 100%;
    margin-top: 4rem;
}

.wrp.single-2columns .related-wrp .entry {
    width: calc(100%/6);
}

/* banner */
.wrp.single .related-wrp .banner-area {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2em auto;
    overflow: hidden;
}

@media screen and (max-width:1100px) {
    .wrp.single .related-wrp .banner-area {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        margin: 2em auto;
        overflow: hidden;
    }
}

.related-wrp .banner-area {
    width: 100%;
    margin: 4em auto 0;
}

.related-wrp .banner-area .wp-block-image {
    position: relative;
}

.related-wrp .banner-area .wp-block-image::after {
    content: '広告';
    display: block;
    font-size: min(.7em, 3vw);
    padding: .5em;
    position: absolute;
    bottom: 1px;
    left: 1px;
    width: fit-content;
    background-color: #fff;
}

@media screen and (max-width:1100px) {
    .related-wrp .banner-area .wp-block-image {
        width: 19%;
        margin: 1em 0 0;
    }

    @media screen and (max-width:767px) {
        .related-wrp .banner-area .wp-block-image {
            width: 49%;
        }
    }
}

.related-wrp .banner-area a {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--main_subcolor);
    padding: .5em;
}

.related-wrp .banner-area img {
    width: 100%;
    height: auto;
}

.related-wrp .cat-list-with-icons .post-cat-icon-wrp {
    width: 100%;
    display: flex;
}

.related-wrp .cat-list-with-icons .post-cat-icon-wrp .post-cat-icon {
    width: 25%;
    height: fit-content;
}

.related-wrp .cat-list-with-icons .post-cat-icon-wrp .cat-label {
    width: 65%;
    display: flex;
    align-content: center;
    padding-left: 1em;
}