@charset "utf-8";

/* *******************************
*******************************
    トップページ
*******************************
******************************* */

:root {
    /* メインビジュアル内外でのヘッダーbackground-color切り替え用 */
    --header: none;
}

/* メインビジュアル画像アニメーション */
@keyframes scale {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1);
    }
}

/* 企業文化スライド  */
@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* ロード画面 */
@keyframes loading {
    0% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(0);
    }

    80% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading_txt {
    0% {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    50% {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    transition: all 1s;
    z-index: 99999;

    .loading_animation {
        width: 12rem;
        height: auto;
        animation: loading 1.5s ease infinite;
        transition: all 2s;
    }

    .loaded_img {
        width: 90rem;
    }

    p {
        margin-top: 1rem;
        font-size: 1.5rem;
        color: var(--blue2);
        animation: loading_txt 1.5s ease forwards;
    }

    .loaded_text {
        opacity: 0;
    }
}

.loaded {
    opacity: 0;
    visibility: hidden;
}

/* *******************************
    header
******************************* */

#home {
    header {
        align-items: normal;
        position: fixed;
        inset: auto 0;
        margin: 0 auto;

        &::before {
            background-color: var(--header);
        }

        .header_app {
            align-items: flex-start;
        }

        nav {
            margin-top: 2.5rem;

            a {
                filter: drop-shadow(0 0 1px var(--white))
            }
        }

        /* トップページ用ヘッダーデザイン */
        .homevisual_text {
            display: none;
        }

        .homevisual_img {
            width: 8.7rem;
        }

        .home_dis {
            display: none;
        }

        /* メインビジュアル内外でのヘッダーロゴ切り替え用 */
        .logo_app {
            display: block;
        }

        .logo_sizing {
            width: 3.75rem;
        }
    }

    /* *******************************
    main
******************************* */

    /* ********************
    メイン全体
******************** */

    /* トップページのみh2位置特殊 */
    h2 {
        margin: 0 auto 4.7rem;
    }

    section {
        margin-bottom: 8.7rem;

        .e_heading {
            left: 50%;
            transform: translateX(-50%);
        }
    }

    .bubble {
        opacity: 0;
    }

    /* ********************
    メインビジュアル
******************** */

    .mainvisual {
        position: relative;
        width: 100%;
        height: 100vh;
        margin-bottom: 5rem;
        overflow: hidden;
        background-color: var(--black);

        .mainvisual_img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            object-fit: cover;
            transition: 1s;
        }

        .mainvisual_app {
            animation: scale 5s ease-out;
        }

        .mainvisual_app {
            opacity: 1;
        }

        .mainvisual_text {
            position: absolute;
            width: 100%;
            bottom: 20%;

            p {
                color: var(--white);
                font-size: 4rem;
                font-weight: bold;
                filter: drop-shadow(0 0.2rem 0.3rem var(--black));
            }

            .main_message {
                padding-bottom: 1rem;
            }
        }
    }

    /* ********************
    当社について
******************** */

    .about .flex {
        height: 100%;
        align-items: stretch;

        .about_text {
            width: 45%;
            padding: 5rem 0 3rem;
            background-color: var(--clearlightblue);
            text-align: center;

            p:first-of-type {
                padding: 0 1rem;
                margin-bottom: 4rem;
                font-size: 2rem;
            }

            p:last-of-type {
                padding: 0 13%;
                margin: 0 auto 3rem;
                text-align: left;
                line-height: 1.8rem;
            }
        }

        .about_img {
            position: relative;
            width: 45%;

            .img_subtone {
                position: absolute;
                margin-top: 1rem;
                aspect-ratio: 5/4;

                .js_subtone_slide_m {
                    transform: translate(1rem, 1rem);
                }

                img {
                    width: 100%;
                    height: 100%;
                    transform: translate(-1rem, -1rem);
                    object-fit: cover;
                }

                >span {
                    position: absolute;
                    top: -1rem;
                    left: -1rem;
                }

                &:first-of-type {
                    top: 0;
                    right: 0;
                    width: 90%;
                }

                &:last-of-type {
                    bottom: 0;
                    left: 0;
                    width: 50%;
                }
            }
        }
    }

    /* ********************
    事業紹介
******************** */

    .service {
        .service_flex {
            margin-bottom: 4.5rem;
            align-items: stretch;

            .img_subtone {
                width: 30%;
                aspect-ratio: 4/3;

                .js_subtone_slide_m {
                    transform: translate(-1rem, 1rem);
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transform: translate(1rem, -1rem);
                }

                >span {
                    position: absolute;
                    top: -1rem;
                    left: 1rem;
                }
            }

            .service_text {
                position: relative;
                width: 65%;
                padding: 3rem 2rem 2rem;
                margin-top: 2rem;
                background-color: var(--gray);

                h3 {
                    position: absolute;
                    top: -3rem;
                    left: -1rem;
                    z-index: 0;

                    a {
                        display: block;
                        padding: 0.25rem 0 0.5rem;
                        width: 27rem;
                        color: var(--white);
                        background-color: var(--blue5);
                        text-align: center;
                        visibility: hidden;
                    }

                    .js_subtone_slide {
                        content: '';
                        display: block;
                        position: absolute;
                        /* top: 0.7rem; */
                        top: 0rem;
                        /* left: 0.5rem; */
                        left: 0rem;
                        width: 100%;
                        height: 100%;
                        background-color: var(--blue2);
                        z-index: -1;
                    }

                    .js_subtone_slide_m {
                        top: 0.7rem;
                        left: 0.5rem;
                    }
                }

                p {
                    margin-bottom: 3rem;
                }
            }
        }

        .qa,
        .flow {
            position: relative;
            padding: 2.5rem 0;
            margin: 0 5%;
            background-color: var(--clearlightblue);
            text-align: center;

            &::before {
                content: 'About';
                position: absolute;
                top: -2.5rem;
                left: 0.5rem;
                font-family: var(--Goudy);
                font-size: 4rem;
                color: var(--clearblue);
            }

            h3 {
                position: relative;
                width: fit-content;
                padding-bottom: 0.5rem;
                margin: 0 auto 3rem;
                border-bottom: 0.5rem solid var(--blue5);

                &::after {
                    content: '';
                    display: block;
                    bottom: -0.5rem;
                    right: 0;
                    position: absolute;
                    height: 0.5rem;
                    width: 33%;
                    background-color: var(--blue6);
                }

                &::before {
                    content: '';
                    display: block;
                    bottom: -0.5rem;
                    right: left;
                    position: absolute;
                    height: 0.5rem;
                    width: 33%;
                    background-color: var(--blue3);
                }
            }

            p {
                padding: 0 3rem;
                margin-bottom: 3rem;
                text-align: left;
            }
        }

        .qa {
            margin-top: 6rem;
            margin-bottom: 5rem;

            &::before {
                content: 'Q & A';
            }
        }

        .flow {
            &::before {
                content: 'FLOW';
            }
        }
    }

    /* ********************
    企業文化
******************** */

    .culture {
        .culture_wrapper {
            margin: 0 8%;
        }

        p:first-of-type {
            margin-bottom: 3.5rem;
            font-size: 2.5rem;
            text-align: center;
        }

        p:last-of-type {
            margin-bottom: 4.5rem;
        }

        img {
            width: 25rem;
            height: 16rem;
            object-fit: cover;
        }

        /* イメージスライド  */
        .scroll-infinity {
            overflow: hidden;
        }

        .scroll-infinity__wrap {
            display: flex;
            max-width: 1200px;
            overflow: hidden;
        }

        .scroll-infinity__list {
            display: flex;
            list-style: none;
            padding: 0
        }

        .scroll-infinity__list--left {
            animation: infinity-scroll-left 60s infinite linear 0.5s both;
        }

        .scroll-infinity__item {
            width: calc(100vw / 5);
        }

        .scroll-infinity__item>img {
            width: 100%;
            height: auto;
        }
    }

    /* ********************
    お知らせ
******************** */
    .news {
        overflow: hidden;

        .news_wrapper {
            max-width: 800px;
            margin: 0 auto 3.2rem;
            text-align: right;

            &>a {
                color: var(--gray);
            }

            .flex {
                align-items: flex-end;
                flex-wrap: wrap;
                text-align: left;
                margin-top: 2rem;

                dt {
                    width: 35%;
                    margin-bottom: 2.5rem;
                    border-bottom: 1px solid var(--gray);
                }

                dd {
                    width: 65%;
                    margin-bottom: 2.5rem;
                    border-bottom: 1px solid var(--gray);
                }
            }
        }

        .squares_area {
            display: block;
            width: 50%;
            height: 13rem;
            margin: 0 auto;
            position: relative;

            .spuare_animate {
                display: block;
                position: absolute;
                width: 9rem;
                height: 9rem;
                transition: 1s;
            }

            .spuare_to0 {
                left: 72%;
                transform: translatex(0%) rotate(20deg);
                background-color: var(--blue5);
            }

            /* 正方形1 画面外配置(JS用) */
            .square_from0 {
                transform: translate(-700%) rotate(-270deg);
            }

            .spuare_to1 {
                left: 50%;
                transform: translatex(0%) rotate(-20deg);
                background-color: var(--lime);
            }

            /* 正方形2 画面外配置(JS用) */
            .square_from1 {
                transform: translate(-700%) rotate(-310deg);
            }

            .spuare_to2 {
                left: 23%;
                transform: translatex(0%) rotate(20deg);
                background-color: var(--blue2);
            }

            /* 正方形3 画面外配置(JS用) */
            .square_from2 {
                transform: translate(-700%) rotate(-270deg);
            }

            .spuare_to3 {
                left: 0;
                transform: translatex(0%) rotate(-20deg);
                background-color: var(--blue6);
            }

            /* 正方形4 画面外配置(JS用) */
            .square_from3 {
                transform: translate(-700%) rotate(-310deg);
            }
        }
    }


    /* ********************
    ブログ
******************** */

    .blog {

        .wrapper {
            text-align: right;

            a {
                margin-right: 1rem;
                color: var(--gray);
            }
        }

        .blog_list_wrapper {
            position: relative;
            width: 100%;
            height: auto;
            overflow: hidden;
            scrollbar-color: var(--clearblue6) var(--white);
            scrollbar-width: thin;

            .blog_scroll_btn {
                position: absolute;
                top: 43%;
                font-size: 3rem;
                color: var(--gray);
                border: none;
                background: none;
                cursor: pointer;
                z-index: 10;

                &:first-of-type {
                    left: 32%;
                    transform: rotate(180deg);
                }

                &:last-of-type {
                    left: 65%;
                }
            }
        }

        .blog_list {
            justify-content: space-around;
            width: 166.66%;
            transition: all 0.3s;

            .blog_content {
                position: relative;
                width: 14.5%;
                margin: 8% 0 10%;
                z-index: 1;

                &::before {
                    content: '';
                    display: block;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 110%;
                    z-index: -1;
                    transform: translate(-50%, -50%) rotate(45deg);
                    aspect-ratio: 1/1;
                }

                &:nth-of-type(odd)::before {
                    background-color: var(--clearpurple);
                }

                &:nth-of-type(even)::before {
                    background-color: var(--clearblue);
                }

                a {
                    display: block;
                    height: auto;

                    &>div {
                        width: fit-content;
                        height: auto;
                    }
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    aspect-ratio: 16/9;
                }

                time {
                    width: fit-content;
                    font-size: 0.875rem;
                }

                p {
                    display: block;
                    margin: 0.5rem auto 0;
                    text-align: center;
                }

                .list_more {
                    width: fit-content;
                    margin: 0 auto;
                    color: var(--gray);
                    font-size: 1.5rem;
                    border-bottom: 1px solid var(--gray);
                }

            }
        }

        .recruit_banner {
            width: 80%;
            margin: 0 auto;

            &>a {
                width: 100%;
                margin: 1rem auto;

                video {
                    width: 100%;
                    height: auto;

                }
            }
        }
    }

    /* ブログスライドショー(JS用) */
    .slide1 {
        transform: translateX(20%);
    }

    .slide2 {
        transform: translate(0);
    }

    .slide3 {
        transform: translate(-20%);
    }

    .slide4 {
        transform: translate(-40%);
    }

    /* ********************
    各種お問合せ
******************** */
    .contact {
        .content_container {
            max-width: 51.3rem;
            margin: 0 auto;
            text-align: center;

            .estimate {
                margin-bottom: 3rem;

                p:first-of-type {
                    position: relative;
                    width: fit-content;
                    margin: 0 auto 1rem;

                    &::before,
                    &::after {
                        position: absolute;
                        content: '|';
                    }

                    &::before {
                        left: -1.5rem;
                        transform: rotate(-20deg);
                    }

                    &::after {
                        right: -1.5rem;
                        transform: rotate(20deg);
                    }
                }

                a {
                    margin: 0 auto;

                    img {
                        width: 100%;
                        height: auto;
                    }
                }
            }

            .contact_flex_column {
                a {
                    width: 42.6%;

                    img {
                        width: 100%;
                        height: auto;
                    }
                }

                p {
                    margin: 3rem 0;
                }
            }

            &>p:first-of-type {
                margin-bottom: 1rem;
            }
        }
    }
}

