/* 서브 네브 */
.sub-nav{
    border-bottom: 1px solid #eee;
    width: 100%;
}
.sub-nav .container{
    display: flex;
    align-items: center;
}
.sub-nav .home-btn{
    width: 50px;
    text-align: center;
    border-left: 1px solid #ddd;
    padding: 20px 10px;
    box-sizing: border-box;
}
.sub-nav .sub{
    border-left: 1px solid #ddd;
    width: 200px;
    padding: 20px 10px;
    box-sizing: border-box;
}
.sub-nav .sub .page{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sub-nav .sub2{

    background-color: var(--point-color1);
}
.sub-nav .sub2 .page{
    color: white;
}
.sub-nav .sub .page-list{
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    z-index: 10;
    background-color: white;
    box-shadow: 0px 0px 10px -5px rgba(0,0,0,0.5);
}
.sub-nav .sub .page-list span{
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

/* 1 */
.section1{
    width: 100%;
    height: 600px;
}
.section1 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section1 .bg{
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0; left:0;
}
.section1 .text-box{
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    color: white;
}
.section1 .text-box h5{
    color: rgba(255,255,255,0.6)
}

/* 2 */
.section2{
    top: 100px;
}
.section2 .section-title{
    text-align: center;
}
.section2 .btn-group{
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    width: 100%;
}
.section2 .btn{
    width: 100%;
}
/* 3 */
.section3{
    transform: translateY(50%);
    z-index: 5;
}
.section3 .container{
    background-image: url(img/sub2-1.png);
    background-size: cover;
    background-position: center;
    height: 420px;
}
.section3 .container h2{
    position: absolute;
    top: 50%; left: 0px;
    padding-left: 50px;
    padding-right: 50px;
    transform: translateY(-50%);
    color: white;
    word-break: keep-all;
}

/* 4 */
.section4{
    background-color: #eee;
    padding-top: 400px;
    padding-bottom: 200px;
    height: 70vh;
}
.section4 .container{
    display: flex;
    gap: 50px;
}
.section4 .left{flex:2;}
.section4 .left img{width: 100%; height: 100%; object-fit: cover;}
.section4 .right{flex:2;}
.section4 .right img{width: 80px;}
.section4 .right h2{
    margin-bottom: 30px;
}
.section4 .right h2::before{
    content:'';
    display: block;
    width: 30px;
    height:3px;
    background-color: var(--point-color1);
    margin-bottom: 20px;
}
.section4 .item{
    display: flex;
    align-items: center;
    gap:50px;
    padding: 20px;
    height: 100%;
    border-top: 1px solid #ccc;
    word-break: keep-all;
    color: #666;
}
.section4 .item:last-child{
    border-bottom: 1px solid #ccc;
}

/* 5 */
.section5{
    transform: translateY(-50%);
}
.section5 .container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.section5 .item{
    flex:1;
    overflow: hidden;
}

.section5 .item img{
    width: 100%;
    object-fit: cover;
}
.section5 .item .bg_gray{
    width: 100%;
    height: 100%;
    position: absolute;
    top:0; left: 0;
    background-color: rgba(0,0,0,0.5);
}
.section5 .item .bg_blue{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: -100%;
    background-color: var(--point-color1);
    opacity: 0.5;
    transition: 0.5s;
}
.section5 .item:hover .bg_blue{
    left: 0;
}
.section5 .item .text-box{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    border: 1px solid;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

@media(max-width: 1024px){
    .section4 {
        height: 100%;
    }
    .section4 .container{
        display: block;
    }
    .section4 .container .right{
        margin-top: 20px;
    }
    .section5 {
        transform: translateY(-15%);
    }
    .section5 .container{
        display: block;
        flex-direction: column;
    }
    .section5 .item{
        width: 100%;
        height: 200px;
        margin-bottom: 30px;
    }
    .section5 .item img{
        width: 100%;
        height: 100%;
    }
}