/* 팝업 */
/* 배경 오버레이 */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
/* 팝업 박스 */
#popup {
    background: #F7F7F7;
    padding: 50px;
    height: fit-content;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}
#popup .popWrap {
    width: 100%;
    max-width: 100%;
}
#popup img {
    width: 302px;
    height: 31px;
    margin: 0 auto 40px;
}
#popup h1 {
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    color: #222;
    margin-bottom: 35px;
}
#popup .input-field {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}
#popup .input-field div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
    width: 33.3%;
}
#popup .input-field div span {
    font-size: 16px;
    font-weight: 400;
    color: #222;
}
#popup .input-field div input {
    border: 1px solid #B3B3B3;
    background-color: #fff;
    height: 30px;
    width: 100%;
}
/* 크롬, 사파리, 엣지에서 숫자 조절 버튼 없애기 */
.input-field input::-webkit-outer-spin-button,
.input-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* 파이어폭스에서 숫자 조절 버튼 없애기 */
.input-field input {
    -moz-appearance: textfield;
}
.checkbox.pop {
    margin-top: 20px;
    justify-content: space-between;
    align-self: flex-start;
}
/* 기본 체크박스 숨기기 (커스텀 스타일 적용) */
.checkbox input[type="checkbox"] {
    appearance: none; /* 기본 체크박스 숨김 */
    width: 15px;
    height: 15px;
    border: 1px solid #777777;
    border-radius: 2px;
    display: inline-block;
    position: relative;
    cursor: pointer;
}
/* 체크되었을 때 스타일 변경 */
.checkbox input[type="checkbox"]:checked {
    background-color: transparent; /* 체크 시 배경색 변경 */
}
/* 체크된 상태에서 체크 표시 추가 (✔️ 아이콘) */
.checkbox input[type="checkbox"]:checked::before {
    content: "";
    width: 10px;
    height: 15px;
    background: url(../img/svg/checkPop.svg) no-repeat center;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.checkbox.pop span {
    font-size: 14px;
    font-weight: 400;
    color: #777777;
    line-height: 15px;
}
#popup .popBtn {
    width: 140px;
    height: 40px;
    background: #6A6A6A;
    margin: 40px auto 45px;
}
#popup .popBtn button {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 40px;
    cursor: pointer;
}
#popup .popInfo {
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    line-height: 17px;
}
/* 에러 메시지 */
.error-message {
    font-size: 14px;
    font-weight: 400;
    color: #FF564A;
    line-height: 15px;
    display: none;
}

/* wrap */
.wrap {
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* inner */
.inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 50px;
}
.inner.type02 {
    padding: 0;
}

/* header */
header {
    height: 90px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 400;
    right: 0;
    display: block;
    transition: all 0.5s;
}
header .logo {
    z-index: 99; 
    width: 226px;
    height: 25px;
    background: url(../img/svg/logo02.svg) no-repeat center / contain;
    display: block;
    position: fixed;
    top: 33px;
}
header .logo a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 0;
}

/* header 타입별 */
header.reverse {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
header.reverse.down {
    display: none;
}

header.on {
    overflow:hidden;
    height:250px;
    background: rgba(1, 1, 1, 0.8);
    -webkit-box-shadow:1px 1px 25px rgb(67 67 67 / 10%);
    box-shadow:0px 0px 30px 0px rgb(0 0 0 / 15%) !important;
    border-bottom: 0;
}  
header.on::after {
    content: "";
    top: 100px;
    display: block;
    height: 1px;
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    width: 100%;
}
header.on .logo {
    background: url(../img/svg/logo03.svg) no-repeat center / contain;
}

/* moreBtn - burger */
.moblie_nav_btn {
    display: none;
}

/* nav */
header .nav {
    display: flex;
    position: absolute;
    left: 52%;
    top: 0%;
    transform: translate(-50%, 0%);
    height: 90px;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}
header .nav .menu { 
    height: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
header .nav .menu a {
    color: #222;
    font-weight: 700;
    font-size: 18px;
    line-height: 90px;
    margin: 0 auto;
    text-align: center;
}
header .nav .menu .button {
    display: none;
}
header .nav .menu .gnb {
    display: none;
}

/* nav 활성화 */
header.on .nav {
    width: max-content;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    overflow: inherit;
    background: transparent;
}
header.on .nav .menu {
    height: 100%;
    text-align: center;
    margin: 0;
    top: 0;
    display: block;
    border: 0;
    transition: all 0.5s;
    position: relative;
}
header.on .nav .menu:hover div a::after  {    
    content: "";
    top: 97px;
    display: block;
    height: 3px;
    position: absolute;
    background: #F4801F;
    /* transition: width 0.4s ease 0s; */
    width: 100%;
    left: 0;
}
header.on .nav .menu a {
    color: #fff;
}
header.on .nav .menu .gnb {
    display: block;
    text-align: center;
    margin-top: 30px;
}
header.on .nav .menu .gnb li a {
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
    text-align: center;
    color: #fff;
    position: relative;
}
header.on .nav .menu .gnb li a::before {
    content: "";
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease-in-out;
    display: block;
    position: absolute;
    left: 0;
    bottom: 0px; 
}
header.on .nav .menu .gnb li a:hover::before {
    width: 100%;
}

/* footer */
footer {
    width: 100%;
    background-color: #454545;
    padding: 35px 0;
    position: relative;
}

footer .logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 28px;
    display: flex;
    justify-content: space-between;
}
footer .logo a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 0;
}
footer .logo a:first-child {
    z-index: 99; 
    width: 226px;
    height: 25px;
    background: url(../img/svg/logo03.svg) no-repeat center / contain;
    display: block;
}
footer .logo a:last-child {
    z-index: 99; 
    width: 20px;
    height: 20px;
    background: url(../img/svg/sns.svg) no-repeat center / contain;
    display: block;
}