/* *******************************
    *******************************
    トップページミドルサイズ
*******************************
******************************* */
@media screen and (max-width : 1079px) {
    #home {

        /* サムネイル画像表示位置調整 */
        .service .service_flex {

            &:nth-of-type(1) span img {
                object-position: top 0 right -3rem;
            }

            &:nth-of-type(3) span img {
                width: 100%;
                object-position: top 0 left -8rem;
            }
        }

        /* 企業文化スライドショーサイズ調整 */
        .culture {
            .scroll-infinity__item {
                width: calc(100vw / 3);
            }
        }

        /* 正方形アニメーションサイズ調整 */
        .news {
            .squares_area {
                width: 65%;
            }
        }
    }
}

/* *******************************
    *******************************
    トップページSP
*******************************
******************************* */

@media screen and (max-width : 767px) {

    #home {
        .wrapper {
            overflow: hidden;
        }

        section {
            margin-bottom: 4rem;
        }

        h2 {
            margin-bottom: 2rem;
        }

        /* ********************
    ヘッダーSP
******************** */
        header {
            .homevisual_img {
                width: 3.75rem;
            }
        }

        /* ********************
    メインビジュアルSP
******************** */

        .mainvisual {
            img:nth-of-type(2) {
                object-position: top 0 right -10rem;
            }

            img:nth-of-type(4) {
                object-position: top 0 right -5rem;
            }

            .mainvisual_text {
                p {
                    font-size: 2rem;
                }
            }
        }

        /* ********************
    当社についてSP
******************** */

        .about {
            .flex {
                flex-direction: column-reverse;

                .about_text {
                    width: 100%;
                    padding: 2rem 0 2rem;

                    p:first-of-type {
                        margin-bottom: 2rem;
                    }

                    p:last-of-type {
                        padding: 0 5%;
                        margin-bottom: 2rem;
                    }
                }

                .about_img {
                    width: 100%;
                    margin-bottom: 2rem;
                    aspect-ratio: 1/1;

                    .img_subtone:last-child {
                        left: 1rem;
                    }
                }
            }
        }

        /* ********************
    事業紹介SP
******************** */

        .service {
            h2 {
                margin-bottom: 4.7rem;
            }

            .service_flex {
                flex-direction: column-reverse;

                &:nth-of-type(1) span img {
                    object-position: 50% 50%;
                }

                &:nth-of-type(3) span img {
                    object-position: 50% 50%;
                }

                .img_subtone {
                    width: 80%;
                    margin-left: auto;
                    margin-right: 1.5rem;
                }

                .service_text {
                    width: 100%;
                    margin: 0 0 -5rem 1rem;
                    background: none;
                    margin-left: 1.5rem;

                    h3 {
                        &::before {
                            width: 19rem;
                        }

                        a {
                            position: relative;
                            width: 19rem;
                            padding-right: 1rem;

                            &::after {
                                content: '\f138';
                                position: absolute;
                                top: 50%;
                                right: 0.5rem;
                                font: var(--fa-font-solid);
                                margin-left: 1rem;
                                color: var(--white);
                                transform: translateY(-50%);

                            }
                        }
                    }
                }
            }

            .qa,
            .flow {
                padding-bottom: 1.5rem;

                h3 {
                    margin-bottom: 1.5rem;
                }

                p {
                    padding: 0 1.5rem;
                    margin-bottom: 1.5rem;
                }
            }
        }


        /* ********************
    企業文化SP
******************** */
        .culture {
            p:first-of-type {
                font-size: 1rem;
                margin-bottom: 2rem;
                text-align: left;
            }

            .scroll-infinity__item {
                width: calc(100vw / 2);
            }

        }

        /* ********************
    お知らせSP
******************** */
        .news {
            .news_wrapper {
                text-align: left;
            }

            .squares_area {
                max-width: 22.5rem;

                .spuare_animate {
                    width: 6.25rem;
                    height: 6.25rem;
                }
            }
        }

        /* ********************
    ブログSP
******************** */

        .blog {
            .wrapper {
                text-align: left;
            }

            .blog_list_wrapper {
                overflow-x: scroll;

                .blog_list {
                    align-items: center;
                    width: 270%;
                    margin: 0 0.5rem 0 1rem;

                    .blog_content {
                        width: 100%;
                        margin: 1rem 0 2.5rem;

                        &+.blog_content {
                            margin-left: 2rem;
                        }

                        &::before {
                            display: none;
                        }

                        a {
                            display: block;
                            height: 100%;
                            padding: 1rem;
                            border-radius: 0.5rem;
                            box-shadow: 0.3rem 0.3rem 0.3rem var(--clearblue);
                        }

                        p {
                            text-align: left;
                        }

                        .list_link {
                            padding: 2rem 3rem;
                        }
                    }
                }
            }
        }

        /* ********************
    各種お問合せSP
******************** */

        .contact {
            .content_container {
                .contact_flex_column {
                    display: flex;
                    flex-direction: column-reverse;

                    a {
                        width: 100%;
                        padding-left: 1.5rem;
                    }

                    .flex a {
                        padding-right: 1.5rem;
                    }

                    &>p {
                        margin: 0 1.5rem 2rem;
                        text-align: left;
                    }
                }
            }
        }
    }
}

