@charset "utf-8";

/* ===========================
   UTIL
=========================== */
.header-util {
  border-bottom: 1px solid var(--color-border);
}

.header-util .inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--header-util-height);
}

.util-list {
  display: flex;
  gap: 2rem;
}

.util-list a {
  font-size: 1.6rem;
  color: #666;
}

.util-list a:hover,
.util-list a:focus-visible {
  text-decoration: underline;
}

/* ===========================
   GNB
=========================== */

.header-gnb {
  position: relative;
  border-bottom: 1px solid var(--color-border);
  z-index: 110;
}

.header-gnb .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: var(--header-gnb-height);
}

.logo a {
  font-size: 3rem;
  font-weight: 700;
}

.gnb {
  height: 100%;
}

.gnb-list {
  display: flex;
  height: 100%;
}

.gnb-item {
  position: relative;
}

.gnb-item:hover > a {color: var(--sublnb-primary);}

.gnb-link {
  display: flex;
  align-items: center;

  height: 100%;

  padding: 0 3rem;

  font-size: 2.4rem;
  font-weight: 600;
}

/* ===========================
   2DEPTH
=========================== */

.submenu {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 18rem;

  background: #fff;
  border: 1px solid var(--color-border);

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition: var(--transition);
  z-index: 120;
}

.submenu-item {
  position: relative;
}

.submenu-item > a {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 5rem;

  padding: 0 2rem;

  font-size: 1.7rem;

  transition: var(--transition);
}

.submenu-item > a:hover,
.submenu-item > a:focus-visible {
  background: #f5f5f5;
  font-weight: 500;
}

/* 3depth icon */

.has-depth3::after {
  content: "";

  width: 0.8rem;
  height: 0.8rem;

  margin-left: auto;

  border-top: 2px solid #666;
  border-right: 2px solid #666;

  transform: rotate(45deg);
}

.gnb-item:hover .submenu,
.gnb-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

/* ===========================
   3DEPTH
=========================== */

.depth3 {
  position: absolute;
  top: 0;
  left: 100%;

  min-width: 18rem;

  background: #fff;
  border: 1px solid var(--color-border);

  opacity: 0;
  visibility: hidden;

  transition: var(--transition);
  z-index: 130;
}

.depth3 li a {
  display: flex;
  align-items: center;

  min-height: 5rem;

  padding: 0 2rem;

  font-size: 1.7rem;

  transition: var(--transition);
}

.depth3 li a:hover,
.depth3 li a:focus-visible {
  background: #f5f5f5;
  font-weight: 500;
}

.submenu-item:hover .depth3,
.submenu-item:focus-within .depth3 {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   MOBILE BUTTON
=========================== */

.menu-btn {
  display: none;

  position: relative;

  width: 4.8rem;
  height: 4.8rem;
}

.menu-btn span {
  position: absolute;
  left: 50%;

  width: 2.6rem;
  height: 2px;

  background: #000;

  transform: translateX(-50%);
}

.menu-btn span:nth-child(1) {
  top: 1.4rem;
}

.menu-btn span:nth-child(2) {
  top: 2.3rem;
}

.menu-btn span:nth-child(3) {
  top: 3.2rem;
}

/* ===========================
   MOBILE MENU
=========================== */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;

  z-index: 1000;

  width: 90%;
  max-width: 40rem;
  height: 100vh;

  background: #fff;

  overflow-y: auto;

  transform: translateX(100%);

  transition: transform 0.4s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-overlay {
  position: fixed;
  inset: 0;

  z-index: 999;

  background: rgba(0, 0, 0, 0.5);

  opacity: 0;
  visibility: hidden;

  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 2rem;

  border-bottom: 1px solid var(--color-border);
}

.mobile-logo {
  font-size: 2.4rem;
  font-weight: 700;
}

.mobile-logo img {max-width: 220px;}

.menu-close-btn {
  width: 4.8rem;
  height: 4.8rem;

  font-size: 2.4rem;
}

/* ===========================
   MOBILE 1DEPTH
=========================== */

.mobile-gnb-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 6.4rem;

  padding: 0 2rem;

  border-bottom: 1px solid var(--color-border);

  background: #fff;

  font-size: 2rem;
  font-weight: 700;
}

