/* ============================================================
   導入事例 共通スタイル
   /ao/case  /so/case  /ao/case/{slug}  /so/case/{slug}
============================================================ */

/* ============================================================
   業種フィルター
============================================================ */

.case-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 40px 0;
}

.case-filter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  border-radius: 4px;
  border: 1px solid #d1dbdc;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  color: #2a2d2a;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1.5;
  text-decoration: none;
}

.case-filter__btn--active,
.case-filter__btn:hover {
  background: #0095bd;
  border-color: #0095bd;
  color: #fff;
}

/* ============================================================
   ピックアップスライダー
============================================================ */

.case-pickup {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

/* cards下半＋テキストエリアにかかる帯背景 */
.case-pickup::before {
  content: '';
  position: absolute;
  top: 252px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f1f7f9;
  z-index: 0;
}

.case-pickup .container {
  position: relative;
  z-index: 1;
}

/* スライダー本体 */
.case-pickup__swiper {
  overflow: visible;
  margin-top: 30px;
}

.case-pickup__swiper .swiper-slide {
  width: 500px;
}

/* ピックアップカード */
.case-pickup__card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-decoration: none;
  color: inherit;
}

.case-pickup__card:hover {
  color: inherit;
}

/* サムネイル */
.case-pickup__card-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dce8eb;
  flex-shrink: 0;
}

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

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

.case-pickup__card-thumb-placeholder {
  width: 100%;
  height: 100%;
}

/* ロゴオーバーレイ */
.case-pickup__card-logo {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34%;
  aspect-ratio: 169 / 97;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.case-pickup__card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ピックアップバッジ */
.case-pickup__badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #28b3b5;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  padding: 10px 16px;
  border-radius: 10px 0 5px 0;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* テキストボディ */
.case-pickup__card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 10px;
}

.case-pickup__card-company {
  font-size: 12px;
  font-weight: 400;
  color: #2a2d2a;
  letter-spacing: 0.05em;
  line-height: 1.75;
  margin: 0;
}

.case-pickup__card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2a2d2a;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin: 0;
}

/* メタ情報（業種・従業員数） */
.case-pickup__card-meta {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.case-pickup__card-meta-labels,
.case-pickup__card-meta-values {
  display: flex;
  flex-direction: column;
}

.case-pickup__card-meta-labels {
  position: relative;
}

.case-pickup__card-meta-labels::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(42, 45, 42, 0.15);
}

.case-pickup__card-meta-labels span,
.case-pickup__card-meta-values span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.05em;
}

.case-pickup__card-meta-labels span {
  color: rgba(42, 45, 42, 0.5);
}

.case-pickup__card-meta-values span {
  color: #2a2d2a;
}

/* ページネーション dots */
.case-pickup__pagination {
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.case-pickup__pagination .swiper-pagination-bullet {
  background: rgba(42, 45, 42, 0.2);
  opacity: 1;
}

.case-pickup__pagination .swiper-pagination-bullet-active {
  background: #0095bd;
}

/* ============================================================
   一覧ページ
============================================================ */

.case-archive {
  padding: 60px 0 100px;
}

/* ---- 見出し ---- */
.case-archive__headline {
  font-weight: 700;
  font-size: 30px;
  color: #2a2d2a;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin: 0 0 40px;
  font-feature-settings: "palt" 1;
}

/* ---- カードグリッド ---- */
.case-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}

/* 一覧ページではカードを素のデザインに */
.page-ao-case .ao-case__card,
.archive .ao-case__card {
  background: transparent;
  border: none;
  padding: 0;
}

/* ---- カード ---- */
.ao-case__card {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(40, 179, 181, 0.1);
  background: #f1f7f9;
  padding: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ao-case__card:hover {
  transform: translateY(-2px);
}

.ao-case__card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* アイキャッチ */
.ao-case__card-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dce8eb;
  flex-shrink: 0;
}

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

.ao-case__card:hover .ao-case__card-thumb>img {
  transform: scale(1.03);
}

.ao-case__card-thumb-placeholder {
  width: 100%;
  height: 100%;
}

/* ロゴ（アイキャッチ右下に重ねる） */
.ao-case__card-logo {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28%;
  aspect-ratio: 100 / 57;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.ao-case__card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ボディ */
.ao-case__card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 0 2px 6px;
}

/* 会社名 */
.ao-case__card-company {
  font-weight: 400;
  font-size: 12px;
  color: #2a2d2a;
  line-height: 1.75;
  letter-spacing: 0.06em;
  margin: 0;
  font-feature-settings: "palt" 1;
}

/* タイトル */
.ao-case__card-title {
  font-weight: 700;
  font-size: 16px;
  color: #2a2d2a;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin: 0;
  font-feature-settings: "palt" 1;
}