/* *******************************
*******************************
    当社についてページ
*******************************
******************************* */

#about {
    .about_about {
        height: 100%;
    }

    .about_p {
        position: relative;
        margin-top: -19.5rem;
        padding-top: 19.5rem;
        max-width: 100%;
        height: auto;
        aspect-ratio: 5/4;
        box-sizing: content-box;
        z-index: -10;

        .video_container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;

            video {
                position: absolute;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                /* object-fit: cover; */
                /* height: 100%; */
            }
        }

        img {
            max-width: 37.5rem;
            height: auto;
            margin: 6rem 3% 0;
            opacity: 0;
        }

        .about_title {
            opacity: 0;
            width: 34rem;
            height: auto;
            margin: -5rem 5% 0 auto;
            background-color: var(--blue5);
            top: 60%;
            right: 8rem;
            padding: 1.5rem;
            overflow: hidden;

            h3 {
                color: var(--white);
                margin-bottom: 1rem;
            }
        }
    }

    /* ==============================================
                特長
=================================================*/
    .strong_point {
        margin-bottom: 6rem;

        .point_container {
            width: 100%;
            height: auto;
            background-color: var(--clearblue);
            display: flex;
            padding: 0 1rem 2rem;

            .contents {
                width: 100%;
                height: auto;
                margin: 2rem 1rem 3rem 1rem;
            }

            .numbering {
                position: relative;
                padding-left: 3rem;
                padding-top: 1rem;
                padding-bottom: 1.5rem;
                margin-top: 1rem;


                >span {
                    position: relative;
                    z-index: 5;
                    display: inline-block;
                }

                &::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 4rem;
                    height: auto;
                    aspect-ratio: 1/1;
                    background-color: var(--clearblue);
                    border: 0.2rem solid var(--white);
                }

                &::after {
                    content: attr(data-number);
                    position: absolute;
                    top: 1rem;
                    left: 0.2rem;
                    transform: translateY(-50%);
                    color: var(--white);
                }
            }
        }
    }

    /* ==============================================
               　　代表挨拶
=================================================*/

    .top_message {

        .message_content {
            padding: 1rem;

            figure {
                position: relative;
                float: left;
                margin: 0 3rem 0.2rem 0;
                width: 30%;
                z-index: 0;

                .top_img {
                    max-width: 100%;
                    height: auto;
                    margin-left: 0.5rem;
                    margin-bottom: 0.7rem;
                    position: relative;
                    display: inline-block;
                }

                .js_subtone_slide {
                    top: 0;
                    left: 0.5rem;
                    height: 97%;
                    background-color: var(--clearblue6);
                }

                .js_subtone_slide_m {
                    transform: translate(1rem, 1rem);
                }
            }

            .bubble {
                opacity: 0;
            }

            h3 {
                width: fit-content;
                border-bottom: 0.5rem solid var(--blue5);
                margin: 0 0 2rem 35%;
                position: relative;

                /* 3色下線(h2{border-bottom}含めて構成) */
                &::after {
                    content: '';
                    display: block;
                    bottom: -0.5rem;
                    right: 0;
                    position: absolute;
                    height: 0.5rem;
                    width: 33%;
                    background-color: var(--blue6);
                }

                &::before {
                    content: '';
                    display: block;
                    bottom: -0.5rem;
                    left: 0;
                    position: absolute;
                    height: 0.5rem;
                    width: 33%;
                    background-color: var(--blue3);
                }
            }
        }

        p {
            line-height: 1.8;
            margin-left: 2rem;
            margin-bottom: 1.5rem;
        }
    }

    .message_date {
        text-align: right;
        margin-bottom: 2rem;
        margin-right: 2rem;
    }

    /* ----社名流れる------ */
    .scroll-infinity_text__wrap {
        display: flex;
        overflow: hidden;
    }

    .scroll-infinity_text__list {
        display: flex;
        list-style: none;
        padding: 0
    }

    .scroll-infinity_text__list--left {
        animation: infinity-scroll-left 80s infinite linear 0.5s both;
    }

    .scroll-infinity_text__item--text {
        font-family: var(--Goudy);
        width: calc(320rem / 2);
        font-size: 12rem;
        color: var(--clearblue);
    }

    @media screen and (max-width : 767px) {

        section>.e_about {
            top: 3rem;
        }

        .about_about {
            padding-top: 6rem;
            bottom: 3rem;
        }

        .about_p {
            width: 100%;
            padding-bottom: 0;

            >img {
                width: 100%;
                margin: 0 auto 2rem;
            }

            .about_title {
                position: static;
                width: fit-content;
                margin: 0 auto;
            }
        }

        .strong_point .point_container {
            flex-direction: column;
            padding: 0 2rem 0 0;

            .contents {
                padding: 1rem;

                h3 {
                    margin-bottom: 1rem;
                }
            }
        }

        .top_message .message_content figure {
            clear: left;
            width: 100%;

            .top_img {
                box-shadow: none;
                width: 50%;
                margin: 0 auto 2rem;
                display: block;
            }
        }

        .top_message .message_content {

            h3 {
                padding: 1rem;
                margin: 0 auto 2rem;
            }

            >p {
                padding: 1rem;
            }
        }

        .message_date {
            padding: 1rem;
        }

        .js_subtone_slide {
            display: none;
        }
    }
}