.mobile-gnb-btn::after {
  content: "+";
}

.mobile-gnb-item.active > .mobile-gnb-btn::after {
  content: "-";
}

.mobile-gnb-item.active > .mobile-gnb-btn {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* ===========================
   MOBILE 2DEPTH
=========================== */

.mobile-submenu {
  display: none;

  background: #fafafa;
}

.mobile-gnb-item.active > .mobile-submenu {
  display: block;
}

.mobile-submenu-item {
  border-bottom: 1px solid #ececec;
}

/* wrap */

.mobile-depth2-wrap {
  display: flex;
  align-items: stretch;
}

/* link */

.mobile-depth2-link {
  position: relative;

  flex: 1;

  display: flex;
  align-items: center;

  min-height: 5.6rem;

  padding: 0 2rem 0 3rem;

  background: #fafafa;

  font-size: 1.7rem;
  font-weight: 500;

  color: #333;

  transition: var(--transition);
}

.mobile-depth2-link::before {
  content: "";

  position: absolute;
  left: 1.6rem;
  top: 50%;

  width: 3px;
  height: 3px;

  /* border-radius: 50%; */

  background: #999;

  transform: translateY(-50%);
}

.mobile-depth2-link:hover,
.mobile-depth2-link:focus-visible {
  color: var(--color-depth2-active);
}

.mobile-depth2-link:hover::before,
.mobile-depth2-link:focus-visible::before {
  background: var(--color-depth2-active);
}

/* toggle */

.mobile-depth2-toggle {
  position: relative;

  flex-shrink: 0;

  width: 5.6rem;
  min-height: 5.6rem;

  background: #fafafa;

  border-left: 1px solid #e5e5e5;
}

.mobile-depth2-toggle::before,
.mobile-depth2-toggle::after {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;

  background: #555;

  transform: translate(-50%, -50%);
}

.mobile-depth2-toggle::before {
  width: 14px;
  height: 2px;
}

.mobile-depth2-toggle::after {
  width: 2px;
  height: 14px;
}

.mobile-submenu-item.active
.mobile-depth2-toggle::after {
  display: none;
}

/* single menu */

.mobile-depth2-link.single {
  width: 100%;
}

/* active */

.mobile-submenu-item.active
.mobile-depth2-link {
  background: #fcfcf8;
}

/* ===========================
   MOBILE 3DEPTH
=========================== */

.mobile-depth3 {
  display: none;

  padding: 1rem 0;

  background: #f7f4ea;

  border-top: 1px solid #e5e5e5;
}

.mobile-submenu-item.active
.mobile-depth3 {
  display: block;
}

.mobile-depth3 li a {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 4.8rem;

  padding: 0 2rem 0 5rem;

  font-size: 1.5rem;

  color: #555;

  transition: var(--transition);
}

.mobile-depth3 li a::before {
  content: "";

  position: absolute;
  left: 3.2rem;
  top: 50%;

  width: 5px;
  height: 1px;

  background: #777;

  transform: translateY(-50%);
}

.mobile-depth3 li a:hover,
.mobile-depth3 li a:focus-visible {
  color: var(--color-depth2-active);
  font-weight: 500;
}
.mobile-depth3 li a:hover::before,
.mobile-depth3 li a:focus-visible::before {
  background: var(--color-depth2-active);
}

/* ===========================
   BODY LOCK
=========================== */

body.menu-open {
  overflow: hidden;
}

/* ===========================
   VISUAL
=========================== */

.visual {
  padding: 10rem 0;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1500px) {
.pc-logo {max-width: 280px;}
.gnb-link {font-size: 1.8rem;}
}

@media (max-width: 1279px) {

  .gnb {
    display: none;
  }

  .menu-btn {
    display: block;
  }

}

@media (max-width: 768px) {

  html {
    font-size: 56.25%;
  }

  .header-util {
    display: none;
  }

  .header-gnb .inner {
    height: 8rem;
  }

  .logo a {
    font-size: 2.4rem;
  }

  .pc-logo {max-width: 220px;}

}