body.post-type-archive-case .case_box {
    padding: 0 0 120px;
}

body.single-case .case_box {
    padding: 120px 0;
}

body.single-case .center {
    padding: 120px 0;
    display: flex;
    justify-content: center;
}

body.single-case .case_box .case_summary {
    text-align: center;

}

body.single-case .case_box .case_summary h1 {
    margin-bottom: 30px;
    font-size: 25px;
    text-align: center;
}

body.single-case .case_box .case_img {
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
    gap: 20px;
}

body.post-type-archive-case .case_summary h3,
body.post-type-archive-case p.no-case,
body.tax-case_category .case_summary h3,
body.tax-case_category p.no-case {
    color: #363433;
}

body.single-case .before_after_img {
    width: calc(50% - 10px);
}

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

.case_box::after {
    content: "";
    display: block;
    width: 48%;
}

.case_box a {
    display: block;
    width: 48%;
}

.case_summary h3 {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: #fff;
    text-align: center;
}

@media screen and (max-width: 750px) {
    .case_summary h3 {
        font-size: 14px;
    }
}

.case_img {
    margin-bottom: 24px;
}

.before_after_img {
    width: 50%;
    margin: 0 auto;
    text-align: center;
}

.before_after_img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.before_name,
.after_name {
    padding: 10px;
    background: #DADADA;
    font-family: "Cormorant Infant", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.1em;
    color: #fff;
}

.after_name {
    background: #867F7C;
}

.case_category li {
    display: inline-block;
    margin-right: 5px;
}

p.no-case {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: #fff;
    text-align: center;
}

@media screen and (max-width: 1180px) {
    .case_box::after {
        display: none;
    }

    .case_box a {
        width: 49%;
    }

    .before_after_img img {
        height: 16.102vw;
    }
}

@media screen and (max-width: 750px) {
    body.post-type-archive-case .case_box {
        padding: 0 0 80px;
    }

    body.single-case .case_box {
        padding: 80px 0;
    }

    body.single-case .center {
        padding: 80px 0;
    }

    body.single-case .case_box .case_summary h1 {
        font-size: 22px;
    }

    .case_box {
        padding: 40px 0 16px;
    }

    .case_box a {
        width: 100%;
    }

    .before_after_img img {
        height: 36.4vw;
    }
}

.case-category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 30px 0 30px;
}

.case-category-list li {
    text-align: center;
    transition: 0.3s ease;
}

.case-category-list li a {
    display: block;
    background: #fff;
    padding: 20px;
    border: 1px solid #595B4F;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    color: #595B4F;
}

.case-category-list li a:hover {
    background: #595B4F;
    color: #fff;
}

.case-category-list li.is-active a {
    background: #595B4F;
    color: #fff;
}

@media (max-width: 1200px) {
    .case-category-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 750px) {
    .case-category-list {
        margin: 80px 0 30px;
    }

    .case-category-list li a {
        padding: 20px 10px;
        font-size: 13px;
    }
}

.case_img-text {
    text-align: left;
}


@media (max-width: 750px) {
    .case_intro-subcatch {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .case_intro-note {
        font-size: 10px;
    }
}