* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul {
  list-style: none;
}

#header {
  position: sticky;
  top: 0;
  width: 100%;
  /* background-color: var(--accent-color2); */
  z-index: 9999;
}
#header .inner {
  max-width: 1760px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#header .m-inner {
  display: none;
}
#header .logo a {
  display: block;
  height: 36px;
  font-size: 30px;
  color: #fff;
  font-weight: 500;
}
#header .logo img {
  height: 100%;
  width: auto;
  vertical-align: text-top;
}
#header .logo span {
  padding-left: 10px;
}
#header .gnb {
  display: flex;
}
#header .gnb > li > a {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  padding: 30px 30px;
  position: relative;
}
#header .gnb > li:not(.active) > a {
  color: var(--gray-color5);
}
#header:hover .gnb > li:not(.active) > a {
  color: #fff;
}
#header .gnb > li:hover > a {
  color: var(--brand-color1);
}
#header .gnb > li:not(.active):hover > a {
  color: var(--brand-color1);
}
#header .gnb > li > a::after {
  content: '';
  bottom: 0;
  left: 50%;
  margin-left: -10px;
  width: 20px;
  height: 20px;
  background: url(../images/circle20.png) no-repeat;
  transform: scale(0);
  transition: all 0.5s;
  position: absolute;
}
#header .gnb > li:hover > a::after {
  transform: scale(1);
}
#header .lang a {
  color: var(--gray-color5);
  font-size: 20px;
}
#header .lang a.active {
  color: #fff;
}
#header .lang .vertical-bar {
  padding: 0 5px;
  color: var(--gray-color5);
}

#footer {
  width: 100%;
  /* background-color: var(--accent-color2); */
}
#footer .inner {
  margin: 0 auto;
  max-width: 1760px;
  padding: 0 20px;
}
#footer .terms {
  padding: 10px;
  border-bottom: 1px solid var(--gray-color5);
}
#footer .terms ul {
  display: flex;
}
#footer .terms li {
  position: relative;
}
#footer .terms li + li::before {
  content: '';
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 14px;
  width: 1px;
  background: var(--gray-color5);
  position: absolute;
}
#footer .terms li a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-color6);
  padding: 0 10px;
}
#footer .info {
  padding: 10px 0 20px;
}
#footer .info ul {
  display: flex;
}
#footer .info li {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-color6);
  padding: 0 10px;
  position: relative;
}
#footer .info li + li::before {
  content: '';
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 12px;
  width: 1px;
  background: var(--gray-color5);
  position: absolute;
}

/* 테블릿 분기점 */
@media (max-width: 1200px) {
  #header .logo a {
    height: 24px;
    font-size: 20px;
  }
  #header .logo span {
    padding-left: 8px;
  }
  #header .gnb > li > a {
    font-size: 16px;
    padding: 20px 20px;
  }
  #header .gnb > li > a::after {
    width: 16px;
    height: 16px;
    margin-left: -8px;
    background: url(../images/circle16.png) no-repeat;
  }
  #header .lang a {
    font-size: 14px;
  }
  #header .lang .vertical-bar {
    font-size: 14px;
  }

  #footer .info ul:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
  }
  #footer .info ul:nth-child(2) li:last-child {
    width: 100%;
  }
  #footer .info ul:nth-child(2) li:last-child::before {
    display: none;
  }
}

/* 모바일 분기점 */
@media (max-width: 767px) {
  #header .inner {
    padding: 10px 10px 0 10px;
  }
  #header .logo a {
    height: 18px;
    font-size: 14px;
  }
  #header .logo span {
    padding-left: 5px;
  }
  #header .gnb-wrap {
    display: none;
  }
  #header .lang a {
    font-size: 12px;
  }
  #header .lang .vertical-bar {
    font-size: 12px;
    padding: 0 1px;
  }
  #header .m-inner {
    display: block;
    margin: 0 auto;
    max-width: 1760px;
    padding: 0 10px;
  }
  #header .m-gnb-wrap {
    /* touch-action: pan-x; */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #header .m-gnb-wrap::-webkit-scrollbar {
    display: none;
  }
  #header .m-gnb {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    padding: 0 10px;
    gap: 5px;
  }
  #header .m-gnb > li {
    flex-shrink: 0;
  }
  #header .m-gnb > li > a {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    white-space: nowrap;
    position: relative;
  }
  #header .m-gnb > li:not(.active) > a {
    color: var(--gray-color5);
  }
  #header:hover .m-gnb > li:not(.active) > a {
    color: #fff;
  }
  #header .m-gnb > li:hover > a {
    color: var(--brand-color1);
  }
  #header .m-gnb > li:not(.active):hover > a {
    color: var(--brand-color1);
  }
  #header .m-gnb > li > a::after {
    content: '';
    bottom: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: url(../images/circle12.png) no-repeat;
    transform: scale(0);
    transition: all 0.5s;
    position: absolute;
  }
  #header .m-gnb > li:hover > a::after {
    transform: scale(1);
  }

  #footer .inner {
    padding: 0 10px;
  }
  #footer .terms {
    padding: 5px 0 5px;
  }
  #footer .terms li a {
    font-size: 10px;
    padding: 0 5px;
  }
  #footer .info {
    padding: 5px 0 10px;
  }
  #footer .info ul {
    display: initial;
  }
  #footer .info ul:nth-child(2) {
    display: initial;
  }
  #footer .info li {
    font-size: 10px;
    padding: 0 5px;
  }
  #footer .info li + li::before {
    display: none;
  }
}
