button {
  all: unset;
  display: inline-block;
  cursor: pointer;
  text-align: center;
  background-color: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  outline: none;
}
a {
  cursor: pointer;
  text-decoration: none;
  color: #333;
}
li {
  list-style-type: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
}
.content {
  width: 100%;
  height: auto;
  /* background-color: aqua; */
}
.nav-mobile-menu {
  display: none;
}

.nav-mobile-menu button {
  background: none;
  border: none;
}

.header {
  position: fixed;
  top: 0;
  background-color: #fff;
  width: 100%;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0px 0px 0px;
  z-index: 999;
}

.nav {
  width: 93%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
}

.nav-first {
  width: 100%;
  /* height: 30px; */
}

.nav-second {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0px 0px 0px 0px;
}

.nav-listA {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  list-style-type: none;
}
.nav-itemA {
  padding: 0 10px 0 10px;
}
.nav-itemA:nth-last-child(1) {
  padding: 0 0 0 10px;
}
.nav-itemA:nth-child(2) {
  border: solid;
  border-width: 0px 1px 0px 0px;
  border-color: #000;
}

.nav-itemA a {
  color: inherit;
  text-decoration: none;
  font-size: 16px;
}

.nav-listB {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 126px;
  list-style-type: none;
  margin-top: 20px;
  padding: 0;
}

.nav-itemB {
  width: auto;
  border-right-width: 10px;
  border-color: #333;
  position: relative; /* 부모 요소를 기준으로 자식 배치 */
  margin-bottom: 0px; /* 각 항목 간격 */
}

.nav-itemB a {
  width: auto;
  color: #000;
  text-decoration: none;
  font-size: 20px;
  display: ruby-text;
}

.nav-itemB:hover a {
  background-color: #fff; /* hover 시 링크 강조 효과 */
  color: #1237ae;
}

.nav-itemB .modal {
  display: none; /* 기본적으로 숨김 */
  width: 150px;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #d9d9d9;
  border: none;
  padding: 10px;
  border-radius: 0px;
  z-index: 10;
}

.nav-itemB:hover .modal {
  display: flex; /* hover 시 표시 */
  flex-direction: column;
  gap: 10px; /* 버튼 간격 */
}

.nav-itemB .modal a {
  border: none;
  border-radius: 3px;
  cursor: pointer;
  color: #000;
  background: none;
  font-size: 16px;
}

.logo {
  width: auto;
  height: 100px;
  padding-bottom: 26px;
}
.btn-kakao {
  width: auto;
  height: 30px;
}
.kakao {
  width: auto;
  height: 30px;
  padding-right: 32px;
}

@media (max-width: 1171px) {
  .header {
    height: 110px;
  }
  .nav {
    width: 90%;
  }
  .nav-listB {
    gap: 40px;
  }
  .nav-itemA,
  .nav-itemB {
    padding: 0px 10px;
  }
  .nav-itemA a,
  .nav-itemB a {
    font-size: 16px;
  }

  .logo {
    width: auto;
    height: 80px;
  }
}

@media (max-width: 830px) {
  .nav-first {
    display: none;
  }
  .nav-second .nav-listB {
    display: none;
  }

  .floating {
    display: none;
  }

  .nav-mobile-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .header {
    height: 100px;
    justify-content: center;
    padding: 0 0 0 0;
    background-color: #021738;
  }

  .nav {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-second {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0px 0px 0px 0px;
  }

  .logo {
    width: auto;
    height: 80px;
    padding-bottom: 6px;
    margin-top: 10px;
  }

  .kakao {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-mobile-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .hamburger-icon {
    width: 24px;
    height: 24px;
  }

  .search-icon {
    width: 24px;
    height: 24px;
  }

  .header {
    height: 56px;
    justify-content: center;
    background-color: #021738;
  }

  .logo {
    width: auto;
    height: 30px;
    padding-bottom: 0;
  }
}
