
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 0 0px;
  background-color: #f5f5f5;
}

::-webkit-scrollbar {
  width: 8px;
  background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  border-radius:10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #999;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}


html, body {
  margin:0;
  padding:0;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
  font-weight: 400;
}
img { max-width:100%; }

header {
  background-color: #fff;
  width: 100%;
  z-index: 10;
  position: fixed;
  top: 36px;
  left: 0;
}

header.hover,
.scrolled header { /* border-bottom: 1px solid #eee; */ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2); }

header.hover {
  /*border-bottom: 1px solid var(--theme-color);*/
}


header .header-wrap {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*max-width: 1800px;*/
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
  transition: all 0.3s;
}


@media screen and (max-width: 992px) {
  header .header-wrap {
    height: var(--tablet-header-height);
  }
}

@media screen and (max-width: 768px) {
  header .header-wrap {
    height: var(--mobile-header-height);
  }
}


header .header-wrap .logo {
  flex: 0 0 auto;
  height: 100% !important;
  align-items: center !important;
  display: inline-flex !important;
}

header .header-wrap .logo img {
  height:60px;
  transition: all 0.3s;
}

@media screen and (max-width: 1200px) {
  header .header-wrap .logo img {
    height:50px;
  }
}

@media screen and (max-width: 768px) {
  header .header-wrap .logo img {
    height:40px;
  }
}

header:hover .header-wrap .logo {
  filter:none;
}


@media screen and (max-width: 1200px) {
  header .header-wrap .logo {
    filter:none;
  }
}


.desktop-gnb {
  text-align: center;
  display:flex;
}

.desktop-gnb .gnb-depth1-wrap {
  align-items: center;
  display: flex;
}

.desktop-gnb li,
.desktop-gnb ul {
  padding: 0;
  list-style: none;
  margin-bottom:0;
}

.gnb-depth1-item {
  position: static;
  min-width: 150px;
}

.desktop-gnb a {
  text-decoration:none;
}
.desktop-gnb a:active,
.desktop-gnb a:visited,
.desktop-gnb a:hover {
  text-decoration:none;
}

.desktop-gnb .gnb-depth1-item > a.gnb-link {
  justify-content: center;
  position: relative;
  height: var(--header-height);
  padding: 0 2em;
  display: flex;
  align-items: center;
  text-align: center;
  font-size: clamp(1em, 1.5vw, 1.1em);
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.1s;
}


.desktop-gnb .gnb-depth1-wrap li:nth-child(1) > ul {
  margin-left: -20px;
}
.desktop-gnb .gnb-depth1-wrap li:nth-child(2) > ul {
  margin-left: 10px;
}
.desktop-gnb .gnb-depth1-wrap li:nth-child(3) > ul {
  margin-left: 20px;
}
.desktop-gnb .gnb-depth1-wrap li:nth-child(4) > ul {
  margin-left: 30px;
}


@media screen and (max-width: 1200px) {


  .desktop-gnb .gnb-depth1-wrap li:nth-child(1) > ul {
    margin-left: -50px;
  }
  .desktop-gnb .gnb-depth1-wrap li:nth-child(2) > ul {
    margin-left: 0px;
  }
  .desktop-gnb .gnb-depth1-wrap li:nth-child(3) > ul {
    margin-left: 10px;
  }
  .desktop-gnb .gnb-depth1-wrap li:nth-child(4) > ul {
    margin-left: 10px;
  }

  .desktop-gnb .gnb-depth1-item {
    min-width: 100px;
  }
}

.desktop-gnb .gnb-depth1-item > a.gnb-link:focus {
  outline:1px dotted var(--theme-color);
}

.desktop-gnb .gnb-depth1-item > a.gnb-link:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--theme-color);
  transition: 0.3s;
  display: block;
  transform-origin: center;
}

header .gnb-depth1-item > a.gnb-link.active:after,
.desktop-gnb .gnb-depth1-item:hover > a.gnb-link:after {
  width: 55%;

}

