:root{
/* color */
--color-main: #379E9F ;
--color-primary-light: #14B7B5;
--color-primary-dark: #2E6465;
--color-text-01: #777777;
--color-bg-01: #CFE3E3; 
--color-bg-02: #e0f5f5;
}

/* fonts */
.font-prtd{font-family: "Pretendard", sans-serif;}
.font-rale{font-family: "Raleway", sans-serif;}

* { font-size: inherit; }
html{scroll-behavior: smooth;}
html, body { color: var(--color-text-01); position: relative; font-family: "Pretendard", sans-serif;}
button {cursor: pointer;}
.btn { display: flex; justify-content: center; align-items: center; height: 100%; font-size: 14px; border-radius: 25px; width: 160px; height: 42px;}
.btn>a{ display: flex; width: 100%; height: 100%; justify-content: center; align-items: center;}
.ul-style{ list-style: circle; }
.inner { max-width: 1024px; margin: 0 auto;}

/* layout */
.pb10 { padding-bottom: 10px; }
.ms100 { margin: 100px 0;}
.ms25 { margin: 0 25px; }
.mt-auto { margin-top: auto; margin-bottom: 0; }
.mt25 { margin-top: 25px;}
.mb0 { margin-bottom: 0 !important }
.mb10 { margin-bottom: 10px; }
.mb15 { margin-bottom: 15px; }
.mb20 { margin-bottom: 20px; }
.mb25 { margin-bottom: 25px; }
.mb30 { margin-bottom: 30px; }
.mb35 { margin-bottom: 35px; }
.mb40 { margin-bottom: 40px; }
.mb45 { margin-bottom: 45px; }
.mb50 { margin-bottom: 50px; }
.mtm20 { margin-top: -20px; }

