@charset "utf-8";

.intro {
    border-bottom: 21px solid var(--cmain);

    .inner {
        padding-top: 40px;
        display: flex;
        flex-direction: column;
        gap: 32px;

        @media(max-width:900px) {
            max-width: calc(350/400*100%);
            padding-top: 75px;
            width: 100%;
        }

        .sechead {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;

            @media(max-width:1180px) {
                gap: 6px;
            }

            .deco {
                width: 34px;
                height: auto;

                @media(max-width:1180px) {
                    width: 24px;
                }
            }

            .title {
                text-align: center;

                .sub {
                    font-family: var(--fmain);
                    font-weight: 600;
                    font-size: clamp(1.125rem, 1.034rem + 0.39vw, 1.5rem);
                    color: #1e4d3e;
                }

                .main {
                    font-family: var(--fmain);
                    font-weight: 600;
                    font-size: clamp(1.375rem, 1.223rem + 0.65vw, 2rem);
                    color: #1e4d3e;
                }
            }
        }

        .trouble {
            position: relative;
            min-height: 417px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;

            @media(max-width:900px) {
                min-height: auto;
            }

        }

        .fuwa1 {
            left: 0;
            bottom: 67px;

            @media(max-width:900px) {
                margin-right: auto;
                margin-left: 0;
            }
        }

        .fuwa2 {
            top: 0;
            left: 64px;

            @media(max-width:900px) {
                margin-right: 0;
                margin-left: auto;
            }
        }

        .fuwa3 {
            top: 0;
            right: 64px;

            @media(max-width:900px) {
                margin-right: auto;
                margin-left: 0;
            }
        }

        .fuwa4 {
            right: 0;
            bottom: 67px;

            @media(max-width:900px) {
                margin-right: 0;
                margin-left: auto;
            }
        }

        .fuwa {
            max-width: 391px;
            width: 100%;
            height: 175px;
            position: absolute;
            display: flex;
            justify-content: center;
            align-items: center;
            background: url(/system_panel/uploads/images/20251203141622413097.png) no-repeat center/contain;

            @media(max-width:900px) {
                position: relative;
                inset: 0;
            }

            .text {
                font-family: var(--fmain);
                font-weight: 600;
                line-height: calc(29/20);
                font-size: clamp(0.875rem, 0.784rem + 0.39vw, 1.25rem);
                text-align: center;
                color: #1e4d3e;
            }
        }



        .mainimg {
            max-width: 346px;
            width: 100%;
            height: auto;
            margin: auto auto 0;
        }

        .wrap {
            @media(max-width:900px) {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                width: 100%;
                gap: 11px;
            }
        }
    }
}

.p-cta {
    .inner {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 160px;

        @media(max-width:900px) {
            flex-direction: column-reverse;
            gap: 5px;
            max-width: calc(353/400*100%);
            width: 100%;
        }

        .col-text {
            margin-right: -48px;
            position: relative;
            z-index: 10;

            @media(max-width:1180px) {
                margin: auto;
            }

            .title {
                margin-bottom: 15px;

                .main {
                    font-family: var(--fmain);
                    font-weight: 100;
                    font-size: clamp(2.5rem, 0.892rem + 6.86vw, 9.125rem);
                    line-height: calc(183/146);
                    text-align: left;
                    color: #1e4d3e;

                    @media(max-width:1180px) {
                        text-align: center;
                        margin-bottom: 5px;
                    }
                }

                .desc {
                    font-family: var(--fmain);
                    font-weight: bold;
                    font-size: clamp(0.875rem, 0.784rem + 0.39vw, 1.25rem);
                    line-height: calc(33/20);
                    text-align: center;
                    color: #1e4d3e;

                }
            }

            .cta-tel {
                margin-bottom: 22px;

                .f-20 {
                    grid-area: 2 / 1 / 3 / 3;
                    text-align: right;
                }
            }

            .cta-contact {
                @media(max-width:1180px) {
                    .f-20 {
                        font-size: 24px;
                    }
                }
            }
        }

        .col-img {
            position: relative;
            z-index: 5;
            max-width: 682px;
            width: 60%;

            @media(max-width:1180px) {
                width: 42%;
            }

            @media(max-width:900px) {
                width: 100%;
            }
        }

        .col-img::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);

            @media(max-width:900px) {
                background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%);
            }
        }
    }
}

