@charset "utf-8";



main   {
    margin-top: 60px;
}

/* セクションタイトル */
.section_title   {
    margin: 120px 0 64px;
}

.section_title::before   {
    width: 400px;
    top: 56px;
    left: -30px;
}

.section_title .logo   {
    max-width: 48px;
}

.section_title .text   {
    font-size: 40px;
}



/* フィルタータブ */
.filter   {
    background-color: #efefef;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.filter .tab   {
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-family: 'Poppins';
    font-weight: 600;
    letter-spacing: 0.032em;
    transition: all 0.3s ease;
}

.filter .tab:hover   {
    background-color: #ddd;
}

.filter .tab.active   {
    background-color: #333;
    color: #fff;
}




/* カウント切り替え */
.info   {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    font-family: 'Poppins';
    font-weight: 600;
    letter-spacing: 0.032em;
    font-size: 24px;
}

.view-toggle   {
    width: 100%;
    max-width: 200px;
    display: flex;
    gap: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 4px 8px;
}

.view-toggle button   {
    all: unset;
    cursor: pointer;
    display: block;
    width: 100%;
    border-radius: 8px;
    line-height: 0;
}

.view-toggle .img   {
    min-height: 40px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: transparent;
    transition: background-color 0.6s ease, transform 0.3s ease;
}

.view-toggle button:hover .img   {
    background-color: #e2e2e2;
}

.view-toggle button.active .img   {
    background-color: #fff;
    transform: scale(1.05);
}

.view-toggle .img img   {
    display: block;
    width: 100%;
    height: 30px;
}





/* グリッドワークス */
.grid   {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 320px;
}

.grid .item   {
    text-align: center;
    margin-bottom: 40px;
}

.grid .item .img   {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 8px;
    position: relative;
    overflow: visible;
    background-color: #f8f8f8;
    border-radius: 20px;
}

.grid .item .img:hover   {
    transform: scale(1.04);
    transition: transform 0.3s ease;
    border-radius: 0;
    z-index: 1;
}

.grid .item .img:hover img   {
    border-radius: 0;
}

.grid .item .img img   {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: all 0.6s ease;
    border: solid 2px #333;
    border-radius: 20px;
    box-sizing: border-box;
}

/* web固定 */
.grid .item.web .img   {
    transition: height 0.4s ease;
    height: auto;
}

.grid .item.web .img:hover   {
    transform: scale(1.04);
    transition: transform 0.3s ease;
    border-radius: 0;
}

.grid .item.web .img:hover img   {
    border-radius: 0;
}

.grid .item.web .img img   {
    object-position: top;
    display: none;
}

.grid .item.web .img img.img-pc   {
    display: block;
}

.grid .item.hovered:not(.web) img {
    object-fit: contain !important;
    object-position: center center !important;
    transform: scale(0.99);
    padding: 0;

}

.grid .text   {
    margin-top: 8px;
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 24px;
}

.grid .text .number   {
    font-family: 'Poppins';
    font-weight: 600;
    letter-spacing: 0.032em;
    font-size: 20px;
}

.grid .text .title   {
    font-size: 20px;
}

.grid .text .title .en   {
    font-family: 'Poppins';
    font-weight: 600;
} 


/* スマートフォン */
@media screen and (max-width: 768px)   {


    /* セクションタイトル */
    .section_title   {
        margin: 60px 0 32px;
    }

    .section_title::before   {
        width: 220px;
        top: 32px;
    }

    .section_title .logo   {
        max-width: 28px;
        margin-right: 14px;
    }

    .section_title .text   {
        font-size: 24px;
    }




    /* フィルター */
    .filter   {
        padding: 12px 14px;
        justify-content: stretch;
        gap: 22px;
    }

    .filter .tab   {
        padding: 8px 14px;
        font-size: 16px;
    }




    /* カウント切り替え */
    .info   {
        margin-bottom: 64px;
        font-size: 16px;
    }

    .view-toggle   {
        max-width: 120px;
        padding: 8px 10px;
    }

    .view-toggle .img   {
        min-height: 32px;
    }

    .view-toggle .sp-view .img  img  {
        height: 24px;
    }




    /* グリッドワークス */
    .grid   {
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 100px;
    }

    .grid .item   {
        margin-bottom: 32px;;
    }

    .grid .text .number   {
        font-size: 16px;
    }

    .grid .text .title   {
        font-size: 18px;
    }
}