body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 9999;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
font-size: 1rem;   /* 이 안의 em·rem은 모두 16 px 기준 */
}

/* 레이아웃 기준 유지 */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* 서브메뉴 absolute 위치 기준 */
  box-sizing: border-box;
}

/* 오른쪽 버튼 묶음 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 버튼 사이 간격 조절 */
}

.some-logo img {
  height: 40px;
}

/* 데스크탑 네비 */
.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.nav-desktop > ul > li {
  position: relative;
}

.nav-desktop a {
  color: black;
  text-decoration: none;
  font-weight: 400; /* 얇은 폰트 유지 */
  padding: 0.5rem 0;
  transition: color 0.3s, padding 0.3s ease;
}

.nav-desktop li:hover > a {
  color: #007acc;
}

.nav-desktop .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease forwards;
  opacity: 0;
  transform: translateY(10px);
  padding: 0.5rem 0; /* 위아래 그룹 간 여백 */
  min-width: 200px;
}

.nav-desktop li:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-desktop .submenu li {
  white-space: nowrap;
  padding: 0.9rem 1.6rem;
  transition: background 0.3s;
}

.nav-desktop .submenu li:hover {
  background-color: #f5f5f5;
}

.kakao-btn {
  background: #f7e600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 400;
  color: #3c1e1e;
  text-decoration: none;
  margin-left: 1rem;
  transition: background 0.3s;
}

.kakao-btn:hover {
  background: #ffe000;
}

.hamburger {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* 모바일 네비 */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%; /* 또는 65%, 60%도 가능 */
  max-width: 320px; /* 너무 넓어지지 않도록 제한 */
  height: 100%;
  background: white;
  transition: right 0.3s ease;
  z-index: 110;
  padding: 1rem 2rem;
  overflow-y: auto;
}

.nav-mobile ul {
  list-style: none;
  padding: 0;
}

.nav-mobile li {
  margin-bottom: 1.4rem;
}

.nav-mobile ul ul {
  padding-left: 1rem;
}

.nav-mobile a {
  color: black;
  text-decoration: none;
  font-weight: 400;
}

.nav-mobile > ul > li > a {
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.3rem 0;
  margin-bottom: 0.5rem;
  display: block;
  border-bottom: 0.3px solid #eee;
}

.nav-mobile li ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  border-left: 2px solid #ddd;
}

.nav-mobile li ul li a {
  font-size: 0.95rem;
  color: #666;
  display: block;
  padding: 0.25rem 0;
}

/* 오버레이 */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 109;
  display: none;
}

/* 애니메이션 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 반응형 */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-mobile.open {
    right: 0;
  }

  .mobile-overlay.active {
    display: block;
  }

  .some-logo img {
    height: 30px;
  }

  .kakao-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    margin: 0; /* 기존 여백 제거 */
  }

  .hamburger {
    font-size: 1.6rem;
  }
}
