.container1520 {
  max-width: 1520px;
  width: 95%;
  margin: 0 auto;
}
/* header.on */
header.on {
  background: rgba(255, 255, 255, 1);
  color: #2d2d2d;
}

.main_before {
  height: 0px;
  width: 100%;
}

header {
  position: fixed;
  top: 30px;
  left: 50%;
  width: 95%;
  z-index: 991016;
  background: rgba(255, 255, 255, 1);
  color: #2d2d2d;
  /* transition: all .5s ease-in-out; */
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease-in-out;
  transform: translateX(-50%);
  border-radius: 30px;
}
.h_top {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 0.5px solid #d8d8d8;
}
.h_logo {
  max-width: 300px;
  /* filter: invert(100%) sepia(100%) saturate(0) hue-rotate(200deg) brightness(200%) contrast(201%); */
  transition: 0.3s;
}
.header_in_wrap {
  max-width: 95%;
  height: 80px;
  margin: 0 auto;
  width: 95%;
  display: flex;
  /* gap: 100px; */
  justify-content: space-between;
  align-items: center;
  /* transition: all .5s ease-in-out; */
}
.header_in_wrap nav {
  /* height: 100%; */
  display: flex;
  align-items: center;
}
.header_in_wrap .gnb {
  display: flex;
  height: 100%;
  font-size: 20px;
  font-weight: 700;
  height: 100%;
}
.header_in_wrap .gnb li a {
  transition: all 0.5s ease;
  /* overflow: hidden; */
  position: relative;
}
.header_in_wrap .gnb li:hover a,
.header_in_wrap .gnb li.active a {
  color: #003973;
}
.header_in_wrap .gnb li.active a::before {
  width: 100%;
}
.header_in_wrap .gnb li a::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -10px;
  left: 0;
  margin-left: 0%;
  width: 0;
  height: 2px;
  background: #fff;
  /* transition: all .3s ease ; */
  transition-duration: 0.5s;
}

.header_in_wrap .gnb a {
  padding: 0 15px;
  /* height: 100%; */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 4rem;
}
.header_in_wrap .header_link {
  display: flex;
  align-items: center;
  font-family: "NEXON Lv2 Gothic";
  font-weight: bold;
  color: #000;
}
.link_img {
  margin-right: 1rem;
}
/* .header_link p{
    font-size: 1.5rem;
}
.header_link span{
    font-size: 2.6rem;
} */
.header_in_wrap .header_link {
  display: none;
}
/* 모바일메뉴 - 트렌디 햄버거 아이콘 */
.menu-wrap {
  position: relative;
  width: 28px;
  height: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-wrap:hover {
  background: rgba(0, 57, 115, 0.06);
}
.menu-wrap .line {
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #1a1a1a;
  left: 0;
  transition:
    transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.2s ease,
    background 0.25s ease;
}
.menu-wrap .line:first-child {
  top: 0;
  transform-origin: center;
}
.menu-wrap .line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.menu-wrap .line:last-child {
  bottom: 0;
  transform-origin: center;
}
.menu-wrap.open .line {
  background: #fff;
}
.menu-wrap.open .line:first-child {
  transform: translateY(10px) rotate(45deg);
}
.menu-wrap.open .line:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}
.menu-wrap.open .line:last-child {
  transform: translateY(-10px) rotate(-45deg);
}

@media (min-width: 0px) and (max-width: 1520px) {
  .header_in_wrap .gnb {
    font-size: 18px;
  }
}
@media (min-width: 0px) and (max-width: 1280px) {
  .header_in_wrap .gnb {
    font-size: 17px;
  }
  .h_logo {
    max-width: 230px;
  }
  #quick-placeholder ul li .img_wrap {
    width: 40px;
  }
  #quick-placeholder ul li {
    padding: 7px;
  }
  .header_in_wrap .gnb a {
    padding: 0 7px;
  }
}

