@charset "utf-8";

/* 레이아웃 및 헤더 */
.wrap {position:relative; width:100%; overflow:hidden; box-sizing: border-box; }


/* css/main.css */

/* 기본 스타일 */
.header {
  width: 100%;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  height: 5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;
  font-weight: bold;
  width:170px;
}

.header__logo img {
  
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex: 1;
  justify-content: center;
}

.header__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1rem 2rem;
  transition: color 0.2s, background 0.2s;
  border-radius: 0.4rem;
  display: block;
  white-space: nowrap;
}

.header__nav a.active,
.header__nav a:hover {
  color: #2eb9cc;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.header__right a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.header__right a:hover {
  color: #2eb9cc;
}

.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
}

.header__menu-icon {
  display: block;
  width: 2.4rem;
  height: 0.3rem;
  background: #fff;
  position: relative;
}
.header__menu-icon::before,
.header__menu-icon::after {
  content: '';
  display: block;
  width: 2.4rem;
  height: 0.3rem;
  background: #fff;
  position: absolute;
  left: 0;
  transition: 0.2s;
}
.header__menu-icon::before { top: -0.8rem; }
.header__menu-icon::after { top: 0.8rem; }

/* 반응형: 태블릿 이하 */
@media (max-width: 900px) {
  .header {
    height: auto;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2vw;
    height: 7rem;
  }
  .header__nav {
    gap: 1.5rem;
  }
  .header__logo img {
    height: 2.1rem;
  }
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
  .header__logo {
    font-size: 1.5rem;
  }
  .header__nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    padding: 1.2rem 0;
    background: #3b207c;
    border-top:2px solid #51398d;
  }
  .header__nav a {
    color: #000;
    border:1px solid #000;
    background:#f8f7fb;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 600;
    padding: 1rem 2rem;
    transition: color 0.2s, background 0.2s;
    border-radius: 0.4rem;
    display: inline-block;
    width:80%;
    white-space: nowrap;
  }
  
  .header__nav a.active,
  .header__nav a:hover {
    color: #2eb9cc;
  }
  
  .header__nav.active {
    display: flex;
  }
  .header__right {
    width: 100%;
    justify-content: flex-end;
    gap: 0.8rem;
  }
  .header__right a:first-of-type {
    display:none;
  }

  .header__menu-btn {
    display: block;
  }
}

#container {
  position:relative;
  overflow: hidden;
  height: calc(100vh - 7rem);
}

#container * {
  box-sizing: border-box;
}