/* *******************************
*******************************
    事業紹介ページ
*******************************
******************************* */

@keyframes Grad {
    0% {
        background-position: 0 0%;
    }

    16.67% {
        background-position: 3000px 0%;
    }

    100% {
        background-position: 3000px 0%;
    }
}

#service {
    h3 {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--blue2);
        width: 28rem;
        height: 5rem;
        text-align: center;
        padding: 1rem 0;
        color: var(--white);
        margin: 2rem auto;
        position: relative;

        &::before,
        &::after {
            content: '';
            width: 3rem;
            height: 0.5rem;
            background-color: var(--lime);
            position: absolute;
            top: 2.5rem;
        }

        &::before {
            left: -3rem;
        }

        &::after {
            right: -3rem;
        }
    }

    .service_content {
        h2 {
            color: var(--white);
        }
    }

    .service_consulting {
        background: url(../images/service_section1_1000_667.png) center center /cover no-repeat;
        margin-top: -19.5rem;
        padding-top: 19.5rem;



        h4 {
            color: var(--white);
            text-align: center;
            padding: 0 0 1.5rem 0;
        }

        .consul_container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
            height: auto;
            padding-bottom: 4rem;

        }

        .consulting_content {
            background-color: var(--blue5);
            width: 33rem;
            height: auto;
            margin: 2rem;
            padding: 2rem;
            box-sizing: border-box;
            display: inline-block;
            justify-content: center;
            opacity: 0;
        }
    }

    .organization {
        background: url(../images/service_section2_1440_900.png) center center /cover no-repeat;
        display: inline-block;
        width: 100%;
        padding: 4rem 0 4rem 0;

        h4 {
            margin-bottom: 1rem;
        }

        .organization_content {
            width: 70%;
            height: auto;
            background-color: var(--gray);
            padding: 1rem;
            margin: 0 2rem 2rem 2rem;
            opacity: 0;
        }

        .right {
            display: block;
            margin: 0 2rem 2rem auto;
            opacity: 0;
        }
    }

    .training {
        background: url(../images/service_section3_1000_667.png) center /cover no-repeat;
        display: inline-block;
        width: 100%;
        padding: 4rem 0 4rem 0;

        h4 {
            margin-bottom: 2rem;
        }

        .training_content {
            width: 70%;
            height: auto;
            background-color: var(--clearblue);
            padding: 2rem;
            margin: 0 2rem 2rem 2rem;
            opacity: 0;
        }
    }

    /*================== 
              Q&A 
     ==================*/

    .q_txt,
    .a_txt {
        font-size: 1rem;
    }

    .qa_box {
        max-width: 62.5rem;
        width: 100%;
        margin: 0 auto 2rem;
        position: relative;
        z-index: 10;
    }

    .qa_box>dl>dt {
        background-color: var(--clearlightblue);
        display: flex;
        align-items: center;
        padding: 2rem 2rem;
        position: relative;
    }

    .qa_box>dl>dt .arrow {
        width: 1.3rem;
        height: 1.3rem;
        position: absolute;
        transform-origin: center;
        top: 50%;
        right: 2rem;
        transform: translateY(-50%);
    }

    .qa_txt_en {
        font-size: 2.5rem;
        line-height: 1.7;
        font-family: var(--Goudy);
        color: var(--blue2);
        margin-right: 1.4rem;
    }

    .qa_box>dl>dd {
        margin: 0;
        background-color: var(--clearlightblue);
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        padding: 0 1.8rem;
        max-height: 0;
        overflow: hidden;
        transition: all 0.8s;
    }

    /* アニメーション後のスタイル */
    .qa_box>dl>dd.is_open {
        max-height: 6.25rem;
        padding: 0.6rem 1.8rem;
    }

    /* ボタンのアニメーション */
    .qa_box>dl>dt.is_open .arrow {
        content: '\f13a';
        font-family: 'Font Awesome 6.5.2 Free';
        right: 1.2rem;
        transform: rotate(180deg);
    }

    /* ====================
            FLOW
    ======================= */
    section.flow_content {
        margin-bottom: 4rem;
    }

    .circle {
        display: grid;
        place-items: center;
        padding-bottom: 2rem;
    }

    .circle>p {
        display: grid;
        place-items: center;
        font-size: 1rem;
        width: 7rem;
        height: 7rem;
        color: var(--white);
        border-radius: 50%;
        background-image: linear-gradient(90deg, var(--blue6) 0%, var(--white) 50%, var(--blue5), var(--blue6));
        background-position: 0% 0%;
        background-size: 3000px 100%;
    }

    .c1>p {
        animation: Grad 12s linear infinite;
        animation-delay: 2s;
    }

    .c2>P {
        animation: Grad 12s linear infinite;
        animation-delay: 6s;
    }

    .c3>P {
        animation: Grad 12s linear infinite;
        animation-delay: 10s;
    }

    .flow_box {
        display: flex;
        margin-left: 2.5rem;

    }

    .flow_item {
        width: 59rem;
        height: auto;
        background-image: linear-gradient(90deg, var(--blue3) 0%, var(--blue6) 50%, var(--blue2), var(--blue3));
        background-position: 0% 0%;
        background-size: 3000px 100%;
        color: var(--white);
        margin: 0 0 2rem 1rem;
        line-height: 2rem;
        padding: 1rem 3rem 2rem 1.5rem;

        li:first-of-type {
            padding-bottom: 0.5rem;
        }
    }

    .b1 {
        animation: Grad 12s linear infinite;
        animation-delay: 3s;
    }

    .b2 {
        animation: Grad 12s linear infinite;
        animation-delay: 7s;
    }

    .b3 {
        animation: Grad 12s linear infinite;
        animation-delay: 10.5s;
    }

    .flow_item:hover {
        animation-play-state: paused;
    }

    .flow_item li:first-of-type {
        padding-bottom: 0.5rem;
    }
}

