@charset "utf-8";
.content .work-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.content .work-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.2);
    padding: 50px 30px 100px;
    margin-bottom: 100px;
}

/* left */
.content .work-content .work-img {
    flex-basis: 48%;
    position: relative;
}
.content .work-content:nth-child(2n) .work-img {
    order: 2;
}

.content .work-content .work-img > div {
    position: absolute;
    width: 100%;
}
.content .work-content .work-img > div:hover::after {
    background-position: center bottom;
}
.content .work-content .work-img > div img {
    width: 100%;
}

.content .work-content .work-img .pc {
    width: 85%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}
.content .work-content .work-img .pc::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 19px;
    display: block;
    width: 93%;
    /* height: 62%; */
    aspect-ratio: 1/0.56;
    /* overflow: hidden; */
    background: url(../images/preview.jpg) no-repeat;
    background-size: cover;
    background-position: center top;
    transition: 5s;
}
.content .work-content .work-img .pc img {}

.content .work-content .work-img .tablet {
    width: 35%;
    right: 0;
    bottom: 0;
}
.content .work-content .work-img .tablet::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 23px;
    display: block;
    width: 87%;
    /* height: 81%; */
    aspect-ratio: 1/1.26;
    background: url(../images/preview.jpg) no-repeat;
    background-size: cover;
    background-position: center top;
    transition: 5s;
}
.content .work-content .work-img .tablet img {}

.content .work-content .work-img .mobile {
    width: 23%;
    left: 0;
    bottom: 0;
}
.content .work-content .work-img .mobile::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    display: block;
    width: 90%;
    /* height: 90%; */
    aspect-ratio: 1/2.15;
    background: url(../images/preview.jpg) no-repeat;
    background-size: cover;
    border-radius: 5px;
    transition: 5s;
}
.content .work-content .work-img .mobile img {}

/* right */
.content .work-content .work-desc {
    flex-basis: 49%;
}
.content .work-content:nth-child(2n) .work-desc {
    order: 1;
}

.content .work-content .work-desc h4 {
    font-size: 2em;
    padding: 10px 0;
}
.content .work-content .work-desc p {
    font-size: 1em;
    padding: 10px 0;
}
.content .work-content .work-desc p span {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: -5px;
    /* inline요소가 들어간 것은 vertical-align으로 평행을 맞춘다 */
}
.content .work-content .work-desc p span:nth-child(1) {
    background-color: skyblue;
}
.content .work-content .work-desc p span:nth-child(2) {
    background-color: coral;
    margin: 0 10px;
}
.content .work-content .work-desc p span:nth-child(3) {
    background-color: orange;
}
/* button */
.content .work-content .work-desc .btn-wrap {}
.content .work-content .work-desc .btn-wrap ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}
.content .work-content .work-desc .btn-wrap ul li {
    border: 1px solid #ddd;
    padding: 2% 6%;
    background-color: #fff;
    text-transform: uppercase;
    border-radius: 5px;
    transition: 0.5s;
}
.content .work-content .work-desc .btn-wrap ul li:hover {
    box-shadow: -120px 0 0 0 #ffa31b inset, 120px 0 0 0 #ffa31b inset;
}
.content .work-content .work-desc .btn-wrap ul li a {
    display: block;
}
.content .work-content .work-desc .btn-wrap ul li:hover a {
    color: #fff;
}

.footer {
    position: relative;
}

/* ======== 반응형 ======== */
@media screen and (max-width: 1240px) {
    .content .work-wrap {
        width: 96%;
    }
    /* left */
    .content .work-content .work-img {
        flex-basis: 100%;
        height: 500px;
    }
    .content .work-content:nth-child(2n) .work-img {
        order: 1;
    }
    .content .work-content .work-img .pc {
        width: 550px;
    }
    .content .work-content .work-img .tablet {
        width: 184px;
    }
.content .work-content .work-img .mobile {
        width: 126px;
    }
    /* right */
    .content .work-content .work-desc {
        flex-basis: 100%;
        padding-top: 40px;
    }
    .content .work-content:nth-child(2n) .work-desc {
        order: 2;
    }
}
@media screen and (max-width: 640px) {
    .content .work-content {
        padding: 50px 30px 35px;
        margin-bottom: 25px;
    }
    /* left */
    .content .work-content .work-img {
        /* flex-basis: 70.3vh; */
        aspect-ratio: 1/0.85;
        height: auto;
    }
    .content .work-content .work-img .pc {
        width: 100%;
    }
    .content .work-content .work-img .tablet {
        width: 35%;
    }
    .content .work-content .work-img .mobile {
        width: 20%;
    }
    .content .work-content .work-img .pc::after {
        left: 3.8%;
        top: 4.7%;
        width: 92.5%;        
    }
    .content .work-content .work-img .tablet::after {
        left: 8%;
        top: 8%;
    }
    .content .work-content .work-img .mobile::after {
        left: 5.5%;
        top: 2.5%;
        height: 92.5%;
    }
    .content .work-content .work-desc h4 {
        font-size: 1.5em;
        padding: 5px 0;
    }
    .content .work-content .work-desc p {
        font-size: 0.8em;
        padding: 5px 0;
        line-height: 1.6;
    }
    /* button */
    .content .work-content .work-desc .btn-wrap ul {
        gap: 10px;
        margin-top: 20px;
    }
    .content .work-content .work-desc .btn-wrap ul li {
        padding: 2% 0%;
        flex-basis: 30%;
        font-size: 0.6em;
        text-align: center;
    }
}