
.main-visual {
    position: relative;
    width: 100%;
    max-height: 840px;
    border-radius: 20px;
    overflow: hidden;
    background-color: aquamarine;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/main/visual.mp4);
}

.visual-bg{
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
}

.visual-bg .cover{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #00000020
}

.visual-bg video{
    width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-visual>.content{
    z-index: 2;
    position: absolute;
    left: 0;
    padding-left: 100px;
}

.main-visual>.content h2 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 60px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
}

.main-visual>.content p {
    color: rgba(255, 255, 255, 0.80);
    font-family: Pretendard;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.main-title {
    color: #111;
    font-family: var(--font-suit);
    font-size: 50px;
    font-style: normal;
    font-weight: 900;
    line-height: 130%;
    margin-bottom: 50px;
}

.list-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.list-box {
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.list-box .thumb {
    height: 350px;
    background-color: #fff;
    border-bottom: 0;
    border: 1px solid #ddd;
}

.list-box .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-box .txt {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    background-color: #F6F6F6;
}

.list-box .txt span {
    color: #111;
    font-family: var(--font-suit);
    font-size: 22px;
    font-weight: 800;
    line-height: normal;
}

.list-box .txt p {
    color: #111;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    margin-top: 10px;
}

.list-box:hover{
    box-shadow: 0 4px 20px 0 rgba(27, 42, 73, 0.50);
}

.list-box:hover .txt {
    background-color: var(--main-color);
    transition: all .3s;
}

.list-box:hover .txt span {
    color: #ffffff;
    transition: all .3s;
}

.list-box:hover .txt p {
    color: #ffffff;
    transition: all .3s;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 700px;
    height: 90%;
    background: #fff;
    border-radius: 10px;
    position: relative;
    animation: fadeIn .3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-num {
    color: #111;
    font-family: Pretendard;
    font-size: 20px;
    font-weight: 700;
    line-height: 150%;
}

.close-btn{
    cursor: pointer;
    width: 24px;
    height: 24px;
    background: url(../img/modal_close.png);
    background-position: center;
    background-repeat: no-repeat;
}

.modal-img{
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;

}

.modal-img img {
    width: 100%;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.modal-txt-wrap {
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
}

.modal-title {
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 10px;
}

.modal-txt{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-txt p {
    color: #111;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section2 {
    background-image: url(../img/main/section2_bg.png);
    background-position: center;
    background-size: cover;
}

.section2 .main-title {
    text-align: center;
    color: #ffffff;
}

.count-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.count-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(5px);
    padding: 60px 0;
}

.count {
    display: flex;
    align-items: baseline;
}

.count-num {
    color: #FFF;
    text-align: center;
    font-size: 60px;
    font-weight: 700;
    line-height: 130%;
}

.count span {
    color: #FFF;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 130%;
}

.count-box>p {
    color: #FFF;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 130%;
    margin-top: 10px;
}

.grid-wrap {
    display: grid;
    grid-template-columns: 35% 65%;
    grid-template-rows: auto auto;
    gap: 20px;
}

.grid-box {
    position: relative;
    padding: 60px 50px;
    height: 400px;
    background-color: var(--main-color);
    border-radius: 10px;
    background-position: center;
    background-size: cover;
}

.grid-box:nth-of-type(1){
    background-image: url(../img/main/section3_img1.png);
}

.grid-box:nth-of-type(2){
    background-image: url(../img/main/section3_img2.jpg);
}

.grid-box:nth-of-type(3){
    background-image: url(../img/main/section3_img3.png);
}

.grid-box.full {
    grid-column: 1 / span 2;
}

.grid-box > span{
    position: absolute;
    right: 0;
    bottom: 0;
    font-family: var(--font-suit);
    color: #FFF;
    font-size: 100px;
    font-weight: 800;
    line-height: 0.75;
    opacity: 0.2;
}

.grid-box .txt h3 {
    color: #FFF;
    font-family: var(--font-suit);
    font-size: 24px;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 15px;
}

.grid-box .txt p {
    color: #FFF;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
}

.grid-box .content {
    display: flex;
    justify-content: space-between;
}

.core-wrap {
    width: 50%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.core-box {
    flex: 1;
    height: 100%;
    padding: 90px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(5px);
}

.core-box img{
    width: 80px;
    height: 80px;
}

.core-box p {
    color: #FFF;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    margin-top: 20px;
}

.section4{
    overflow: hidden;
    background-image: url(../img/main/section4_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flow-txt {
    width: 100%;
    height: 100%;
    z-index: -1;
}

.flow-inner{
    display: flex;
    width: max-content;
    gap: 100px;
    animation: flow 40s linear infinite;
}

@keyframes flow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.flow-inner span{
    font-family: var(--font-mont);
    font-size: 136px;
    font-weight: 700;
    line-height: 0.8;
    color: rgba(20, 103, 167, 0.10);
}

.hover-wrap {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.hover-box {
    flex: 1;
    height: 550px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #F6F6F6;
    transition: flex 0.5s ease;
    background-size: cover;
    background-position: center;
}

.hover-box:first-of-type{
    background-image: url(../img/main/section4_img1.jpg);
}

.hover-box:last-of-type{
    background-image: url(../img/main/section4_img2.jpg);
}

.hover-box:hover {
    flex: 1.4;
}

.hover-wrap:hover .hover-box:not(:hover) {
    flex: 0.6;
}

.hover-box .content {
    padding: 70px 60px;
}

.hover-box .content h3 {
    color: #111;
    font-size: 40px;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 15px;
}

.hover-box .content p {
    color: #111;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
}

.hover-box:nth-of-type(2) .content h3,
.hover-box:nth-of-type(2) .content p {
    color: #ffffff;
}

.section5 {
    background: linear-gradient(to bottom, #005A97 0%,
            #005A97 50%,
            #F6F6F6 50%,
            #F6F6F6 100%);
}

.section5 .content-title{
    justify-content: center;
    align-items: center;
}

.circle{
    width: 307px;
    height: 307px;
    border-radius: 50%;
    background: #7ED957;
    filter: blur(250px);
    position: absolute;
    top: 146px;
    left: -66px;
}

.map-wrap{
    display: flex;  
    padding: 40px;
    border-radius: 10px;
    overflow: hidden;
    gap: 60px;
    background-color: #FFF;
    margin-top: 60px;
}

.map-box{
    position: relative;
    width: 50%;
    height: 590px;
    border-radius: 10px;
    overflow: hidden;
}
.map{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-box .map {
    display: none;
}

.map-box .map:first-child {
    display: block;
}

.add-wrap{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.add{
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #DDD;
    padding: 30px 20px;
}

.add:first-of-type{
    border-top: 1px solid #DDD;   
}

.add .txt h3{
    color: #111;
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 20px;
}

.add .txt ul{
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.add .txt ul li{
    color: #585858;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
}

.add .btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 46px;
    border-radius: 30px;
    background: #ffffff;
    color: var(--sub-color);
    border: 1px solid var(--sub-color);
    font-family: var(--font-suit);
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    transition: all .2s;
}

.add .btn:hover{
    background: var(--main-color);
    border: 1px solid var(--main-color);
    color: #ffffff;
    transition: all .3s;
}

@media screen and (max-width:1740px){
    .add .txt ul{
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width:1620px) {
    .grid-box > span{
        font-size: 80px;
    }
}

@media screen and (max-width:1280px) {
    .main-visual>.content{
        padding-left: 5%;
    }
    .main-visual>.content h2{
        font-size: 50px;
    }
    .main-visual>.content p{
        font-size: 18px;
    }
    .main-title{
        font-size: 40px;
        margin-bottom: 40px;
    }
    .list-box .thumb{
        height: 300px;
    }
    .list-box .txt{
        padding: 30px 20px;
    }
    .list-box .txt span{
        font-size: 20px;
    }
    .list-box .txt p{
        font-size: 16px;
    }
    .modal-num{
        font-size: 18px;
    }
    .modal-title{
        font-size: 16px;
    }
    .modal-txt p{
        font-size: 14px;
    }
    .count-num{
        font-size: 50px;
    }
    .count span{
        font-size: 20px;
    }
    .count-box>p{
        font-size: 18px;
    }
    .grid-box{
        height: auto;
        padding: 50px 40px;
    }
    .grid-box .txt h3{
        font-size: 22px;
    }
    .grid-box .txt p{
        font-size: 16px;
        margin-bottom: 150px;
    }
    .grid-box.full .txt p{
        margin-bottom: 50px;
    }
    .grid-box > span{
        font-size: 50px;
    }
    .core-box{
        padding: 70px 0;
    }
    .core-box p{
        font-size: 18px;
    }
    .core-box img{
        width: 60px;
        height: 60px;
    }
    .hover-box{
        height: 450px;
    }
    .hover-box .content{
        padding: 60px 50px;
    }
    .hover-box .content h3{
        font-size: 30px;
    }
    .hover-box .content p{
        font-size: 16px;
    }
    .flow-inner span{
        font-size: 106px;
    }
    .map-wrap{
        padding: 30px;
        gap: 40px;
        margin-top: 50px;
    }
    .map-box{
        height: 450px;
    }
    .add .txt h3{
        font-size: 20px;
    }
    .add .txt ul li{
        font-size: 16px;
    }
    .add .btn{
        width: 70px;
        height: 36px;
        font-size: 16px;
    }
}


@media screen and (max-width:991px) {
    .main-visual>.content{
        padding:4%;
    }
    .main-visual>.content h2{
        font-size: 40px;
    }
    .main-visual>.content p{
        font-size: 16px;
    }
    .modal-txt-wrap{
        max-height: none;
        min-height: 200px;
    }
    .list-wrap{
        grid-template-columns: repeat(2, 1fr);
    }
    .list-box .thumb{
        height: 260px;
    }
    .count-wrap{
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-box.full .content{
        flex-direction: column;
    }
    .core-wrap{
        width: 100%;
    }
    .hover-wrap{
        flex-direction: column;
    }
    .hover-box .content{
        padding-bottom: 100px;
    }
    .map-wrap{
        flex-direction: column;
    }
    .map-box{
        width: 100%;
        height: 400px;
    }
    .add-wrap{
        width: 100%;
    }
    .add{
        padding: 20px 10px;
    }
}


@media screen and (max-width:768px) {
    
    .main-visual>.content h2{
        font-size: 30px;
    }
    .main-visual>.content p{
        font-size: 14px;
    }
    .main-title{
        font-size: 30px;
    }
    .list-box .thumb{
        height: 200px;
    }
    .list-box .txt{
        padding: 20px 10px;
    }
    .list-box .txt span{
        font-size: 18px;
    }
    .list-box .txt p{
        font-size: 14px;
    }
    .modal-content{
        height: auto;
        max-height: 80%;
    }
    .count-num{
        font-size: 40px;
    }
    .count span{
        font-size: 18px;
    }
    .count-box>p{
        font-size: 16px;
    }
    .grid-wrap{
        display: flex;
        flex-direction: column;
    }
    .grid-box{
        width: 100%;
        padding: 40px 30px;
    }
    .grid-box .txt h3{
        font-size: 20px;
    }
    .grid-box.full .txt p{
        margin-bottom: 40px;
    }
    .grid-box .txt p{
        font-size: 14px;
        margin-bottom: 100px;
    }
    .grid-box > span{
        font-size: 80px;
    }
    .core-wrap{
        flex-direction: column;
    }
    .core-box{
        width: 100%;
        padding: 50px 0;
    }
    .core-box img{
        width: 50px;
        height: 50px;
    }
    .core-box p{
        font-size: 16px;
    }
    .hover-box .content{
        padding: 50px 40px;
        padding-bottom: 80px;
    }
    .hover-box .content h3{
        font-size: 20px;
    }
    .hover-box .content p{
        font-size: 14px;
    }
    .flow-inner span{
        font-size: 76px;
    }
    .map-box{
        height: 300px;
    }
    .add .txt h3{
        font-size: 18px;
        margin-bottom: 12px;
    }
    .add .txt ul{
        gap: 10px;
    }
    .add .txt ul li{
        font-size: 14px;
    }
    .add .btn{
        width: 60px;
        height: 30px;
        font-size: 14px;
    }
}


@media screen and (max-width:600px) {
    .grid-box > span{
        font-size: 60px;
    }
    .core-box{
        padding: 40px 0;
    }
}   

@media screen and (max-width:500px) {
    .br500{
        display: none;
    }
    .main-visual>.content h2 {
        font-size: 24px;
        margin-bottom: 14px;
    }
    .main-visual>.content .more-btn{
        display: none;
    }
}