/*========================================
                      sp用
     ========================================= */

@media screen and (max-width : 767px) {

    #service {
        .wrapper {
            overflow: hidden;
        }

        section.service_content h2 {
            color: var(--black);
        }

        .service_consulting {
            margin-top: 0;
            margin-bottom: 2rem;
            padding-top: 0;
            padding-bottom: 6rem;

            h2 {
                padding-top: 0;
                margin-bottom: 2rem;
            }

            .consulting_content {
                width: 100%;
                margin-left: 2rem;
                margin-right: 2rem;

                &:first-of-type {
                    margin-top: 0;
                }
            }
        }

        .training {
            padding-bottom: 6rem;
            margin-bottom: 4rem;
            background-position: top 50% right -8rem;

            .training_content {
                min-width: 330px;
                margin-left: 2%;
            }
        }

        h3 {
            margin-top: 0;
            margin-bottom: 4rem;
            width: 100%;

            &::before,
            &::after {
                display: none;
            }
        }

        .flow_box {
            margin-left: 0;
        }

        .flow_item {
            padding: 1rem;
        }

        .organization {
            padding-bottom: 6rem;
            margin-bottom: 2rem;
        }

        .organization div.organization_content {
            margin: 2rem auto;
            width: 90%;
        }

        .qa_content {
            margin-bottom: 4rem;
        }

        .qa_box>dl>dt .arrow {
            right: 1rem;
            transform: translateY(-50%);
        }

        .qa_box>dl>dt.is_open .arrow {
            right: 0.3rem;
        }
    }
}