.mainsectionA,
.mainsectionB {
    overflow: hidden;

    .w1440 {
        padding: 56px 0 120px;
        position: relative;

        @media(max-width:1180px) {
            padding: 60px 0 80px;
        }


        .p-title {
            margin-bottom: 64px;

            @media(max-width:1180px) {
                margin-bottom: 35px;
            }
        }

        .column {
            display: flex;
            gap: 80px;
            align-items: center;

            @media(max-width:900px) {
                flex-direction: column;
                gap: 23px;
            }

            .col-img {
                position: relative;
                max-width: 582px;
                width: 50%;
                border-radius: 10px;

                @media(max-width:767px) {
                    width: 70%;
                }

                img {
                    border-radius: 10px;
                }
            }

            .col-img::before {
                content: "";
                width: 100%;
                height: 100%;
                background-color: var(--cmain);
                border-radius: 10px;
                position: absolute;
                top: 20px;
                right: 16px;
                z-index: -1;

                @media(max-width:1180px) {
                    top: 10px;
                    right: 10px;
                }
            }

            .col-text {
                flex: 1;

                @media(max-width:1023px) {
                    max-width: 100%;
                    width: 100%;
                }

                .list {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 24px;

                    .item {


                        @media(max-width:1180px) {
                            width: 100%;
                        }
                    }

                    .item-ttl {
                        display: flex;
                        gap: 7px;
                        align-items: center;
                        margin-bottom: 10px;

                        img {
                            width: 91px;
                            height: auto;
                        }

                        .num {
                            font-family: var(--fmain);
                            font-weight: 500;
                            font-size: 42px;
                            color: #1e4d3e;
                        }
                    }

                    .item-box {
                        border-radius: 10px;
                        background: #fff;
                        border: 4px solid #1e4d3e;
                        width: auto;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        gap: 21px;
                        padding: 15px;

                        @media(max-width:767px) {
                            padding: 15px 17px;
                        }

                        .main {
                            font-family: var(--fmain);
                            font-weight: 600;
                            font-size: clamp(1.5rem, 1.379rem + 0.52vw, 2rem);
                            color: #1e4d3e;
                        }

                        .desc {
                            font-family: var(--fmain);
                            font-weight: 500;
                            font-size: clamp(0.75rem, 0.689rem + 0.26vw, 1rem);
                            line-height: calc(30/16);
                            color: #000;


                        }
                    }

                    .item:nth-child(2n) {
                        margin-left: auto;
                        margin-right: 96px;

                        @media(max-width:1180px) {
                            margin: 0;
                        }
                    }
                }
            }
        }
    }

    .w1440::before {
        content: "";
        position: absolute;
        background: url(/system_panel/uploads/images/20251203181038981813.png) no-repeat center/contain;
        width: 511px;
        height: 1135px;
        right: -320px;
        top: 233px;
        z-index: -1;

        @media(max-width:900px) {
            top: auto;
            bottom: 0;
            width: 195px;
            height: 432px;
            right: 0;
        }
    }
}

.mainsectionA.sentei .w1440::before {
    content: "";
    position: absolute;
    background: url(/system_panel/uploads/images/20251203185037667252.png) no-repeat center/contain;
    width: 1449px;
    height: 767px;
    right: -622px;
    top: 177px;
    z-index: -1;
}

.mainsectionB {
    .w1440 {
        @media(max-width:900px) {
            max-width: none;
            width: 100%;
        }

        .column {
            flex-direction: column;

            .col-img {
                max-width: 100%;
                width: 100%;

                @media(max-width:900px) {
                    border-radius: 0;

                    img {
                        border-radius: 0;
                    }
                }
            }

            @media(max-width:900px) {
                .col-img::before {
                    border-radius: 0;
                }
            }

            .col-text {
                @media(max-width:900px) {
                    max-width: none;
                    width: 90%;
                    margin: 0 auto;
                }

                .list {
                    display: grid;
                    grid-template-columns: repeat(2, 1fr);
                    grid-template-rows: auto;
                    gap: 20px 75px;
                    justify-content: center;

                    @media(max-width:900px) {
                        display: flex;
                        flex-direction: column;
                        gap: 23px;
                    }

                    .item {
                        max-width: 100%;
                    }

                    .item:nth-child(2n) {
                        margin: 0;
                    }
                }
            }
        }
    }
}

.mainsectionB.doboku .w1440::before {
    content: "";
    position: absolute;
    background: url(/system_panel/uploads/images/20251203190445783226.png) no-repeat center/contain;
    width: 770px;
    height: 426px;
    right: -387px;
    top: auto;
    bottom: 0;
    z-index: -1;

    @media(max-width:900px) {
        width: 462px;
        height: 250px;
        right: -111px;
    }
}