footer .footerTxt {
    padding-top: 25px;    
    display: flex;
    justify-content: space-between;
}
footer .footerTxt p {
    font-size: 13px;
    font-weight: 400;
    color: #E2E2E2;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    word-break: normal; 
    gap: 10px;
    user-select: none;
}
footer .footerTxt p:first-child {
    margin-bottom: 20px;
    font-weight: 600;
}
footer .footerTxt p:last-child {
    margin-bottom: 0;
    padding-top: 10px;
}
footer .footerTxt ul {
    display: flex;
    gap: 50px;
}
footer .footerTxt ul li a {
    font-size: 14px;
    font-weight: 700;
    color: #E2E2E2;
}

/* topbtn */
.topbtn {
    width: 50px;
    height: 50px;
    background: url(../img/svg/topbtn.svg) center;
    cursor: pointer;
    z-index: 1000;
    position: fixed; 
    right: 0px;
    bottom: 50px;
    right: 50px;
    display: none;
    opacity: 0;
    transition: opacity 1s ease;
} 
.topbtn.isAbs {
    position: absolute !important;
}

/* 공통 */
.swiper-slide-duplicate {
    visibility: hidden; /* 복제 슬라이드 숨기기 */
}

#section {
    padding-top: 90px;
    padding-bottom: 100px;
}

.mainTit {
    font-size: 45px;
    font-weight: 700;
    color: #222;
    margin-bottom: 45px;
    position: relative;
}

.bgType01 {
    background: #F0F6FA;
}
.bgType02 {
    background: #F7F6F0;
}

.moreBtn {
    font-size: 20px;
    font-weight: 600;
    color: #555;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 8px;
    cursor: pointer;
}
.moreBtn::after {
    content: "";
    display: block;
    width: 37px;
    height: 9px;
    background-image: url(../img/svg/more_icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.moreBtn.type02 {
    font-size: 16px;
    background-color: #D9D9D9;
    border-radius: 30px;
    gap: 3px;
    padding: 15px 20px;
    line-height: 11px;
}
.moreBtn.type02::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(../img/svg/add02.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 메인 배너 슬라이드 */
.slider-wrap.main {
    position: relative;
    max-width: 100%;
    height: 650px;
    margin: 0 auto;
    overflow: hidden;
}
.main-slider {
    position: relative;
}
.main-slider .slide-item img {
    z-index: -1 !important;
    position: absolute;
    height: 100vh;
    width: 100%;
    object-fit: cover;
    /* -webkit-animation: kenburns-top 5s ease-out both;
    animation: kenburns-top 3s ease-out both; */
}
/* 사진 동영상처럼 보이게 하는 애니메이션 */
/* @keyframes kenburns-top {
    0% {
      -webkit-transform: scale(1) translateY(0);
              transform: scale(1) translateY(0);
      -webkit-transform-origin: 50% 16%;
              transform-origin: 50% 16%;
    }
    100% {
      -webkit-transform: scale(1.2) translateY(0px);
              transform: scale(1.2) translateY(0px);
      -webkit-transform-origin: top;
              transform-origin: top;
    }
} */
.main-slider .slide-item {
    height: 650px;
    width: 100%;
}
.main-slider .slide-item .slide-con {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    /* z-index: -1 !important; */
    height: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.main-slider .slide-item-1 .slide-con {
    background-image: url(../img/main_visual01.png);
}
.main-slider .slide-item-2 .slide-con {
    background-image: url(../img/main_visual02.png);
}
.main-slider .slide-item-3 .slide-con {
    background-image: url(../img/main_visual03.png);
}
.main-slider .slide-item > .slide-con > .slide-txt {
    position: absolute;
    top: 234px;
    z-index: 50;
    color: #fff;
    text-align: center;
    width: 100%;
    height: fit-content;
    left: 50%;
}
.main-slider .slide-item > .slide-con > .slide-txt > span.txt-desc {
    font-size: 60px;
    font-weight: 700;
    line-height: normal;
    text-shadow: 2px 2px rgba(0, 0, 0, 0.3);
}
.main-slider .slide-item.swiper-slide-active .slide-txt {
    animation: mainSlideUp 1.2s ease forwards;
    /* animation-delay: .4s */
}

@keyframes mainSlideUp {
    0% {
        transform: translate(-50%, 100%);
        opacity: 0
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 1
    }
}

/* 페이지 버튼 */
.main-slider .swiper-pagination {
    bottom: 25px !important;
}
.main-slider .swiper-pagination-bullet {
    width: 9px !important;
    height: 9px !important;
    background: #D6D6D6 !important;
    opacity: 1 !important;
}
.main-slider .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #555 !important;
}

/* 서브 슬라이드 */
.slider-wrap.sub {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}
.sub-slider .swiper-wrapper {
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: space-between;
}
.sub-slider .slide-item {
    height: 100%;
}
.sub-slider .slide-item .slide-con {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    cursor: pointer;
}
.sub-slider .slide-item .slide-con img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.03);
}
.sub-slider img:hover {
    border: 1px solid #CCCCCC;
}
.sub-slider .slide-item .slide-con span {
    color: #222;
    font-size: 18px;
    font-weight: 400;
}

/* 슬라이드 공통 버튼 */
.swiper-button-next, .swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background-size: cover !important;
}
.swiper-button-next:after, .swiper-button-prev:after {
    display: none;
}