/* *******************************
*******************************
    会社概要ページ
*******************************
******************************* */

#corporation {
    height: auto;
    background-image: url(../images/Corporation_1440_1800.png);
    background-color: rgba(255, 255, 255, 0.5);
    background-blend-mode: lighten;
    background-repeat: no-repeat;
    background-size: cover;

    main {
        padding-bottom: 10rem;
    }

    .gaiyou {
        flex-wrap: wrap;
        width: 100%;
        align-items: flex-start;
        margin-bottom: 2rem;
        max-width: 50rem;
        height: 60rem;
        background-color: var(--white);
        margin: 0 auto;
        font-size: 1rem;
        padding: 6rem 5rem 4rem;

        .flex_container {
            width: 80%;
        }

        dt {
            width: 20%;
        }

        .dd {
            width: 80%;
        }
    }

    /**************************************

    SP

**************************************/

    @media screen and (max-width : 767px) {
        #corporation {
            padding-bottom: 5rem;

            section .e_heading {
                left: 0.4rem;
            }

            .gaiyou {
                padding: 3rem 0.7rem 2rem;

                .flex_container {
                    width: 70%;
                }

                dt {
                    width: 30%;
                }

                .dd {
                    width: 70%;
                }
            }
        }
    }
}

/* *******************************
*******************************
    お知らせページ
*******************************
******************************* */

