.cps-post-title.post-title {
    text-align: center;
    font-size: 1.8rem;
    line-height: 2.3rem;
    color: #3b4675;
    position: relative;
}
h1.cps-post-title.post-title::after {
    content:"WORKS";
    transform: translate(-50%, 50%);
    font-size: 1rem;
    position: absolute;
    bottom: -1rem;
    left: 50%;
}

.works-list{
    margin:5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width:100%;
}
.works-list::after{
    content:"";
    display: block;
    width:calc((100% - 3%) / 3);
}
.works-list .works-item{
    width:calc((100% - 3%) / 3);
}
.works-list .works-item:nth-of-type(n+4){
    margin-top:1.35rem;
}
.works-list .works-item a div{
    display: block;
    width:100%;
    height:250px;
    overflow: hidden;
}
.works-list .works-item a:hover img{
    transform: scale(1.2);
}
.works-list .works-item img{
    width:100%;
    height:250px;
    object-fit:cover ;
    transition: .3s;
}
.works-date{
    color:rgb(147, 147, 147);
    font-size: .8rem;
    margin-top:.5rem;
}
.works-title{
    border-bottom:solid 1px #bebebe;
    padding-bottom:.5rem;
    margin-bottom:.5rem;
}
.works-cat{
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    width:100%;
    
}
.works-cat a{
    color:white !important;
    font-size: .8rem;
    padding:0 1rem;
    background-color: #003984;
    display: inline-block;
    margin-right:.5rem !important;
}




/*----------------------------------------
ページネーション
----------------------------------------*/
.works-pagination {
    margin-top: 60px;
    text-align: center;
}

.works-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.works-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: .3s;
}

.works-pagination .page-numbers:hover {
    border-color: #003984;
}

.works-pagination .current {
    background: #003984;
    color: #fff;
    border-color: #003984;
}

.works-pagination .prev,
.works-pagination .next {
    font-size: 18px;
    font-weight: bold;
}


@media(max-width:1200px){
    .works-list{
        width:90%;
        margin:5rem auto;
    }
}
@media(max-width:1024px){
    .works-list .works-item img,
    .works-list .works-item a div{
        height:19.53vw;
    }
}
@media(max-width:768px){
    .works-list{
        flex-flow: column;
    }
    .works-list .works-item{
        width:100%;
    }
    .works-list .works-item:nth-of-type(n+2){
        margin-top:2rem;
    }
    .works-list .works-item img,
    .works-list .works-item a div{
        height:50vw;
    }
}













/*詳細ページ*/
.single-work-title{
    font-size: 1.5rem;
    padding-bottom:.5rem;
    border-bottom: solid 1px #bebebe;
    margin-bottom:.5rem;
}

.single-work-cat{
     isplay: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    width:100%;
    
}
.single-work-cat a{
    color:white !important;
    padding:0 1rem;
    background-color: #003984;
    display: inline-block;
    margin-right:.5rem !important;
}


.img_gr .work-gallery{
    margin-top:5rem;
    width:100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}
.img_gr .work-gallery::after{
    content:"";
    display: block;
    width:calc((100% - 3%) / 3);
}
.work-gallery .work-gallery-item{
    width:calc((100% - 3%) / 3);
    position: relative;
}
.work-gallery .work-gallery-item a{
    transition: .3s;    
}
.work-gallery .work-gallery-item a:hover{
    opacity: .8;
}
.work-gallery .work-gallery-item img:not(.icon img){
    width:100%;
    height:250px;
    object-fit: cover;
}

.icon{
    width:30px;
    height:30px;
    background-color: #003984;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top:0;
    left:0;
}
.icon img{
    width:20px;
    height:20px;
}



/*一覧に戻る*/
.single-work-back {
    margin-top: 60px;
    text-align: center;
}

.single-work-back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 56px;
    padding: 0 24px;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    transition: .3s;
}

.single-work-back a:hover {
    background: #003984;
    color: #fff;
}


@media(max-width:1200px){
    .work-detail{
        width:90%;
        margin:0 auto;
    }
    .work-gallery .work-gallery-item img:not(.icon img){
        height:20vw;
    }
}

@media(max-width:768px){
    .work-gallery .work-gallery-item{
        width:100%;
    }
    .work-gallery .work-gallery-item img:not(.icon img){
        height:50vw;
    }
    .icon{
    width:6.51vw;
    height:6.51vw;
    }
    .icon img{
        width:5.21vw;
        height:5.21vw;
    }
    .single-work-back{
        margin-bottom:3rem;
    }
}
