@charset "utf-8";

/*============================
私たちの働き方
============================*/

#workstyle .inner {
    background: #fff;
    border-radius: 10px;
    padding: 80px 60px;
    position: relative;
}

#workstyle .inner::before {
    content: "";
    width: 420px;
    height: 190px;
    background: url(../images/truck_photo.png) no-repeat bottom right;
    background-size: 100%;
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    /* 初期状態：透明 ＋ 下に30pxズラしておく */
    opacity: 0;
    transform: translateY(30px);
}

/* アニメーション開始 */
#workstyle.is-animated .inner::before {
    /* アニメーション名 / 再生時間 / イージング / 遅延1秒 / 終了状態キープ */
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻る */
  }
}

#workstyle .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

#workstyle ul {
    width: 490px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 20px;
}

#workstyle ul li {
    background: #f2f2f2;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
}

#workstyle ul li span {
    padding: 10px 10px 10px 15px;

}

#workstyle ul li span.time {
    width: 140px;
    color: #fff;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#workstyle ul li span.detail {
    flex: 1;
}

#workstyle .photo {
    width: 420px;
}

#workstyle .photo img {
    height: 100%;
    object-position: center;
    object-fit: cover;
}

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

    #workstyle .inner {
        padding: 30px;
    }

    #workstyle .inner::before {
        width: 210px;
        height: 95px;
        z-index: 10;
    }

    #workstyle .flex {
        gap: 10px;
    }

    #workstyle ul {
        width: 100%;
        font-size: 15px;
    }

    #workstyle ul li span.time {
        width: 110px;
    }

    #workstyle ul li span.detail {
        flex: 1;
    }

    #workstyle .photo {
        width: 100%;
        height: 0;
        padding-top: 80%;
        position: relative;
    }

    #workstyle .photo img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
    }
}

/*============================
キャリアアップ
============================*/

#career .flex {
    align-items: flex-end;
    margin-top: -65px;
}

#career dl {
    width: 346px;
    background: #b6cff5;
    overflow: hidden;
    border-top-left-radius: 10px;
    display: flex;
    flex-direction: column;
    /*イラスト用*/
    position: relative;
}

#career dl:last-child {
    border-top-right-radius: 10px;
}

#career dl dt {
    background: #1c365c;
    color: #fff;
    line-height: 59px;
    padding: 0 35px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #f2f2f2;
}

#career dl dt span {
    font-size: 22px;
    padding-right: 3px;
}

#career dl dd {
    padding: 20px 30px;
    font-size: 14px;
}

#career dl dd ul {
    background: #f2f2f2;
    padding: 15px;
    border-radius: 10px;
    width: 190px;
    margin-top: 20px;
}

#career dl dd ul li {
    padding-left: 15px;
    position: relative;
}

#career dl dd ul li::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #1c365c;
    display: block;
    border-radius: 50%;
    position: absolute;
    top: 9px;
    left: 0;
}

#career dl.step1 {
    height: 350px;
    border-bottom-left-radius: 10px;
}

#career dl.step1 dd::before {
    content: "";
    width: 80px;
    height: 116px;
    background: url(../images/illust_1.png) no-repeat center center;
    background-size: 100%;
    display: block;
    position: absolute;
    right: 30px;
    bottom: 0;
}

#career dl.step2 {
    height: 410px;
}

#career dl.step2 dd::before {
    content: "";
    width: 76px;
    height: 130px;
    background: url(../images/illust_2.png) no-repeat center center;
    background-size: 100%;
    display: block;
    position: absolute;
    right: 30px;
    bottom: 20px;
}

#career dl.step3 {
    height: 470px;
    border-bottom-right-radius: 10px;
}

#career dl.step3 dd::before {
    content: "";
    width: 76px;
    height: 140px;
    background: url(../images/illust_3.png) no-repeat center center;
    background-size: 100%;
    display: block;
    position: absolute;
    right: 30px;
    bottom: 40px;
}

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

    #career .flex {
        align-items: flex-start;
        margin-top: 0;
        gap: 20px;
    }

    #career dl {
        width: 100%;
        border-radius: 10px;
    }

    #career dl dt {
        line-height: 50px;
        padding: 0px 30px;
        font-size: 18px;
    }

    #career dl dt span {
        font-size: 20px;
    }

    #career dl dd {
        padding: 20px 30px 125px;
        font-size: 14px;
    }

    #career dl.step2 dd p,
    #career dl.step3 dd p {
        border-bottom: 1px solid #222;
        padding-bottom: 20px;
    }

    #career dl dd ul {
        width: 100%;
        margin-top: 10px;
    }

    #career dl.step1 {
        height: auto;
    }

    #career dl.step1 dd::before {
        content: "";
        width: 67px;
        height: 100px;
        background: url(../images/illust_1.png) no-repeat center center;
        background-size: 100%;
        display: block;
        position: absolute;
        right: 0;
        left: 0;
        bottom: 10px;
        margin: auto;
    }

    #career dl.step2 {
        height: auto;
    }

    #career dl.step2 dd::before {
        content: "";
        width: 59px;
        height: 100px;
        background: url(../images/illust_2.png) no-repeat center center;
        background-size: 100%;
        display: block;
        position: absolute;
        right: 0;
        left: 0;
        bottom: 10px;
        margin: auto;
    }

    #career dl.step3 {
        height: auto;
    }

    #career dl.step3 dd::before {
        content: "";
        width: 55px;
        height: 100px;
        background: url(../images/illust_3.png) no-repeat center center;
        background-size: 100%;
        display: block;
        position: absolute;
        right: 0;
        left: 0;
        bottom: 10px;
        margin: auto;
    }
}