#news {

    .squares_area {
        display: block;
        width: 30%;
        position: absolute;
        top: 10%;
        left: 50%;
        z-index: -5;
        transform: rotate(180deg);

        .spuare_animate {
            display: block;
            position: absolute;
            width: 7rem;
            height: 7rem;
            transition: 1s;
        }

        .spuare_to0 {
            left: 72%;
            transform: translatex(0%) rotate(20deg);
            background-color: var(--blue5);
        }

        /* 正方形1 画面外配置(JS用) */
        .square_from0 {
            transform: translate(-700%) rotate(-270deg);
        }

        .spuare_to1 {
            left: 50%;
            transform: translatex(0%) rotate(-20deg);
            background-color: var(--lime);
        }

        /* 正方形2 画面外配置(JS用) */
        .square_from1 {
            transform: translate(-700%) rotate(-310deg);
        }

        .spuare_to2 {
            left: 23%;
            transform: translatex(0%) rotate(20deg);
            background-color: var(--blue2);
        }

        /* 正方形3 画面外配置(JS用) */
        .square_from2 {
            transform: translate(-700%) rotate(-270deg);
        }

        .spuare_to3 {
            left: 0;
            transform: translatex(0%) rotate(-20deg);
            background-color: var(--blue6);
        }

        /* 正方形4 画面外配置(JS用) */
        .square_from3 {
            transform: translate(-700%) rotate(-310deg);
        }
    }

    h3 {
        width: 15rem;
        height: auto;
        background-color: var(--blue3);
        text-align: center;
        color: var(--white);
        padding: 0.2rem;
        margin: 0 auto 3rem;
        position: relative;

        &::before {
            position: absolute;
            content: '';
            display: block;
            width: 15rem;
            background-color: var(--clearlightblue);
            transform: rotate(-8deg);
            top: 0.4rem;
            bottom: 0.4rem;
            margin: -0.3rem;
            z-index: -1;
        }
    }

    .news_wrapper,
    .news_list {
        border-bottom: 0.2rem solid var(--white);
        overflow: hidden;
        padding: 1rem 0;

        .news_list {
            display: flex;
            align-items: flex-start;
        }

        dt {
            width: 20%;
        }

        dd {
            width: 80%;
            margin-left: 2rem;
        }
    }

    .news_list {
        opacity: 0;
    }

    .news_wrapper {
        max-width: 850px;
        background-color: var(--clearlightblue);
        margin: 0 auto;
        padding: 4rem;
    }

    .page {
        display: flex;
        justify-content: center;

        li {
            padding: 1rem;
            margin: 2rem;
            font-size: 2rem;

            i {
                margin-left: 1rem;
            }
        }
    }

    img.banner1 {
        display: block;
        margin: 2rem auto;
        width: 60%;
        height: auto;
    }

    /*========================================
                      sp用
     ========================================= */

    @media screen and (max-width : 1079px) {
        .squares_area {
            display: none;
        }
    }

    @media screen and (max-width : 767px) {
        .squares_area {
            display: none;
        }

        .news_wrapper {
            padding: 4rem 2rem;
        }

        .page {
            li {
                font-size: 1rem;
            }
        }
    }
}

/* *******************************
*******************************
    採用情報ページ
*******************************
******************************* */

