/* ----------------------------------------------------------------------------------------------------------------------------
.genre-nav
---------------------------------------------------------------------------------------------------------------------------- */
.genre-nav {
  margin: 56px 0;
  overflow: scroll;
}

.genre-nav__list {
  display: flex;
  column-gap: 32px;
  width: 100%;
  min-width: max-content;
  border-bottom: 1px solid #e7e7e7;
  white-space: nowrap;
  font-size: 0;
  position: relative;
}

.genre-nav__list>li {
  width: fit-content;
  background: transparent;
  border: none;
  line-height: 1;
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 500;
  color: #6d6d6d;
  cursor: pointer;
  position: relative;

  &:last-of-type {
    margin-right: 12px;
  }

  > :is(a, p) {
    display: block;
    padding: 15px 0;
  }

  &:has([aria-current="page"]),
  &>a:hover {
    color: #212121;
    opacity: 1;

    /* 線 */
    &::after {
      content: "";
      display: block;
      width: 100%;
      height: 1px;
      background: #212121;
      position: absolute;
      bottom: -1px;
      left: 0;
      z-index: 2;
    }
  }

  &:has([aria-current="page"]) {
    cursor: default;
  }
}