/* 業種・従業員数 */
.ao-case__card-meta {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  margin-top: auto;
  position: relative;
}

.ao-case__card-meta-labels,
.ao-case__card-meta-values {
  display: flex;
  flex-direction: column;
}

.ao-case__card-meta-labels {
  position: relative;
}

.ao-case__card-meta-labels::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(42, 45, 42, 0.15);
}

.ao-case__card-meta-labels span {
  font-size: 14px;
  font-weight: 400;
  color: rgba(42, 45, 42, 0.5);
  line-height: 1.75;
  letter-spacing: 0.05em;
}

.ao-case__card-meta-values span {
  font-size: 14px;
  font-weight: 400;
  color: #2a2d2a;
  line-height: 1.75;
  letter-spacing: 0.05em;
}


/* 矢印 */
.ao-case__card-arrow {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px 16px;
  color: var(--color-primary, #0781a8);
}

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

.case-archive__pager .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.case-archive__pager .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid rgba(42, 45, 42, 0.15);
  font-size: 14px;
  color: #2a2d2a;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.case-archive__pager .page-numbers.current,
.case-archive__pager .page-numbers:hover {
  background: var(--color-primary, #0781a8);
  border-color: var(--color-primary, #0781a8);
  color: #fff;
}

/* ---- 記事なし ---- */
.case-archive__empty {
  text-align: center;
  font-size: 16px;
  color: rgba(42, 45, 42, 0.5);
  padding: 80px 0;
}

/* ============================================================
   詳細ページ FV
============================================================ */

.case-single-fv {
  position: relative;
  margin: 0 20px;
  border-radius: 10px;
  background-size: cover;
  background-position: bottom center;
  padding-bottom: 100px;
  overflow: hidden;
}

.case-single-fv::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.case-single-fv__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.case-single-fv__heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-single-fv__label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.case-single-fv__title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin: 0;
  font-feature-settings: "palt" 1;
}

/* アイキャッチ：ネガティブマージンでFVに重ねる */
.case-fv-eyecatch {
  margin-top: -120px;
  position: relative;
  z-index: 1;
}

.case-fv-eyecatch__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.case-fv-eyecatch__image {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
}

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

/* ============================================================
   詳細ページ
============================================================ */

.case-single {
  padding: 60px 0 0;
  background: #fff;
}

.case-single__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-divider+.case-single__inner {
  padding-top: 0;
}

/* ---- パンくず ---- */
.case-single__breadcrumb {
  padding: 20px 0;
}

.case-single__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: rgba(42, 45, 42, 0.5);
}

.case-single__breadcrumb li+li::before {
  content: '/';
  margin-right: 6px;
}

.case-single__breadcrumb a {
  color: rgba(42, 45, 42, 0.5);
  text-decoration: none;
}

.case-single__breadcrumb a:hover {
  color: var(--color-primary, #0781a8);
}

/* ---- 企業情報カード ---- */
.case-company-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(42, 45, 42, 0.08);
  overflow: hidden;
  margin-bottom: 50px;
}

.case-company-card__logo {
  flex-shrink: 0;
  width: 210px;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-company-card__logo img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.case-company-card__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(42, 45, 42, 0.1);
  flex-shrink: 0;
}

.case-company-card__info {
  flex: 1;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-company-card__name {
  font-weight: 700;
  font-size: 18px;
  color: #2a2d2a;
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.04em;
}

.case-company-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.case-company-card__meta-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 45, 42, 0.06);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.case-company-card__meta-row:last-child {
  border-bottom: none;
}

.case-company-card__meta-row dt {
  color: rgba(42, 45, 42, 0.5);
  flex-shrink: 0;
  width: 90px;
}

.case-company-card__meta-row dd {
  color: #2a2d2a;
  margin: 0;
}

.case-company-card__url-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #0095bd;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #0095bd;
  text-decoration: none;
  letter-spacing: 0.05em;
  align-self: flex-start;
  transition: background 0.15s, color 0.15s;
}

.case-company-card__url-btn:hover {
  background: #0095bd;
  color: #fff;
}

/* ---- サマリー ---- */
.case-summary {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 60px;
}

.case-summary__row {
  display: flex;
  align-items: stretch;
}

.case-summary__row--challenge {
  background: rgba(25, 142, 178, 0.05);
}

.case-summary__row--reason {
  background: rgba(25, 142, 178, 0.09);
}

.case-summary__row--effect {
  background: rgba(25, 142, 178, 0.14);
}

.case-summary__label {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 12px;
  border-right: 1px solid rgba(25, 142, 178, 0.15);
  color: #0781a8;
}

