/* =========================================
  Cases（事例）
  見た目は前のまま（ボタン・h3の形）。フォントサイズだけ既存LPに合わせる
  配置：flow の下、faq の上
  ========================================= */

:root {
  --cases-accent: #FFD400;   /* 前のままの黄色（h3の帯） */
  --cases-ink: #1a1a1a;      /* 前のままの文字色 */
  --cases-muted: #555;
  --cases-line: #e6e6e6;
}

.cases {
  background: #f5f5f5;
  overflow: hidden;
  border-top: none;
  border-bottom: 1px solid #e6e6e6;   /* 「同じ仕組みで…」の下の線 */
}

.cases__inner {
  padding-block: 72px;
}

@media screen and (max-width: 767px) {
  .cases__inner {
    padding-block: 48px;
  }
}

/* 見出しの下の余白 */
.cases .heading + .case-group {
  margin-top: 48px;
}

/* ------------------------------
  Group
------------------------------ */
.case-group + .case-group {
  margin-top: 56px;
}

/* h3：前のままの角丸の黄色い帯（フォントサイズのみ合わせる） */
.case-group__title {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--cases-accent);
  font-size: 20px;          /* 既存の見出し帯と同じ大きさ */
  font-weight: 700;
  line-height: 1.4;
  color: var(--cases-ink);
}

/* ------------------------------
  Card
------------------------------ */
.case-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--cases-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.case-card + .case-card {
  margin-top: 24px;
}

.case-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.case-card__name {
  margin: 0;
  font-size: 20px;          /* 既存のservice-card__leadと同じ */
  font-weight: 700;
  line-height: 1.5;
  color: var(--cases-ink);
}

.case-card__text {
  margin: 0;
  font-size: 16px;          /* 既存のflow-card__textと同じ */
  font-weight: 500;
  line-height: 1.65;
  color: var(--cases-ink);
}

.case-card__list {
  margin: 0;
  padding-left: 1.4em;
  list-style: disc;
  font-size: 16px;          /* 既存の本文と同じ */
  font-weight: 500;
  line-height: 1.65;
  color: var(--cases-ink);
}

.case-card__list li {
  list-style: disc;
}

.case-card__list li + li {
  margin-top: 2px;
}

/* 「サイトを見る」：前のままの濃い枠の角丸ピル（フォントサイズのみ合わせる） */
.case-card__link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid var(--cases-ink);
  border-radius: 999px;
  font-size: 16px;          /* 既存のtext-linkと同じ */
  font-weight: 700;
  line-height: 1.4;
  color: var(--cases-ink);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.case-card__link:hover {
  background: var(--cases-ink);
  color: #fff;
}

/* ------------------------------
  注記
------------------------------ */
.cases__note {
  margin-top: 48px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--cases-ink);
}

/* ------------------------------
  PC：サービスごとにカードを2列
------------------------------ */
@media screen and (min-width: 768px) {
  .case-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
  }

  .case-group__title {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .case-group + .case-group {
    margin-top: 56px;
  }

  .case-card + .case-card {
    margin-top: 0;
  }

  .case-card {
    height: 100%;
  }
}

/* ------------------------------
  SP
------------------------------ */
@media screen and (max-width: 767px) {
  .cases .heading + .case-group {
    margin-top: 32px;
  }

  .case-group + .case-group {
    margin-top: 40px;
  }

  .case-group__title {
    font-size: 18px;
  }

  .case-card {
    padding: 14px;
  }

  .case-card__name {
    font-size: 18px;
  }

  .case-card__text,
  .case-card__list {
    font-size: 15px;
    line-height: 1.75;
  }

  .case-card__link {
    font-size: 15px;
  }

  .cases__note {
    margin-top: 32px;
    font-size: 16px;
  }
}