/* ============================================================
   CASE (成約事例) Archive + Single
   ============================================================ */

/* ============================================================
   カード一覧
   ============================================================ */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 個別カード */
.case-card {
  background: #fff;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-areas:
    'thumb body'
    'table table';
  column-gap: 40px;
  row-gap: 20px;
  align-items: start;

  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 30px;
  scroll-margin-top: calc(var(--header-total-height, 90px) + 32px);
}

.case-card + .case-card {
  border-top: 1px solid #e8ecf0;
  padding-top: 40px;
  margin-top: 40px;
}

.case-card__thumb {
  grid-area: thumb;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background: #f0f0f0;
}

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

.case-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #d0d8e0;
}

.case-card__body {
  grid-area: body;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.case-card__badge {
  display: inline-block;
  align-self: flex-start;
  background: #1a3a5c;
  color: #fff;
  font-family: var(--font-ja);
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 10px 24px;
  border-radius: 3px;
}

.case-card__title {
  font-family: var(--font-ja);
  font-size: 24px;
  font-weight: 700;
  line-height: 38px;
  letter-spacing: 0.08em;
  margin: 0;
}

/* 譲渡企業 / 譲受企業 2テーブル + 中央矢印 */
.case-card__table {
  grid-area: table;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
}

.case-card__side {
  width: 100%;
  min-width: 0;
  max-width: 412px;
  border-collapse: separate;
  border-spacing: 2px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #6a818f;
  padding: 0 12px 8px;
}

.case-card__side-header {
  /* background: #6a818f; */
  /* color: #fff; */
  font-family: var(--font-ja);
  font-weight: 700 !important;
  letter-spacing: 0.16em;
  text-align: center !important;
  padding-block: 14px !important;
  border-bottom: 1px solid #6a818f;
}

.case-card__side tbody tr:first-child th,
.case-card__side tbody tr:first-child td {
  padding-top: 6px;
}

.case-card__side th,
.case-card__side td {
  padding: 1px 10px;
  font-family: var(--font-ja);
  font-weight: var(--font-weight-medium);
  text-align: left;
  vertical-align: middle;
  line-height: 28px;
}

.case-card__side tbody th {
  font-weight: 700;
  letter-spacing: 0.16em;
  width: 140px;
  line-height: 28px;
  font-weight: var(--font-weight-medium);
}

/* ゼブラ：奇数行 / 偶数行 */
/* .case-card__side tbody tr:nth-child(odd) th,
.case-card__side tbody tr:nth-child(odd) td {
  background: #e1e5e8;
}

.case-card__side tbody tr:nth-child(even) th,
.case-card__side tbody tr:nth-child(even) td {
  background: #d5e7f0;
} */

/* 中央矢印 — top の .swiper-nav-btn と同じデザイン */
.case-card__arrow {
  align-self: center;
  justify-self: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff url('../images/common/swiper-nav-right.svg') no-repeat center;
  background-size: 40%;
  /* box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15); */
}

/* ============================================================
   Single ページ 譲渡側/譲受側
   ============================================================ */
.single-case__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #d0d8e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 40px 0;
}

.single-case__side {
  display: flex;
  flex-direction: column;
}

.single-case__side--seller {
  border-right: 1px solid #d0d8e0;
}

.single-case__side-header {
  background: #6e94bc;
  color: #fff;
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-align: center;
}

.single-case__side-label {
  display: none;
}

.single-case__dl {
  margin: 0;
}

.single-case__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  border-bottom: 1px solid #e8ecf0;
  font-size: 14px;
}

.single-case__row:last-child {
  border-bottom: none;
}

.single-case__row dt {
  background: #f0f3f7;
  padding: 12px 14px;
  font-family: var(--font-ja);
  font-weight: 700;
  color: #555;
}

.single-case__row dd {
  margin: 0;
  padding: 12px 14px;
  color: #333;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .case-type-section {
    padding: 60px var(--gutter-width) 24px;
  }

  /* 横並びカード → 縦並び */
  .case-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      'thumb'
      'body'
      'table';
    gap: 16px;
    padding: 16px;
  }

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

  .case-card__thumb {
    aspect-ratio: 3 / 2;
  }

  .case-card__badge {
    padding: 2px 12px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
  }

  .case-card__body {
    padding-top: 0;
    gap: 8px;
  }

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

  .case-card__table {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-card__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .case-card__row {
    grid-template-columns: 90px 1fr;
    font-size: 12px;
  }

  .case-card__side th,
  .case-card__side td {
    font-size: 14px;
  }

  .case-card__row dt,
  .case-card__row dd {
    padding: 8px 12px;
  }

  /* Single */
  .single-case__grid {
    grid-template-columns: 1fr;
    margin: 24px 0;
  }

  .single-case__side--seller {
    border-right: none;
    border-bottom: 1px solid #d0d8e0;
  }

  .single-case__row {
    grid-template-columns: 100px 1fr;
    font-size: 13px;
  }
}