body:not(.fp-viewing-page1, .fp-viewing-page2) header .gnb-depth1-item > a.gnb-link,
header .gnb-depth1-item > a.gnb-link,
header:hover .gnb-depth1-item > a.gnb-link {
  color:#000;
}

@media screen and (max-width: 1200px) {
  header .gnb-depth1-item > a.gnb-link {
    color:#000;
  }
}

header .gnb-depth1-item > a.gnb-link.active,
header:hover .gnb-depth1-item > a.gnb-link:hover {
  color:var(--theme-color) !important;
}


.desktop-gnb .gnb-depth2-wrap {
  z-index: 2;
  height:0;
  text-align: left;
  padding: 0;
  position:absolute;
  top:var(--header-height);
  margin-top:50px;
  transition: all 0.4s;
  overflow:hidden;
}

.desktop-gnb .gnb-depth1-item:last-child .gnb-depth2-wrap { padding-right:0; }

.header.hover .desktop-gnb .gnb-depth2-wrap {
  height:150px;
}

.desktop-gnb .gnb-depth2-item {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding-bottom: 20px !important;
}

.desktop-gnb .gnb-depth2-item > a.gnb-link {
  font-size: clamp(0.9em, 1.5vw, 1em);
}

.desktop-gnb .gnb-depth2-item a.gnb-link {
  display: block;
  font-weight:500;
  position: relative;
  padding: 0 1rem;
  color: #333;
  font-weight: 400;
  line-height: 1.2;
  outline:none;
}

.desktop-gnb .gnb-depth3-wrap {
  margin:10px 0 0 10px;
  display: block;
}

.desktop-gnb .gnb-depth3-wrap .gnb-depth3-item a.gnb-link {
  font-size: 0.825rem;
  font-weight: 400;
  padding: 0.3rem 1.3rem !important;
}


.desktop-gnb .gnb-depth2-item a.gnb-link.active,
.desktop-gnb .gnb-depth2-item a.gnb-link:focus,
.desktop-gnb .gnb-depth2-item a.gnb-link:hover {
  color:var(--theme-color) !important;
}

.desktop-gnb .gnb-depth2-item a.gnb-link:after {
  content: "";
  position: absolute;
  left: 0%;
  bottom: 0px;
  width: 0;
  height: 10px;
  background-color: var(--theme-color);
  border-radius:10px;
  opacity:0.1;
  transition: 0.3s;
  display: block;
  transform-origin: center;
}

.desktop-gnb .gnb-depth2-item a.gnb-link:focus:after  {
  width: 100%;
}


a.gnb-link i.icon-external { display:inline-block; margin-left:0.1em; font-size:0.8em; }


.desktop-gnb .gnb-depth3-wrap {
  display: block;
}

.desktop-gnb .sub-gnb-overlay {
  display:none;
  opacity: 0;
  position: absolute;
  left: 0%;
  top: var(--header-height);
  width: 100%;
  height: 0 !important;
  background-color: #fff ;
  box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
  z-index: -1;
  transition: all 0.3s;
}

.desktop-gnb .sub-gnb-overlay img {
  content:'';
  position:absolute;
  right:50px;
  top:0;
  max-width:250px;
  opacity:0.6;
}


.desktop-gnb .sub-gnb-overlay {
  border-top: 1px solid #ddd;
}


.desktop-gnb:hover .sub-gnb-overlay {
  display:block;
  opacity: 1;
  height: 540px !important;
  z-index:10;
}


header .util-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end !important;
  gap: 20px;
}

.mobile-gnb-btn {
  text-align: center;
  color: white;
  font-size: 1.2rem;
  cursor:pointer;
  background: transparent;
  border: none;
  display: none;
}
.mobile-gnb-btm-btn {position:fixed;transform: translate(4000px, 0%);}

.scrolled header .mobile-gnb-btn,
header:hover .mobile-gnb-btn {
  color:var(--theme-color);
}


