body.works-page {
  --home-background: url("../assets/home-background2.png");
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    var(--home-background) center center / cover no-repeat fixed,
    var(--paper);
  font-family: "NotoSansJP-ExtraLight", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 200;
}

.works {
  align-items: start;
  padding-inline: clamp(22px, 3vw, 36px);
}

.works-panel {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px) 0;
  background: transparent;
  color: var(--ink);
  backdrop-filter: none;
}

.section-number,
.work-index,
.work-kind,
.copy {
  color: rgba(7, 7, 7, 0.68);
}

.title {
  margin-bottom: 10px;
}

.works-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.work-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
  padding-top: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid var(--ink);
}

.work-item {
  position: relative;
  min-width: 0;
}

.work-item a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: 100%;
  padding: 0;
  border-bottom: 0;
  text-transform: none;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.work-item a:hover,
.work-item a:focus-visible {
  color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.work-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.work-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 4px 10px;
  align-items: start;
  height: clamp(66px, 22%, 84px);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 9px 12px;
  background: #000;
  color: var(--paper);
}

.work-index,
.work-kind {
  padding-top: 4px;
  color: rgba(255, 255, 255, 0.58);
}

.work-name {
  min-width: 0;
  font-family: "NotoSansJP-Medium", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(1.08rem, 1.9vw, 1.4rem);
  font-weight: 500;
  line-height: 1.1;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.work-description {
  grid-column: 2 / -1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "NotoSansJP-ExtraLight", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 0.78rem;
  font-weight: 200;
  line-height: 1.32;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

@media (max-width: 720px) {
  .works {
    align-items: start;
    padding: 34px 22px 46px;
  }

  .works-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    margin-bottom: 34px;
  }

  .work-list {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .work-item a {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .work-kind {
    display: inline;
  }
}

@media (max-width: 480px) {
  .works {
    padding-inline: 20px;
  }
}
