@charset "UTF-8";

/* WORKS専用。見出し・ボタン・カード画像・フォーカスは共通CSSを使用。 */
.ipc-works-mv {
  position: relative;
  width: 100%;
  aspect-ratio: 3840 / 1120;
  overflow: hidden;
  background-color: #e5e5e5;
}

.ipc-works-mv__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ipc-works-mv__layer {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.ipc-works-mv__spark {
  z-index: 2;
}

.ipc-works-mv__title {
  z-index: 3;
}

.ipc-works-mv__layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

@media screen and (max-width: 768px) {
  .ipc-works-mv {
    aspect-ratio: 750 / 320;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipc-works-mv__layer {
    transform: none !important;
    clip-path: none !important;
  }
}

.ipc-works-archive {
  padding-block: calc(130 * var(--ipc-pc)) calc(190 * var(--ipc-pc));
}

.ipc-works-filter {
  margin-top: calc(110 * var(--ipc-pc));
}

.ipc-works-filter ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(40 * var(--ipc-pc));
  max-width: calc(1220 * var(--ipc-pc));
  margin-inline: auto;
}

.ipc .ipc-works-filter__link,
.ipc .ipc-works-filter__link:link,
.ipc .ipc-works-filter__link:visited {
  width: calc(275 * var(--ipc-pc));
  min-height: calc(56 * var(--ipc-pc));
  padding: 8px 12px;
  background-color: #fff;
  color: var(--ipc-color-primary);
}

.ipc .ipc-works-filter__link[aria-current="page"],
.ipc .ipc-works-filter__link[aria-current="page"]:link,
.ipc .ipc-works-filter__link[aria-current="page"]:visited {
  background-color: var(--ipc-color-primary);
  color: #fff;
}

.ipc-works-archive__grid {
  /* 列数・間隔・上余白はトップページの .ipc-works__grid を流用します。 */
}

.ipc-works-archive__grid.is-switching {
  animation: ipc-works-grid-switch 0.8s var(--ipc-ease-out) both;
}

@keyframes ipc-works-grid-switch {
  from {
    opacity: 0;
    transform: translateY(calc(32 * var(--ipc-pc)));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ipc-works-archive .ipc-works-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ipc-works-archive .ipc-works-card h3 {
  margin-top: calc(12 * var(--ipc-pc));
  color: var(--ipc-color-text);
}

.ipc-works-card__client {
  font-size: calc(16 * var(--ipc-pc));
  line-height: 1.5;
  transition: color var(--ipc-hover-text-duration) var(--ipc-hover-ease);
}

@media (prefers-reduced-motion: reduce) {
  .ipc-works-archive__grid.is-switching {
    animation: none;
  }

  .ipc-works-card__client {
    transition: none;
  }
}

.ipc-works-pagination {
  margin-top: calc(110 * var(--ipc-pc));
}

.ipc-works-archive [hidden] {
  display: none !important;
}

.ipc-works-archive__notice {
  margin-top: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .ipc .ipc-works-filter__link:hover,
  .ipc .ipc-works-filter__link:active {
    background-color: var(--ipc-color-primary);
    color: #fff;
  }

  .ipc-works-archive .ipc-works-card a:hover h3,
  .ipc-works-archive .ipc-works-card a:hover .ipc-works-card__client {
    color: var(--ipc-color-primary);
  }
}

.ipc-works-archive .ipc-works-card a:focus-visible h3,
.ipc-works-archive .ipc-works-card a:focus-visible .ipc-works-card__client {
  color: var(--ipc-color-primary);
}

@media screen and (max-width: 1024px) {
  @keyframes ipc-works-grid-switch {
    from {
      opacity: 0;
      transform: translateY(calc(24 * var(--ipc-sp)));
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ipc-works-archive {
    padding-block: calc(80 * var(--ipc-sp)) calc(100 * var(--ipc-sp));
  }

  .ipc-works-filter {
    margin-top: calc(42 * var(--ipc-sp));
  }

  .ipc-works-filter ul {
    gap: 12px;
    max-width: 680px;
  }

  .ipc-works-filter li {
    flex: 0 1 calc((100% - 12px) / 2);
  }

  .ipc .ipc-works-filter__link {
    width: 100%;
    min-height: 44px;
    font-size: clamp(0.8125rem, calc(14 * var(--ipc-sp)), 0.9375rem);
    letter-spacing: 0;
  }

  .ipc-works-archive .ipc-works-card h3,
  .ipc-works-card__client {
    font-size: clamp(0.75rem, calc(12 * var(--ipc-sp)), 0.875rem);
    line-height: 1.5;
  }

  .ipc-works-archive .ipc-works-card h3 {
    margin-top: 8px;
  }

  .ipc-works-pagination {
    margin-top: calc(56 * var(--ipc-sp));
  }
}
