@charset "utf-8";

:root {
  --primary-color: #111;
  --white: #fff;
  --border-white: rgba(255, 255, 255, 0.22);
  --bg-white-trans: rgba(255, 255, 255, 0.08);
  --transition-base: 0.3s ease;
}

body {
  margin: 90px 0 0;
  padding: 0;
}

/* Common Utility */
.pc-only {
  display: block;
}

.mo-only {
  display: none;
}

/* Header Base */
#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  width: 100%;
  height: 90px;
  background: #fff;
}

#header .header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
}

/* Logo */
#header h1.logo {
  flex: 0 0 auto;
  margin: 0;
}

#header h1.logo a {
  position: relative;
  display: block;
}

#header h1.logo img {
  display: block;
  width: auto;
  height: 35px;
  transition: opacity var(--transition-base);
}

/* PC Navigation (GNB) */
#header .gnb {
  flex: 1 1 auto;
}

#header .gnb>ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 38px;
}

#header .gnb ul li.depth01 {
  position: relative;
}

#header .gnb ul li.depth01>a {
  display: block;
  text-decoration: none;
}

#header .gnb ul li.depth01 span {
  position: relative;
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 90px;
  color: #111;
  transition: color var(--transition-base);
}

#header .gnb ul li.depth01 span:hover {
  color: #52babb;
}

#header .gnb ul li.depth01 span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 0;
  height: 2px;
  background: #52babb;
  transition: width var(--transition-base);
}

#header .gnb ul li.depth01:hover span::after {
  width: 100%;
}

/* 2depth Submenu */
#header .gnb .depth02 {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  min-width: 180px;
  padding: 10px 0;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: var(--header-scroll-bg);
  backdrop-filter: blur(16px);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

#header .gnb .depth02 li a {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #555;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

#header .gnb .depth02 li a:hover {
  background: #f6f7f9;
  color: var(--primary-color);
}

#header .gnb ul li.depth01:hover .depth02 {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Hamburger Menu (Common for Tablet/Mobile) */
#header .hamburger {
  position: relative;
  width: 24px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#header .hamburger span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: #111;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

#header .hamburger span.berger1 {
  top: 0;
}

#header .hamburger span.berger2 {
  top: 8px;
}

#header .hamburger span.berger3 {
  top: 16px;
}

/* Status: Open */
#header.open {
  width: 100%;
  height: 66px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: var(--header-scroll-bg);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

#header.open {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

#header.open .header_inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

#header.open .gnb ul li.depth01 span {
  line-height: 66px;
  color: var(--primary-color);
}

#header.open .gnb ul li.depth01 span::after {
  background: var(--primary-color);
}

#header.open .hamburger span {
  background: var(--primary-color);
}

#header .hamburger.open span.berger1 {
  top: 8px;
  transform: rotate(45deg);
}

#header .hamburger.open span.berger2 {
  opacity: 0;
}

#header .hamburger.open span.berger3 {
  top: 8px;
  transform: rotate(-45deg);
}

/* Full Screen Navigation (all_nav) */
.all_nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.all_nav.open {
  opacity: 1;
  visibility: visible;
}

.all_nav .nav-inner {
  width: 100%;
  min-height: 100%;
  padding: 96px 28px 40px;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.all_nav.open .nav-inner {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile/Tablet Menu List */
.nav-inner .m-gnb-allmenu-depth1 {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.nav-inner .m-gnb-allmenu-depth1>a {
  position: relative;
  display: block;
  padding: 22px 34px 22px 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-inner .m-gnb-allmenu-depth1>a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
}

.nav-inner .m-gnb-allmenu-depth1.on>a::after {
  transform: translateY(-20%) rotate(-135deg);
}

.nav-inner .m-gnb-allmenu-depth2 {
  display: none;
  padding: 0 0 18px;
}

.nav-inner .m-gnb-allmenu-depth2>li>a {
  display: block;
  text-decoration: none;
}

.nav-inner .m-gnb-allmenu-depth2>li>a>p {
  margin: 0;
  padding: 10px 0 10px 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #666;
}

/* Tablet (Under 1024px) */
@media screen and (max-width: 1024px) {
  body {
    margin: 64px 0 0;
  }

  .pc-only {
    display: none;
  }

  .mo-only {
    display: block;
  }

  #header {
    width: 100%;
    height: 64px;
  }

  #header .header_inner {
    padding: 0 20px;
  }

  #header h1.logo img {
    height: 28px;
    max-width: 156px;
  }
}

/* Mobile (Under 767px) */
@media screen and (max-width: 767px) {
  body {
    margin: 56px 0 0;
  }

  #header {
    width: 100%;
    height: 56px;
  }

  #header .header_inner {
    padding: 0 16px;
  }

  #header h1.logo img {
    height: 24px;
    max-width: 132px;
  }

  #header.open {
    height: 56px;
  }

  #header.open .header_inner {
    padding: 0 16px;
  }

  #header .hamburger {
    width: 22px;
    height: 16px;
  }

  #header .hamburger span.berger1 {
    top: 0;
  }

  #header .hamburger span.berger2 {
    top: 7px;
  }

  #header .hamburger span.berger3 {
    top: 14px;
  }

  #header .hamburger.open span.berger1,
  #header .hamburger.open span.berger3 {
    top: 7px;
  }

  .all_nav .nav-inner {
    padding: 60px 20px 32px;
  }

  .nav-inner .m-gnb-allmenu-depth1>a {
    padding: 18px 30px 18px 0;
    font-size: 18px;
  }

  .nav-inner .m-gnb-allmenu-depth2 {
    padding: 0 0 14px;
  }

  .nav-inner .m-gnb-allmenu-depth2>li>a>p {
    padding: 8px 0 8px 2px;
    font-size: 14px;
  }
}