#recruit {

    .recruit_main_img {
        background: url(../images/recruit_main_600_400.jpeg) center center /cover no-repeat;
        width: 100%;
        aspect-ratio: 3/2;
        display: block;
        margin-top: -19.5rem;
        padding-top: 19.5rem;
    }

    h2 {
        color: var(--white);
    }

    .recruit {
        display: flex;
        margin: 5rem 0 6rem;

        .recruit_img {
            width: 100%;
            height: auto;
            box-sizing: border-box;
        }

        .recruit_title {
            width: 100%;
            height: auto;
            vertical-align: middle;


            h3 {
                text-align: center;
                padding: 5.5rem 0 1rem 0;
            }

            p {
                text-align: center;
                line-height: 5rem;
            }

            >span {
                display: block;
                text-align: center;
                line-height: 5rem;
                font-size: 1.5rem;

                >img {
                    width: 1.5rem;
                    height: auto;
                    margin-bottom: 1.7rem;
                    margin-left: 1rem;
                }
            }
        }

        .graduation {
            background-color: var(--clearblue6);
            transition: 0.3s;

            &:hover {
                background-color: rgba(84, 195, 241, 0.4);
            }
        }

        .career {
            background-color: var(--clearpurple);
            transition: 0.3s;

            &:hover {
                background-color: rgba(121, 107, 175, 0.4);
            }
        }
    }

    .recruit_document {
        background: url(../images/recruit_contact_1000_444.jpeg) center center /cover no-repeat;
        width: 100%;
        margin-top: 4rem;
        padding-bottom: 4rem;

        ul {
            padding-top: 10rem;
        }

        ul li {
            margin-bottom: 3rem;
            width: 47rem;
            height: auto;
            background-color: var(--white);

            a {
                display: flex;
                align-items: center;
                width: 100%;
                padding: 1rem 1.5rem;
                transition: 0.3s;

                &:hover {
                    background-color: rgba(121, 107, 175, 0.3);
                }
            }
        }

        .enlarge {
            width: 45%;
            font-family: var(--Goudy);
            font-size: 60px;
        }

        .enlarge_comment {
            width: 55%;

            .middle_size {
                display: none;
            }
        }
    }
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
　　　　　　　　　　　sp用
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
@media screen and (max-width : 1079px) {

    #recruit {
        .recruit_img img {
            width: 100%;
            height: auto;
        }

        .recruit {
            display: flex;
            flex-direction: column;

            >.recruit_title {
                width: 100%;

                >h3 {
                    padding-top: 1rem;
                }

                >span {
                    font-size: 1rem;

                    img {
                        width: 1rem;
                        height: auto;
                        margin-bottom: 2rem;
                    }
                }
            }
        }

        .recruit_document {
            padding-left: 1rem;
            padding-right: 1rem;

            ul li {
                width: 100%;
            }

            .enlarge {
                width: 55%;
                font-family: var(--Goudy);
                font-size: 60px;
            }

            .enlarge_comment {
                width: 45%;

                .middle_size {
                    display: block;
                }
            }
        }
    }

}

@media screen and (max-width : 767px) {
    #recruit {
        h2 {
            margin-bottom: 2rem;
            padding-top: 0;
            color: var(--black);
        }

        .recruit_main_img {
            margin-top: 0;
        }

        .recruit_document {
            width: 100%;
            height: auto;
            padding: 1.5rem;

            ul {
                padding-top: 1rem;
            }

            ul li {
                width: 100%;
                height: auto;
                margin-bottom: 1rem;

                a {
                    flex-wrap: wrap;
                }
            }

            .enlarge {
                font-size: 40px;
            }

            .enlarge_comment {
                width: 100%;

                .middle_size {
                    display: none;
                }
            }
        }
    }
}

/* *******************************
**************************************
    お見積りページ
**************************************
******************************* */

#estimate {

    .estimate_container {
        max-width: 998px;
        margin: 0 auto;
    }

    .estimate_comment {
        width: fit-content;
        margin: -7rem 0 3.5rem auto;

        p {
            width: fit-content;
            margin-bottom: 1rem;
        }
    }

    form {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 5% 10%;
        margin: 0 0 5rem;
        background-color: var(--clearblue);

        .flex {
            justify-content: normal;

            p {
                margin-left: 0.5rem;
            }
        }

        .heading {
            width: 35%;
        }

        .input_area {
            width: 65%;
            margin-bottom: 2rem;

            input,
            textarea {
                width: 100%;
                padding: 0.2rem;
                border: 1px solid var(--blue3);
                border-radius: 0.2rem;
            }

            #name,
            #email {
                max-width: 26rem;
            }

            #user_name {
                max-width: 12rem;
            }

            #tel {
                max-width: 7rem;
            }

            #member,
            #badget {
                max-width: 4rem;
            }

            textarea {
                height: 8rem;
                margin-bottom: 1rem;
            }
        }

        .box_area {
            width: 100%;
            margin: 0 auto;
            text-align: center;

            .box_num {
                margin-bottom: 1.5rem;
                line-height: 1.8rem;
            }

            a {
                display: inline-block;
                margin-bottom: 0.5rem;
                border-bottom: 1px solid var(--black);
            }

            .box_check {
                justify-content: center;
                margin-bottom: 1rem;
            }
        }

        .submit_area {
            display: inline-block;
            position: relative;
            margin: 0 auto;

            .link_btn {
                cursor: pointer;
            }

            .uncheck {
                position: absolute;
                top: 0;
                height: 0;
                cursor: no-drop;
                display: block;
                width: 100%;
                height: 100%;
                background-color: var(--gray);
                opacity: 0.7;
            }

            .none {
                display: none;
            }
        }
    }

    /**************************************

    ミドルサイズ

**************************************/
    @media screen and (max-width : 1079px) {
        .estimate_comment {
            margin: 0 0 2rem;

            p {
                margin-bottom: 0.5rem;

                .middle_size {
                    display: none;
                }
            }
        }
    }

    /**************************************
    **************************************
    SP
**************************************
**************************************/

    @media screen and (max-width : 767px) {
        form {
            padding: 5% 3%;
        }
    }
}

/* *******************************

    見積依頼送信後ページ

******************************* */

#thanx {
    padding: 0 1rem;
    text-align: center;

    .thanx>p {
        text-align: center;
    }

    .thankyou {
        font-size: 1.5rem;
        margin-top: 10rem;
        margin-bottom: 2rem;
    }

    .link_btn {
        margin-top: 5rem;
        margin-bottom: 10rem;

    }
}