@media (min-width: 0px) and (max-width: 1080px) {
  /* 모바일 헤더 - 트렌디 스타일 */
  .main_before {
    height: 72px;
    display: block;
  }
  header {
    top: 0;
    left: 0;
    transform: translateX(0);
    width: 100%;
    border-radius: 0;
    color: #2d2d2d;
    /* 글래스모피즘 + 부드러운 그림자 */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.06),
      0 4px 24px rgba(0, 57, 115, 0.08);
    padding-top: env(safe-area-inset-top, 0);
    transition:
      background 0.3s ease,
      box-shadow 0.3s ease;
  }
  header.on {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.06),
      0 8px 32px rgba(0, 57, 115, 0.12);
  }
  header .h_logo .logo_b {
    display: block;
  }
  header .h_logo .logo_w {
    display: none;
  }
  header .header_in_wrap {
    height: 72px;
    min-height: 72px;
    padding: 0 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    transition: height 0.3s ease;
  }
  header.on .header_in_wrap {
    height: 72px;
  }
  .header_in_wrap .gnb li.active a {
    color: #00a5ba;
  }
  .header_in_wrap .header_link {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
  }
  .header_in_wrap .h_logo {
    position: relative;
    z-index: 1001;
    max-width: 220px;
  }
  .header_in_wrap .h_logo img {
    transition: filter 0.3s ease;
  }
  /* 메뉴 열렸을 때 로고 흰색 */
  .header_in_wrap:has(nav.menu_open) .h_logo img {
    filter: brightness(0) invert(1);
  }
  .link_img {
    width: 40px;
  }
  /* 모바일 메뉴 - 풀스크린 오버레이 스타일 */
  .header_in_wrap nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 0;
    padding-top: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: linear-gradient(165deg, #0f0f70 0%, #005a9e 50%, #0077b6 100%);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.35s ease,
      visibility 0.35s ease;
    z-index: 999;
  }
  .header_in_wrap nav.menu_open {
    height: 100vh;
    height: 100dvh;
    padding-top: calc(72px + env(safe-area-inset-top, 0));
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }
  .header_in_wrap .gnb {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  header.on .header_in_wrap nav {
    padding-top: calc(72px + env(safe-area-inset-top, 0));
  }
  header.on .header_in_wrap nav .gnb {
    font-size: 1.125rem;
    color: #fff;
  }
  header .header_in_wrap nav .gnb {
    flex-direction: column;
    padding: 24px 20px 40px;
    gap: 0;
  }
  header .header_in_wrap nav .gnb li {
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      background 0.2s ease;
  }
  .header_in_wrap nav.menu_open .gnb li {
    opacity: 1;
    transform: translateY(0);
  }
  .header_in_wrap nav.menu_open .gnb li:nth-child(1) {
    transition-delay: 0.05s;
  }
  .header_in_wrap nav.menu_open .gnb li:nth-child(2) {
    transition-delay: 0.08s;
  }
  .header_in_wrap nav.menu_open .gnb li:nth-child(3) {
    transition-delay: 0.11s;
  }
  .header_in_wrap nav.menu_open .gnb li:nth-child(4) {
    transition-delay: 0.14s;
  }
  .header_in_wrap nav.menu_open .gnb li:nth-child(5) {
    transition-delay: 0.17s;
  }
  .header_in_wrap nav.menu_open .gnb li:nth-child(6) {
    transition-delay: 0.2s;
  }
  .header_in_wrap nav.menu_open .gnb li:nth-child(7) {
    transition-delay: 0.23s;
  }
  header .header_in_wrap nav .gnb a {
    line-height: 1.4;
    font-size: 18px;
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    margin-bottom: 4px;
    transition:
      background 0.2s ease,
      color 0.2s ease;
  }
  header .header_in_wrap nav .gnb a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  header .header_in_wrap nav .gnb a::before {
    display: none;
  }
  header .header_in_wrap nav .gnb .active a {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
}
@media (min-width: 0px) and (max-width: 500px) {
  .header_in_wrap .h_logo {
    max-width: 180px;
  }
  header .header_in_wrap nav .gnb a {
    padding: 16px 16px;
    font-size: 4.5vw;
  }
  header .header_in_wrap nav .gnb {
    padding: 20px 16px 32px;
  }
}
