#new_hd {
  position: absolute;
}

#new_hd.active {
  position: fixed;
  height: auto;
  background-color: #fff;
  -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

#new_hd.active .nav_wrap > .logo {
  width: 200px;
  height: 54px;
}

#new_hd.active .nav_wrap > .logo > a {
  background-image: url(../img/logo_on.png);
}

#new_hd.active .nav_wrap > .nav_main .nav_main_box > .nav_main_ob > a {
  color: #000;
}

@media all and (max-width: 481px) {
  #new_hd.active .nav_wrap > .logo {
    width: 160px;
    height: 45px;
  }

  #new_hd.active .menubars {
    margin-top: 0;
  }
}

/*서브BG*/
.sub_bg_wrap {
  width: 100%;
  height: 580px;
  position: relative;
}

.sub_bg_wrap .sub_bg_area {
  width: 100%;
  height: 100%;
  position: relative;
}

.sub_bg_wrap .sub_bg_con {
  width: 100%;
  height: 100%;
  position: relative;
}

.sub_bg_wrap .sub_bg_size {
  width: 100%;
  height: 100%;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
}

.sub_bg_wrap .sub_bg_size_01 {
  background-image: url(../img/sub_bg_01.png);
}

.sub_bg_wrap .sub_bg_size_02 {
  background-image: url(../img/sub_bg_02.png);
}

.sub_bg_wrap .sub_bg_size_03 {
  background-image: url(../img/sub_bg_03.png);
}

.sub_bg_wrap .sub_bg_size_04 {
  background-image: url(../img/sub_bg_04.png);
}

.sub_bg_wrap .sub_bg_size .sub_title_box {
  width: 100%;
  height: auto;
  position: relative;
  text-align: center;
  top: 240px;
}

.sub_bg_wrap .sub_bg_size .sub_title_box > .sub_title_ob {
  width: auto;
  display: block;
  height: auto;
}

.sub_bg_wrap .sub_bg_size .sub_title_box > .sub_title_ob > h2 {
  font-size: 3rem;
  font-weight: 500;
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  display: inline-block;
  padding-bottom: 20px;
  border-bottom: 1px solid #fff;
  line-height: 3rem;
}

@media all and (max-width: 1025px) {
  .sub_bg_wrap {
    height: 400px;
  }
}

@media all and (max-width: 481px) {
  .sub_bg_wrap {
    height: 280px;
  }
}

/*서브BG end*/

