/* =========================================================
   ILLUMICA WORKS
   動的出力を想定し、件数・文字数を固定しない構成
   ========================================================= */

/* ページ内アンカー */
.works-anchor-nav {
  position: relative;
  z-index: 5;
  padding: clamp(54px, 5vw, 88px) 0 clamp(70px, 6vw, 110px);
  background: #fff;
}

.works-anchor-nav__list {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 280px), 1fr)
  );
  gap: clamp(14px, 1.5vw, 26px);
  width: min(100%, 1180px);
  margin-inline: auto;
}

.works-anchor-nav__list > li {
  min-width: 0;
}

.works-anchor-nav__list a {
  position: relative;
  display: flex;
  min-height: 94px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px 24px;
  overflow: hidden;
  border: 1px solid rgba(8, 127, 189, .42);
  border-radius: 18px;
  background: #fff;
  color: var(--color-dark);
  font-size: clamp(13px, .9vw, 16px);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  transition:
    color .3s ease,
    border-color .3s ease,
    background-color .3s ease,
    transform .3s ease,
    box-shadow .3s ease;
}

.works-anchor-nav__list a::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -34px;
  bottom: -38px;
  width: 112px;
  height: 72px;
  border-radius: 50%;
  background: rgba(142, 207, 250, .18);
  transform: rotate(-28deg);
  transition: transform .35s ease, background-color .35s ease;
}

.works-anchor-nav__list a > * {
  position: relative;
  z-index: 1;
}

