@media screen and (max-height: 768px) {
    #sec02 , #sec03, #sec04 , #sec05 {
        padding: 120px 0;
    }
    #sec05 {
        padding: 120px 0 200px;
    }
}
@media screen and (max-width: 1300px) {
    header {
        padding: 0 20px;
    }
    header .gnb {
        gap:40px;
    }
    header nav {
        gap: 60px;
    }
}

@media screen and (max-width: 997px) {

    nav {
        position: fixed;
        top: 50px;
        width: 100%;
        padding: 30px 20px;
        background: #000;
        right: -120%;
        height: calc(100vh - 50px);
        transition: 0.5s;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    #bar {
        display: block;
    }
    header {
        height: 50px;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        background-color: rgba(0, 0, 0, 0.1);
    }
    header h1 img {
        height: 24px;
    }

    header.on nav {
        right: 0;
    }

    header.on #bar span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    header.on #bar span:nth-child(2) {
        opacity: 0;
    }

    header.on #bar span:nth-child(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    header .gnb a {
        text-align: left;
    }

    header .gnb {
        flex-direction: column;
        align-items: baseline;
        gap: 20px
    }
    header.on nav {
        right: 0;
    }
    header.on {
        background: #000;
    }

    header .gnb a {
        text-align: left;
    }
    header .gnb > li {
        width: 100%;
    }
    header .gnb > li > a {
        padding-bottom: 12px;
        display: block;
        padding-left: 15px;
        position: relative;
    }
    header .gnb > li > a:after {
        content: "";
        position: absolute;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #fff;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: 0.5s;
        background: url("../img/main/arrow_down.svg") no-repeat center / contain;
    }
    header .gnb > li.on > a:after {
        transform: translateY(-50%) rotate(180deg);
    }

    .hasDepth03.on > a:after {
        transform: translateY(-50%) rotate(180deg);
    }
    header .snb {
        position: static;
        background:none;
        border-top: 1px solid rgba(255,255,255,0.2);
        width: 100%;
        transform: translateX(0);
    }
    header .depth02 {
        background: rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: start;
        gap:12px;
        padding: 15px 0;
        width: 100%
    }
    header .depth02 > li {
        border-right: none
    }
    header .depth02 > li > a {
        display: block;
        padding: 0 0 0 15px;
        font-size:14px;
        font-weight: 600;
        color: #fff;
    }
    header li:hover > a {
        color: var(--mainColor);
    }
    header .depth02 > li:last-child {
        border-right: 0;
    }

    #top {
        height: 42px;
        width: 42px;
        font-size:8px
    }

    /* main */

    .section:not(#sec01):not(#sec00) {
        height: auto;
        padding: 70px 0;
    }
    .tt h3 {
        font-size: 35px;
        margin-bottom: 20px;
    }
    .tt p {
        font-size: 12px;
        margin-top: 15px;
    }

    .main_swiper .swiper-slide img {
        object-position: right center
    }
    .main_swiper .swiper-slide .txt {
        width: 100%;
        padding-bottom: 70px;
    }
    .main_swiper .swiper-slide .txt img {
        width: 50%;
        max-width: 380px;
    }
    .main_swiper .swiper-slide .txt p {
        font-size:14px
    }
    .swiper-btm {
        top: calc(50% + 100px);
    }
    .swiper-btm .flex {
        gap:10px;
        width: 100%;
    }

    .swiper-btm .playBtn {
        width: 40px;
        height: 40px;
    }
    .scroll {
        bottom:30px;
        font-size: 14px;
    }
    .scroll span {
        width: 20px;
        height: 32px;
    }
    .scroll span:after {
        width: 3px;
        height: 3px;
        top: 6px;
    }

    @keyframes scrolling {
        0% {
            top: 6px;
        }
        100% {
            top: 18px;
        }
    }

    #sec02 .flex {
        flex-direction: column;
    }
    #sec02 .txt {
        margin-bottom: 50px;
    }

    #sec02 h4 {
        margin: 35px 0 20px;
        font-size:24px;
    }
    #sec02 .txt a {
        width: 170px;
        height: 42px;
        border-radius: 24px;
        border: 1px solid #000;
        font-size: 12px;
        gap:10px;
    }



    #sec03 .tt {
        gap:20px;
        margin-bottom: 50px;
    }
    #sec03.section {
        padding-bottom: 120px;
    }
    #sec03 .sec03_swiper .swiper-slide {
        width: 280px;
    }
    #sec03 .swiper-pagination {
        bottom: -50px;
    }
    #sec03 .swiper-pagination-clickable .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
    }
    #sec03 .swiper-pagination-clickable .swiper-pagination-bullet.swiper-pagination-bullet-active {
        width: 14px;
    }

    .sec_tt h3 {
        margin-bottom: 20px;
    }
    .sec_tt a {
        font-size:14px
    }
    .sec_tt a img{
        margin-left: 5px;
    }
    .sec_tt a:hover img{
        margin-left: 10px;
    }
    #sec04 ul {
        margin-top: 35px;
    }
    #sec04 ul li a {
        height: 50px;
        font-size:14px;
    }

    #sec05.section {
        padding-bottom: 170px;
    }
    #sec05 .flex {
        flex-direction: column;
    }
    #sec05 .tt {
        margin-top: 0;
        margin-bottom: 30px;
    }
    #sec05 .tt h3 {
        margin-bottom: 15px;
        color: #fff;
    }
    #sec05 .con {
        padding: 30px;
    }
    #sec05 input[type="text"] , #sec05 textarea {
        height: 40px;
        padding: 10px 15px;
        margin-bottom: 5px;
        font-size: 12px;
    }
    .term_scroll {
        padding: 10px 15px;
        font-size:12px
    }
    .form_btn {
        display: flex;
        gap:15px
    }
    .form_btn button {
        height: 40px;
        font-size: 12px;
    }



    .marquee {
        height: 95px;
        gap:30px;
    }
    .marquee > div {
        gap:30px;
    }
    .marquee ul {
        gap:30px;
    }
    .marquee li {
        width: 100px;
    }


    /*sub top*/
    
    .subTop {
        height: 300px;
        margin-bottom: 70px;
    }
    .subTop .wrap h2 {
        font-size: 36px;
        padding-top: 50px;
    }
    
    /* 회사소개 */
    
    .navSub {
        padding: 0 0 75px 0;
    }
    .navSub ul {
        padding: 15px 0 70px 0;
    }
    .navSub ul li a {
        font-size: 14px;
        padding: 8px 18px;
    }
    
    /*인사말*/
    .ceo_img .ceo_tit {
        display: flex;
        justify-content: space-between;
        margin: 25px 0;
    }
    .ceo_img .ceo_tit h4 {
        font-size: 30px;
        line-height: 35px;
        padding: 0 0 0 20px;
        background: url(/img/color_line.png) no-repeat 0 0;
    }
    .ceo_img .ceo_tit h4 .gray {
        font-size: 19px; 
    }
    .ceo_img .ceo_tit em {
        display: none;
    }
    .ceo_con {
        width: 100%;
        font-size: 14px;
        padding: 45px 0 0 0;
        line-height: 20px;
    }
    .ceo_con span {
        color: #000;
        font-weight: bold;
        font-size: 18px;
    }
    .ceo_con strong {
        color: #000;
        font-weight: bold;
        font-size: 12px;
        padding: 0 40px 0 0;
    }
    .ceo_con strong span.name {
        margin: 0 0 0 7px;
        font-size: 17px;
    }
    .ceo_con > .flex {
        display: flex;
        justify-content: space-between;
    }
    .ceo_con > .flex img {
        width: 50%;
    }
    .ceo_con > .flex > .txt a {
        width: 170px;
        height: 42px;
        border-radius: 24px;
        border: 1px solid #000;
        font-size: 12px;
        gap:10px;
        margin-bottom: 25px;
    }
    .mL30 {
        margin-left: 30px;
    }

    /* 비전과 미션 */
    .vision_tit {
        margin: 30px 0 40px;
    }
    .vision_tit img {
        width: 30px;
    }
    .vision_tit h4 {
        font-size: 22px;
        line-height: 30px;
        padding: 16px 0;
    }
    .vision_con01 {
        height: 127px;
        margin-bottom: 20px;
    }
    em {
        padding: 0 0 10px 0;
        font-size: 12px;
    }
    em .large {
        font-size: 16px;
    }
    strong {
        color: #fff;
        font-size: 14px;
    }
    .vision_con02 {
        height: 127px;
        margin-bottom: 20px;
    }
    .vision_con03 {
        height: 127px;
        margin-bottom: 20px;
    }
    .vision_con04 {
        height: 127px;
        margin-bottom: 20px;
    }

    #sec02 h4 {
        margin: 35px 0 20px;
        font-size:24px;
    }

    /* 연혁 */
    .histroy {
        margin-bottom: 0;
        margin-top: 30px;
    }

    /* 조직도 */
    .organ h3 {
        font-size: 20px;
        margin: 20px 0 28px;
    }
    .organ_con {
        
    }
    .phone {
        margin: 50px 0;
    }
    .phone h3 {
        font-size: 20px;
        margin: 20px 0 28px 40px;
    }
    .phone_img {
        display: none;
    }
    .phone_txt {
        padding: 20px 30px;
        width: 100%;
        height: 230px;
        line-height: 30px;
    }
    .phone_txt img {
        top: 42px;
        left: 30px;
        width: 28px;
    }
    .phone_txt p {
        font-size: 12px;
    }
    .phone_txt p .tell {
        font-size: 16px;
    }
    .mL80 {
        margin-left: 70px;
    }
    .mL40 {
        margin-left: 51px;
    }

    /* 인증 및 수상 */
    .certify {
        display: none;
    }
    .certify_m {
        display: block;
    }
    .certify_m h3 {
        font-size: 20px;
        margin: 20px 0 28px;
    }
    .license {
        display: flex;
    }
    .license .license_con {
        margin-right: 15px;
        margin-bottom: 25px;
    }
    .license .license_con:last-child {
        margin-right: 0;
    }
    .license .license_con p {
        font-size: 12px;
        margin: 12px 0 0 0;
    }
    .license .license_con p.white {
        font-size: 12px;
        margin: 12px 0 0 0;
    }
    .award {
        display: none;
        padding: 40px;
        margin: 25px 0 0 0;
    }
    .award_m {
        display: block;
        padding: 40px 0;
        background-image: url(../img/license_bg.png);
        background-size: cover;
        background-position: left;
        background-repeat: no-repeat;
        margin: 25px 0 -75px ;
    }
    .award_m h3 {
        font-size: 20px;
        margin-bottom: 28px;
        color: #fff;
    }

    /* 클라이언트 */
    .client {
        width: 100%;
        margin-top: 20px;
        text-align: center;
    }
    .client h4 {
        margin: 35px 0 20px;
        font-size:24px;
    }
    .client > .txt a {
        width: 170px;
        height: 42px;
        border-radius: 24px;
        border: 1px solid #000;
        font-size: 12px;
        gap:10px;
        margin-bottom: 0;
    }

    /* 비전과 미션 */
    .merit {
      display: none;
    }
    .m_merit {
        width: 100%;
        display: block;
        padding: 50px 0;
    }
    .m_merit .merit_con {
        flex-direction: column;
        text-align: left;
        margin-bottom: 80px;
        width: 100%;
    }
    .m_merit .merit_con:last-child {
        margin-bottom: 40px;
    }
	
	/*
    .m_merit .merit_con .sImg01 {
        width: 100%;
        background: url("../img/business01.png") no-repeat center / cover;
        padding: 100px 0;
    }
    .m_merit .merit_con .sImg02 {
        width: 100%;
        background: url("../img/business02.png") no-repeat center / cover;
        padding: 100px 0;
    }
    .m_merit .merit_con .sImg03 {
        width: 100%;
        background: url("../img/business03.png") no-repeat center / cover;
        padding: 100px 0;
    }
    .m_merit .merit_con .sImg04 {
        width: 100%;
        background: url("../img/business04.png") no-repeat center / cover;
        padding: 100px 0;
    }
    .m_merit .merit_con .sImg05 {
        width: 100%;
        background: url("../img/business05.png") no-repeat center / cover;
        padding: 100px 0;
    }
    .m_merit .merit_con .sImg06 {
      width: 100%;
      background: url("../img/business06.png") no-repeat center / cover;
      padding: 100px 0;
  }
  
  */
    .merit .merit_con .sTxt {
        width: 100%;
    }
    .m_merit .merit_con .sTxt h4 {
        font-size: 20px;
        margin-top: 30px;        
        margin-bottom: 3px;
      }
    .m_merit .merit_con .sTxt em {
        font-size: 12px;
        color: #7b7b7b;
      }
    .m_merit .merit_con .sTxt p {
        font-size: 12px;
        margin-top: 20px;
        line-height: 24px;
      }
      .mT140 {
        margin-top: 0;
      }

    /* footer*/

    footer.section {
        font-size: 12px;
        padding: 30px 0 !important;
    }
    footer .term {
        gap:10px
    }
    footer .flexSb {
        height: 50px;
    }
    footer .flexSb a {
        font-size: 12px;
    }
    .fnb {
        padding: 20px 0 35px;
    }
    .fnb p {
        margin-top: 10px;
    }
}





@media screen and (max-width: 997px) {
    /* 기존 코드 유지하고 아래 추가 */
    
    /* 가로 스크롤 완전 차단 */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .main, main, #fullpage {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    section, .section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box;
    }
    

    
    .flex, .flexSb {
        overflow-x: hidden !important;
    }
    
    /* 모바일 메뉴 수정 */
    nav {
        right: -100% !important;
    }
    
    header.on nav {
        right: 0 !important;
    }
}