.header {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1002;
  transition: all 0.3s ease;
}

.header_inner {
  width: 100%;
  max-width: 1280px;
  height: 100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
}

.header1 {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header1, .header2 {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.header1 {
  display: flex;
  opacity: 1;
}

.header2 {
  display: none;
  opacity: 0;
  transition: transform, opacity 0.3s ease;
}

.header2.active {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100px;
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(30px);
}

.header2.active .header_inner {
  width: 100%;
  max-width: 1280px;
  height: 100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header2 .logo {
  display: block;
  width: 50px;
  height: 50px;
  background-image: url('/static/assets/images/common/logo_wt.svg');
  background-repeat: no-repeat;
  background-size: 100%;
}

/* 메뉴가 열렸을 때 header의 스타일 */
.header.menu-open {
  height:auto;
}

.header1 .logo {
  justify-content: center;
  align-items: center;  

  width: 50px;
  height: 50px;
  background-image: url('/static/assets/images/common/logo_wt.svg');
  background-repeat: no-repeat;
  background-size: 100%;
}

.headerIcon {
  cursor: pointer;
  z-index: 101;
}

.menuBar {
  --menu-bar-width: 42px;
  --menu-bar-height: 4px;
  width: var(--menu-bar-width);
  height: 32px;
  position: relative;
  padding: 0;
  margin: 0;
  z-index: 1000;
  cursor: pointer;
}

.menuBar .bar {
  position: absolute;
  left: 0;
  width: var(--menu-bar-width);
  height: var(--menu-bar-height);
  border-radius: 999px;
  background-color: #fff;
  transform-origin: center;
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}

.menuBar .bar:nth-child(1) {
  top: 0;
}

.menuBar .bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menuBar .bar:nth-child(3) {
  top: calc(100% - var(--menu-bar-height));
}

.menuBar.open .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menuBar.open .bar:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0.4);
}

.menuBar.open .bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.header2Open {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: flex;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.5s ease;
  z-index: 99;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0 20px;
  box-sizing: border-box;
}

.header2Open.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.header2Open ul {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding-right: 72px;
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.5s ease 0.2s;
  box-sizing: border-box;
}

.header2Open.open ul {
  transform: translateX(0);
  opacity: 1;
}

.header2Open ul li {
  display: block;
}

.header2Open ul li a {
  display: block;
  color: #fff;
  font-size: 0.8rem;
  padding: 12px 24px;
  border: 1px solid #fff;
  border-radius: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.header2Open ul li a:hover {
  background-color: #fff;
  color: #000;
  box-sizing: border-box;
  border:1px solid #fff;
}

.header2Open ul li a.active {
  background-color: #ff3e00;
  color: #fff;
  box-sizing: border-box;
  border:1px solid #ff3e00;
}

@media (max-width: 1400px) and (min-width: 1025px) {
  .header_inner,
  .header2.active .header_inner,
  .header2Open {
    padding-left: 64px;
    padding-right: 64px;
  }
}

@media (max-width: 1024px) {
  .header {
    height: 88px;
  }

  .header_inner,
  .header2.active .header_inner,
  .header2.active,
  .header2Open {
    height: 88px;
  }

  .header_inner,
  .header2.active .header_inner,
  .header2Open {
    padding-left: 64px;
    padding-right: 64px;
  }

  .header2 .logo {
    width: 44px;
    height: 44px;
  }

  .menuBar {
    --menu-bar-width: 34px;
    --menu-bar-height: 3px;
    height: 24px;
  }

  .menuBar .bar {
    border-radius: 999px;
  }

  .header2Open ul {
    gap: 8px;
    padding-right: 58px;
  }

  .header2Open ul li a {
    font-size: 0.75rem;
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 78px;
  }

  .header_inner,
  .header2.active .header_inner,
  .header2.active,
  .header2Open {
    height: 78px;
  }

  .header_inner,
  .header2.active .header_inner,
  .header2Open {
    padding-left: 64px;
    padding-right: 64px;
  }

  .header2 .logo {
    width: 38px;
    height: 38px;
  }

  .menuBar {
    --menu-bar-width: 30px;
    --menu-bar-height: 3px;
    height: 22px;
  }

  .header2Open ul {
    gap: 6px;
    padding-right: 48px;
  }

  .header2Open ul li a {
    font-size: 0.7rem;
    padding: 8px 12px;
  }
}
