@charset "utf-8";
@import url("root.css");

.case_page {
    .case {

        /* @media screen and (max-width:480px) {
            margin-bottom: 10rem;
        }
 */
        h2 {
            span {

                /* padding: 3.5rem 0 0 !important; */
                &::before {
                    content: "case study" !important;
                }
            }
        }


    }

    /* 事例検索フォーム */



    .case_content {
        padding-top: 6rem;
        padding-bottom: 10rem;
        /* background: #f4f4f4; */

        @media screen and (max-width: 480px) {
            padding-top: 25px;
            padding-bottom: 55px;
        }

        .case_list {

            &.all,
            &.light {
                display: none;
                opacity: 0;
                transition: all .2s;

                &.view {
                    display: block;
                    opacity: 1;
                }
            }
        }

        .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 {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            overflow: visible;
            gap: 7rem 5rem;
            justify-content: flex-start;

            @media screen and (max-width: 1200px) {
                gap: 4rem 3rem;
            }

            @media screen and (max-width: 480px) {
                justify-content: space-between;
                gap: 0;
            }

            li {
                width: calc(100% / 3 - 35.5px);

                @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;
                    margin-bottom: 30px;

                    @media screen and (max-width: 480px) {
                        border-radius: 0;
                        margin-bottom: 12px;
                    }

                    &::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;

                        @media screen and (max-width: 480px) {
                            border-radius: 5px 5px 0 0;
                        }


                    }
                }

                .works_text {
                    padding: 0 25px;

                    @media screen and (max-width: 480px) {
                        padding: 0 12px;
                    }
                }

                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;
                    padding-bottom: 70px;

                    /* border-bottom: 1px solid #dcdcdc; */
                    @media screen and (max-width: 480px) {
                        border-radius: 5px;
                        padding-bottom: 30px;
                    }

                    &:hover {
                        opacity: 0.5;
                        box-shadow: none;
                        filter: none;
                    }

                    .post_date {
                        font-size: 1.2rem;
                        margin-top: 12px;
                        font-family: var(--jost);

                        @media screen and (max-width: 480px) {
                            font-size: 1rem;
                        }
                    }

                    h3 {
                        margin-top: 8px;
                        font-weight: bold;
                        font-size: 1.5rem;
                        line-height: 2.4rem;
                        letter-spacing: 0.08em;

                        @media screen and (max-width: 480px) {
                            padding: 0;
                            font-size: 1.1rem;
                            margin-top: 5px;
                            line-height: 1.4rem;
                            margin-bottom: 5px;
                        }
                    }

                    h4 {
                        font-size: 1.4rem;
                        line-height: 2rem;
                        letter-spacing: 0.05em;
                        font-weight: 500;
                        margin-top: 8px;
                        margin-bottom: 20px;

                        @media screen and (max-width: 480px) {
                            padding: 0;
                            font-size: .9rem;
                            line-height: 1.2rem;
                            margin-bottom: 5px;
                        }

                    }

                    .post_content {
                        margin-top: 12px;

                        span {
                            font-size: 1.2rem;
                            margin-right: 2px;
                            margin-bottom: 7px;
                            padding: 3px 10px 4px;
                            color: #5b5b5b;
                            border: 1px solid #dedede;
                            border-radius: 0.5rem;
                            display: inline-block;
                        }
                    }

                    .tags {
                        display: flex;
                        justify-content: flex-start;
                        flex-wrap: wrap;
                    }

                    span {
                        display: inline-block;
                        color: #5b5b5b;
                        border: 1px solid #c3c3c3;
                        border-radius: 2px;
                        line-height: 1;
                        padding: 3px 5px 4px;
                        margin-right: 2px;
                        margin-bottom: 2px;
                        font-size: 1rem;
                        font-weight: 400;

                        /* &.plan{
                            &.cat364{
                                color: var(--blue);
                                border-color: var(--blue);
                            }
                            &.cat365{
                                color: var(--green);
                                border-color: var(--green);
                            }

                        } */
                        @media screen and (max-width: 480px) {
                            font-size: .8rem;
                            padding: 2px 4px;
                            line-height: 1.1;
                            margin-right: 1px;
                            margin-bottom: 0;
                            border-radius: 2px;
                        }

                        &.pref {
                            color: var(--dark-green);
                            border-color: var(--green);
                        }

                        &.pref_wide {
                            color: #f36868;
                            border-color: #f36868;
                        }

                        &.plan {
                            border-color: var(--green);
                            color: white;
                            background: var(--green);
                        }

                    }

                    p.btn {
                        width: auto;
                        position: absolute;
                        right: 25px;
                        bottom: 25px;
                        margin: auto;

                        @media screen and (max-width: 480px) {
                            right: 12px;
                            bottom: 8px;
                        }

                        span {
                            border: none;
                            margin: 0;
                            display: inline-block;
                            position: relative;
                            padding: 0;
                            padding-left: 0;
                            padding-right: 20px;
                            font-size: 1.4rem;
                            font-weight: bold;
                            color: var(--light-blue);
                            font-weight: 500;

                            @media screen and (max-width: 480px) {
                                font-size: 1rem;
                                padding-right: 12px;
                            }

                            &::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: 480px) {
                                &::after {
                                    width: 8px;
                                    height: 8px;

                                }



                            }

                        }
                    }
                }

                @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: 48.5%;
                    margin: 0 0 20px;
                }
            }
        }

    }

}

