/* =============================================
   Case（事例インタビュー記事）
   Figma: Corporate2026 / Case_Konoike_PC (2865:1858) / Case_Meiko_PC (2865:2050)
   枠組み（パンくず・タイトル・目次・章・次に読む）は knowledge.css の kn- を共用。
   ここには事例だけの部品を cs- で置く。数値は Figma の値をそのまま使う。
   ============================================= */

/* --- タイトル --- */
/* 「CASE」は Figma で行高150%・字間4%（ナレッジの見出し行とは値が違う） */
.cs-page .kn-title-en {
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.cs-h1 span {
  display: block;
}

/* かぎ括弧で始まる行。Figma は「句読点のぶら下げ」＋インデント16（40pxの文字に対して括弧を24px外へ） */
.cs-h1 .is-hang {
  margin-left: -0.6em;
}

.cs-meta {
  gap: 0 24px;
}

/* 利用サービスのタグはリンクではない */
.cs-tag:hover {
  opacity: 1;
}

/* --- 本文 --- */
.cs-body {
  gap: 64px;
}

.cs-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 32px;
  background: var(--kn-beige);
}

.cs-overview-label {
  font-family: var(--kn-en-cond);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--kn-blue);
}

.cs-overview-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.cs-overview-row {
  display: flex;
  gap: 24px;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

.cs-overview-row dt {
  flex: 0 0 120px;
  font-weight: 500;
  color: var(--kn-ink);
}

.cs-overview-row dd {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: var(--kn-sec);
}

.cs-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--kn-sec);
}

.cs-people {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 23px 31px; /* Figma は 24/32 で線が内側。線 1px ぶんを引く */
  border: 1px solid var(--kn-line);
  background: #fff;
}

.cs-people-label {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--kn-gold);
}

.cs-people-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--kn-ink);
}

.cs-note {
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--kn-muted);
}

.cs-chapter-sub {
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--kn-muted);
}

/* --- 質問と回答 --- */
.cs-qa-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cs-qa {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-q,
.cs-a {
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.cs-q {
  font-weight: 700;
  color: var(--kn-ink);
}

.cs-a {
  font-weight: 400;
  color: var(--kn-sec);
}

.cs-a strong {
  font-weight: 700;
  color: var(--kn-ink);
}

/* --- 写真・図 --- */
.cs-img img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.cs-figure figcaption {
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--kn-muted);
}

/* =============================================
   Responsive（Figma はPCのみ。knowledge.css の切り方に合わせる）
   ============================================= */
/* --- 03_OtherCases（ほかの導入事例）。写真を左、文を右に置いた横長のカード --- */
.cs-other-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-other-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--kn-gold);
  color: #1a1a1a;
  transition: box-shadow 0.3s, transform 0.3s;
}

.cs-other-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.cs-other-img {
  position: relative;
  flex: 0 0 46.4286%; /* 520 / 1120 */
  overflow: hidden;
  background: #d9d9d9;
}

.cs-other-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-other-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
  padding: 32px 40px;
}

.cs-other-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-other-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.cs-other-tag {
  padding: 2px 10px;
  border: 1px solid var(--kn-gold);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--kn-gold);
}

.cs-other-client {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #5a5a5a;
}

.cs-other-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* トップのカードと同じぶら下げ。かぎ括弧で始まる行は括弧を外へ出し、ほかの行は下げて頭を揃える */
.cs-other-title span {
  display: block;
  margin-left: 0.4444em;
}

.cs-other-title .is-hang {
  margin-left: -0.5556em;
}

.cs-other-sub {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #5a5a5a;
}

.cs-other-sub span {
  display: block;
}

/* --- 一覧（/case/）。Figma: Case_List_PC --- */
.cs-list {
  padding: 64px 0 104px;
}

.cs-list .kn-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--kn-gold);
  color: #1a1a1a;
  transition: box-shadow 0.3s, transform 0.3s;
}

.cs-card:hover,
.cs-anon:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.cs-card-img {
  display: block;
  aspect-ratio: 355.33 / 180;
  overflow: hidden;
  background: #d9d9d9;
}

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

.cs-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
}

.cs-card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-card-client {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--kn-gold);
}

.cs-card-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.cs-card-title span {
  display: block;
  margin-left: 0.4444em;
}

.cs-card-title .is-hang {
  margin-left: -0.5556em;
}

.cs-card-sub {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #5a5a5a;
}

.cs-card-sub span {
  display: block;
}

.cs-card-policies {
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #8a8a8a;
}

/* 記事のない匿名の事例。押すと詳細のモーダルが開く */
.cs-anon-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cs-anon-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cs-anon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
  padding: 31px; /* Figma は 32 で線が内側 */
  background: #fff;
  border: 1px solid var(--kn-gold);
  border-radius: 0;
  font-family: inherit;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: box-shadow 0.3s, transform 0.3s;
}

.cs-anon-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-anon-client {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #8a8a8a;
}

.cs-anon-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.cs-anon-title span {
  display: block;
}

@media (max-width: 1024px) {
  .cs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* 狭い画面では行の区切りをやめて流し込む（先頭のかぎ括弧のぶら下げは残す） */
  .cs-h1 span {
    display: inline;
  }

  .cs-body {
    gap: 48px;
  }

  .cs-overview {
    padding: 20px;
  }

  .cs-overview-row {
    flex-direction: column;
    gap: 2px;
  }

  .cs-overview-row dt {
    flex: none;
  }

  .cs-people {
    padding: 19px;
  }

  .cs-qa-list {
    gap: 32px;
  }

  .cs-other-card {
    flex-direction: column;
  }

  .cs-other-img {
    flex: none;
    aspect-ratio: 409 / 231;
  }

  .cs-other-text {
    gap: 20px;
    padding: 20px 20px 24px;
  }

  .cs-other-head {
    gap: 8px;
  }

  .cs-other-title {
    font-size: 18px;
  }

  .cs-other-sub {
    font-size: 14px;
  }

  .cs-other-title span,
  .cs-other-sub span {
    display: inline-block;
  }

  .cs-list {
    padding: 40px 0 64px;
  }

  .cs-list .kn-container {
    gap: 48px;
  }

  .cs-grid,
  .cs-anon-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-card-title span,
  .cs-card-sub span,
  .cs-anon-title span {
    display: inline-block;
  }

  .cs-anon-block {
    gap: 24px;
  }

  .cs-anon {
    padding: 19px;
  }

  .cs-anon-title {
    font-size: 18px;
    word-break: auto-phrase; /* 1文字だけ次の行に落ちるのを防ぐ（対応ブラウザのみ） */
  }
}