@media screen and (max-width: 1200px) {
  header .mobile-gnb-btn {
    color:var(--theme-color);
  }
}


@media screen and (max-width: 992px) {
  .desktop-gnb .gnb-depth1-wrap {
    display:none;
  }
  .mobile-gnb-btn {
    display: block;
  }
}

.main-body {
  min-height: 65vh;
  height: 100%;
  position: relative;
}


/* mobile gnb */
.full-popup-open,
.mobile-gnb-open { overflow:hidden !important; }

.mobile-gnb {
  z-index: 700;
  background-color: #fff;
  max-width: 350px;
  width: 100%;
  height: 100%;
  transition: 500ms all;
  text-align: left;
  position: fixed;
  top: 0;
  right: -100%;
  display:none;
}


@media screen and (max-width: 576px) {
  .mobile-gnb {
    max-width: 100%;
  }
}


.mobile-gnb a { text-decoration:none; }
.mobile-gnb ul { margin:0; padding:0;}
.mobile-gnb ul li { list-style:none;}


@media (max-width: 992px) {
  .mobile-gnb {
    display: block;
  }
}

.mobile-gnb .top-link-box { background: rgb(3, 12, 57) !important; display:flex; justify-content: center!important; align-items: center !important; gap:20px; }
.mobile-gnb .top-link-box a { display:block; height:100%; padding:5px; color:#fff; text-decoration:none;}
.mobile-gnb .top-link-box.fs-sm { gap:15px; }
.mobile-gnb .top-link-box.fs-sm a { font-size:0.8em; padding:10px 0; }

@media screen and (max-width: 578px) {
  .mobile-gnb .top-link-box.fs-sm { gap:10px; }
  .mobile-gnb .top-link-box.fs-sm a { font-size:0.8em; }
}

.mobile-gnb-open .mobile-gnb {
  right: 0;
}
.mobile-gnb-open .mobile-gnb .mobile-gnb_btn {
  color: #222;
}
.mobile-gnb_btn {
  right: 0;
  top: 0;
  position: absolute;
  text-align: center;
  height: 60px;
  width: 60px;
  color: white;
  font-size: 2rem;
  display: none;
}
@media (max-width: 1200px) {
  .mobile-gnb_btn {
    display: block;
  }
}
.mobile-gnb_bg {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  right: 0;
  min-height: 100%;
  height: 700px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 600;
}
.mobile-gnb-open .mobile-gnb_bg { display:block; }

.mobile-gnb_head {
  height: var(--header-height);
  position: relative;
  border-bottom: 1px solid #ddd;
  z-index:10;
}

@media screen and (max-width: 992px) {
  .mobile-gnb_head {
   height: var(--tablet-header-height);
  }
}

@media screen and (max-width: 768px) {
  .mobile-gnb_head {
   height: var(--mobile-header-height);
  }
}

.mobile-gnb_head .logo {
  padding: 0 1.25rem;
}
.mobile-gnb_head .logo > img {
  height:40px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .mobile-gnb_head .logo > img {
    height:40px;
  }
}
.mobile-gnb_head .logo.eng-logo > img {
  width: 11.25rem;
}
@media (max-width: 576px) {
  .mobile-gnb_head .logo.eng-logo > img {
    width: 11.25rem;
  }
}
.mobile-gnb_head .logo-bx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}


.mobile-gnb_head .logo-bx .aside-util {
  display: flex;
  gap: 15px;
  transition: all 0.3s;
}

@media screen and (max-width: 768px) {
  .mobile-gnb_head .logo-bx .aside-util { gap:5px; }
}

.mobile-gnb_head .logo-bx .aside-util .lang-item:hover .lang-wrap {
  opacity:1;
  width: 143px;
  opacity: 1;
}

.mobile-gnb_head .logo-bx .aside-util .lang-item:hover .lang-btn {
  color:#fff !important;
}

