.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  max-width: 1200px;
  z-index: 1000;
  gap: 16px;
  top: 0;
  box-sizing: border-box;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-right: 25px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap; /* ✅ 줄바꿈 허용 */
  justify-content: flex-end;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  min-width: 0;
}

.nav-list li a {
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
}

/* 햄버거 버튼 */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    flex-direction: column;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1001;
  }

  .nav-list.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
