header {
  background-color: var(--main-color);
  width: 100%;
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
  height: 40px;
  min-height: 40px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  /*background: #dd90a9;*/
  padding: 3px;
  /*border-radius: 0 15px;*/
}

.logo-ci {
  width: auto;
  height: 24px;
}

.logo-text {
  font-size: 1.0rem;
  font-weight: 650;
  color: white;/*#202020;*/
  line-height: 1;
}

#top_menu {
  display: flex;
  position: absolute;
  list-style: none;
  margin: 0;
  background: #eaeaea;
  justify-content: center;
  padding: 10px 25px 10px 25px;
  gap: 30px;
  flex-wrap: wrap;
  transition: max-height 0.3s ease;
  width: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#top_menu a {
  color: #404040;
  text-decoration: none;
  font-weight: bold;
}

#top_menu a:hover {
  color: var(--accent-color);
}

#top_menu li a {
  align-items: center;
  text-align: left;
}

footer {
  width: 100%;
  height: 30px;
  background: var(--main-color);
  color: #fff;
  text-align: center;
}

/* 기본 햄버거 아이콘 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #fff;
  margin: 2px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

/* 햄버거 → X 변환 */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* 모바일에서만 표시 */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  #top_menu {
    display: none;
    background: #fff;
  }
  #top_menu.active {
    display: flex;
    flex-direction: column;
    align-items: left;
  }
  #top_menu li a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
  }
}
