@charset "UTF-8";

html,
body {
  height: 100%;
}
body {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}
body.fixed {
  /* overflow-y: hidden; */
  width: 100%;
}

.main {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  /* padding-top: 80px; */
}

#wrap {
  width: 100%;
  min-height: 100%;
  position: relative;
  /* padding-bottom: 200px; */
}

.container {
  width: 100%;
  max-width: 584px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 101;
  background-color: transparent;
  transition: 0.35s;
}
.header__inner {
  max-width: 1240px;
  padding: 0 20px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__inner .logo {
  width: 121.89px;
}
.header__inner .nav {
  display: flex;
  max-width: 465px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.header__inner .nav li a {
  color: #ffffff;
  font-weight: 500;
  font-size: 18px;
  line-height: 130%;
}

/* Footer */
.footer {
  background: #1a1a1a;
  padding: 40px 20px;
}
.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
}
.footer__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__row span {
  color: #999999;
  font-size: 13px;
  line-height: 1.6;
}
.footer__row strong {
  color: #cccccc;
  font-weight: 600;
  margin-right: 4px;
}
.footer__copyright {
  color: #666666;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid #333333;
}

/* Footer - Mobile */
@media screen and (max-width: 768px) {
  .footer {
    display: block;
    padding: 30px 16px;
  }
  .footer__row {
    flex-direction: column;
    gap: 4px;
  }
  .footer__row span {
    font-size: 12px;
  }
  .footer__copyright {
    font-size: 11px;
  }
}

/* Hamburger Button (데스크톱에서 숨김) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay (데스크톱에서 숨김) */
.mobile-nav {
  display: none;
}
.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 99;
}
.mobile-nav__content {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #1a1a1a;
  padding: 80px 20px 40px;
  transition: 0.3s;
  z-index: 100;
}
.mobile-nav.open .mobile-nav__overlay {
  opacity: 1;
  visibility: visible;
}
.mobile-nav.open .mobile-nav__content {
  right: 0;
}
.mobile-nav__content ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav__content li a {
  display: block;
  padding: 16px 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid #333;
}

/* Header & Nav - Mobile */
@media screen and (max-width: 768px) {
  .header {
    background: rgba(0,0,0,0.9);
    height: 60px;
  }
  .header__inner .logo {
    width: 100px;
  }
  .header__inner .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: block;
  }
}
