header {
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
  padding-inline: 97px;
  transition: top 1s ease;
  top: 0;
}

header.active ~ nav > ul.pc-nav {
  top: 70px !important;
}

header.hide {
  top: -81px;
}

header:hover,
header.active {
  background-color: #fff;
}

header > div:first-child::after {
  content: '';
  position: absolute;
  background: #e0e0e0;
  height: 0px;
  width: 100dvw;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}

header:hover > div:first-child::after {
  height: 1px;
}

header > div {
  width: 100%;
  height: 80px;
}

header .header-logo {
  display: flex;
  align-items: center;
}

header .header-logo img {
  display: block;
  height: 41px;
}

header.main {
  border-bottom: 1px solid #3f414a;
  padding-inline: 97px;
}

header.active {
  border-bottom: 1px solid #e0e0e0;
  top: 0;
}

header nav .main-menu {
  color: #fff;
  font-size: 15px;
}

header nav .main-menu > li {
  position: relative;
  display: flex;
}

header nav .main-menu > li > a {
  position: relative;
  display: flex;
  color: #fff;
  align-items: center;
  padding-inline: 75px;
  transition: all 0.35s ease;
  font-weight: 700;
}

header.active nav .main-menu > li > a {
  color: #222;
}

header.active .menu span {
  background-color: #222;
}

header:hover nav .main-menu > li:hover > a {
  color: var(--primary-color);
}

header:hover nav .main-menu > li > a {
  padding-inline: 100px;
  color: #222;
  font-size: 18px;
}

header img.default {
  display: block;
}

header img.hover {
  display: none;
}

header:hover img.default,
header.active img.default {
  display: none;
}

header:hover img.hover,
header.active img.hover {
  display: block;
}

header nav .main-menu > li::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  left: 0;
  bottom: -1px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 11;
}

header nav .main-menu > li:hover::after {
  opacity: 1;
}

header .background {
  height: 0px;
  transition: height 0.3s;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-bottom: 1px solid transparent;
  z-index: 9;
}

header:hover .background {
  height: 244px;
}

header nav .sub-menu {
  position: absolute;
  width: 100%;
  height: 0;
  top: 100%;
  border-left: 1px solid #e0e0e0;
  opacity: 0;
  transition: all 0.3s;
  overflow: hidden;
}

header:hover nav .sub-menu {
  height: 244px;
  opacity: 1;
}

header nav .main-menu li:last-child .sub-menu {
  border-right: 1px solid #e0e0e0;
}

header nav .sub-menu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}

header nav .sub-menu a {
  display: block;
  text-align: center;
  color: #555;
  font-weight: bold;
  transition: all 0.3s;
}

header nav .sub-menu a:hover {
  color: #222;
}

header .menu,
header .menu div {
  width: 27px;
  height: 27px;
  gap: 6px;
}

header .menu {
  cursor: pointer;
}

header .menu span {
  width: 5px;
  height: 5px;
  background-color: #fff;
  transition: all 1s;
}

header:hover .menu span {
  background-color: #222;
}

footer {
  width: 100%;
  background-color: #222;
  padding-block: 52px;
  color: #919191;
  padding-inline: 25px;
}

footer > div {
  width: 100%;
  max-width: var(--max-width);
}

footer .footer-logo {
  margin-bottom: 20px;
  height: 44px;
}

footer .address {
  margin-bottom: 3px;
}

footer .footer-top {
  font-size: 14px;
  padding-bottom: 25px;
  border-bottom: 1px solid #3e3e3e;
}

footer .label {
  margin-right: 6px;
}

footer .info {
  gap: 16px;
}

footer .shortcut {
  position: relative;
}

footer .shortcut > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 220px;
  height: 50px;
  padding-inline: 29px;
  background-color: #3b3b3b;
  color: #9c9c9c;
  font-size: 14px;
  cursor: pointer;
}

footer .shortcut ul {
  position: absolute;
  bottom: 50px;
  width: 100%;
  display: none;
}

footer .shortcut ul.active {
  display: block;
}

