@charset "utf-8";

.mega-menu--compact {
  --mm-inner: 65rem;
  --mm-gutter: clamp(1.563rem, -5.938rem + 8.33vw, 4.063rem);
}

.mega-menu--compact .mega-menu__wrapper {
  max-width: calc(var(--mm-inner) + var(--mm-gutter) * 2);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--mm-gutter);
}

.mega-menu--compact .mega-menu__nav {
  max-width: 100%;
}

.mega-menu--compact .mega-menu__nav-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, max-content));
  justify-content: space-between;
}

.mega-menu--compact .mega-menu__nav-col {
  min-width: 0;
}

.mega-menu--compact .mega-menu__nav-list-items {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}

@media screen and (max-width: 1440px) {
  .mega-menu--compact {
    --mm-gutter: 1.875rem;
  }
}

@media screen and (max-width: 1024px) {
  .mega-menu--compact .mega-menu__nav-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .mega-menu--compact {
    --mm-gutter: 1.25rem;
  }

  .mega-menu--compact .mega-menu__nav {
    max-width: max-content;
    margin-inline: auto;
  }

  .mega-menu--compact .mega-menu__nav-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========================================
  case-no（archive-case のサムネイルに表示する case #01 チップ）
======================================== */
.case__pickup-img {
  position: relative;
}

.case-no {
  position: absolute;
  display: inline-block;
  background-color: #000000;
  font-family: "Zen Kaku Gothic New", "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Verdana, "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-no[data-theme="case-list"] {
  left: 0.625rem;
  bottom: 0.5rem;
  font-size: max(0.875rem, 12px);
  padding-block: 0.25rem;
  padding-inline: 0.75rem;
}

.case-no[data-theme="case-pickup"] {
  left: 0.9375rem;
  bottom: 0.9375rem;
  font-size: max(1rem, 12px);
  padding-block: 0.3125rem;
  padding-inline: 0.9375rem;
}

@media screen and (max-width: 767px) {
  .case-no[data-theme="case-list"] {
    left: 0.9375rem;
    bottom: 0.9375rem;
    font-size: max(0.75rem, 12px);
    padding-inline: 0.625rem;
  }

  .case-no[data-theme="case-pickup"] {
    left: 0.625rem;
    bottom: 0.625rem;
    font-size: max(0.875rem, 12px);
    padding-block: 0.25rem;
    padding-inline: 0.75rem;
  }
}

/* ========================================
  mega-menu のナビをフッターと同じ見た目に揃える
  （リンクのみ下線 / サブメニューは font-weight を medium に）
======================================== */
.mega-menu__nav-title-link {
  text-decoration: underline;
}

.mega-menu__nav-title-link:focus-visible {
  text-decoration: underline;
}

.mega-menu__nav-link {
  font-weight: 500;
  text-decoration: underline;
}

/* 行頭の「-」には下線を引かない */
.mega-menu__nav-link::before {
  text-decoration: none;
}

.mega-menu__nav-link:focus-visible {
  text-decoration: underline;
}

@media (any-hover: hover) {
  /* リセット CSS の a:hover { text-decoration: none } を打ち消すため再宣言する */
  .mega-menu__nav-title-link:hover,
  .mega-menu__nav-link:hover {
    text-decoration: underline;
    opacity: 0.6;
  }
}

@media screen and (max-width: 767px) {
  .top-branding__tags {
    display: none;
  }
  .top-branding__caption {
    align-items: flex-start;
    justify-content: flex-end;
  }
}