/* 헤더 스타일 */
a {
  text-decoration: none;
  color: inherit;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.header {
  width: 100%;
  z-index: 1000;
}

.header_main {
  background: linear-gradient(90deg, #ff5694 0%, #ff8028 50%, #ddff47 100%);
  padding: 26px 80px;
  width: 100%;
}

.header_content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

.header_logo {
  color: #313743;
  font-family: Poppins;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 36px; /* 100% */
  grid-column: 1;
  justify-self: start;
}

.nav_menu {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-self: center;
  grid-column: 2;
}

.menu_btn {
  color: #313743;
  text-align: right;
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px; /* 100% */
}

.login_btn {
  grid-column: 3;
  justify-self: end;
}

/* 모바일 햄버거 버튼 */
.mobile_menu_button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* 모바일 메뉴 오버레이 */
.mobile_menu_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.mobile_menu_overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile_menu_content {
  display: flex;
  flex-direction: column;
  /* height: 100vh;
  max-height: 100vh; */
  position: relative;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.mobile_menu_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 25px 28px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
}

.mobile_header_logo {
  color: #313743;
  font-family: Poppins;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px; /* 100% */
}

.mobile_menu_close {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 0px 0px 0px;
}

.mobile_menu_items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  z-index: 1999;
}

.mobile_menu_item {
  color: #000;
  text-align: center;
  font-family: Poppins;
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: 56px; /* 155.556% */
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile_menu_item:active {
  background: linear-gradient(90deg, #ff5694 0%, #ff8028 50%, #ddff47 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile_menu_item:focus {
  background: linear-gradient(90deg, #ff5694 0%, #ff8028 50%, #ddff47 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 반응형 스타일 */
@media (max-width: 1024px) {
  /* 헤더로고 부분 */
  .header_logo {
    color: #fff;

    font-size: 28px;
    line-height: 28px; /* 100% */
  }
  .header_main {
    padding: 25px 28px;
  }

  .header_content {
    grid-template-columns: 1fr auto;
  }

  .header_logo {
    font-size: 28px;
  }

  /* 태블릿과 모바일에서 데스크톱 메뉴 숨기기 */
  .nav_menu {
    display: none;
  }

  .login_btn {
    display: none;
  }

  /* 태블릿과 모바일에서 햄버거 버튼 표시 */
  .mobile_menu_button {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2;
    justify-self: end;
    align-self: center;
  }
}

/* 모바일전용 */
@media (max-width: 767px) {
  /* 헤더로고 부분 */
  .header_logo {
    color: #fff;

    font-size: 28px;
    line-height: 28px; /* 100% */
  }
  .mobile_menu_item {
    color: #000;
    text-align: center;
    font-family: Poppins;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 48px; /* 171.429% */
  }
}

/* ✅ 태블릿 가로(landscape) 전용 — 740~1100px */
@media (min-width: 740px) and (max-width: 1366px) and (orientation: landscape) {
  /* 헤더로고 부분 */
  .header_logo {
    color: #fff;

    font-size: 28px;
    line-height: 28px; /* 100% */
  }
  .header_main {
    padding: 25px 28px;
  }

  .header_content {
    grid-template-columns: 1fr auto;
  }

  .header_logo {
    font-size: 28px;
  }

  /* 태블릿과 모바일에서 데스크톱 메뉴 숨기기 */
  .nav_menu {
    display: none;
  }

  .login_btn {
    display: none;
  }

  /* 태블릿과 모바일에서 햄버거 버튼 표시 */
  .mobile_menu_button {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2;
    justify-self: end;
    align-self: center;
  }
}
