/* TOP works final polish — 2026-08-30
   Restore the white/blue wave and give the four fixed case cards a clear hierarchy. */

@media (min-width: 769px) {
  body.page-home .works {
    background: #fff !important;
  }

  body.page-home .works__surface {
    display: block !important;
    background: var(--lt-brand-pale, #eff4f7) !important;
    clip-path: path("M 0 104 C 138 76 292 26 430 6 C 580 -15 722 73 930 117 C 1110 155 1272 129 1442 91 L 1442 1256 L 0 1256 Z") !important;
  }

  body.page-home .works__marquee--lower {
    top: 823px !important;
  }

  body.page-home .works__cards {
    height: 408px !important;
    align-items: stretch !important;
  }

  body.page-home .work-card,
  body.page-home .work-card:nth-child(n) {
    height: 402px !important;
    overflow: hidden !important;
    border: 1px solid rgba(57, 119, 157, .12) !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(57, 119, 157, .08) !important;
  }
}

body.page-home .work-card__link {
  display: flex !important;
  height: 100% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  color: var(--text-v37-lt-ink, #263946) !important;
}

body.page-home .work-card__image {
  flex: 0 0 auto !important;
}

body.page-home .work-card__title {
  position: static !important;
  inset: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 19px 20px 0 !important;
  color: var(--text-v37-lt-ink, #263946) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.58 !important;
  letter-spacing: .055em !important;
  text-wrap: pretty;
}

body.page-home .work-card__title-type,
body.page-home .work-card__title-feature {
  display: block;
}

body.page-home .work-card__title-type {
  margin-bottom: 7px;
  color: var(--text-v37-lt-brand, #39779d);
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .1em;
}

body.page-home .work-card__title-feature {
  text-wrap: balance;
}

body.page-home .work-card__meta,
body.page-home .work-card__area {
  position: static !important;
  inset: auto !important;
  margin-right: 20px !important;
  margin-left: 20px !important;
  color: var(--text-v37-lt-muted, #667985) !important;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif !important;
  font-size: 10px !important;
  line-height: 1.65 !important;
  letter-spacing: .065em !important;
}

body.page-home .work-card__meta {
  margin-top: auto !important;
  padding-top: 11px !important;
  border-top: 1px solid var(--lt-line, rgba(57, 119, 157, .22));
}

body.page-home .work-card__area {
  margin-top: 4px !important;
  margin-bottom: 17px !important;
}

@media (max-width: 768px) {
  body.page-home .works__cards {
    height: auto !important;
    align-items: stretch !important;
  }

  body.page-home .work-card,
  body.page-home .work-card:nth-child(n) {
    height: auto !important;
    min-height: 438px !important;
    overflow: hidden !important;
    border: 1px solid rgba(57, 119, 157, .12) !important;
    border-radius: 0 34px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(57, 119, 157, .08) !important;
  }

  body.page-home .work-card__title {
    padding: 20px 20px 0 !important;
    border-top: 0 !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
  }

  body.page-home .work-card__title-type {
    margin-bottom: 8px;
    font-size: 11px;
  }

  body.page-home .work-card__meta,
  body.page-home .work-card__area {
    margin-right: 20px !important;
    margin-left: 20px !important;
    font-size: 11px !important;
  }

  body.page-home .work-card__area {
    margin-bottom: 20px !important;
  }
}
