@charset "UTF-8";

#works {
    margin-bottom: 8.6rem;
    .archive-category {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 13rem;
        border-bottom: #dddddd 1px solid;
        margin-bottom: 5rem;
        @media screen and (max-width: 767px) {
            gap: 0;
            margin-bottom: 4rem;
            flex-wrap: wrap;
            padding: 0 2rem;
            box-sizing: border-box;
        }
        & li {
            padding-top: 5.7rem;
            padding-bottom: 5.2rem;
            position: relative;
            @media screen and (max-width: 767px) {
                padding-top: 1rem;
                padding-bottom: 2rem;
                width: 48%;
            }
            & label,
            & a {
                font-family: "Noto Sans JP", sans-serif;
                font-weight: bold;
                font-size: 1.6rem;
                letter-spacing: 0.2em;
                line-height: 2.5rem;
                text-align: left;
                color: #000;
                @media screen and (max-width: 767px) {
                    font-size: 1.3rem;
                    line-height: 1.4;
                    text-align: center;
                    white-space: nowrap;
                }
            }
        }
        & li.active {
            &:after {
                position: absolute;
                content: "";
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 3.3rem;
                height: 0.5rem;
                border-radius: 1px;
                background: #e14140;
            }
        }
    }
    .works-contents {
        .works-list {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            gap: 5.8rem;
            @media screen and (max-width: 767px) {
                gap: 0;
            }
            & li {
                @media screen and (max-width: 767px) {
                    width: 100%;
                    margin-bottom: 2rem;
                }
                & a {
                    width: 36rem;
                    background-color: #fff;
                    transition: all 0.3s ease;
                    filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.16));
                    @media screen and (max-width: 767px) {
                        width: 100%;
                    }
                    &:hover {
                        opacity: 0.75;
                    }
                    .card_padding {
                        padding: 1.75rem 1.4rem 1.5rem;
                        box-sizing: border-box;
                        @media screen and (max-width:767px){
                        padding: 1rem;
                        }
                        .works_img {
                            width: 100%;
                            margin-bottom: 1.65rem;
                            & img {
                                width: 100%;
                                vertical-align: top;
                            }
                        }
                        .small-title {
                            font-family: "Noto Sans JP", sans-serif;
                            font-weight: bold;
                            font-size: 1.4rem;
                            letter-spacing: 0.01em;
                            line-height: 1.4;
                            text-align: left;
                            color: #dc020b;
                            margin-bottom: 1rem;
                            @media screen and (max-width: 767px) {
                                font-size: 1.2rem;
                            }
                        }
                        .list-title {
                            font-family: "Noto Sans JP", sans-serif;
                            font-weight: bold;
                            font-size: 1.8rem;
                            letter-spacing: 0.01em;
                            line-height: 1.4;
                            text-align: left;
                            color: #000;
                            @media screen and (max-width: 767px) {
                                font-size: 1.4rem;
                            }
                        }
                    }
                    .list-category {
                        border-top: #dddddd 1px solid;
                        width: 100%;
                        padding: 1.4rem 1.4rem 1.9rem;
                        box-sizing: border-box;
                        & span {
                            font-family: "Noto Sans JP", sans-serif;
                            font-weight: bold;
                            font-size: 1.4rem;
                            letter-spacing: 0.01em;
                            line-height: 1.4;
                            text-align: left;
                            color: #636363;
                            @media screen and (max-width: 767px) {
                                font-size: 1.2rem;
                            }
                        }
                    }
                }
            }
        }
    }
}