footer .shortcut li {
  display: flex;
  align-items: center;
  height: 50px;
  background-color: #5e5e5e;
  padding-left: 20px;
  color: #fff;
}

footer .shortcut li:not(:last-child) {
  border-bottom: 1px solid #a8a8a8;
}

footer .shutcut-arrow {
  display: block;
  width: 14px;
  height: 8px;
}

footer .shutcut-arrow.arrow-top {
  background-image: url(/images/layout/select_arrow.svg);
}

footer .shutcut-arrow.arrow-bottom {
  background-image: url(/images/layout/select_arrow02.svg);
}

footer .footer-bottom {
  padding-top: 25px;
  font-size: 14px;
}

footer .privacy {
  position: relative;
  color: #dfdfdf;
  gap: 40px;
  padding-left: 0;
}

footer .privacy a:not(:last-child)::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 10px;
  background-color: #474747;
  top: 50%;
  transform: translate(20px, -50%);
}

footer .copyright {
  color: #757575;
}

.sitemap.active {
  opacity: 1;
  visibility: visible;
}

.sitemap {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  height: 100%;
  z-index: 20;
}

.sitemap .background {
  position: absolute;
  width: 100%;
  left: auto;
  right: 0;
  height: 0%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.6s ease;
}

.sitemap.active .background {
  height: 100%;
}

.sitemap .header {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  padding-inline: 97px;
}

.sitemap .close-icon {
  display: block;
  width: 28px;
  height: 28px;
  background-image: url(/images/main/close.svg);
}

.sitemap nav {
  color: #fff;
  position: absolute;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sitemap nav .main-menu {
  display: flex;
  gap: 120px;
}

.sitemap nav .main-menu > li {
  position: relative;
  transform: translateY(50px);
  opacity: 0;
}

.sitemap nav .main-menu > li:nth-child(2) {
  transition-delay: 0.3s;
}

.sitemap nav .main-menu > li:nth-child(3) {
  transition-delay: 0.5s;
}

.sitemap nav .main-menu > li:nth-child(4) {
  transition-delay: 0.7s;
}

.sitemap.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.sitemap.active nav .main-menu > li {
  transform: translateY(0);
  opacity: 1;
  transition-property: all;
  transition-duration: 0.8s;
  transition-timing-function: ease-in-out;
}

.sitemap nav .main-menu > li:hover::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 24px;
  background-image: url(/images/main/symbol.png);
  background-repeat: no-repeat;
  top: -30px;
}

.sitemap nav .main-menu span {
  font-size: 31px;
  font-weight: 700;
  margin-bottom: 57px;
  display: block;
}

.sitemap nav .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 25px;
  font-size: 18px;
}

.sitemap nav .sub-menu a {
  transition: all 0.2s;
}

.sitemap nav .sub-menu a:hover {
  color: #727272;
}

.sitemap .header-logo {
  display: flex;
  align-items: center;
}

.sitemap .header-logo img {
  display: block;
  height: 41px;
}

.sub-nav {
  height: 282px;
  background-repeat: no-repeat;
  background-position-x: center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding-bottom: 120px;
}

.sub-nav-background-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: absolute;
}

.sub-nav .sub-nav-background {
  position: absolute;
  background-repeat: no-repeat;
  background-position-x: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  animation: scale 2s ease-in-out;
  animation-fill-mode: forwards;
}

.sub-nav.about .sub-nav-background {
  background-image: url(/images/sub/img_sub01.png);
}

.sub-nav.info .sub-nav-background {
  background-image: url(/images/sub/img_sub03.png);
}

.sub-nav.apply .sub-nav-background,
.sub-nav.faq .sub-nav-background {
  background-image: url(/images/sub/img_sub04.jpg);
}

.sub-nav .sub-container {
  display: inline-flex;
  flex-direction: column;
  padding-top: 128px;
  align-items: center;
  z-index: 1;
}

.sub-nav .path {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 10px;
  color: #fff;
}

.sub-nav .path span {
  position: relative;
}

