.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
}

.header-con {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  max-height: 3rem;
}
.header-nav {
  display: flex;
  gap: 4rem;
  margin-right: 6rem;
}
.header-nav a {
  font-size: 1.6rem;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.header-yt {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gray2);
  padding: 0.5rem 2rem;
  border-radius: 2rem;
  font-size: 1.6rem;
}
.header-yt img {
  width: 2.4rem;
  height: 2.4rem;
}
.header-btn {
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.8rem 2rem;
  font-size: 1.6rem;
  cursor: pointer;
}
.header-btn:hover {
  opacity: 0.9;
}

/* 햄버거 */
.mobile-nav-bg {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  overscroll-behavior: auto;
  background-color: rgba(0, 0, 0, 0.5);
}
.header.open .mobile-nav-bg {
  display: block;
}

.header-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 80%;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 6rem 2rem;
}

.header.open .header-mobile-nav {
  transform: translateX(0);
}

.header-burger {
  position: fixed;
  top: 1.3rem;
  right: 2rem;
  z-index: 2100;
  font-size: 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  display: none;
}

.header-burger::before {
  content: '\2630'; /* ☰ */
}
.header.open .header-burger::before {
  content: '\2715'; /* ✕ */
}

.header-mobile-nav a {
  font-size: 1.4rem;
}
.header-mobile-nav img {
  max-width: 15rem;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: #efefef;
  margin: 2rem 0;
}

.sb.bg img {
  max-width: 1.4rem;
}
/* 반응형 */

@media (max-width: 1600px) {
  .header-con {
    padding: 2rem 4rem;
  }
}

@media (max-width: 1200px) {
  .header-nav {
    margin-right: 2rem;
    gap: 2rem;
  }
  .header-logo img {
    max-height: 2.5rem;
  }
}

@media (max-width: 930px) {
  .header-nav {
    margin-right: 1rem;
    gap: 1rem;
  }

  .header-actions {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .header-nav,
  .header-yt,
  .header-btn {
    display: none;
  }
  .header-burger {
    display: block;
  }
  .header__nav {
    display: none;
  }

  .header-logo img {
    max-height: 2rem;
  }
}