/*서브탭 메뉴*/
.sub_bg_wrap .sub_bg_size .sub_tab_con {
  width: 100%;
  max-width: 1070px;
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  margin: 0 auto;
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box > li {
  width: 210px;
  height: 70px;
  list-style: none;
}

/*기존 코드

.sub_bg_wrap .sub_bg_size .sub_tab_con {
  width: 100%;
  max-width: 1260px;
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box {
  margin: 0 auto;
  height: auto;
  position: relative;
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box > li {
  width: auto;
  height: 70px;
  margin-right: 2px;
  float: left;
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_7 > li {
  width: -webkit-calc((100% - 13px) / 7);
  width: calc((100% - 13px) / 7);
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_6 > li {
  width: -webkit-calc((100% - 11px) / 6);
  width: calc((100% - 11px) / 6);
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_5 > li {
  width: -webkit-calc((100% - 9px) / 5);
  width: calc((100% - 9px) / 5);
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_4 > li {
  width: -webkit-calc((100% - 7px) / 4);
  width: calc((100% - 7px) / 4);
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_3 > li {
  width: -webkit-calc((100% - 5px) / 3);
  width: calc((100% - 5px) / 3);
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_2 > li {
  width: -webkit-calc((100% - 3px) / 2);
  width: calc((100% - 3px) / 2);
}
  
.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_1 > li {
  width: 100%;
}*/

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_1 > li {
  /*width: 100%;*/
  width: 210px;
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box > li:last-of-type {
  margin-right: 0;
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box > li > a {
  font-size: 1.125rem;
  display: block;
  text-align: center;
  line-height: 70px;
  background-color: rgba(1, 17, 33, 0.5);
  color: #fff;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.sub_bg_wrap .sub_bg_size .sub_tab_con_en .sub_tab_box > li > a {
  font-size: 1rem;
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box > li > a:hover {
  background-color: #f6821c;
}

.sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box > li.sub_tab_active > a {
  background-color: #f6821c;
}

@media all and (max-width: 1025px) {
  .sub_bg_wrap .sub_bg_size .sub_title_box {
    top: 180px;
  }
}

@media all and (max-width: 801px) {
  .sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_6 > li {
    width: -webkit-calc((100% - 4px) / 3);
    width: calc((100% - 4px) / 3);
    height: 50px;
    margin-bottom: 2px;
  }

  .sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_4 > li {
    width: -webkit-calc((100% - 4px) / 2);
    width: calc((100% - 4px) / 2);
    height: 50px;
    margin-bottom: 2px;
  }

  .sub_bg_wrap
    .sub_bg_size
    .sub_tab_con
    .sub_tab_box.sub_tab_6
    > li:nth-of-type(4),
  .sub_bg_wrap
    .sub_bg_size
    .sub_tab_con
    .sub_tab_box.sub_tab_6
    > li:nth-of-type(5),
  .sub_bg_wrap
    .sub_bg_size
    .sub_tab_con
    .sub_tab_box.sub_tab_6
    > li:nth-of-type(6),
  .sub_bg_wrap
    .sub_bg_size
    .sub_tab_con
    .sub_tab_box.sub_tab_4
    > li:nth-of-type(3),
  .sub_bg_wrap
    .sub_bg_size
    .sub_tab_con
    .sub_tab_box.sub_tab_4
    > li:nth-of-type(4) {
    margin-bottom: 0;
  }

  .sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box.sub_tab_3 > li {
    height: 50px;
  }

  .sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box > li > a {
    font-size: 1rem;
    line-height: 50px;
  }

  .sub_bg_wrap
    .sub_bg_size
    .sub_tab_con
    .sub_tab_box.sub_tab_6
    > li:nth-of-type(3n) {
    margin-right: 0;
  }

  .sub_bg_wrap
    .sub_bg_size
    .sub_tab_con
    .sub_tab_box.sub_tab_4
    > li:nth-of-type(2n) {
    margin-right: 0;
  }

  .sub_bg_wrap .sub_bg_size .sub_title_box {
    top: 150px;
  }
}

@media all and (max-width: 481px) {
  .sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box > li > a {
    font-size: 0.875rem;
  }

  .sub_bg_wrap .sub_bg_size .sub_title_box {
    top: 125px;
  }

  .sub_bg_wrap .sub_bg_size .sub_title_box > .sub_title_ob > h2 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .sub_bg_wrap .sub_bg_size .sub_tab_con {
    display: none;
  }
}

@media all and (max-width: 321px) {
  .sub_bg_wrap .sub_bg_size .sub_tab_con .sub_tab_box > li > a {
    font-size: 0.75rem;
  }
}

/*서브탭 메뉴 end*/

/*서브 본문*/
.sub_page_wrap {
  width: 100%;
  height: auto;
  position: relative;
}

.sub_page_wrap .sub_page_area {
  width: 100%;
  height: auto;
  position: relative;
}

.sub_page_wrap .sub_page_con {
  width: 100%;
  height: auto;
  position: relative;
}

.sub_page_wrap .sub_page_size {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  position: relative;
  display: block;
  padding-top: 160px;
  padding-bottom: 200px;
}

.sub_page_wrap .sub_page_size .sub_title {
  width: 100%;
  height: auto;
  position: relative;
  text-align: center;
  margin-bottom: 140px;
}

.sub_page_wrap .sub_page_size .sub_title * {
  font-family: "Noto Sans KR", sans-serif;
}

.sub_page_wrap .sub_page_size .sub_title > h2 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 4.1rem;
}

.sub_page_wrap .sub_page_size .sub_title > h2 > img {
  width: auto;
  max-width: 100%;
  vertical-align: middle;
}

.sub_page_wrap .sub_page_size .sub_title > h2 > span {
  font-weight: 600;
}

@media all and (max-width: 1441px) {
  .sub_page_wrap .sub_page_size {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media all and (max-width: 801px) {
  .sub_page_wrap .sub_page_size .sub_title > h2 {
    font-size: 3rem;
  }
}

@media all and (max-width: 621px) {
  .sub_page_wrap .sub_page_size {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .sub_page_wrap .sub_page_size .sub_title {
    margin-bottom: 70px;
  }

  .sub_page_wrap .sub_page_size .sub_title > h2 {
    font-size: 2.5rem;
  }
}

@media all and (max-width: 481px) {
  .sub_page_wrap .sub_page_size .sub_title > h2 {
    font-size: 2rem;
  }

  .sub_page_wrap .sub_page_size {
    padding-left: 15px;
    padding-right: 15px;
  }

  .sub_page_wrap .sub_page_size .sub_title {
    margin-bottom: 50px;
  }

  .sub_page_wrap .sub_page_size .sub_title > h2 > img {
    max-width: 70%;
  }
}

@media all and (max-width: 321px) {
  .sub_page_wrap .sub_page_size {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/*서브 본문 end*/
