nav.genre-dropdown {
  display: flex;
  justify-content: center;
  padding: 0 0 50px;
  gap: 50px;
}

.genre-dropdown a {
    color: initial;
}

/* メニュー全体のコンテナ */
.dropdown {
  position: relative;
  display: inline-block;
}

/* メニューを開くボタン */
.dropdown-toggle {
  background-color: #fff;
  color: initial;
  padding: 0 0 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  white-space: nowrap;
  border-bottom: 1px solid #222;
}

.dropdown-toggle:hover {
  opacity: 0.8;
}

/* ドロップダウンメニュー本体 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 8px 0 0;
  padding: 5px;
  width: 500px;
  z-index: 1000;

  /* アニメーションのための設定 */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-wrap: wrap;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-bottom-color: #ddd;
}

.dropdown-menu::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #fff;
}

.dropdown.not_drop ul {
  display: flex;
  gap: 50px;
}

/* メニューの各アイテム */
.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #f7f6f4;
}

/* デスクトップ向け：ホバー操作が可能なデバイスでのみ適用 */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

/* モバイル（タップ）向け：is-openクラスが付いた時にメニューを表示 */
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.genre_lower {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 30px 50px;
  flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
  .dropdown-menu {
    flex-direction: column;
    width: 150px;
  }

  .dropdown.not_drop ul {
    gap: 15px 30px;
    flex-wrap: wrap;
    padding: 0 15px;
}

  .genre_lower {
    padding: 0 15px 80px;
    justify-content: center;
  }

}