@charset "utf-8";

/*============================
採用メッセージ
============================*/

#flow .lead {
    align-items: center;
    margin-bottom: 60px;
}

#flow .lead img {
    width: 173px;
    padding-right: 20px;
}

#flow section {
    position: relative;
}

#flow section:not(:last-child) {
    margin-bottom: 60px;
}

#flow h2 {
    margin-bottom: 40px;
    font-size: 24px;
}

#flow h2 .sub {
    font-size: 20px;
    background: #fff;
    padding: 0 20px;
    display: inline-block;
    margin-left: 20px;
    border-radius: 20px;
}

#flow h2 .sub::before {
    content: "";
    background: url(../images/clock.png)no-repeat center center;
    background-size: 100%;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 6px;
}

#flow h2 .sub .line {
    color: #59b55b;
}

#flow .lead p {
    flex: 1;
    font-size: 18px;
}

#flow section {
    padding: 60px;
    border-radius: 10px;
}

#flow .box {
    background: #fff;
    display: flex;
    border-radius: 10px;
}

#flow .box:not(:last-child) {
    margin-bottom: 60px;
    position: relative;
}

#flow .box:not(:last-child)::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 14px solid transparent;
    border-left: 14px solid transparent;
    border-top: 20px solid #59b55b;
    border-bottom: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -40px;
    margin: auto;
}

#flow .box .photo {
    width: 440px;
    border-radius: 10px 0 0 10px;
    position: relative;
}

#flow .box .photo p {
    width: 140px;
    background: #59b55b;
    line-height: 50px;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    border-bottom-right-radius: 10px;
    text-align: center;
    font-size: 26px;
}

#flow .box .photo .eng {
    font-size: 30px;
}

#flow .box .text {
    padding: 40px;
    flex: 1;
}

#flow section .text p {
    font-size: 14px;
}

#flow .box .text p.title {
    font-size: 18px;
    font-weight: 700;
}

#flow section.early_morning {
    background: #e4f0fb;
}

#flow section.early_morning::after {
    content: "";
    background: url(../../images/common/early_morning_illust.png)no-repeat center center;
    background-size: 100%;
    width: 154px;
    height: 64px;
    display: block;
    position: absolute;
    right: 70px;
    top: 76px;
}

#flow section.daytime {
    background: #fdf3f8;
}

#flow section.daytime::after {
    content: "";
    background: url(../../images/common/daytime_illust.png)no-repeat center center;
    background-size: 100%;
    width: 167px;
    height: 64px;
    display: block;
    position: absolute;
    right: 60px;
    top: 45px;
}

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

    #flow .lead {
        display: block;
        margin-bottom: 30px;
    }

    #flow .lead img {
        width: 173px;
        margin: auto;
        padding-right: 0;
        margin-bottom: 15px;
    }

    #flow section:not(:last-child) {
        margin-bottom: 30px;
    }

    #flow h2 {
        margin-bottom: 20px;
        font-size: 20px;
        position: relative;
        z-index: 10;
    }

    #flow h2 .sub {
        font-size: 15px;
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }

    #flow h2 .sub::before {
        width: 15px;
        height: 15px;
        margin-bottom: -2px;
    }

    #flow .lead p {
        font-size: 16px;
    }

    #flow section {
        padding: 30px;
    }

    #flow .box {
        flex-wrap: wrap;
    }

    #flow .box:not(:last-child) {
        margin-bottom: 34px;
    }

    #flow .box:not(:last-child)::before {
        border-right: 10px solid transparent;
        border-left: 10px solid transparent;
        border-top: 14px solid #59b55b;
        bottom: -24px;
    }

    #flow .box .photo {
        width: 100%;
        border-radius: 10px 10px 0 0;
    }

    #flow .box .photo p {
        width: 120px;
        line-height: 36px;
        font-size: 22px;
        top: auto;
        bottom: 0;
        border-radius: 0 10px 0 0;
    }

    #flow .box .photo .eng {
        font-size: 24px;
    }

    #flow .box .text {
        padding: 20px 30px;
    }

    #flow .box .text p.title {
        font-size: 16px;
    }

    #flow section.early_morning::after {
        width: 107px;
        height: 40px;
        right: 40px;
        top: 30px;
    }

    #flow section.daytime::after {
        width: 116px;
        height: 45px;
        right: 30px;
        top: 10px;
    }
}
