@charset "UTF-8";
.header{
    background-color: rgba(255, 248, 239, 0.5);
}

section{
    padding: 100px 0;
}

.section__title{
    padding-top: 50px;
}

@media screen and (max-width:767px) {
    .nav{
        background-color: rgba(255, 248, 239, 0.5);
        padding: 10px 5px;
        right: 10px;
        border-radius: 0 0 100px 100px;
        
        position: fixed;
        top: 70px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        
        transform: translateX(130%);
    }
}
/* ================================================= works 2 ========== */
.works{
    background-color: #FFF8EF;
    margin-top: 0;
}

.works_tab_box{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px auto 0;
    width: 100%;
    max-width: 800px;
}

.works_tab{
    width: 150px;
    height: 70px;
    background-color: #5A8DAA;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.works_tab.active{
    background-color: #F0FAFF;
    color: black;
}

.works_contents_box{
    width: 100%;
    max-width: 1000px;
    margin: 77px auto 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 25px;
    position: relative;
    color: white;
    background-color: #5A8DAA;
    transition: 0.2s;
    border-radius: 50px;
}

.works_contents_box:hover{
    color: black;
    background-color: #F0FAFF;
    background-image: none;
    transition: 0.5s;
    animation: fadeInColor linear 0.3s;
}

@keyframes fadeInColor {
    0%{
        background-color: #5A8DAA;
    }
    100%{
        background-color: #F0FAFF;
    }
}

.tab-content{
    display: none;
}

.tab-content.active{
    display: block;
    padding-bottom: 100px;
    animation: fadeIn linear 0.5s;
}

@keyframes fadeIn {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

.works_img_box{
    width: 47%;
    height: 250px;
    border: 3px solid #999;
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.works_contents{
    width: 45%;
}

.works_img{
    width: 100%;
    height: auto;
}

.works_category_box{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.works_type{
    background-color: #869db2;
    padding: 5px 10px;
    color: white;
    border-radius: 30px;
}

.works_category{
    font-size: 1.4rem;
}

.works_contents_title{
    font-size: 3.2rem;
    font-weight: 200;
    margin-top: 10px;
}

.works_desc{
    margin-top: 5px;
}

.works_contents_btn{
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 2.5rem;
    font-weight: 200;
    color: #5A8DAA;
    overflow: hidden;
    border: 2px solid #5A8DAA;
    border-radius: 100px;
    padding: 0 20px;
    transition: 0.2s;
    text-align: center;
}

.works_contents_btn:hover{
    transform: scale(1.1,1.1);
    transition: 0.2s;
}

.works_contents_btn_txt{
    width: 100%;
    height: 100%;
    padding: 5px;
    overflow: hidden;
}

.works_link{
    display: block;
    width: 290px;
    height: 55px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 50px auto;

    position: relative;
    overflow: hidden;
}

.works_link p{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 290px;
    height: 55px;
    font-size: 2rem;

    background-image: url(../images/junp_arrow.png);
    background-repeat: no-repeat;
    background-size: 20px auto;
    background-position: right 40px top 45%;

    position: relative;
    overflow: hidden;
}

.works_link::before{
    content: "";
    width: 290px;
    height: 1px;
    border-top: solid 1px white;
    position: absolute;
    top: 0;
    left: 0;
}

.works_link::after{
    content: "";
    width: 290px;
    height: 1px;
    border-bottom: solid 1px white;
    position: absolute;
    bottom: 0;
    left: 0;
}

.works_link p::before{
    content: "";
    width: 1px;
    height: 55px;
    border-left: solid 1px white;
    position: absolute;
    top: 0;
    left: 0;
}

.works_link p::after{
    content: "";
    width: 1px;
    height: 55px;
    border-right: solid 1px white;
    position: absolute;
    top: 0;
    right: 0;
}

.works_link:hover:before {
    animation: topAnim 1.5s linear 0s infinite;
}
.works_link:hover:after {
    animation: bottomAnim 1.5s linear 0s infinite;
}
.works_link p:hover:before {
    animation: leftAnim 1.5s linear .75s infinite;
}
.works_link p:hover:after {
    animation: rightAnim 1.5s linear .75s infinite;
}

/* responsive */
@media screen and (max-width:1024px) {
    .works_contents_box{        
        width: 90%;
        flex-direction: column;
        align-items: flex-start ;
        gap: 10px;
        background-image: none;
        padding: 50px;
    }
    
    .works_contents_box:hover{
        animation: none;
    }

    .works_img_box{
        width: 100%;
        height: 56.25%;
    }

    .works_contents{
        width: 70%;
    }

    .works_contents_btn{
        bottom: 50px;
        right: 50px;
        color: #252525;
        border-color: #252525;
        background-color: transparent;
        font-size: 2rem;
    }

    .works_contents_btn_txt{
        padding: 5px 8px;
    }
}
@media screen and (max-width:767px) {
    .works_contents_box{ 
        margin: 50px auto 0;       
        padding: 20px 20px 75px;
    }

    .works_contents{
        width: 100%;
    }

    .works_contents_title{
        font-size: 2.6rem;
    }

    .works_contents_btn{
        width: 200px;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: #5A8DAA;
        background-color: #F0FAFF;
        border-color: transparent;
        font-size: 2rem;
    }

    .works_contents_btn_txt{
        padding: 5px 8px;
    }

    .works_contents_btn::before{
        height: 3px;
        border-top: solid 3px  rgb(125, 16, 16);
    }
    
    .works_contents_btn::after{
        height: 3px;
        border-bottom: solid 3px  rgb(125, 16, 16);
    }
    
    .works_contents_btn_txt::before{
        width: 3px;
        border-left: solid 3px  rgb(125, 16, 16);
    }
    
    .works_contents_btn_txt::after{
        width: 3px;
        border-right: solid 3px  rgb(125, 16, 16);
    }
}
/* responsive end */