.company {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 100px;
}



.company_imgBx {
    position: relative;
    width: 40%;
    height: 100%;
}
.company_imgBx::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;

    transition: .5s;
    transition-delay: .5s;
}
.company.active .company_imgBx::before {
    width: 0%;
}
.company_imgBx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.company_text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 60%;
    height: 100%;
}
.company_text div p:nth-child(1) {
    background: linear-gradient(180deg, rgba(173,124,85,1) 0%, rgba(219,207,197,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    font-size: 10rem;
    font-weight: 700;
    font-family: "Barlow",sans-serif;
}
.company_text div p:nth-child(2) {

    color: #1c0d00;
    font-size: 8rem;
    font-weight: 700;
    font-family: "Barlow",sans-serif;
    text-transform: uppercase;
}
.company_text div p:nth-child(3) {
    margin-top: 10px;

    color: #fff;
    font-size: 28px;
    font-weight: 700;
    font-family: noto-sans-cjk-jp,sans-serif;

    transition: .5s;
    transition-delay: .5s;
    transform: translateY(50px);
    opacity: 0;
}
.company_text.active div p:nth-child(3) {
    transform: translateY(0px);
    opacity: 1;
}
.company_text div p:nth-child(4) {
    margin: 60px 0;

    color: #fff;
    font-weight: 500;
    font-family: noto-sans-cjk-jp,sans-serif;
    line-height: 1.7;

    transition: .5s;
    transition-delay: 1s;
    transform: translateY(50px);
    opacity: 0;
}
.company_text.active div p:nth-child(4) {
    transform: translateY(0px);
    opacity: 1;
}
.company_text div a {
    position: relative;
    padding: 5px 0;

    border-bottom: solid 2px #fff;

    color: #fff;
    text-decoration: none;

    transition: .5s;
    transition-delay: 1s;
    transform: translateY(50px);
    opacity: 0;
}
.company_text.active div a {
    transform: translateY(0px);
    opacity: 1;
}
.company_text div a::before {
    content: '→';
    position: absolute;
    top: 0;
    right: -40px;
    width: 40px;
    height: 100%;

    color: #fff;
    text-align: center;
    line-height: 30px;

    transition: .5s;
}
.company_text div a:hover::before {
    transform: translateX(10px);
}
.company_text div a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0%;
    height: 2px;

    background: rgb(255, 230, 232);
}
.company_text div a:hover::after {
    animation: detailA 1s linear forwards;
}





@media screen and (max-width: 900px) {
    .company {
        height: auto;
        padding-bottom: 120px;
    }



    .company_imgBx {
        position: absolute;
        top: 225px;
        right: 0;
        width: 80%;
        height: 600px;
    }



    .company_text {
        z-index: 10;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        width: 70%;
        height: 100%;
        margin-left: 50px;
    }
    .company_text div p:nth-child(1) {
        font-size: 6rem;
    }
    .company_text div p:nth-child(2) {
        font-size: 5rem;
    }
    .company_text div p:nth-child(3) {
        margin-bottom: 690px;

        font-size: 1.8rem;
    }
}





@media screen and (max-width:740px) {
    .company_imgBx {
        position: absolute;
        top: 230px;
        right: 0;
        width: 80%;
        height: 600px;
    }
}





@media screen and (max-width:500px) {
    .company_imgBx {
        top: 150px;
    }


    
    .company_text div p:nth-child(1) {
        font-size: 4.2rem;
    }
    .company_text div p:nth-child(2) {
        font-size: 4rem;
    }
    .company_text div p:nth-child(3) {
        margin-top: 0;
        font-size: 1.4rem;
    }
}
