/* =========================================================
   導入事例 アーカイブ一覧
   assets/css/archive-case.css
========================================================= */

/* 全体レイアウト */
.case-archive {
  padding: 80px 0 100px;
  background: #F7F6F4;
}

.case-archive .l-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ヘッダー部分 */
.archive-header {
  text-align: center;
  margin-bottom: 48px;
}

.archive-title {
  font-size: 32px;
  font-weight: 700;
  color: #0098BB;
  margin-bottom: 16px;
  line-height: 1.4;
}

.archive-description {
  font-size: 16px;
  color: #59514E;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* 一覧グリッド */
.archive-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .archive-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* カード */
.case-article {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.case-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* サムネイル */
.case-article .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.case-article .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.case-article:hover .thumb img {
  transform: scale(1.03);
}

/* カード本文エリア */
.case-article .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* タイトル */
.case-title {
  margin: 0;
}

.case-title a {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #413C3A;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.case-title a:hover {
  color: #0098BB;
}

/* 抜粋 */
.case-excerpt {
  font-size: 14px;
  color: #736B67;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 続きを読むリンク */
.case-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0098BB;
  text-decoration: none;
  margin-top: auto;
  transition: opacity 0.2s ease;
}

.case-read-more::after {
  content: "";
  width: 20px;
  height: 20px;
  background: url(../img/icon_button-arrow--blue.webp) no-repeat center center/contain;
}

.case-read-more:hover {
  opacity: 0.7;
}

/* ページネーション */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a {
  background: #fff;
  color: #413C3A;
  border: 1px solid #DDD9D7;
}

.pagination a:hover {
  background: #0098BB;
  color: #fff;
  border-color: #0098BB;
}

.pagination span.current {
  background: #0098BB;
  color: #fff;
  border: 1px solid #0098BB;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .case-archive {
    padding: 60px 0 80px;
  }

  .archive-title {
    font-size: 26px;
  }

  .archive-description {
    font-size: 14px;
  }

  .case-article .card-body {
    padding: 20px;
  }

  .case-title a {
    font-size: 15px;
  }
}