.works-anchor-nav__list a span {
  color: var(--color-main);
  font-family: var(--font-en);
  font-size: clamp(10px, .68vw, 12px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.works-anchor-nav__list a:hover,
.works-anchor-nav__list a:focus-visible {
  border-color: var(--color-main);
  background: #f7fcff;
  color: var(--color-main);
  box-shadow: 0 14px 34px rgba(8, 127, 189, .09);
  transform: translateY(-3px);
}

.works-anchor-nav__list a:hover::before,
.works-anchor-nav__list a:focus-visible::before {
  background: rgba(159, 244, 244, .34);
  transform: rotate(-28deg) scale(1.18);
}

/* カテゴリー共通 */
.works-categories {
  position: relative;
  overflow: hidden;
}

.works-category {
  position: relative;
  scroll-margin-top: 110px;
  padding: clamp(120px, 9vw, 180px) 0;
  overflow: hidden;
}

.works-category--stage {
  border-radius: 50% / 4.5%;
  background: #eef6fb;
}

.works-category__inner {
  position: relative;
  z-index: 2;
}

.works-category__heading {
  position: relative;
  display: inline-block;
  padding-left: clamp(22px, 1.8vw, 34px);
}

.works-category__heading::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(5px, .42vw, 8px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-main), #8ecffa);
  box-shadow: 0 0 18px rgba(8, 127, 189, .16);
}

.works-category__en {
  color: var(--color-main);
  font-family: var(--font-en);
  font-size: clamp(11px, .76vw, 14px);
  line-height: 1;
  text-transform: uppercase;
}

.works-category__heading h2 {
  margin-top: 18px;
  color: var(--color-dark);
  font-size: clamp(32px, 3.1vw, 58px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .035em;
}

.works-category__output {
  position: relative;
  z-index: 2;
  margin-top: clamp(54px, 5vw, 92px);
}

/*
 * 動的出力エリア
 * 高さ・行数・項目数を固定しない。
 * CMS側ではul内のliのみ増減する想定。
 */
.works-name-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* コンサート：アーティスト名をスラッシュ区切りで可変折返し */
.works-name-list--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 0;
  max-width: 1320px;
}

.works-name-list--inline li {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  font-size: clamp(15px, 1.15vw, 21px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .025em;
}

.works-name-list--inline li:not(:last-child)::after {
  content: "/";
  margin-inline: clamp(12px, 1.4vw, 26px);
  color: rgba(8, 127, 189, .42);
  font-family: var(--font-en);
  font-weight: 300;
}

/* 舞台・イベント：件数に追従する可変カラム */
.works-name-list--stacked {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 0 clamp(50px, 6vw, 110px);
  border-top: 1px solid rgba(8, 127, 189, .14);
}

.works-name-list--stacked li {
  position: relative;
  min-width: 0;
  padding: 22px 18px 22px 34px;
  border-bottom: 1px solid rgba(8, 127, 189, .14);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.works-name-list--stacked li::before {
  content: "";
  position: absolute;
  top: 2.15em;
  left: 5px;
  width: 15px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-main);
  transform: translateY(-50%) rotate(-30deg);
}


/* 一覧末尾の補足 */
.works-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: clamp(26px, 2.8vw, 44px) 0 0;
  color: rgba(8, 127, 189, .72);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: lowercase;
}

.works-more::before {
  content: "";
  display: block;
  width: clamp(38px, 4vw, 64px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(8, 127, 189, 0),
    rgba(8, 127, 189, .52)
  );
}

/* 背景ライト */
.works-category__light {
  position: absolute;
  z-index: 0;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

.works-category__light--blue {
  top: 15%;
  right: -8%;
  width: clamp(330px, 32vw, 640px);
  aspect-ratio: 680 / 265;
  background: rgba(142, 207, 250, .22);
  filter: blur(clamp(18px, 1.5vw, 30px));
  transform: rotate(-25deg);
}

.works-category--event .works-category__light--blue {
  top: auto;
  right: auto;
  bottom: 2%;
  left: -12%;
  transform: rotate(-31deg);
}

.works-category__light--mint {
  right: -5%;
  bottom: 2%;
  width: clamp(280px, 26vw, 520px);
  aspect-ratio: 460 / 186;
  background: rgba(159, 244, 244, .25);
  filter: blur(clamp(16px, 1.3vw, 26px));
  transform: rotate(-30deg);
}

/* 動的出力が空の場合にCMS側でis-emptyを付けて使用 */
.works-category__output.is-empty {
  padding: 32px 36px;
  border: 1px solid rgba(8, 127, 189, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.works-category__output.is-empty::before {
  content: "実績情報を準備中です。";
  color: rgba(23, 29, 34, .62);
  font-size: 14px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .works-anchor-nav__list {
    grid-template-columns: repeat(
      auto-fit,
      minmax(min(100%, 240px), 1fr)
    );
    gap: 14px;
  }

  .works-anchor-nav__list a {
    min-height: 88px;
    padding-inline: 16px;
  }

  .works-category {
    scroll-margin-top: 90px;
  }

  .works-name-list--stacked {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .works-anchor-nav {
    padding: 44px 0 70px;
  }

  .works-anchor-nav__list {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
  }

  .works-anchor-nav__list a {
    min-height: 78px;
  }

  .works-category {
    padding: 94px 0 110px;
  }

  .works-category--stage {
    border-radius: 50% / 2.4%;
  }
}

@media (max-width: 575px) {
  .page-hero--works .page-hero__media {
    right: -54%;
  }

  .works-anchor-nav {
    padding: 36px 0 62px;
  }

  .works-anchor-nav__list a {
    min-height: 72px;
    border-radius: 15px;
  }

  .works-category {
    padding: 76px 0 88px;
    scroll-margin-top: 76px;
  }

  .works-category__heading {
    padding-left: 17px;
  }

  .works-category__heading::before {
    width: 5px;
  }

  .works-category__heading h2 {
    margin-top: 13px;
    font-size: 29px;
  }

  .works-category__output {
    margin-top: 42px;
  }

  .works-name-list--inline {
    gap-block: 10px;
  }

  .works-name-list--inline li {
    font-size: 14px;
    line-height: 1.65;
  }

  .works-name-list--inline li:not(:last-child)::after {
    margin-inline: 10px;
  }

  .works-name-list--stacked li {
    padding: 17px 8px 17px 27px;
    font-size: 13px;
  }

  .works-name-list--stacked li::before {
    top: 1.95em;
    left: 2px;
    width: 13px;
    height: 8px;
  }

  .works-more {
    gap: 10px;
    margin-top: 24px;
    font-size: 16px;
  }

  .works-more::before {
    width: 32px;
  }
}

/* =========================================================
   Font accessibility
   ========================================================= */
.works-anchor-nav__list a,
.works-name-list--inline li,
.works-name-list--stacked li,
.works-category__output.is-empty::before {
  font-size: 16px;
}

@media (max-width: 575px) {
  .works-name-list--inline li,
  .works-name-list--stacked li {
    font-size: 16px;
  }
}