.case-summary__label svg {
  flex-shrink: 0;
}

.case-summary__label span {
  font-size: 12px;
  font-weight: 700;
  color: #0781a8;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.4;
}

.case-summary__content {
  flex: 1;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.8;
  color: #2a2d2a;
  letter-spacing: 0.04em;
}

/* ---- 本文 ---- */
.case-single__content {
  font-size: 16px;
  line-height: 1.85;
  color: #2a2d2a;
  letter-spacing: 0.04em;
  padding: 60px 0;
}

.case-single__content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 60px 0 24px;
  color: #2a2d2a;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.case-single__content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: #2a2d2a;
}

.case-single__content p {
  margin: 0 0 20px;
}

.case-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 32px 0;
}

/* ---- おすすめの事例 ---- */
.case-single-related {
  padding: 100px 0;
}

.case-single-related__headline {
  font-weight: 700;
  font-size: 30px;
  color: #2a2d2a;
  letter-spacing: 0.05em;
  margin: 0 0 40px;
}

.case-single-related .case-archive__grid {
  gap: 40px 25px;
}

/* ---- 一覧へ戻る ---- */
.case-single__back {
  padding: 60px 0 100px;
  display: flex;
  justify-content: center;
}

.case-single__back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: #0095bd;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: opacity 0.15s;
}

.case-single__back-btn:hover {
  opacity: 0.85;
}

.case-sidebar__website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-primary, #0781a8);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.case-sidebar__website:hover {
  opacity: 0.7;
}

/* ============================================================
   Tablet  (max-width: 1199px)
============================================================ */
@media (max-width: 1199px) {
  .case-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-single-related .case-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-single-fv__title {
    font-size: 26px;
  }

  .case-single__content h2 {
    font-size: 24px;
  }

  .case-single__content h3 {
    font-size: 18px;
  }

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

  .case-single-related__headline,
  .case-archive__headline {
    font-size: 26px;
  }

  .case-pickup__card-title {
    font-size: 16px;
  }
}

/* ============================================================
   Mobile  (max-width: 767px)
============================================================ */
@media (max-width: 767px) {

  /* ---- 業種フィルター ---- */
  .case-filter {
    padding-bottom: 28px;
  }

  .case-filter__btn {
    font-size: 13px;
    padding: 8px 12px;
  }

  /* ---- 一覧 ---- */
  .case-archive {
    padding: 40px 0 60px;
  }

  .case-archive__headline {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .case-archive__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* ---- カードメタ ---- */
  .ao-case__card-meta {
    gap: 20px;
  }

  .ao-case__card-meta-labels span,
  .ao-case__card-meta-values span {
    font-size: 12px;
  }

  /* ---- ピックアップスライダー ---- */
  .case-pickup__swiper .swiper-slide {
    width: 85vw;
  }

  .case-pickup__card-title {
    font-size: 16px;
  }

  /* ---- 詳細 FV ---- */
  .case-single-fv {
    margin: 0;
    border-radius: 0;
    padding-bottom: 60px;
  }

  .case-single-fv__inner {
    padding: 40px 20px;
  }

  .case-single-fv__title {
    font-size: 22px;
  }

  /* ---- アイキャッチ ---- */
  .case-fv-eyecatch {
    margin-top: -60px;
  }

  /* ---- 詳細 ---- */
  .case-single {
    padding: 40px 0 0;
  }

  /* ---- 企業情報カード ---- */
  .case-company-card {
    flex-direction: column;
    align-items: stretch;
  }

  .case-company-card__logo {
    width: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
  }

  .case-company-card__name {
    font-size: 16px;
  }

  .case-company-card__divider {
    display: none;
  }

  .case-company-card__info {
    padding: 20px;
  }

  /* ---- カード ---- */
  .ao-case__card {
    box-sizing: border-box;
  }

  /* ---- サマリー ---- */
  .case-summary__row {
    flex-direction: column;
  }

  .case-summary__label {
    width: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(25, 142, 178, 0.15);
  }

  .case-summary__content {
    padding: 16px;
  }

  /* ---- 本文 ---- */
  .case-single__content {
    font-size: 15px;
    padding: 40px 0;
  }

  .case-single__content h2 {
    font-size: 22px;
    margin: 40px 0 16px;
  }

  .case-single__content h3 {
    font-size: 18px;
    margin: 32px 0 12px;
  }

  /* ---- おすすめの事例 ---- */
  .case-single-related__headline {
    font-size: 22px;
  }

  /* ---- 一覧へ戻る ---- */
  .case-single__back {
    padding: 0 0 100px;
  }

  .case-single__back-btn {
    width: 300px;
    justify-content: center;
    box-sizing: border-box;
  }

}