.sub-nav .path span:not(:last-child)::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: #fff;
  border-radius: 100%;
  top: 50%;
  transform: translateY(-50%);
  right: -16px;
}

.sub-nav .path .home {
  display: flex;
  align-items: center;
}

.sub-nav .home-icon {
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(/images/sub/home.svg);
  background-size: contain;
}

.sub-nav h1 {
  margin-bottom: 30px;
  font-size: 60px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.sub-nav ul {
  display: flex;
  height: 55px;
  background-color: rgba(255, 255, 255, 0.5);
  align-items: center;
  padding-inline: 6px;
  border-radius: 30px;
}

.sub-nav li a {
  color: #fff;
  height: 43px;
  padding-inline: 25px;
}

.sub-nav li a.active {
  display: flex;
  border-radius: 30px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background-color: var(--primary-color);
}

.sub-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9;
  position: relative;
}

.sub-title h3 {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 2px;
  font-weight: 700;
}

.sub-title h4 {
  font-size: 45px;
  color: #222;
  font-weight: 700;
}

#root > nav {
  /* position: sticky; */
  top: 3%;
  bottom: 50vh;
  display: flex;
  justify-content: center;
  z-index: 9;
}

#root > nav > ul {
  position: relative;
  display: inline-flex;
  height: 55px;
  background-color: rgba(255, 255, 255, 0.5);
  align-items: center;
  padding-inline: 6px;
  border-radius: 30px;
  backdrop-filter: saturate(150%) blur(25px);
  transition: all 0.7s ease;
  top: 0;
}

#root > nav li a {
  color: #fff;
  height: 43px;
  padding-inline: 25px;
  font-weight: 700;
}

#root > nav li a.active {
  display: flex;
  border-radius: 30px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background-color: var(--primary-color);
}

.hide ~ nav ul {
  box-shadow: 0 0 0px 1px rgba(24, 24, 24, 0.11);
}

.hide ~ nav li a:not(.active) {
  color: #222 !important;
}

.sub {
  padding-top: 60px;
}

.top-arrow {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 100%;
  position: sticky;
  bottom: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  margin-right: 25px;
  margin-bottom: 25px;
  opacity: 0;
  visibility: hidden;
  transition: all ease .35s;
  z-index: 100;
}

.top-arrow.show {
  opacity: 1;
  visibility: visible;
}

.top-arrow img {
  width: 16px;
}

.common-input-date {
  display: flex;
  position: relative;
  height: 44px;
  width: 149px;
  cursor: pointer;
  background: #fff;
}

.common-input-date input {
  outline: none;
  border: none;
  appearance: none;
  box-shadow: none;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 10;
  background: transparent;
}

.common-input-date .calendar {
  height: 44px !important;
  width: 149px;
  display: flex;
  min-height: 10px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: transparent;
  padding-inline: 10px;
  align-items: center;
  gap: 5px;
}

.common-input-date span {
  min-height: 20px;
  flex: 1;
}

.common-input-date .common-input-calendar-icon {
  width: 16px;
  height: 16px;
  background: url(/images/layout/calendar.svg) no-repeat;
  background-size: contain;
  cursor: pointer;
  display: flex;
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  z-index: 11;
}

.disabled.common-input-date {
  opacity: 0.5;
}

.disabled.common-input-date .common-input-calendar-icon {
  cursor: not-allowed;
}

.toastui-editor-contents p {
  margin: 2px 0 !important;
  color: #222;
}

@media screen and (max-width: 1280px) {
  header,
  .sitemap .header {
    padding-inline: 20px;
  }

  header > div {
    justify-content: space-between;
  }

  header nav,
  header .background {
    display: none !important;
  }

  header:hover {
    background: none;
  }

  header:hover img.hover {
    display: none;
  }

  header:hover img.default {
    display: block;
  }

  header:hover > div:first-child::after {
    display: none;
  }

  header:hover .menu span {
    background: #fff;
  }
}