.mobile-gnb_head .logo-bx .mobile-gnb-btn { display:block; color:#000; margin-right:10px; font-size:25px;}

.mobile-gnb_head .logo-bx .lang-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.mobile-gnb_head .logo-bx .lang-item .lang-btn {
  position: relative;
  z-index:2;
  color:#da291c;
  font-size: 1.2rem;
  cursor:pointer;
  background: transparent;
  border: none;
}

.mobile-gnb_head .logo-bx .lang-item .lang-wrap {
  overflow: hidden;
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border-radius: 20px;
  width: 85px;
  opacity: 0.5;
  transition: all 0.3s;
  height: auto;
}
.mobile-gnb_head .logo-bx .lang-item .lang-wrap .inner {
  padding: 8px 20px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: all 0.3s;
}

.mobile-gnb_head .logo-bx .lang-item:hover .lang-wrap {
  background: #000;
  width: 143px;
  opacity: 1;
}
.mobile-gnb_head .logo-bx .lang-item:hover .lang-wrap .inner {
  opacity: 1;
}
.mobile-gnb_head .logo-bx .lang-item:hover .lang-wrap .lang {
  display: block;
  color: #666;
}
.mobile-gnb_head .logo-bx .lang-item:hover .lang-wrap .lang.active {
  color: white;
}
.mobile-gnb_head .logo-bx .btn-cals-research {
  display: block;
  border-radius: 20px;
  color: var(--theme-color);
  border: 1px solid var(--theme-color);
  padding: 7px 12px;
}


@media screen and (max-width: 578px) {
  .mobile-gnb_head .logo-bx .btn-cals-research { border: none !important;}
  .mobile-gnb_head .logo-bx .btn-cals-research strong { display:none;}
}


.mobile-gnb_body {
  margin-bottom: 50px;
  margin-top: 10px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  height: calc(100vh - 60px);
  z-index:10;
}


.mobile-gnb_body .gnb-list { position:relative; z-index:100; padding-right:10px; margin-bottom:30px; }

.mobile-gnb_body .gnb-link-wrap {
  position:relative;
  z-index:100;
  display: block;
}

.mobile-gnb_body .gnb-link-wrap a {
  display: block;
  background: #f0f0f0;
  padding: 20px;
  margin: 10px;
  border-radius: 20px;
}

.mobile-gnb_body .mobile-deco {
display:none;
  position: absolute;
  right: 0%;
  top: 30px;
  z-index: -1;
  max-width:300px;
}
.mobile-gnb_body .gnb-depth2-wrap:not(.active),
.mobile-gnb_body .gnb-depth3-wrap:not(.active) {
  display: none;
}

.mobile-gnb .gnb-link { position:relative; }
.mobile-gnb .gnb-link i.icon-accordion { color:#555; font-size: 1rem; position:absolute; right:0; transition: all 0.3s; }


.mobile-gnb .gnb-depth1-item > .gnb-link i.icon-accordion { top:1.2rem; }
.mobile-gnb .gnb-depth2-item > .gnb-link i.icon-accordion { top:0.2rem; }

.mobile-gnb .gnb-depth1-item > .gnb-link.active i.icon-accordion,
.mobile-gnb .gnb-depth2-item > .gnb-link.active i.icon-accordion {
  transform: rotate(180deg);
}


.mobile-gnb .gnb-depth1-item > .gnb-link {
  text-align: left;
  color: #000;
  display: block;
  padding: 1rem 1rem;
  font-size: 1.1rem;
  position: relative;
  font-weight: 600;
}
.mobile-gnb .gnb-depth1-item > .gnb-link:hover,
.mobile-gnb .gnb-depth1-item > .gnb-link.active {
  color: var(--theme-color);
}


.mobile-gnb .gnb-depth2-item > .gnb-link {
  display: block;
  padding: 0.3rem 1rem;
  padding-left: 1.6rem;
  background-color: transparent;
  color: #555;
  font-size: 1rem;
  font-weight: 500;
}
.mobile-gnb .gnb-depth2-item > .gnb-link:hover {
  color: var(--theme-color);
}

.mobile-gnb .gnb-depth2-item > .gnb-link.active {
  color: var(--theme-color);
}

.mobile-gnb .gnb-depth2-item:last-child > .gnb-link {
  padding-bottom: 1rem;
}
.mobile-gnb .gnb-depth3-item { position:relative; }
.mobile-gnb .gnb-depth3-item:before { content:'ㆍ'; position:absolute; left:20px; }


.mobile-gnb .gnb-depth3-item > .gnb-link {
  display: block;
  padding: 0.3rem 1rem;
  padding-left: 2.4rem;
  background-color: transparent;
  color: #555;
  font-size: 0.85rem;
  font-weight: 500;
}

.mobile-gnb .gnb-depth3-item > .gnb-link:hover {
  color: var(--theme-color);
}




.mobile-gnb .gnb-depth3-item > .gnb-link.on {
  color: var(--theme-color);
}
.mobile-gnb .gnb-depth1-item > .gnb-link,
.mobile-gnb .gnb-depth2-item > .gnb-link {
  display: block;
  position: relative;
}
.mobile-gnb .gnb-depth1-item._down > .gnb-link:before,
.mobile-gnb .gnb-depth2-item._down > .gnb-link:before {
  font-family: xeicon !important;
  display: inline-block;
  speak: none;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\e913";
}
.mobile-gnb .gnb-depth1-item._down > .gnb-link.active:before,
.mobile-gnb .gnb-depth2-item._down > .gnb-link.active:before {
  content: "\e91a";
}
.mobile-gnb .gnb-depth1-item._down > .gnb-link:before,
.mobile-gnb .gnb-depth2-item._down > .gnb-link:before {
  position: absolute;
  top: 50%;
  font-size: 1rem;
  margin-top: -0.5rem;
  right: 1rem;
}
.mobile-gnb .gnb-list-depth2-wrap,
.mobile-gnb .gnb-list-depth3-wrap {
  display: none;
}


/*********** sv ***************/
.sv-part { margin-top:var(--header-height);}

@media screen and (max-width: 992px) {
  .sv-part { margin-top:var(--tablet-header-height);}
}

@media screen and (max-width: 768px) {
  .sv-part { margin-top:var(--mobile-header-height);}
}




/***************** footer *******************/

@media (max-width: 768px) {
  .footer .footer-top {
    text-align:center;
  }
}

.footer .cals-logo img { max-height:50px; }
.footer .family-wrapper {
  display: flex;
  align-items: center;
  display: flex;
  justify-content: center !important;
}
.footer .familysite {
  position: relative;
}
.footer .line { margin:30px 0 !important; }

.footer .familysite .btn-family {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 142px;
  height: 34px;
  line-height: 34px;
  padding: 10px 0;
  font-size: 0.938rem;
  font-weight: 400;
  text-align: left;
  color: #eee;
  border-bottom: 1px solid #ddd;
}

.footer .familysite .btn-family i {
  transition: all 0.3s;
  color:#fff !important;
}
.footer .familysite .btn-family.active i {
  transform: rotate(180deg);
}

.family-link-box {
  position: absolute;
  right: 0;
  bottom: 0px;
  max-width: 100%;
  background-color: white;
  z-index: 100;
  display:none;
  overflow:hidden;
  padding:24px 20px 20px;
  background-color:#343a40;
  border-bottom:1px solid #666;
}


.family-link-box .btn-close-family { position:absolute; right:10px; top:10px; border:0; background-color: transparent; color:#fff;}

.family-link-box ul { margin:0; padding:0; }
.family-link-box ul li { list-style:none; }
.family-link-box ul li a {
  display:block;
  text-decoration:none;
  font-size: 1rem;
  font-weight: 400;
  color: #ddd;
}
.family-link-box ul li a:hover {
  color: #fff;
}


@media (max-width: 768px) {

  .family-link-box {
    width:100%;
    padding:30px 15px;
  }

  .family-link-box ul li a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
  }
}

