/* ============================================================
   ご支援事例一覧（/case）専用
   Figma: ご支援事例（217:1061）／ SP: 443:6132
   ============================================================ */
.case-list {
  --case-thumb-bg: #1a3962;   /* サムネ背景（波の下地） */
  --case-soon: var(--sub);       /* Figma --subcolor */
}

/* ---------- page hero（このページは見出し位置・色・リードの書体が共通版と異なる） ---------- */
.case-hero .page-hero__inner { padding-top: 237px; padding-left: 64px; }
.case-hero .page-hero__title { color: var(--darktext); }
.case-hero .page-hero__lead {
  font-family: var(--ff-noto);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--darktext);
  margin-top: -5px; /* Figma はリード枠(32px)が行高より低く、文字が上に食み出している */
}

/* ---------- case list ---------- */
.case-list { padding: 56px var(--gutter) 190px; }
.case-list__inner { max-width: 1275px; margin: 0 auto; }
.case-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-list__soon {
  margin-top: 32px;
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--case-soon);
}

/* 共通 .case-card をサムネ付きの縦長カードとして使う */
.case-list .case-card {
  min-height: 544px;
  padding: 24px 20px;
  justify-content: space-between;
  color: var(--darktext);
}
.case-list .case-card__body { max-width: none; gap: 20px; }

.case-thumb {
  position: relative;
  aspect-ratio: 192 / 108;
  border-radius: 16px;
  overflow: hidden;
  background: var(--case-thumb-bg);
}
.case-thumb__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 455px);
  height: max(100%, 211px);
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}
.case-thumb__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 186px;
  height: 107px;
  transform: translate(-50%, -50%);
  border-radius: 12.6px;
  background: #fff;
  display: grid;
  place-items: center;
}
.case-thumb__logo img { width: auto; height: auto; max-width: 100px; max-height: 25px; }

/* ============================================================
   tablet
   ============================================================ */
@media (max-width: 1100px) {
  .case-hero .page-hero__inner { padding-left: 40px; }
  .case-list__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SP（Figma: 443:6132 393px）
   ============================================================ */
@media (max-width: 767px) {
  .case-hero .page-hero__inner { padding-top: 97px; padding-left: 20px; }
  .case-hero .page-hero__lead { margin-top: 0; font-family: var(--ff-zen); font-weight: 500; }

  .case-list { padding: 40px 24px 158px; }
  .case-list__grid { grid-template-columns: 1fr; gap: 36px; max-width: 344px; margin: 0 auto; }
  .case-list__soon { display: none; }

  /* Figma SP はカード高さ 544px 固定。余白はタイトルと本文に分配 */
  .case-list .case-card { min-height: 544px; padding: 24px 20px; gap: 24px; justify-content: flex-start; }
  .case-list .case-card__body { flex: 1 1 auto; gap: 20px; }
  .case-list .case-card__title,
  .case-list .case-card__text { flex: 1 1 auto; }
  .case-list .case-card__logo { width: 120px; height: 54px; }
  .case-list .case-card__logo img { max-width: 88px; max-height: 22px; }
  .case-list .case-card__title { font-size: 20px; }
  .case-list .case-card__text { font-size: 14px; }
}
