@charset "UTF-8";

.cats-menu {
    width: 100%;
    margin-bottom: 8.9rem;
    @media screen and (max-width: 767px) {
        margin-bottom: 4rem;
    }
    & ul {
        display: flex;
        gap: 2rem;
        @media screen and (max-width: 767px) {
            flex-wrap: wrap;
            gap: 1rem;
        }
        & li {
            @media screen and (max-width: 767px) {
                width: 48%;
            }
            & div {
                width: 15rem;
                background-color: #fff;
                padding: 1.4rem 2.6rem;
                box-sizing: border-box;
                border-radius: 3.9rem;
                font-family: var(--zenkaku);
                font-style: normal;
                font-weight: 700;
                font-size: 1.8rem;
                line-height: 120%;
                letter-spacing: 0.1em;
                color: #8b8b8b;
                display: flex;
                justify-content: center;
                align-items: center;
                cursor: pointer;
                transition: all 0.3s ease-in;
                @media screen and (max-width: 767px) {
                    width: 100%;
                    font-size: 1.4rem;
                    line-height: 1.8;
                }
                &:hover {
                    opacity: 0.75;
                    color: #f08300;
                }
            }
            div.active {
                color: #f08300 !important;
            }
        }
    }
}

.cat-content {
    & ul {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 5.5rem;
        @media screen and (max-width: 767px) {
            gap: 2rem;
        }
        & li {
            width: 48%;
            @media screen and (max-width: 767px) {
                width: 100%;
            }
            & a {
                box-sizing: border-box;
                width: 100%;
                transition: all 0.3s ease-in;
                .img-container {
                    position: relative;
                    width: 100%;
                    overflow: hidden;
                    border-radius: 1rem;
                    & img {
                        border-radius: 1rem;
                        transition: all 0.3s ease-in;
                        width: 100%;
                        vertical-align: top;
                        height: 45rem;
                        object-fit: cover;
                        overflow: hidden;
                        @media screen and (max-width:767px){
                        height: 26rem;
                        }
                    }
                    .layer {
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        width: 100%;
                        height: 17.2rem;
                        background: url("../img/layer.png") no-repeat center / cover;
                        padding: 5.7rem 10rem 3.1rem 3.4rem;
                        box-sizing: border-box;
                        z-index: 2;
                        @media screen and (max-width: 767px) {
                            padding: 2rem 5rem 2rem 2rem;
                            height: 40%;
                        }
                        .title {
                            font-family: var(--zenkaku);
                            font-style: normal;
                            font-weight: 700;
                            font-size: 2.8rem;
                            line-height: 150%;
                            letter-spacing: 0.1em;
                            color: #ffffff;
                            @media screen and (max-width: 767px) {
                                font-size: 1.8rem;
                                line-height: 1.4;
                            }
                        }
                        .arrow {
                            width: 2rem;

                            position: absolute;
                            right: 4.2rem;
                            bottom: 6.3rem;
                            @media screen and (max-width: 767px) {
                                right: 2rem;
                                bottom: unset;
                                top: 50%;
                                transform: translateY(-50%);
                                width: 1.6rem;
                            }
                            & img {
                                height: auto !important;
                            }
                        }
                    }
                }
                &:hover {
                    .img-container {
                        & img {
                            transform: scale(1.1);
                        }
                    }
                }
                .text-box {
                    width: 100%;
                    padding-top: 3.1rem;
                    @media screen and (max-width: 767px) {
                        padding-top: 1rem;
                    }
                    .joined {
                        font-family: var(--zenkaku);
                        font-style: normal;
                        font-weight: 400;
                        font-size: 1.8rem;
                        line-height: 1.2;
                        letter-spacing: 0.06em;
                        color: #000000;
                        margin-bottom: 2.1rem;
                        @media screen and (max-width: 767px) {
                            font-size: 1.4rem;
                            margin-bottom: 1rem;
                        }
                    }
                    .staff-name {
                        font-family: var(--zenkaku);
                        font-style: normal;
                        font-weight: 700;
                        font-size: 2.7rem;
                        line-height: 1;
                        letter-spacing: 0.06em;
                        color: #000000;
                        @media screen and (max-width: 767px) {
                            font-size: 1.8rem;
                        }
                    }
                }
            }
        }
    }
}
