#banner {
  width: 100%;
  height: auto;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  gap: 55px;
  justify-content: center;
  text-align: center;
  align-items: center;
}

#banner .line {
  width: 1px;
  height: 50px;
  background: #202020;
}

#banner h2 {
  font-family: 'PB_B';
  font-weight: bold;
  font-size: 50px;
  color: #202020;
}

#navigation {
  width: 100%;
  height: 50px;
  background: #fff;
  border-top: 1px solid #D9D9D9;
  border-bottom: 1px solid #D9D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 9;
}

#navigation .wrap {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#navigation .wrap .home {
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
}

#navigation .wrap .home img {
  width: auto;
  height: auto;
}

#navigation .wrap .parent_menu {
  width: 100%;
  max-width: 250px;
  position: relative;
  cursor: pointer;
  align-self: flex-start;
  overflow: hidden;
  max-height: 48px;
  transition: max-height 0.5s;
  z-index: 10;
}

#navigation .wrap .parent_menu.action {
  max-height: 400px;
}

#navigation .wrap .parent_menu::after {
  content: "";
  width: 10px;
  height: 5px;
  background: url("../img/common/black_arrow.png") no-repeat center / cover;
  position: absolute;
  right: 20px;
  top: 25px;
  transform: translateY(-50%);
}

#navigation .wrap .parent_menu .main_category {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  padding-left: 20px;
  font-family: 'PB_R';
  font-weight: normal;
  font-size: 16px;
  border-left: 1px solid #D9D9D9;
  border-right: 1px solid #D9D9D9;
  transition: all 0.5s;
}

#navigation .wrap .parent_menu .main_category:last-of-type {
  border-bottom: 1px solid #D9D9D9;
}

#navigation .wrap .parent_menu .main_category.active:hover {
  background: #fff;
}

#navigation .wrap .parent_menu .main_category:hover {
  background: #1862D6;
}

#navigation .wrap .parent_menu .main_category:hover a {
  color: #fff;
}

#navigation .wrap .parent_menu .main_category.active:hover a {
  color: #000;
}

#navigation .wrap .parent_menu .main_category:first-of-type {
  border-left: 0;
  border-right: 0;
}

#navigation .wrap .child_menu {
  width: 100%;
  max-width: 250px;
  position: relative;
  cursor: pointer;
  align-self: flex-start;
  overflow: hidden;
  max-height: 48px;
  transition: max-height 0.5s;
  z-index: 10;
}

#navigation .wrap .child_menu.action {
  max-height: 400px;
}

#navigation .wrap .child_menu::after {
  content: "";
  width: 10px;
  height: 5px;
  background: url("../img/common/white_arrow.png") no-repeat center / cover;
  position: absolute;
  right: 20px;
  top: 25px;
  transform: translateY(-50%);
}

#navigation .wrap .child_menu .sub_category {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  font-family: 'PB_R';
  font-weight: normal;
  font-size: 16px;
  background: #fff;
  transition: all 0.5s;
  border-left: 1px solid #D9D9D9;
  border-right: 1px solid #D9D9D9;
}

#navigation .wrap .child_menu .sub_category:last-of-type {
  border-bottom: 1px solid #D9D9D9;
}

#navigation .wrap .child_menu .sub_category:hover {
  background: #1862D6;
}

#navigation .wrap .child_menu .sub_category.active {
  background: #1862D6;
}

#navigation .wrap .child_menu .sub_category.active a {
  color: #fff;
}

#navigation .wrap .child_menu .sub_category a {
  color: #000;
}

#navigation .wrap .child_menu .sub_category.active:hover a {
  color: #fff;
}

#navigation .wrap .child_menu .sub_category:hover a {
  color: #fff;
}

#navigation .wrap a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

@media (max-width: 700px) {
  #banner h2 {
    font-size: 42px;
  }

  #banner .line {
    height: 30px;
  }
  
  #banner {
    gap: 30px;
  }

  #navigation .wrap .parent_menu .main_category {
    padding-left: 10px;
    font-size: 14px;
  }

  #navigation .wrap .parent_menu::after {
    right: 10px;
  }

  #navigation .wrap .child_menu .sub_category {
    padding-left: 10px;
    font-size: 14px;
  }

  #navigation .wrap .child_menu::after {
    right: 10px;
  }

  #navigation .wrap .parent_menu {
    max-width: 180px;
  }

  #navigation .wrap .child_menu {
    max-width: 180px;
  }
}

@media (max-width: 500px) {
  #banner h2 {
    font-size: 30px;
  }

  #navigation .wrap .home {
    display: none;
  }

  #navigation .wrap .parent_menu {
    max-width: 100%;
  }

  #navigation .wrap .child_menu {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  #banner h2 {
    font-size: 20px;
  }

  #banner {
    gap: 15px;
  }

  #navigation {
    height: 40px;
  }

  #navigation .wrap .home {
    width: 40px;
  }

  #navigation .wrap .child_menu,
  #navigation .wrap .parent_menu {
    max-height: 38px;
  }

  #navigation .wrap .child_menu .sub_category,
  #navigation .wrap .parent_menu .main_category {
    height: 40px;
    font-size: 14px;
  }

  #navigation .wrap .child_menu::after,
  #navigation .wrap .parent_menu::after {
    top: 20px;
  }
}
