.anchorLinkNav,
.anchorLinkNav::before,
.anchorLinkNav::after,
.anchorLinkNav *,
.anchorLinkNav *::before,
.anchorLinkNav *::after {
  box-sizing: border-box;
}

.anchorLinkNav {
  --anchorLinkNav-color-bg: var(--color-primary_darkGray-01, #333);
  --anchorLinkNav-color-disabled: var(--color-primary_darkGray-02, #4c4c4c);
  --anchorLinkNav-color-white: var(--color-primary_white, #fff);
  --anchorLinkNav-color-link: var(--color-secondary_gray-02, #e6e6e6);
  --anchorLinkNav-color-accent: var(--color-secondary_skyBlue, #0079c8);

  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
  position: sticky;
  top: 0;
  width: 100%;
  height: 58px;
  background: var(--anchorLinkNav-color-bg);
  color: var(--anchorLinkNav-color-link);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* ------------------------------------------------------------ */

.dropdownNav {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;

  @media screen and (min-width: 561px) {
    display: none;
  }
}

.dropdownNav_select {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 69px 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--anchorLinkNav-color-bg);
  color: var(--anchorLinkNav-color-white);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
  outline: none;
  cursor: pointer;

  &:focus-visible {
    outline: solid 2px var(--anchorLinkNav-color-white);
  }
}

.dropdownNav_option {
  background-color: var(--anchorLinkNav-color-bg);
  color: var(--anchorLinkNav-color-white);
  font-size: 15px;

  &.-placeholder {
    display: none;
  }
}

.dropdownNav_arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  width: 59px;
  height: 58px;
  border-left: 1px solid #1a1a1a;
  pointer-events: none;
}

.dropdownNav_icoImg {
  width: 14px;
  height: auto;

  path {
    stroke: var(--anchorLinkNav-color-white);
  }
}

/* ------------------------------------------------------------ */

.scrollableNav {
  display: none;

  @media screen and (min-width: 561px) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
  }
}

.scrollableNav_arrow {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  &:focus-visible {
    outline: solid 2px var(--anchorLinkNav-color-white);
    outline-offset: -2px;
  }

  &.-left {
    box-shadow: 8px 0 4px -4px rgba(0, 0, 0, 0.2);
  }

  &.-right {
    box-shadow: -8px 0 4px -4px rgba(0, 0, 0, 0.2);
  }

  &.-disable {
    box-shadow: none;
    cursor: default;
  }
}

.scrollableNav_icoImg {
  width: 14px;
  height: auto;

  .scrollableNav_arrow.-left & {
    transform: rotate(90deg);
  }

  .scrollableNav_arrow.-right & {
    transform: rotate(-90deg);
  }

  & path {
    stroke: var(--anchorLinkNav-color-white);

    @media (hover: hover) {
      .scrollableNav_arrow:not(.-disable):hover & {
        stroke: var(--anchorLinkNav-color-accent);
      }
    }
    @media (hover: none) {
      .scrollableNav_arrow:not(.-disable):active & {
        stroke: var(--anchorLinkNav-color-accent);
      }
    }

    .scrollableNav_arrow.-disable & {
      stroke: var(--anchorLinkNav-color-disabled);
    }
  }
}

.scrollableNav_list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  list-style: none;
  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.scrollableNav_item {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;

  &:first-child {
    margin-left: auto;
  }

  &:last-child {
    margin-right: auto;
  }
}

/* ------------------------------------------------------------ */

.anchorLink {
  display: flex;
  align-items: center;
  color: var(--anchorLinkNav-color-link);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;

  &:focus-visible {
    outline: solid 2px var(--anchorLinkNav-color-white);
    outline-offset: 2px;
  }

  @media (hover: hover) {
    &:hover {
      color: var(--anchorLinkNav-color-white);
      text-decoration: underline;
    }
  }

  @media (hover: none) {
    &:hover {
      text-decoration: none;
    }

    &:active {
      color: var(--anchorLinkNav-color-white);
    }
  }

  .scrollableNav_item.-current & {
    color: var(--anchorLinkNav-color-white);
    font-weight: 700;
    pointer-events: none;
  }
}

.scrollableNav_anchorLink {
  padding: 0 15px;
}

.anchorLink_Ico {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transform: translateY(1px);

  .anchorLinkNav.-external & {
    transform: rotate(-90deg) translateX(-1px);
  }

  path {
    fill: currentColor;

    .scrollableNav_item.-current & {
      fill: var(--anchorLinkNav-color-white);
    }
  }
}

.anchorLink_txt {
  margin: 0 0 0 8px;
  padding: 0;
  color: inherit;
}