@media screen and (max-width: 1024px) {
  .mobile-nav {
    width: 100%;
    padding-inline: 30px;
    position: relative;
  }
  
  .mobile-nav button {
    position: relative;
    padding-inline: 24px;
    width: 100%;
    height: 50px;
    text-align: left;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0px 1px rgba(24, 24, 24, 0.11);
    border-radius: 16px;
    transition: all ease 0.15s;
    backdrop-filter: saturate(150%) blur(25px);
    color: #fff;
  }

  .mobile-nav.active button {
    background: #fff;
    color: #000;
  }

  .mobile-nav button img {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    right: 20px;
    top: 50%;
    background-repeat: no-repeat;
    transform: translateY(-50%) rotate(180deg);
    background-size: contain;
    color: #fff;
  }

  .mobile-nav.active button img {
    transform: translateY(-50%) rotate(0deg);
  }
  
  .hide ~ nav .mobile-nav button {
    color: #222 !important;
  }
  
  .mobile-nav ul {
    margin-top: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 9px;
    box-shadow: 0 0 0px 1px rgba(24, 24, 24, .11);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
    position: absolute;
    width: calc(100% - 60px);
  }

  .mobile-nav.active ul {
    opacity: 1;
    visibility: visible;
    display: block;
    z-index: 10;
  }

  .mobile-nav li {
    height: 43px;
  }

  #root > nav .mobile-nav li a {
    color: #000;
    display: flex;
    height: 43px;
    align-items: center;
    justify-content: left;
    font-size: 14px;
    padding-inline: 15px;
  }

  #root > nav .mobile-nav li a.active {
    color: #fff;
  }

  #root > nav.mobile {
    bottom: 39vh;
  }
  
  .pc-nav {
    display: none;
  }

  .sub-nav h1 {
    font-size: 50px;
  }

  .sub {
    padding: 0;
  }

  .sub .sub-content {
    padding-top: 70px;
  }

  .mobile-sitemap nav .main-menu {
    flex-direction: column;
    gap: 0;
  }

  .mobile-sitemap nav .main-menu span {
    margin-bottom: 20px;
    font-size: 25px;
  }

  .mobile-sitemap nav .main-menu .active span {
    color: var(--primary-color);
  }

  .mobile-sitemap nav .main-menu li {
    overflow: hidden;
  }
  
  .mobile-sitemap nav .sub-menu {
    height: 0;
    gap: 5px;
  }
    
  .mobile-sitemap nav .sub-menu.active {
    transition: all 0.1s ease;
    margin-bottom: 20px;
  }

  .sitemap nav .main-menu > li:hover::before {
    display: none;
  }

  .mobile-sitemap nav .main-menu > li:nth-child(1) .sub-menu.active {
    height: 123px;
  }
  
  .mobile-sitemap nav .main-menu > li:nth-child(2) .sub-menu.active {
    height: 59px;
  }

  .mobile-sitemap nav .main-menu > li:nth-child(3) .sub-menu.active {
    height: 91px;
  }
  
  .mobile-sitemap nav .main-menu > li:nth-child(4) .sub-menu.active {
    height: 27px;
  }

  .sitemap nav .sub-menu a {
    font-size: 16px;
  }
}

@media screen and (max-width: 815px) {
  .sitemap nav .main-menu {
    gap: 11vw;
  }

  footer .footer-top {
    flex-direction: column;
  }

  footer .shortcut {
    margin-top: 20px;
  }

  footer .footer-bottom {
    flex-direction: column;
  }

  footer .copyright {
    margin-top: 20px;
  }
}

@media screen and (max-width: 640px) {
  .sitemap nav .main-menu {
    gap: 6vw;
  }
}

@media screen and (max-width: 470px) {
  .sub-nav {
    height: 200px;
  }

  .sub-nav-background-container {
    height: 310px;
  }

  .sub-nav h1 {
    font-size: 40px;
  }

  .sub-nav .path {
    font-size: 15px;
    margin-bottom: -1px;
  }

  .sub-nav .sub-container {
    padding-top: 82px;
  }

  .sub-container nav {
    display: none;
  }

  footer .info {
    flex-direction: column;
  }

  footer {
    padding-block: 30px;
  }
}

@keyframes scale {
  0% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
