.header {
  display: flex;
  height: 8rem;
  align-items: center;
  justify-content: center;
  padding: 0px 2.4rem 0.1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255);
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(1rem);
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.05);
  height: 7rem;
}

.header .header-inner {
  display: flex;
  max-width: 120rem;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex: 1;
  flex-grow: 1;
  align-self: stretch;
}
.header .logo {
  position: relative;
  width: 160px;
  height: 28px;
}
.header .list-margin {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px 0px 0px 56px;
  position: relative;
  flex: 0 0 auto;
}
.header .list {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header .item {
  border-radius: 8px;
  display: inline-flex;
  height: 70px;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
  list-style: none;
}
.header .menu {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px 9px;
  position: relative;
  flex: 0 0 auto;
  background-color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.header .menu:hover {
  background-color: #f5f5f5;
}
.header .menu:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}
.header .menu:active {
  background-color: #e0e0e0;
}
.header .service-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: -0.1rem;
  font-family: "Pretendard Variable-SemiBold", Helvetica;
  font-weight: 600;
  color: #424242;
  font-size: 1.7rem;
  letter-spacing: -0.1px;
  line-height: 2.55rem;
  white-space: nowrap;
  cursor: pointer;
}
.header .div-wrapper {
  display: inline-flex;
  height: 7rem;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
  list-style: none;
}
.header .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.604rem;
  padding: 0.906rem 1.208rem;
  position: relative;
  flex: 0 0 auto;
  background-color: var(--blue-01-main);
  border-radius: 2.717rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.header .tag:hover {
  background-color: #2d7fd9;
}
.header .tag:focus {
  outline: 0.2rem solid #ffffff;
  outline-offset: 0.2rem;
}
.header .tag:active {
  transform: scale(0.98);
}
.header .label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: -0.075rem;
  font-family: "Noto Sans KR-Medium", Helvetica;
  font-weight: 500;
  color: var(--white);
  font-size: 1.81rem;
  text-align: center;
  letter-spacing: -0.15px;
  line-height: normal;
}
.header .gridicons-external {
  position: relative;
  width: 1.811rem;
  height: 1.811rem;
  aspect-ratio: 1;
}
.header .vector {
  position: absolute;
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.51%;
}
.header .logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.header .logo-link:focus {
  outline: 0.2rem solid #4a90e2;
  outline-offset: 0.2rem;
  border-radius: 0.4rem;
}

@media screen and (max-width: 900px) {
  .header {
    padding: 0 1rem;
    height: 7rem;
    width: 100%;
  }

  .header .header-inner {
    justify-content: space-between;
  }

  .header .item,
  .header .div-wrapper:not(:last-child) {
    display: none !important;
  }

  .header .list-margin {
    padding-left: 0;
    margin: 0;
    width: auto;
    display: flex;
  }

  .header .list {
    display: flex;
    gap: 0;
  }

  .header .logo {
    width: 13rem;
    height: auto;
  }

  .header .tag {
    padding: 0.8rem 1.2rem;
  }

  .header .label {
    font-size: 1.4rem;
  }

  .header .gridicons-external {
    width: 1.4rem;
    height: 1.4rem;
  }
}
