/*-------------------------
  components - セクション間の欧文あしらい
-------------------------*/
.sec_contents {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 6.5rem;

   & .obj-txtline {
        display: flex;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        height: auto;
        margin-top: 2.5vw;
        margin-bottom: 5.5vw;

        & img {
            width: 100vw;
            height: auto;
            margin: 0 auto;
        }
    }
}
@media screen and (max-width: 767px) {
    .sec_contents {
        & .obj-txtline {
            height: 100%;
            min-height: 6rem;
            margin-bottom: 3rem;
            overflow: hidden;

            & img {
                transform: scale(2.35);
            }
        }
    }
}

/*-------------------------
  section - 各セクションごとのスタイル
-------------------------*/

/* 仕事の特徴
-------------------------*/
/* swiper - 特徴2のスライダー */

.work_features {
    position: relative;
    width: 100%;    

    & .work_features_item {
        display: grid;
        align-items: center;
        grid-template-columns: 1fr 1fr;
        gap: 3.125vw;
        margin-bottom: 5.25vw;

        &:nth-child(even) {
            & .img-area {
                order: 2;
            }
            & .txt-area {
                order: 1;
            }
        }

        & .img-area {
            position: relative;
            width: 100%;
            height: auto;
        }

        & .txt-area {
            & .ttl_mid {
                margin-bottom: 5rem;
                
                & .ttl_mid-sub{
                    margin-bottom: 2rem;
                }
                & .ttl_mid-main {
                    line-height: 1;

                    & span {
                        display: block;
                        margin-bottom: 1.35rem;
                    }
                }
            }
            & .txt {
                & p {
                    margin-bottom: 3.25rem;
                    font-size: 1.8rem;
                }
            }
        }

        &.mission {
            & .img-area {
                &::before {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    display: block;
                    width: 7.7vw;
                    height: 5.97vw;
                    background: url(../img/work/img-vegetable_onion.svg) no-repeat center center;
                    background-size: contain;
                    transform: translate(75%,-65%);
                }
            }

            & .txt-area {
                & .ttl_mid {
                    position: relative;

                    &::before {
                        content: "";
                        position: absolute;
                        top: 0;
                        right: 7vw;
                        display: block;
                        width: 5.5vw;
                        height: 7.08vw;
                        background: url(../img/work/img-vegetable_parsley.svg) no-repeat center center;
                        background-size: contain;
                        transform: translate(-50%,-50%);
                    }

                    &::after {
                        content: "";
                        position: absolute;
                        top: 0;
                        right: 0;
                        display: block;
                        width: 9.375vw;
                        height: 11.25vw;
                        background: url(../img/work/img-vegetable_carrot.svg) no-repeat center center;
                        background-size: contain;
                        transform: translate(0,25%);
                    }

                    & .ttl_mid-sub {
                        &::after {
                            content: "";
                            display: block;
                        }
                    }
                }
            }
        }

        &.iso {
            & .img-area {
                min-width: 0;

                & img {
                    width: 100%;
                    border-radius: 24px;
                }
            }

            & .txt-area {
                min-width: 0;

                & .ttl_mid {
                    position: relative;

                    &::before {
                        content: "";
                        position: absolute;
                        top: 0;
                        right: 7vw;
                        display: block;
                        width: 5.5vw;
                        height: 7.08vw;
                        background: url(../img/work/img-iso.svg) no-repeat center center;
                        background-size: contain;
                        transform: translate(-50%,-50%);
                    }

                    &::after {
                        content: "";
                        position: absolute;
                        top: 0;
                        right: 0;
                        display: block;
                        width: 9.375vw;
                        height: 11.25vw;
                        background: url(../img/work/img-iso.svg) no-repeat center center;
                        background-size: contain;
                        transform: translate(0,25%);
                    }

                    & .ttl_mid-sub {
                        &::after {
                            content: "";
                            display: block;
                        }
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 1023px) {
    .work_features {
        & .work_features_item {
            grid-template-columns: 1fr;
            gap: 3rem;

            &:nth-child(even) {
                & .img-area {
                    order: 1;
                }
                & .txt-area {
                    order: 2;
                }
            }
            &.mission {
                & .txt-area {
                    & .ttl_mid {
                        &::before,
                        &::after {
                            content: none;
                        }
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 1023px) and (min-width: 769px) {
    .work_features {
        & .work_features_item {
            & .img-area {
                margin-bottom: 1.85rem;
                padding: 0 10rem 0 7.5rem;
            }
            & .txt-area {
                & .ttl_mid {
                    margin-bottom: 1.35rem;

                    & .ttl_mid-sub {
                        margin-bottom: 1rem;
                    }

                    & .ttl_mid-main {
                        & span {
                            display: inline-block;
                            font-size: 2.2rem;
                        }
                    } 
                }
                & .txt {
                    & p {
                        margin-bottom: 1rem;
                    }
                }
            }

            &.mission {
                & .img-area {
                    &::before {
                        content: none;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 768px) {
    .work_features {
        & .work_features_item {
            & .txt-area {
                & .ttl_mid {
                    margin-bottom: 2.5rem;
                    text-align: center;

                    & .ttl_mid-sub {
                        margin-bottom: 1.25rem;
                    }

                    & .ttl_mid-main {
                        & span {
                            font-size: 2.4rem;
                        }
                    }
                }
                & .txt {
                    & p {
                        margin-bottom: 2rem;
                        font-size: 1.5rem;
                    }
                }
            }

            &.mission {
                & .img-area {
                    &::before {
                        width: 6.3rem;
                        height: 4.8rem;
                        transform: none;
                    }
                }
            }
        }
    }
}

/* キャリアの特徴
-------------------------*/
.work_career {
    & .work_career_item {
        margin-bottom: 5.25vw;

        & .txt-area {
            & .ttl_mid {
                & .ttl_mid-sub{
                    margin-bottom: 2rem;
                }
                & .ttl_mid-main {
                    line-height: 1;

                    & span {
                        display: block;
                        margin-bottom: 1.35rem;
                    }
                }
            }
            & .txt {
                & p {
                    font-size: 1.8rem;
                }
            }
        }

        & .img-area {
            width: 100%;
            height: auto;
        }

        & .list-area {
            width: 100%;
            max-width: 84rem;
            margin: 0 auto;
            border-bottom: 1px solid var(--color-primary);

            & .list_ttl {
                display: flex;
                align-items: center;
                justify-content: space-between;
                color: var(--color-txt-primary);
                font-size: 2.2rem;
                font-weight: 500;
                line-height: 1;

                & .txt {
                    flex-shrink: 1;
                    padding: 1rem 4rem;
                    box-sizing: border-box;
                }

                & .line {
                    display: block;
                    flex-grow: 2;
                    width: calc(45% - 105px);
                    height: 1px;
                    background-color: var(--color-primary);

                    &.left {
                        position: relative;

                        &::after {
                            content: "";
                            position: absolute;
                            right: -15.5px;
                            top: 50%;
                            display: block;
                            width: 32px;
                            height: 1px;
                            background-color: var(--color-primary);
                            transform: rotate(-55deg);
                        }
                    }
                    &.right {
                        position: relative;

                        &::after {
                            content: "";
                            position: absolute;
                            left: -15.5px;
                            top: 50%;
                            display: block;
                            width: 32px;
                            height: 1px;
                            background-color: var(--color-primary);
                            transform: rotate(-55deg);
                        }
                    }
                }
            }

            & .list-items {
                width: 100%;
                max-width: 83rem;
                margin: 1rem 0 2rem;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                justify-content: center;
                row-gap: 1.5rem;

                & li {
                    &::after {
                        content: "/";
                        display: inline-block;
                        padding: 0 1rem;
                        font-size: 1.8rem;
                        color: var(--color-txt);
                        line-height: 1;
                    }

                    &:last-child {
                        &::after {
                            content: none;
                        }
                    }
                }
            }
        }

        &.certification {
            padding: 5rem;
            border-radius: 24px;
            border: 3px solid #FFF;
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(2px);
            text-align: center;

            & .txt-area {
                margin-bottom: 3.5rem;
            }
        }

        &.career-path {
            position: relative;

            & .txt-area {
                & .ttl_mid {
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 500;
                }
            }
        }
    }   
}
@media screen and (max-width: 1023px){
    .work_career {
        & .work_career_item {
            &.career-path {
                & .img-area {
                    padding-top: 3.5rem;
                }
            }
        }
        
    }
}
@media screen and (max-width: 768px) {
    .work_career {
        & .work_career_item {
            & .txt-area {
                text-align: center;

                & .ttl_mid {
                    margin-bottom: 2.5rem;

                    & .ttl_mid-sub {
                        margin-bottom: 1.25rem;
                    }

                    & .ttl_mid-main {
                        & span {
                            font-size: 2.4rem;
                        }
                    }
                }
                & .txt {
                    text-align: left;

                    & p {
                        font-size: 1.5rem;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 767px) {
    .work_career {
        overflow-x: hidden;

        & .work_career_item {
            & .txt-area {
                & .txt {
                    & p {
                        display: inline;
                    }
                }
            }
            & .list-area {
                & .list_ttl {
                    & .txt {
                        padding: 1rem 2rem;
                        font-size: 1.8rem;
                    }
                }
                & .list-items {
                    display: grid;
                    grid-template-columns: repeat(2, 1fr);
                    gap: 1.5rem 1rem;
                    align-items: flex-start;
                    justify-content: flex-start;
                    text-align: left;

                    & li {
                        margin-left: 1rem;
                        padding-left: 0.25rem;
                        font-size: 1.4rem;
                        line-height: 1.5;
                        list-style: "・";

                        &::after {
                           content: none;
                        }
                    }
                }
            }
            &.certification {
                padding: 3rem 1.6rem;
            }
            &.career-path {
                position: relative;
    
                & .txt-area {
                    & .ttl_mid {
                        position: static;
                        margin-bottom: 0;
                    }
                }
                & .img-area {
                    width: 100vw;
                    height: auto;
                    margin-left: -1.6rem;
                    padding: 0 1.6rem;
                    overflow-x: scroll;
                    scrollbar-width: 10px;
                    scrollbar-track-color: transparent;
                    scrollbar-color: var(--color-accent) transparent;
                    &::-webkit-scrollbar {
                        width: 10px;
                        height: 10px;
                    }
                    &::-webkit-scrollbar-thumb {
                        background-color: var(--color-accent);
                        border-radius: 10px;
                    }
                    &::-webkit-scrollbar-track {
                        background-color: transparent;
                    }

                    & img {
                        max-width: none;
                        width: 145vw;
                        height: auto;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 389px) {
    .work_career {
        & .work_career_item {
            & .txt-area {
                & .ttl_mid {
                    & .ttl_mid-sub {
                        font-size: clamp(1.45rem, 1.5rem, 1.55rem);
                    }
                    & .ttl_mid-main {
                        font-size: clamp(2.2rem, 2.4rem, 2.6rem);
                    }
                }
            }
        }
    }
}

/* はたらく環境
-------------------------*/
/* keyframe - 画像の横スライダー */
@keyframes slider {
    0% {
      transform: translateX(0%); 
    }
    100% {
        transform: translateX(-50%); 
    }
}

.work_culture {
    width: 100%;
    
    & .txt-area {
        margin-bottom: 4.5rem;
        text-align: center;

        & .txt {
            & p {
                font-size: 1.8rem;
            }
        }
    }
    & .img-area {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto 4.5rem;
        overflow-x: hidden;

        & .carousel {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 18.6px;
            width: max-content;
            animation: slider 30s linear infinite;

            & img {
                max-height: 22rem;
                object-fit: cover;
                flex-shrink: 0;
            }
        }
    }
    & .caption {
        text-align: center;
        & p {
            display: inline-block;
            font-size: 1.8rem;
        }
    }
}

@media screen and (max-width: 1023px) {
    .work_culture {
        & .txt-area {
            & .ttl_mid {
                margin-bottom: 1.35rem;

                & .ttl_mid-sub {
                    margin-bottom: 1rem;
                }

                & .ttl_mid-main {
                    & span {
                        display: inline-block;
                        font-size: 2.2rem;
                    }
                } 
            }
            & .txt {
                & p {
                    margin-bottom: 1.5rem;
                  & span {
                    display: block;
                  }
                }
            }
        }
    }
}

@media screen and (max-width: 767px) {
    .work_culture {
        & .txt-area {
            margin-bottom: 2.5rem;

            & .ttl_mid {
                margin-bottom: 1.35rem;

                & .ttl_mid-sub {
                    margin-bottom: 1rem;
                }

                & .ttl_mid-main {
                    & span {
                        font-size: 2.4rem;
                    }
                } 
            }
            & .txt {
                text-align: left;
                & p {
                    font-size: 1.5rem;
                    display: inline;

                  & span {
                    display: inline;
                  }
                }
            }
        }
        & .img-area {
            margin-bottom: 3rem;

            & .carousel {
                & img {
                    max-height: 18rem;
                }
            }
        }
        & .caption {
            & p {
                display: block;
                margin-bottom: 0.35rem;
                font-size: 1.5rem;
            }
        }
    }
}

