@charset "utf-8";

/* 기본 */
header {
  width: 100vw;
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  transition: .3s ease-in-out;
}

header:hover {
  background: #fff;
}

#gnb {

  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8rem;
  transition: .3s ease-in-out;
  border-bottom: 1px solid transparent;
}

#gnb:hover {
  border-bottom: 1px solid #eee;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10000;
}

.logo h1 {
  font-family: 'paperlogy-EB', sans-serif;
  font-size: 22px;
  color: var(--po-color);
}

.logo p {
  font-size: 15px;
  letter-spacing: .8px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.menu {
  list-style: none;
  display: flex;
  gap: 50px;
}

.menu-item {
  cursor: pointer;
}

.menu-item a {
  position: relative;
  font-size: 16px;
  padding: 30px 0;
}

.menu-item a::after {
  position: absolute;
  content: '';
  width: 30%;
  height: 1px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  bottom: 5px;
  opacity: 0;
  transition: .25s ease-in-out;
}



/* PC 하위 메뉴 */
.submenu-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: height 0.4s ease;
}


.submenu {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
}

.submenu li {
  width: 25%;
}

.submenu li a {
  width: fit-content;
  display: block;
  padding: 30px 0;
  font-family: 'paperlogy-R', sans-serif;
  font-size: 20px;
}

/* 모바일 */
.mobile-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
}

.back_color {
  position: fixed;
  width: 0;
  height: 0;
  border-radius: 50%;
  top: 36px;
  right: 36px;
  background: #fff;
  z-index: 10;
  visibility: hidden;
  transition: 0.7s ease-in-out;
}

.back_color.navi_bg {
  visibility: visible;
  width: 2500px;
  height: 2500px;
  top: -1000px;
  right: -1000px;
}


/* footer */
.footer {
  width: 100%;
  height: 190px;
  background: linear-gradient(to top, rgb(202, 202, 202) 0%, rgba(255, 255, 255, 0) 100%);
  background: #222;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 5;
  padding: 35px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  color: #fff;
}

.footer .foot_wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.footer .left h3 {
  font-family: 'paperlogy-SB', sans-serif;
  margin-bottom: 20px;
}

.footer .left .info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #aaa;
}

.footer .right {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
}

.footer .right .connect {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer .right .connect a {
  position: relative;
  color: #fff;
  font-family: 'paperlogy-R', sans-serif;
}

.footer .right .connect a.ct::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 1px;
  background: #fff;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: .3s ease-in-out;
}

.footer .right .connect .ct:hover::after {
  opacity: 1;
  top: -5px;
}

.footer .right .connect .line {
  width: 1px;
  height: 12px;
  background: #fff;
}


.navi_btn {
  margin-left: auto;
}

.menu-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}


@media (min-width:1025px) {
  .submenu li a {
    padding-bottom: 10px;
    font-family: 'paperlogy-M', sans-serif;
  }

  .submenu li p {
    color: #888;
    font-family: 'paperlogy-L', sans-serif;
  }

  .menu-item .submenu li:hover a::after {
    bottom: 5px;
  }

  .menu-item:hover>a::after,
  .submenu li:hover>a::after {
    opacity: 1;
    width: 100%;
    bottom: 25px;
  }

  .menu-item:hover>.submenu-wrap {
    height: 30vh;
  }

  .menu-item a svg {
    transition: .3s ease-in-out;
  }

  .menu-item:hover a svg {
    rotate: 180deg;
  }
}




/* 모바일 반응형 */
@media(max-width:1024px) {
  .navi_btn {
    display: none;
  }

  .submenu li p {
    display: none;
  }

  #gnb {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    justify-content: space-between;
  }

  .logo h1 {
    font-size: 18px;
  }

  .logo p {
    font-size: 12px;
  }

  /* 모바일 햄버거 */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 16px;
    z-index: 10000;
    position: relative;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-left: unset;
  }

  .mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: 0.3s;
  }

  .mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    display: none;
  }

  .main-nav.active {
    display: contents;
  }

  /* 메뉴 */
  .menu {
    display: none;
    flex-direction: column;
  }

  .menu.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    box-sizing: border-box;
    padding-top: 80px;
    flex-direction: column;
    overflow-y: auto;
    gap: 25px;
  }

  /* 메뉴 아이템 순차 애니메이션 */
  .menu-item {
    padding: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .menu-item a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 0;
  }

  .menu.active .menu-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* 하위 메뉴 아코디언 */
  .menu-item.has-sub .submenu-wrap {
    display: none;
    width: 100%;
    margin-top: 5px;
    box-shadow: none;
  }

  .menu-item.active .submenu-wrap {
    display: flex;
    position: static;
    height: auto;
  }

  .menu-item a svg {
    transition: .3s ease-in-out;
  }

  .menu-item.active a svg {
    rotate: 180deg;
  }


  .submenu {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .submenu li {
    width: 100%;
  }

  .menu.active .menu-item.has-sub a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-left: 17px;
  }


  .submenu li a {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    padding: 20px 10px;
    display: block;
    color: #333;
    font-size: 16px;
  }

  .submenu li:last-child a {
    padding-bottom: 0;
  }

  .footer {
    height: auto;
  }

  .footer .foot_wrap {
    align-items: center;
    flex-direction: column;
    gap: 20px;
  }

  .footer .foot_wrap .left,
  .footer .foot_wrap .right {
    text-align: center;
  }

  .footer .right {
    align-items: center;
  }

  .footer .left h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .footer .left .info {
    font-size: 14px;
  }

  .footer .copyright {
    font-size: 14px;
    color: #aaa;
  }

  .footer .copyright .business_num{
    color: #aaa;
  }

}