/* Top 버튼 */
.btn-top{
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: rgb(35, 38, 38, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 20px;
  left: 95%;
  opacity: 1;
  transition: all .2s ease 0s;
  z-index: 1001;
  cursor: pointer;
}
.btn-top img{object-fit: contain;}
.btn-top:hover{background-color: var(--color-primary-light);}
.btn-top.hide{opacity: 0;}

/* 이미지 scale 컨테이너 */
.img-hovered{overflow: clip;}
.img-hovered img{
  display: block;
  transition: transform .5s ease-out 0s;
}
.img-hovered img:hover{transform: scale(1.05);}

/* 헤더 영역 */
body.hidden{
  overflow: clip;
  height: 100vh;
}
.wrap{
  width: 100%;
  overflow: clip;
}

/* 기타페이지 기준 적용, 인덱스(headerOn = 0)만 다름 */
header {
  background-color: #fff;
  width: 100%;
  height: 100px;
  position: fixed;
  box-sizing: border-box;
  left: 0;
  top: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  z-index: 1001;
}
/* header에 halfshow가 있으면  -> scroll-top > 0 인 경우  */
header.halfshow {
  transform: translateY(0);
}
header.noshow {
  transform: translateY(-200%);
  z-index: 1001;
}
/* --------------------------------------------------- */

header .inner{
  display: flex;
  height: 100%;
  justify-content: space-between;
  align-items: center;
}
.header-box{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.h-logo{
  height: 100%;
  display: flex;
  align-items: center;
}
.h-logo a{
  height: 35px;
}
.h-logo img{
  height: 100%;
}
header nav{
  height: 100%;
}
.btn-menu{
  display: none;
}
.gnb-mob-box{display: none;}
.gnb-box{  
  height: 100%;
  display: flex;
  margin-right: 20px;
}
.gnb-box li{
  display: flex;
  align-items: center;
}
.gnb-box li.depth{
  position: relative;
}
.gnb-box .depth-ul{
  position: absolute;
  top: 100px;
  left: 0;
  width: 500px;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .4s ease 0s;
  z-index: 10;
}
.gnb-box li.depth:hover>a{color: var(--color-main);}
.gnb-box li.depth:hover>.depth-ul{
  opacity: 1;
  height: 200px;
  overflow: hidden;
}
.gnb-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
  width: 100%;
  height: 0;
  z-index: -1;
  transition: all .3s ease 0s;
}
.gnb-box.hovered::after {
  height: 300px;
}
.gnb-box a{
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 5px 30px;
  word-break: keep-all;
  text-wrap-mode: nowrap;
  font-size: 18px;
  box-sizing: border-box;
}
.gnb-box li {color: #000;}
.gnb-box li.on{
  color: var(--color-main);
}  
.gnb-box li:last-of-type a{margin-right: 0;}
.gnb-box>li:hover{
  color: var(--color-main);
}
/* 인덱스 페이지만 */
header.main-pg .gnb-box>li {
  color: #fff;
}
header.main-pg .gnb-box>li:hover{
  color: #000;
}
/* 투뎁스 */
.depth-ul a{
  color: #fff;
  padding: 5px 30px;
  font-size: 16px;
  font-weight: 300;
}
.depth-ul a:hover{
  color: var(--color-main);
}

/* contact-us 버튼 */
header .btn-contact a{
  word-break: keep-all;
  text-wrap-mode: nowrap;
  font-size: 18px;
}

/* 푸터영역 */
footer{
  background: linear-gradient(-180deg, rgba(55,158,159,1) 0%, rgba(46,100,101,1) 100%);
  height: 200px;
  color: #fff;
}
footer .inner{
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.f-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50%;
}
.f-top select{
  width: 200px;
  height: 40px;
  background-color: var(--color-bg-01);
  border: 1px solid #fff;
  color: var(--color-main);
  border-radius: 25px;
  padding-left: 20px;
}
.f-logo {
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.f-logo a{
  display: block;
  height: 35px;
}
.f-logo img{
  display: block;
  height: 100%;
}
.f-btm {
  height: 50%;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.f-btm .copy{
  margin-right: 50px;
  font-weight: 400;
}
.sns-link{display: flex;}
.sns-link li{
  width: 30px;
  height: 30px;
  margin: 0 5px;
}
.sns-link img{
  display: block;
  object-fit: contain;
  width: 100%;
}
/* 개편 footer */
footer{
  height: 250px;
  background: var(--color-primary-dark) !important;
}
footer .f-logo a {
  height: 24px;
}
footer .f-top select {
  width: 180px;
  height: 35px;
  background-color: #fff;
  border: 1px solid transparent;
  color: var(--color-primary-dark);
}
footer option {
  font-family: "Pretendard", sans-serif;
}

/* 탭 반응형 */
@media (max-width: 1200px) and (min-width: 769px) {
  .inner { max-width: 90% !important; margin: 0 auto;}
  .h-logo a {
    height: 35px;
    min-width: 100px;
  }
  .h-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: inline-block;
  }
  .gnb-box a {
    padding: 5px 12px;
  }
  .btn-top {
    left: 90%;
  }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  /* Top 버튼 */
  .btn-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    left: 88%;
  }
  /* 헤더 */
  header{
    height: 50px;
    padding-bottom: unset;
    background: var(--color-main );
  }
  header .inner {
    align-items: center;
    position: relative;
    padding: 0 20px;
  }
  .h-logo a{
    height: 25px;
  }
  .btn-contact {
    display: none;
  }
  .btn-menu {
    background: url(../img/btn-menu.png) no-repeat;
    display: inline-block;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px;
    width: 30px;
    height: 15px;
    transform: translateY(-50%);
  }
  .gnb-box{
    display: none;
  }
  .gnb-mob-box{
    width: 300px;
    height: 100vh;
    display: block;
    position: absolute;
    top: 0;
    right: -300px;
    z-index: 100;
    background: #000;
    padding-top: 12px;
    padding-left: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: all .4s ease 0s;
  }
  .gnb-mob-box.on{
    right: 0;
    opacity: 1;
    pointer-events: auto;
  }
  .gnb-mob-box>ul>li{
    padding: 13px 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
  }
  .gnb-mob-box>ul>li:nth-of-type(2){
    color: var(--color-primary-light);
  }
  .gnb-mob-box .depth-mob{ 
    position: relative;
  }
  /* 더보기 아이콘 숨김 처리 */
  .gnb-mob-box button .icon-more{
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 10px;
    background: url(../img/btn-more-cs.svg) no-repeat;
    background-size: contain;
    cursor: pointer;
    transform: rotateZ(0);
    transition: all .15s ease-in-out;
  }
  .gnb-mob-box button .icon-more.change{
    transform: rotateZ(45deg);
  }
  .gnb-mob-box .depth-ul-mob{
    padding-left: 5px;
    margin-top: 5px;
    height: 240px;
    pointer-events: auto;
    opacity: 1;
    transition: all .5s ease 0s;
    position: relative;
  }
  .gnb-mob-box .depth-ul-mob::before{
    content: "";
    display: block;
    width: 107%;
    height: 236px;
    position: absolute;
    top: 0;
    left: -7%;
    background-color: #222;
    z-index: -1;
  }
  .gnb-mob-box .depth-ul-mob.toggle{
    height: 0;
    pointer-events: none;
    opacity: 0;
  }
  .gnb-mob-box ul{
    margin-top: 50px;
  }
  .gnb-mob-box .depth-ul-mob li{
    font-size: 15px;
    font-weight: 500;
    color: #fff;
  }
  .gnb-mob-box .depth-ul-mob li{
    line-height: 1.2rem;
    padding: 10px 0;
  }
  .btn-menu-close{
    display: flex;
    justify-content: flex-end;
    padding-right: 22px;
  }
  .btn-menu-close a{
    display: block;
    height: 24px;
    width: 24px;
  }
  .btn-menu-close img{
    display: inline-block;
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
  footer {
    height: 250px;
    font-size: 12px;
  }
  footer .inner{
    padding: 0;
  }
  .f-top{
    flex-direction: column;
    height: auto;
  }
  .f-top select{
    margin-bottom: 20px;
    height: 30px;
    width: 180px;
  }
  .f-top select{
    background-color: var(--color-bg-01);
    border: 1px solid #fff;
  }
  .f-logo {
    height: 30px;
    margin: 30px 0 20px;
  }
  .f-btm {
    border-top: unset;
    justify-content: unset;
    flex-direction: column;
  }
  .f-btm a{
    order: 1;
    font-size: 13px;
    text-transform: uppercase;
  }
  .f-btm p{
    order: 2;
    font-size: 13px;
    color: #ffffff80;
  }
  .info-box{
    flex-direction: column;
  }
  .f-btm h2 {
    display: none;
  }
  .sns-link{
    margin-top: 20px;
    order: 3;
  }
  .sns-link li {
    margin-left: 0;
    width: 25px;
    padding: 0 5px;
  }
  
  /* 개편 footer */
  footer {
    padding: 50px 0;
    height: 100%;
  }
  .f-logo {
    height: 30px;
    margin: 30px 0 50px;
    margin-left: 10px;
  }
  footer .f-logo a {
    height: 30px;
  }
  footer .f-top,
  footer .f-btm {
    align-items: flex-start;
  }
  footer .f-top select {
    width: 100%;
    height: 40px;
    margin-bottom: 50px;
  }
  footer .f-btm {
    margin-left: 10px;
  }
  footer .f-btm a {
    line-height: 2.5;
  }
  footer .sns-link {
    margin: 30px 0;
  }
}

