/* ヘッダー */
#header {
  width: 100%;
  background-color: white;
  z-index: 1;
  border-bottom: 3px solid var(--primary);
  box-sizing: border-box;

  @media screen and (max-width: 723px) {
    height: 60px;
    display: flex;
    justify-content: space-between;
    position: relative;
  }
}

.header_wrapper {
  width: 1040px;
  flex-direction: column;
  display: flex;
  margin-inline: auto;

  @media screen and (max-width: 723px) {
    width: 100%;
  }
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--divider);

  @media screen and (max-width: 723px) {
    display: none;
  }
}

/* --- ヘッダー */

/* ヘッダーナビゲーション */
.HeaderNav_bottom_wrapper {
  width: 1040px;
  height: 25px;
  padding-bottom: 10px;
  display: inline-flex;
  flex-direction: row;
  gap: 88px;
  justify-content: end;

  @media screen and (max-width: 723px) {
    display: none;
  }
}

.HeaderNav_list {
  display: flex;
  padding: 0;
  gap: 32px;
  height: 100%;
}

.HeaderNav_list_item {
  width: auto;
  background: url(/common/images/grovalnavi_bg.png) no-repeat;
  background-size: auto 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  position: relative;
  font-size: var(--font-size-md);
  font-weight: 500;
  gap: 8px;
}

.HeaderNav_list_item:hover::before,
.HeaderNav_list_item:active::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.HeaderNav_list_item_link {
  color: var(--primary);
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.HeaderNav_list_arrow {
  height: 10px;
  flex-shrink: 0;
  transform-origin: center;
  transform: rotate(0deg);
  filter: var(--primary-icon-filter);
}

.HeaderNav_list_item:hover .HeaderNav_list_arrow--interactive,
.HeaderNav_list_item:active .HeaderNav_list_arrow--interactive {
  transform: rotate(90deg);
}

.HeaderNav_list_arrow--static {
  transform: rotate(0deg);
}

.HeaderNav_list_item:hover .HeaderNav_drop_down_wrapper,
.HeaderNav_list_item:active .HeaderNav_drop_down_wrapper {
  display: block;
}

.HeaderNav_drop_down_wrapper {
  display: none;
  position: absolute;
  bottom: 0;
  transform: translateY(100%);
  left: 0;
  width: max-content;
  padding: 0;
  padding-top: 10px;
  z-index: 2;
}

.HeaderNav_drop_down {
  padding: 4px 32px 40px 20px;
  background-color: white;
  border: 2px solid var(--border);
  border-radius: 10px;
}

.HeaderNav_drop_down_item {
  height: 42px;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  color: #16006e;
  border-bottom: 1px dashed var(--border);
}

.HeaderNav_drop_down_item_link {
  color: var(--primary-text);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
}
/* --- ヘッダーナビゲーション */

/* ヘッダー上部 */
#header_sitemap {
  background-color: var(--secondary);
  visibility: hidden;
}

.header_top_wrapper {
  height: 82px;
  position: relative;
}

.header_logo {
  position: absolute;
  top: 20px;
  left: 0;
}

.header_logo_img {
  width: 342px;
}

.header_corp {
  position: absolute;
  top: 10px;
  right: 0;
  width: auto;
}

.header_sp_menu_button {
  display: none;
}

@media screen and (max-width: 723px) {
  .header_menu_wrapper {
    background-color: white;
    height: 60px;
    flex-shrink: 0;
    z-index: 1;
  }

  .header_sp_menu_button {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    top: 10px;
    right: 10px;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
  }

  .header_sp_menu_button_open {
    display: block;
    filter: var(--white-icon-filter);
  }

  .header_sp_menu_button_close {
    width: 17px;
    filter: var(--white-icon-filter);
  }
  .header_home_icon {
    width: 16px;
    height: 14px;
    filter: var(--primary-icon-filter);
  }

  #header_sitemap {
    width: 100%;
    z-index: 1;

    position: fixed;
    left: 0;
    height: 60px;
    overflow-y: auto;
    z-index: 1;
    transition: all 0.3s ease;
  }

  #header_sitemap.show {
    height: 100%;
    visibility: visible;
  }

  .header_sitemap_wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 0 60px;
  }

  .header_sitemap_footer {
    padding-bottom: 24px;
    background: white;
  }

  .header_sitemap {
    padding: 16px 40px;
    height: auto;
    width: 100%;
  }

  .header_menu_container {
    gap: 0;
    padding: 16px 0 16px;
    width: 100%;
  }

  .header_menu_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
  }

  .header_menu_container--home .header_menu_header {
    padding-bottom: 0;
    border-bottom: none;
  }

  .header_menu_container--home .header_menu_title {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header_menu_list_wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px 0 16px;
  }

  .header_menu_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
    font-size: var(--font-size-md);
  }

  .header_menu_list_item {
    line-height: 1.5;
    font-weight: 400;
    color: var(--primary);
  }

  .header_menu_title {
    height: 24px;
    font-weight: bold;
    font-size: var(--font-size-lg);
    color: var(--primary);
  }

  .header_menu_list_sub_container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .header_menu_list_sub_item {
    ::before {
      width: 20px;
      content: "-";
      display: inline-block;
    }
  }

  .header_logo {
    position: absolute;
    top: 10px;
    left: 10px;
  }

  .header_logo_img {
    width: 195px;
  }

  .header_corp {
    top: 10px;
    right: 64px;
  }

  .header_corp,
  .header_corp img {
    width: 106px;
  }
}
/* --- ヘッダー上部 */
