@charset "UTF-8";

/*-------------------------------------------
WORKS-一覧
-------------------------------------------*/

/*WORK一覧コンテンツ*/

.work-grid {
    margin: 120px auto;
    display: grid;
    justify-content: space-between;
    grid-template-columns: 32% 32% 32%;
    gap:1%;
}

.work-grid-contents {
    position: relative;
    z-index: 1;
    border: #333333 solid 1px;
}

.work-grid-contents img {
    object-fit: cover;
    max-height: 320px;
}

.work-grid-contents-text {
    padding: 3% 3% ;
}

.work-grid-contents h3 {
    line-height: 16px;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 2%;
}

.work-grid-contents p {
    line-height: 16px;
    font-size: 14px;
    color: #333333;
    margin-bottom: 2%;
}

.category {
    width: fit-content;
    font-size: 14px;
    line-height: 16px;
    color: #ffffff;
    background-color: #777777;
    border-radius: 50px;
    padding: 2px 15px 4px 15px;
}

.work-grid-contents:hover {
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0 #777777;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

@media (max-width: 800px) {
    .work-grid {
        grid-template-columns: 100%;
    }

    .work-grid-contents a{
        display: flex;
        width: auto;
        height: auto;
    }

    .work-grid-contents img {
        object-fit: cover;
        max-height: 100%;
        max-width: 100%;
        height: auto;
        width: 160px;
    }

    .work-grid-contents-text {
        width: calc(100% - 160px);
    }

    .work-grid-contents-text h3{
        line-height: 20px;
    }

    .work-grid-contents-text p{
        line-height: 16px;
        margin: 8px 0;
    }

    .work-grid{
        margin-bottom: 24px;
    }

}

/*ページネーション*/

.wp-pagenavi {
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 800px) {
    .wp-pagenavi {
        text-align: center;
        margin-top: 260px;
    }
}

.pages {
    display: none;
}

.wp-pagenavi a {
    display: inline-block;
    margin: 4px;
    padding: 10px 12px;
    color: #fff;
    line-height: 1;
    font-size: 14px;
    text-decoration: none;
    background: #777777;
    border: 1px solid #777777;
}

.wp-pagenavi a:hover {
    color: #777777;
    background: #fff;
}

.wp-pagenavi span {
    display: inline-block;
    margin: 4px;
    padding: 10px 12px;
    color: #777777;
    line-height: 1;
    font-size: 14px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #777777;
}

