/* =============================================
   gnb.css - 헤더 & 푸터 공통 스타일
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body#mainPage {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #000;
  color: #ffffff;
  line-height: 1.5;
}

body.is-gnb-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── GNB Overlay ──────────────────────────── */
.gnb-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9998;
}

body.is-gnb-open .gnb-overlay {
  opacity: 1;
  visibility: visible;
}

/* ── Header ───────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
  border-bottom:1px solid rgba(255,255,255,0.2);
}

#mainPage #site-header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  border-bottom:none;
}

#site-header.scrolled {
  background: #000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

#site-header.menu-open {
  background: rgba(10, 10, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  margin: 0 auto;
  padding: 0 32px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ── Logo ─────────────────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 207px;
  height: 30px;
  position: relative;
  overflow: hidden;
}

.header-logo svg,
.header-logo .logo-part {
  position: absolute;
}

/* ── Desktop Navigation ───────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.gnb__item {
  position: relative;
}

.gnb__link {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
  display: block;
  padding: 8px 0;
}

.gnb__link:focus:not(:focus-visible) {
  outline: none;
}

.gnb__link.is-active {
  color: var(--color-secondary02);
  font-weight: 700;
}

/* ── GNB Dropdown (2뎁스) ─────────────────── */
.gnb__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 200px;
  margin-top: 8px;
  padding: 8px 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.gnb__item:hover .gnb__dropdown,
.gnb__item:focus-within .gnb__dropdown,
.gnb__link[aria-expanded="true"] + .gnb__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.gnb__depth2 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnb__depth2 li {
  margin: 0;
}

.gnb__depth2 a {
  display: block;
  padding: 10px 24px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.gnb__depth2 a:hover,
.gnb__depth2 a:focus {
  color: var(--color-secondary02);
}

.gnb__depth2 a:focus:not(:focus-visible) {
  outline: none;
}

.gnb__depth2 a.is-active {
  color: var(--color-secondary02);
  font-weight: 600;
  background: rgba(147, 197, 253, 0.1);
}

.gnb__link.is-disabled,
.gnb__depth2 a.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* ── Header Right Controls ────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-login svg {
  display: inline;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Hamburger Button ─────────────────────── */
.btn-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-hamburger:hover {
    color: var(--color-secondary02);
}

.btn-hamburger svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* ── Mobile Menu ──────────────────────────── */
.mobile-menu {
  display: none;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  display: block;
  max-height: 100vh;
  opacity: 1;
  overflow-y: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 16px;
  gap: 0;
}

/* ── Mobile Menu Item (1뎁스) ─────────────── */
.mobile-menu__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-menu__toggle:hover,
.mobile-menu__toggle:focus {
  color: var(--color-secondary02);
}

.mobile-menu__toggle:focus:not(:focus-visible) {
  outline: none;
}

.mobile-menu__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mobile-menu__toggle[aria-expanded="true"] .mobile-menu__icon {
  transform: rotate(180deg);
}

/* ── Mobile Menu Submenu (2뎁스) ──────────── */
.mobile-menu__submenu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: max-height 0.3s ease;
}

.mobile-menu__submenu.is-open {
  max-height: 500px;
}

.mobile-menu__submenu a {
  display: block;
  padding: 8px 0 8px 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu__submenu a:hover,
.mobile-menu__submenu a:focus {
  color: var(--color-secondary02);
  padding-left: 20px;
}

.mobile-menu__submenu a:focus:not(:focus-visible) {
  outline: none;
}

.mobile-menu__submenu a.is-active {
  color: var(--color-secondary02);
  font-weight: 600;
}

.mobile-menu__submenu a.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.mobile-menu nav a:last-of-type {
  border-bottom: none;
}

.mobile-menu nav a:hover {
  color: var(--color-secondary02);
}

/* ── Mobile Login Wrap ────────────────────── */
.mobile-login-wrap {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-login-wrap .btn-login {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

/* ── Footer ───────────────────────────────── */
#site-footer {
  position: relative;
  z-index: 20;
  background-color: #121212;
  color: #ffffff;
}
#footer {
  background-color: #000;
}

.footer-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 48px 30px 48px;
}

/* Footer Top (Logos) */
.footer-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-logo-main {
  height: 30px;
  object-fit: contain;
}

.footer-logo-partners {
  height: 58px;
  object-fit: contain;
  opacity: 0.8;
}

/* Footer Divider */
.footer-divider {
  height: 1px;
  margin-bottom: 32px;
  background-color: #3b3b3b;
  border: none;
}

/* Footer Bottom: 연락처 → 주소(아래) → [링크(좌) | 저작권(우)] 같은 수직선 */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  color: #cccccc;
}

.footer-bottom-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  gap: 16px;
  margin-top: 16px; /* footer-contact과 수직 간격 2배(16+16=32px) */
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.footer-contact-row span b {
  margin-right: 4px;
  color: #ffffff;
  font-weight: 700;
}

.footer-contact-row .divider-v {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
}

.footer-address {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
}

.footer-address .label {
  color: #ffffff;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: #cccccc;
  font-weight: 500;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copyright {
  font-size: 13px;
  color: #777777;
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────── */

/* TABLET (≤991.98px) */
@media (max-width: 1279.98px) {
  .header-inner {
    padding: 0 16px;
    height: 68px;
  }
  .header-nav {
    display: none;
  }

  .btn-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #site-header:has(.mobile-menu.open) {
    height: 100vh;
    background: rgba(0, 0, 0, 1);
  }

  #mainPage #site-header:has(.mobile-menu.open) {
    background: rgba(0, 0, 0, 0.8);
  }

  .gnb__dropdown {
    display: none !important;
  }
}

/* MOBILE (≤767.98px) */
@media (max-width: 767.98px) {
  .header-logo {
    width:160px;
  }
  .btn-login {
    display: none;
  }

  .mobile-menu nav .btn-login {
    display: flex;
  }

  .footer-inner {
    padding: 40px 16px 32px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo-partners {
    height: 40px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
  }

  .footer-contact-row .divider-v {
    display: none;
  }
  .footer-contact {
    gap: 5px;
    font-size: 12px;
  }
  .footer-links {
    font-size: 12px;
  }
  .footer-contact-row {
    gap:5px 10px;
  }
  .footer-copyright {
    font-size:10px;
  }
}

/* PC (≥992px) */
@media (min-width: 1280px) {
  .mobile-menu__item,
  .mobile-menu__toggle,
  .mobile-menu__submenu {
    display: none !important;
  }
}

/* LARGE SCREEN (≥1536px) */
@media (min-width: 1536px) {
  .header-nav {
    gap: 60px;

  }

  .gnb__link {
    font-size: 18px;
  }
}

/* BUILD_STAMP: 2026-03-05T20:50:00+09:00 */
