@charset "utf-8";

/* 기본 */
header {
  width: 100%;
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  transition: .3s;
  backdrop-filter: blur(1px);
}

header:hover {
  background: #fff;
}

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

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

.logo {
  z-index: 10000;
  font-size: unset;
}



.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: 40%;
  height: 1px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  bottom: 15px;
  opacity: 0;
  transition: .3s ease;
}



/* 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', sans-serif;
  font-weight: 400;
  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: 30px;
  right: 38px;
  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;
}

.menu_badge {
  position: relative;
}

.menu_badge::before {
  position: absolute;
  content: '할인';
  width: fit-content;
  height: auto;
  font-size: 13px;
  color: #666;
  left: calc(100% + 10px);
  top: 65%;
  transform: translateY(-50%);
  padding: 4px 7px;
  background: #f5f5f5;
  border-radius: 4px;
}

.menu_badge.quick::before {
  content: '원패스';
  color: var(--po-color);
}


/* footer */
.footer {
  width: 100%;
  height: 150px;
  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 {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.footer .left .foot_logo {
  filter: brightness(20);
}

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

.footer .left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.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', sans-serif;
  font-weight: 400;
}

.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', sans-serif;
    font-weight: 500;
  }

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

  .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 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    /* opacity: 0;
    visibility: hidden; */
    pointer-events: none;

    /* transform: translateY(-20px); */
    transition: .15s .5s ease;
    z-index: 9998;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }


  /* 메뉴 */
  .menu {
    width: 100%;
    /* display: none; */
    flex-direction: column;
    position: fixed;
    top: 0;
    padding-top: 80px;
    gap: 25px;
  }

  .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 {
    box-sizing: border-box;
    padding: 10px;
    opacity: 0;
    transform: translateY(-40px);
    transition: 0.4s ease-in-out;
  }

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

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

  /* 하위 메뉴 아코디언 */
  .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 .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;
  }

  .menu_badge::before {
    left: calc(100% + 5px);
    top: 50%;
  }

  .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;
  }
}