/* 
about.css
*/

/* ==============================
about
============================== */

.about .wrapper {
    padding-top: 60px;
    padding-bottom: 0;
}

.about__content {
    line-height: var(--line-height-sxl);

    p {
        margin-top: 30px;
    }
}

.about__img {
    height: 240px;
    margin-top: 50px;
    overflow: hidden;
    border-radius: 5px;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (width >= 1040px) {
    .about {
        .wrapper {
            display: flex;
            flex-direction: row-reverse;
            justify-content: space-between;
            max-width: 1040px;
            padding: 60px 20px 0;
        }

        .about__left {
            width: 60%;
        }

        .section__head {
            h2 {
                font-size: var(--font-size-x-large);
            }

            span:nth-of-type(1) {
                display: none;
            }

            span:nth-of-type(2) {
                flex: 1;
                width: max-content;
            }
        }

        .about__content {
            align-items: end;
            margin-top: 30px;
            margin-left: 20px;
            line-height: var(--line-height-xl);

            p:nth-of-type(1) {
                margin: 0;
            }

            p:nth-of-type(3) {
                margin: 0;
            }
        }

        .about__img {
            width:  35%;
            height: auto;
            margin-top: 0;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
        }
    }
}


/* ==============================
arimatu
============================== */
.arimatu__content {
    line-height: var(--line-height-sxl);

    p {
        margin-top: 30px;
    }
}

.arimatu__img {
    height: 562px;
    margin-top: 50px;
    overflow: hidden;
    border-radius: 5px;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.arimatu__right p {
    margin-top: 10px;
    text-align: right;
}

@media (width >= 1040px) {
    .arimatu {
        .wrapper {
            display: flex;
            max-width: 1040px;
            margin-top: 50px;
            padding: 0 20px 60px;
        }

        .arimatu__left {
            width: 60%;
        }

        .section__head {
            h2 {
                font-size: var(--font-size-x-large);
            }

            span:nth-of-type(1) {
                display: none;
            }

            span:nth-of-type(2) {
                flex: 1;
                width: max-content;
            }
        }

        .arimatu__content {
            margin-top: 30px;
            margin-right: 30px;
            margin-left: 20px;
            line-height: var(--line-height-xxl);

            p:nth-of-type(1) {
                margin: 0;
            }
        }

        .arimatu__right {
            display: flex;
            flex-direction: column;
            width: 40%;
            height: auto;

            p {
                text-align: left;
            }
        }

        .arimatu__img {
            flex: 1;
            height: auto;
            margin-top: 0;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
        }
    }
}

/* =============================
flow
============================== */
.flow__content {
    display: grid;
    grid-template-columns: 1fr;
}

.flow__item-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

.item__head {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: var(--font-size-medium);
    white-space: nowrap;
}

.flow__item:nth-of-type(1) .item__head::before {
    display: block;
    width: 15px;
    height: 15px;
    background-color: var(--color-gradient-dark);
    transform: rotate(45deg);
    content: '';
}

.item__image {
    overflow: hidden;
    border-radius: 5px;
}

.item__text {
    line-height: var(--line-height-sxl);
}

.item__head-line {
    display: grid;
    gap: 1px;
    transform: rotate(45deg);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;

    span {
        width: 12px;
        height: 12px;
    }
}

.flow__item:nth-of-type(2) .item__head-line {
    span:nth-of-type(1),
    span:nth-of-type(4) {
        background-color: var(--color-gradient-dark);
    }
}

.flow__item:nth-of-type(3) .item__head-line {
    span:nth-of-type(1),
    span:nth-of-type(2),
    span:nth-of-type(3) {
        background-color: var(--color-gradient-dark);
    }
}

.flow__item:nth-of-type(4) .item__head-line {
    span:nth-of-type(1),
    span:nth-of-type(2),
    span:nth-of-type(3),
    span:nth-of-type(4) {
        background-color: var(--color-gradient-dark);
    }
}

@media (width >= 560px) {
    .wrapper {
        padding: 60px 20px;
    }

    .flow__content {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        column-gap: 50px;
    }

    .flow__item {
        width: calc((100% - 50px) /2 );
    }
}

@media (width >= 768px) {
    .flow__content {
        gap: 50px;
        margin-top: 50px;
    }
}

@media (width >= 1040px) {
    .flow {
        .wrapper {
            max-width: 1040px;
            padding: 60px 20px;
        }

        .flow__content {
            display: flex;
            flex-direction: column;
            gap: 50px;
            margin-top: 50px;
        }

        .flow__item {
            display: flex;
            gap: 20px;
            width: auto;
            height: 250px;
        }


        .flow__item:nth-of-type(2) {
            padding-left: 60px;
        }

        .flow__item:nth-of-type(3) {
            padding-left: 120px;
        }

        .flow__item:nth-of-type(4) {
            padding-left: 180px;
        }

        .flow__image {
            position: relative;
            min-width: 40%;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
        }

        .flow__image::before {
            position: absolute;
            top: 0;
            left: 10px;
            z-index: 1;
            width: 100%;
            height: 100%;
            background: linear-gradient(270deg, #FFF 5%, rgb(255 255 255 / 0%) 40%);
            content: '';
        }

        .flow__item-inner {
            flex:1;
            justify-content:center;
            margin-top: 0;
        }

        .item__head {
            line-height: var(--line-height-xl);
        }

        .item__text {
            line-height: var(--line-height-xl);
        }
    }
}

/* =============================
textiles
============================== */

.textiles {
    .textiles__content {
        display: grid;
        gap: 50px;
        margin-top: 50px;
        grid-template-columns: 1fr;
    }
    
    
    .item__text {
        display: flex;
        justify-content: center;
        margin-top: 10px;
        font-size: var(--font-size-medium);
        line-height: var(--line-height-xl);
    }

    @media (width >= 560px) {
        .textiles__content {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (width >= 768px) {
        .wrapper {
            max-width: 1040px;
        }
    }

    @media (width >= 960px) {
        .textiles__content {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}