.swiper-button-prev {
    background: url(../img/svg/Parrow_left.svg) no-repeat center;
}

.swiper-button-next {
    background: url(../img/svg/Parrow_right.svg) no-repeat center;
}

/* 뉴스 */
.mainTit p {
   font-size: 20px;
   font-weight: 500; 
   margin-top: 20px;
}
.news {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.newIn {
    width: 23%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.newIn .newsImg {
    width: 100%;
    height: 340px;
    object-fit: contain;
    overflow: hidden;
}
.newIn .newsImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} 
.newIn .newsImg img:hover {
    transform: scale(1.2, 1.2);
    transition: all 0.5s linear;
}

.newIn p {
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #F4801F;
}
.newIn span {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

/* 미디어 */
.media {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    display: flex; 
    gap: 50px;
}
.mediaIn {
    display: flex;
    width: 30%;
    border-radius: 10px;
    flex-direction: column;
    background-color: #fff;
    cursor: pointer;

}
.mediaIn:last-child {
    margin-right: 0px;
}
.mediaIn img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.mediaIn video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.mediaIn span {
    margin: 30px;
    font-size: 22px;
    color: #222;
    line-height: 30px;
    font-weight: 600;
}
.mediaIn:hover span {
    transform: translateY(-5px);
    transition: all 0.1s linear;
}

@media (max-width: 1279px) {
    /* 뉴스 */
    .newIn {
        width: 49%;
        margin-bottom: 10px;
    }
}


@media (max-width: 1099px) {
    /* 뉴스 */
    .newIn {
        width: 48%;
    }

    /* 미디어 */
    .media {
        display: flex; 
    }
    .mediaIn {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    /* 팝업 */
    /* 팝업 박스 */
    #popup {
        padding: 30px;
    }
    #popup img {
        width: 185px;
        height: 19px;
        margin: 0 auto 40px;
    }
    #popup h1 {
        font-size: 18px;
        margin-bottom: 30px;
    }
    #popup .input-field {
        gap: 25px;
    }
    #popup .input-field div span {
        font-size: 14px;
    }
    .checkbox.pop {
        margin-top: 15px;
    }
    /* 기본 체크박스 숨기기 (커스텀 스타일 적용) */
    .checkbox input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }
    /* 체크된 상태에서 체크 표시 추가 (✔️ 아이콘) */
    .checkbox input[type="checkbox"]:checked::before {
        width: 7px;
        height: 12px;
    }
    .checkbox.pop span {
        font-size: 12px;
        line-height: 12px;
    }
    #popup .popBtn {
        width: 100px;
        height: 35px;
        margin: 40px auto 35px;
    }
    #popup .popBtn button {
        font-size: 14px;
        line-height: 35px;
    }
    #popup .popInfo {
        font-size: 12px;
        line-height: 14px;
    }

    /* inner */
    .inner {
        padding: 0 20px;
    }

    /* header */
    header {
        height: 60px;
    }
    header .logo {
        z-index: 99; 
        width: 43px;
        height: 25px;
        background: url(../img/svg/moblieLogo.svg) no-repeat center / contain;
        display: block;
        position: fixed;
        top: 17px;
        left: 20px;
        /* border: 1px solid red; */
    }

    /* header 타입별 */
    header.menu-open {
        width: 100%;
        height: 100vh;
        background: #fff;
    }

    /* nav */
    header .nav {
        display: none;
    }
    header .nav.on {
        display: flex;
        margin: 0 20px;
        height: calc(100% - 60px);
        top: 60px;
        left: 0;
        right: 0;
        transform: none;
        border-top: 1px solid #DBDBDB;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        justify-content: flex-start;
        opacity: 1;
    }
    header .nav .menu { 
        text-align: left;
        position: relative;
        border-bottom: 1px solid #DBDBDB;
        width: 100%;
        height: 50px;
    }
    header .nav .menu > div{
        display: flex;
    } 
    header .nav .menu a {
        color: #222;
        font-weight: 600;
        font-size: 20px;
        line-height: 50px;
        margin: 0;
        text-align: left;
        display: block;
        width: 80%;
    }
    header .nav.on .menu .gnb {
        display: none;
    }
    header .nav.on .menu .button {
        width: 20%;
        display: block;
    }
    header .nav.on .menu .button .button-item {
        width: 30px;
        height: 15px;
        background: url(../img/svg/arrow_down02.svg);
        position: absolute;
        right: 0px;
        top: 18px;
        background-repeat: no-repeat;
        background-size: cover;
        cursor: pointer;
        transition: transform 0.3s ease-in-out, background 0.2s;
    }

    header .nav .menu.open { 
        height: auto;
        display: block;
        padding-bottom: 15px;
    }
    header .nav .menu.open > div > a {
        color: #F4801F;
    }
    header .nav.on .menu.open .button .button-item {
        width: 30px;
        height: 15px;
        background: url(../img/svg/arrow_up02.svg);
        position: absolute;
        right: 0px;
        top: 18px;
        background-repeat: no-repeat;
        background-size: cover;
        cursor: pointer;
    }
    header .nav.on .menu.open .gnb {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    header .nav.on .menu.open .gnb li a {
        font-weight: 500;
        font-size: 16px;
        line-height: 19px;
        width: 100%;
    }

    /* footer */
    footer {
        padding: 25px 0 40px 0;
    }

    footer .logo {
        padding-bottom: 25px;
    }
    footer .logo a:first-child {
        width: 192px;
        height: 20px;
    }

    footer .footerTxt {
        padding-top: 20px;    
        flex-direction: column-reverse;
        justify-content: left;
    }
    footer .footerTxt p {
        font-size: 12px;
        margin-bottom: 10px;
        display: flex;
        flex-wrap: wrap;
        word-break: normal; 
    }
    footer .footerTxt p:first-child {
        padding-top: 50px;
    }
    footer .footerTxt p:last-child {
        padding-top: 15px;
    }
    footer .footerTxt ul {
        display: flex;
        gap: 50px;
    }
    footer .footerTxt ul li a {
        font-size: 14px;
        font-weight: 700;
        color: #E2E2E2;
    }

    /* moreBtn - burger */
    .moblie_nav_btn {
        display: block;
        width: 30px;
        height: 30px;
        background: url(../img/svg/mobileBtn.svg)no-repeat center / contain;
        display: block;
        position: absolute;
        right: 20px;
        top: 14px;
        cursor: pointer;
    }

    /* 공통 */
    #section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    .mainTit {
        font-size: 30px;
        font-weight: 600;
    }

    .moreBtn {
        font-size: 16px;
    }
    .moreBtn::after {
        width: 29px;
        height: 7px;
    }
    
    .moreBtn.type02 {
        font-size: 12px;
        padding: 8px 13px;
        line-height: 10px;
    }
    .moreBtn.type02::after {
        width: 14px;
        height: 14px;
    }

    /* 메인 배너 슬라이드 */
    .sub-slider .swiper-wrapper {
        gap: 20px;
    }
    .main-slider .slide-item > .slide-con > .slide-txt {
        text-align: center;
    }
    .main-slider .slide-item > .slide-con > .slide-txt > span.txt-desc {
        font-size: 40px;
    }
    .sub-slider .slide-item {
        /* width: 24% !important;
        min-width: 280px !important; */
        height: 100%;
        margin: 0 !important;
    }

    /* 뉴스 */
    .mainTit p {
        font-size: 16px;
        font-weight: 500; 
    }
    .newIn p {
        margin-top: 16px;
        margin-bottom: 14px;
        font-size: 14px;
    }
    .newIn span {
        font-size: 18px;
    }

}

@media (max-width: 884px) {
    /* 뉴스 */
    .news {
        justify-content: center;
    }
    .newIn .newsImg {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
}

@media (max-width: 539px) {
    /* 뉴스 */
    .newIn {
        width: 100%;
    }
}