.mainsectionB.gaikou .w1440::before {
    content: "";
    position: absolute;
    background: url(/system_panel/uploads/images/20251203192432820702.png) no-repeat center/contain;
    width: 818px;
    height: 568px;
    right: -651px;
    top: auto;
    bottom: 0;
    z-index: -1;
}

.voice {
    .sechead {
        background-color: var(--cmain);
        padding: 40px 0;

        @media(max-width:900px) {
            padding: 20px 0;
        }

        .p-title {
            margin-bottom: 0;

            .main,
            .sub {
                color: #FFF;
            }
        }
    }

    .secbody {
        .w1344 {
            display: flex;
            gap: 27px;
            padding: 40px 0 80px;

            @media(max-width:767px) {
                flex-direction: column-reverse;
                align-items: center;
                padding: 60px 0 80px;
                width: 94%;
            }

            .col-img {
                max-width: 474px;
                width: 47%;

                @media(max-width:900px) {
                    max-width: 192px;
                }
            }

            .col-text {
                display: flex;
                flex-direction: column;
                gap: 32px;
                flex: 1;

                .item {
                    max-width: 746px;
                    width: 100%;
                    border-radius: 10px;
                    background: #fff;
                    border: 4px solid #1e4d3e;
                    padding: 20px 40px;

                    @media(max-width:1160px) {
                        padding: 20px 10px;

                    }

                    .desc {
                        font-family: var(--fmain);
                        font-weight: 500;
                        font-size: clamp(0.75rem, 0.629rem + 0.52vw, 1.25rem);
                        line-height: calc(29/20);
                        text-align: left;
                        color: #000;
                    }
                }

                .item:last-child {
                    margin-left: auto;
                }
            }
        }
    }
}

.cases {
    .w1536 {
        text-align: center;
        padding: 80px 0 120px;

        .webgene-blog {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 96px;
            margin-bottom: 64px;

            @media(max-width:1180px) {
                display: flex;
                flex-direction: column;
                gap: 60px;
            }

            .newsLink {
                position: relative;
                border-radius: 5px;
                background: #fff;
                border: 2px solid #1e4d3e;
                box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
                padding: 24px 32px 81px;
                display: block;
                transition: .4s ease;

                .newsItemText {
                    display: flex;
                    gap: 24px;
                    align-items: center;
                    margin-bottom: 8px;

                    .newsItemTime {
                        font-family: var(--fmain);
                        font-weight: 500;
                        font-size: 16px;
                        color: #000;
                    }

                    .newsItemCate {
                        border-radius: 3px;
                        background: var(--cmain);
                        color: #FFF;
                        font-family: var(--fmain);
                        font-weight: 500;
                        font-size: 16px;
                        color: #fff;
                        padding: 8px 10px;
                    }
                }

                .newsDetailTit {
                    font-family: var(--fmain);
                    font-weight: 500;
                    font-size: 18px;
                    text-align: left;
                    color: #1e4d3e;
                    margin-bottom: 20px;
                }

                .newsDetailImg {
                    width: 100%;
                    height: 226px;
                    margin-bottom: 20px;
                    overflow: hidden;

                    .webgene-item-main-image {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: .8s ease;
                    }
                }

                .newsDetailTxt {
                    font-family: var(--fmain);
                    font-weight: normal;
                    font-size: 16px;
                    text-align: left;
                    color: #000;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    /* 垂直方向に配置 */
                    overflow: hidden;
                    /* 溢れた部分を隠す */
                    text-overflow: ellipsis;
                    /* 溢れた部分に「...」を表示 */
                    -webkit-line-clamp: 3;
                }
            }

            .newsLink::before {
                content: "";
                position: absolute;
                bottom: 0;
                right: 0;
                width: 135px;
                height: 36px;
                background: url(/system_panel/uploads/images/20251203164207123170.png);
                background-repeat: no-repeat;
                background-size: cover;
            }

            .newsLink:hover .newsDetailImg .webgene-item-main-image {
                transform: scale(1.2);

            }

        }

        .morebtn {
            max-width: 389px;
            width: 100%;
            margin: 0 auto;
            padding: 8px 40px;
            justify-content: flex-start;

            p {
                font-family: var(--fmain);
                font-weight: var(--bold);
                font-size: 25px;

                color: #fff;
            }
        }
    }
}