.planning_tab {
    margin: 0 auto;
    padding: 25px 0 0;
    display: flex;
    justify-content: center;

    @media screen and (max-width: 480px) {
        margin: 0;
        padding: 0;
    }

    .container {
        @media screen and (max-width: 480px) {
            margin: 0;
            max-width: 100%;
            width: 100%;
        }
    }

    ul {
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        position: relative;
        max-width: 100%;
        /* padding: 1em 0; */
        justify-content: space-between;

        @media screen and (max-width: 480px) {
            width: 100%;
            margin: 0;
            justify-content: space-between;
            border-radius: 0;
            border-top: 1px solid #dbdbdb;
        }

        >li {
            width: calc(100% / 4);

            @media screen and (max-width: 480px) {
                width: calc(100% / 2);
                border-bottom: 1px solid #dbdbdb;

                &::after {
                    display: none;
                }
            }

        }

        >li {
            background: white;
            width: calc(100% / 2);
            /* border-radius: 6px; */
            cursor: pointer;
            color: var(--dark-green);
            display: inline-block;
            transition: all .05s;
            position: relative;
            z-index: 1;

            &:first-child {
                border-radius: 10px 0 0 10px;

                p {
                    border: none;
                }
            }

            &:last-child {
                border-radius: 0 10px 10px 0;
            }

            @media screen and (max-width: 480px) {
                border-radius: 0 !important;
            }

            &.active {
                background: none;
                text-decoration: none;
                font-weight: bold;
                background: url(../img/flow/tab.png) no-repeat;
                background-size: cover;
                background-position: bottom center;
                z-index: 2;
                position: relative;

                p {
                    border-color: var(--light-blue);
                    color: white;
                    font-weight: 600;
                    border: none;

                }

                &:hover {
                    p {
                        color: white;
                    }

                }


                &::after {
                    position: absolute;
                    content: "";
                    top: calc(100% - 1px);
                    left: 0;
                    right: 0;
                    margin: auto;
                    width: 25px;
                    height: 15px;
                    z-index: 2;
                    background-color: #37D3F7;
                    clip-path: polygon(0 0, 100% 0, 50% 100%);
                }

                @media screen and (max-width: 480px) {
                    &::after {
                        width: 15px;
                        height: auto;
                        aspect-ratio: 25/15;
                        display: none;
                    }
                }
            }

            p {
                margin: 1em 0;
                font-size: 1.6rem;
                font-weight: 500;
                transition: all .1s;
                width: 100%;
                padding: 10px;
                transition: all .05;
                border-left: 1px solid #dbdbdb;

                @media screen and (max-width: 820px) {
                    height: 100%;
                    font-size: 1.4rem;
                    margin: 0;
                    display: grid;
                    place-content: center;
                    padding: 2em 10px;


                }

                @media screen and (max-width: 480px) {
                    padding: 20px 10px;
                    height: 100%;
                    font-size: 1.3rem;
                    margin: 0em;
                    display: grid;
                    place-content: center;

                }
            }

            &:hover {
                p {
                    color: var(--light-blue);
                }

                @media screen and (max-width: 480px) {
                    opacity: 1;

                    p {
                        opacity: 1;
                    }
                }
            }
        }
    }

}


.case_tab {
    display: flex;
    justify-content: center;
    /* background: var(--green); */
    background: white;
    padding: 3rem 0 0;
    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(--green);
        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: 33%;
        background: white;
        border-radius: 3px;
        border: 1px solid var(--light-blue);
        padding: 20px 25px 20px 20px;
        font-size: 1.6rem;
        font-weight: bold;
        cursor: pointer;
        font-family: var(--noto);
        display: bloack;
        font-weight: 500;
        text-align-last: left;
        /*スマホ対応*/
        color: var(--dark-green);

        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(--light-blue);
            font-weight: bold;
        }
 */
        option {
            text-align: left;
        }
    }

    select:focus {
        outline: none;
    }

    select:hover {
        color: var(--light-blue);
    }

    select.on {
        color: white;
        /* border: 2px solid var(--light-blue); */
        font-weight: bold;
        color: white;
        position: relative;
        background: url(../img/flow/tab.png) no-repeat;
        background-repeat: no-repeat;
        background-size: cover;
        /* 画像のサイズ（幅 高さ）*/
        /* background-position: right 16px center; */

    }

    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;
        }
    }

}

section.radius_bottom {
    @media screen and (max-width: 480px) {
        &::after {
            display: none;
        }
    }
}