@charset "utf-8";
@import url("root.css");

.case_page {
    /* 事例検索フォーム */

    .case_box {
        padding: 6rem 0;
        background: var(--light2);

        @media screen and (max-width: 480px) {
            padding-top: 35px;
            padding-bottom: 45px;
        }

        .not_case {
            margin-bottom: 100px;

            @media screen and (max-width: 480px) {
                margin-bottom: 50px;
            }

            strong {
                font-weight: bold;
                font-size: 2rem;
                color: var(--main);

                @media screen and (max-width: 480px) {
                    font-size: 1.6rem;
                }
            }
        }

        /* 事例一覧 */
        .work_case {
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            overflow: visible;
            justify-content: flex-start;

            @media screen and (max-width: 1200px) {
                gap: 4rem 3rem;
            }

            @media screen and (max-width: 480px) {
                gap: 3rem;
            }

            li {
                width: calc(100% / 4 - 15px);
                margin-right: 20px;
                margin-bottom: 20px;
                background-color: white;
                border-radius: 16px;

                &:nth-child(4n) {
                    margin-right: 0;
                }

                @media screen and (max-width: 1200px) {
                    width: 45%;
                }

                .works_img {
                    transition: all 0.2s;
                    display: block;
                    position: relative;
                    width: 100%;
                    height: auto;
                    border-radius: 15px;

                    &::before {
                        content: "";
                        display: block;
                        padding-top: 70%;
                    }

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        position: absolute;
                        top: 0;
                        right: 0;
                        left: 0;
                        margin: auto;
                        border-radius: 16px 16px 0 0;
                        border-bottom: 1px solid #dedede;
                    }
                }

                .works_text {
                    padding: 20px 15px 15px;
                    display: flex;
                    flex-direction: column;
                    flex-grow: 1;
                }

                a {
                    background-color: white;
                    border-radius: 16px;
                    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.07));

                    position: relative;
                    text-align: left;
                    color: var(--black);
                    font-weight: 500;
                    /* padding-bottom: 20px; */
                    display: block;
                    width: 100%;
                    height: 100%;
                    transition: all 0.1s;
                    text-decoration: none;
                    /* border-bottom: 1px solid #dcdcdc; */
                    display: flex;
                    flex-direction: column;

                    &:hover {
                        opacity: 0.5;
                        box-shadow: none;
                        filter: none;
                    }

                    .post_date {
                        font-size: 1.2rem;
                        font-family: var(--jost);
                    }

                    h3 {
                        margin-top: 8px;
                        font-weight: bold;
                        font-size: 1.5rem;
                        line-height: 2.4rem;
                        letter-spacing: 0.03em;

                        @media screen and (max-width: 480px) {
                            padding: 0;
                        }
                    }

                    h4 {
                        font-size: 1.2rem;
                        line-height: 2rem;
                        letter-spacing: 0.03em;
                        font-weight: 500;
                        margin-top: 8px;
                        color:#5c5c5c;
                    }

                    .post_content {
                        margin-top: 10px;
                        margin-bottom: 10px;

                        span {
                            display: inline-block;
                            color: #5b5b5b;
                            border: 1px solid #c3c3c3;
                            border-radius: 2px;
                            padding: 1px 3px 2px;
                            margin-right: 2px;
                            margin-bottom: 1px;
                            font-size: 1rem;
                            font-weight: 500;
                        }
                    }


                    p.btn {
                        margin-top: auto;
                        width: 100%;
                        text-align: right;
                        width: auto;
                        /* position: absolute; */

                        span {
                            border: none;
                            margin: 0;
                            display: inline-block;
                            position: relative;
                            padding: 0;
                            padding-left: 0;
                            padding-right: 15px;
                            font-size: 1.2rem;
                            font-weight: bold;
                            color: var(--text-orange);
                            font-weight: 500;

                            &::after {
                                position: absolute;
                                content: "";
                                background: url(../img/common/button_3.svg) no-repeat;
                                width: 12px;
                                height: 12px;
                                background-size: contain;
                                background-position: center center;
                                bottom: 0;
                                top: 0;
                                right: 0;
                                margin: auto;
                            }


                        }
                    }
                }

                @media screen and (max-width: 1200px) {
                    width: calc(100% / 2 - 20px);
                }

                @media screen and (max-width: 820px) {
                    width: 100%;
                    margin: 0 0 20px;
                }

                @media screen and (max-width: 480px) {
                    width: 100%;
                    margin: 0 0 20px;
                }
            }
        }

    }

}

.case_tab {
    display: flex;
    justify-content: center;
    /* background: var(--navy); */
    background: white;
    padding: 3rem 0 3rem;
    position: relative;

    @media screen and (max-width: 480px) {
        padding: 0;
    }

    /* &::after {
        position: absolute;
        content: "";
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        margin: auto;
        width: 35px;
        height: 22px;
        z-index: 2;
        background-color: var(--navy);
        clip-path: polygon(0 0, 100% 0, 50% 100%);
    } */


    @media screen and (max-width: 480px) {
        margin: 0;
    }
}

.search {
    width: 100%;

    @media screen and (max-width: 480px) {
        margin: 0;
        border-bottom: 1px solid #e6e6e6;

    }

    .search_box {
        width: 90%;
        margin: 0 auto;
        max-width: 1100px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 auto;
        /* border-left: 1px solid #e6e6e6;
        border-right: 1px solid #e6e6e6; */

        @media screen and (max-width: 480px) {
            flex-direction: column;
            align-items: center;
            gap: 0;
            border: none;
            border-top: 1px solid #e6e6e6;

            width: 100%;
        }
    }

    select {
        width: 100%;
        max-width: 24%;
        background: white;
        border-radius: 6px;
        border: none;
        padding: 20px 35px 20px 25px;
        font-size: 1.4rem;
        font-weight: bold;
        cursor: pointer;
        font-family: var(--noto);
        display: bloack;
        font-weight: 500;
        text-align-last: left;
        /*スマホ対応*/
        color: var(--red-orange);

        position: relative;
        /*矢印調整 ここから*/
        -webkit-appearance: none;
        appearance: none;
        background-image: url("../img/case/arrow_down.svg");
        background-repeat: no-repeat;
        background-size: 11px auto;
        /* 画像のサイズ（幅 高さ）*/
        background-position: right 16px center;

        &:last-child {
            border: none;
        }

        @media screen and (max-width: 820px) {
            max-width: 49%;
            margin: 0.6rem 0;
        }

        @media screen and (max-width: 480px) {
            border: none;
            margin: 0;
            border-bottom: 1px solid #e6e6e6;
            border-radius: 0;
        }


        /* 画像の位置 */
        &::-ms-expand {
            display: none;
            /*IE対応*/
        }

        /* &:focus {
            outline: none;
        }

        &.on {
            color: white;
            font-weight: bold;
            background: url(../img/flow/tab.png) no-repeat;
            background-size: contain;
        }

        &:hover {
            color: var(--text-orange);
            font-weight: bold;
        }
 */
        option {
            text-align: left;
        }
    }

    select:focus {
        outline: none;
    }

    select:hover {
        color: var(--text-orange);
    }

    select.on {
        color: white;
        font-weight: bold;
        position: relative;
        background-size: cover;
        background: url(../img/flow/tab.png) no-repeat;

    }

    option {
        background: white;
        font-weight: 500;
        color: var(--black);
    }

    @media screen and (max-width: 480px) {
        select {
            width: 100%;
            max-width: 100%;
            margin: 0;
            font-size: 1.4rem;
        }
    }

}