@charset "UTF-8";

/* ==========================================================================
   Case Studies Common Styles
   ========================================================================== */

/* ページ共通余白 */
.l-main--cases {
  padding-top: 140px;
  padding-bottom: 120px;
}

@media (max-width: 768px) {
  .l-main--cases {
    padding-top: 100px;
    padding-bottom: 80px;
  }
}

/* ページヘッダー（一覧用） */
.cs-header {
  text-align: center;
  margin-bottom: 50px;
}

.cs-header__en {
  font-family: var(--font-en);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  background: var(--color-gradation);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cs-header__ja {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #556270;
  margin-top: 14px;
}

/* カテゴリフィルター */
.cs-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.cs-filter__btn {
  appearance: none;
  border: 1px solid #d0d7de;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cs-filter__btn:hover {
  border-color: var(--color-main);
  color: var(--color-main);
  transform: translateY(-1px);
}

.cs-filter__btn.is-active {
  background: var(--color-main);
  border-color: var(--color-main);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 126, 227, 0.25);
}

/* ==========================================================================
   Case Studies Grid Layout (PC時 3列組)
   ========================================================================== */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
}

@media (max-width: 960px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}

@media (max-width: 600px) {
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* 実績カード */
.cs-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  color: inherit;
  height: 100%;
}

.cs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 126, 227, 0.12);
  border-color: rgba(0, 126, 227, 0.3);
}

.cs-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f6;
}

.cs-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-card:hover .cs-card__thumb img {
  transform: scale(1.05);
}

.cs-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px 24px 20px;
}

.cs-card__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f0f7ff;
  color: var(--color-main);
  margin-bottom: 12px;
}

.cs-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #111827;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-card__desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: #64748b;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
  margin-top: auto;
}

.cs-card__service {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}

.cs-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--color-main);
  transition: all 0.3s ease;
}

.cs-card:hover .cs-card__arrow {
  background: var(--color-main);
  color: #fff;
  transform: translateX(4px);
}

.cs-card__arrow svg {
  width: 14px;
  height: 14px;
}

/* 該当なし */
.cs-empty {
  text-align: center;
  padding: 80px 20px;
  font-size: 15px;
  color: #64748b;
  grid-column: 1 / -1;
}

/* ==========================================================================
   Case Studies Detail Page Layout
   ========================================================================== */

.cs-detail {
  max-width: 960px;
  margin: 0 auto;
}

/* 一覧に戻るリンク */
.cs-detail__back {
  margin-bottom: 36px;
}

.cs-detail__back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cs-detail__back a:hover {
  color: var(--color-main);
  transform: translateX(-4px);
}

/* 詳細ヘッダー */
.cs-detail__head {
  margin-bottom: 48px;
}

.cs-detail__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  background: #111827;
  color: #ffffff;
  border-radius: 4px;
  margin-bottom: 20px;
}

.cs-detail__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #0f172a;
  margin-bottom: 24px;
}

.cs-detail__lead {
  font-size: 16px;
  line-height: 1.9;
  color: #334155;
  margin-bottom: 28px;
}

.cs-detail__external-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--color-main);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 126, 227, 0.32);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cs-detail__external-btn::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--color-gradation);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-detail__external-btn span,
.cs-detail__external-btn svg {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.cs-detail__external-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 126, 227, 0.45);
}

.cs-detail__external-btn:hover::before {
  opacity: 1;
}

.cs-detail__external-btn svg {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  transition: transform 0.3s ease;
}

.cs-detail__external-btn:hover svg {
  transform: translate(2px, -2px);
}

/* メインビジュアル */
.cs-detail__hero {
  margin: 0 0 64px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f8fafc;
}

.cs-detail__hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* 記事コンテンツブロック */
.cs-block {
  max-width: 780px;
  margin: 0 auto 60px;
}

.cs-block__label {
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-main);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cs-block__title {
  position: relative;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0f172a;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.cs-block__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--color-gradation);
  border-radius: 2px;
}

.cs-block__subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 36px 0 18px;
}

.cs-block__text {
  font-size: 15.5px;
  line-height: 1.95;
  color: #334155;
}

.cs-block__text p + p {
  margin-top: 16px;
}

/* 機能グリッド */
.cs-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 600px) {
  .cs-features {
    grid-template-columns: 1fr;
  }
}

.cs-features li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
}

.cs-features li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-main);
  flex-shrink: 0;
}

/* 導入効果（Before / After） */
.cs-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.cs-result {
  padding: 22px 26px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cs-result__label {
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 12px;
}

.cs-result__flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cs-result__before {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: #cbd5e1;
}

.cs-result__arrow {
  font-weight: 800;
  color: var(--color-main);
  font-size: 16px;
}

.cs-result__after {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

/* まとめメッセージ */
.cs-closing {
  max-width: 780px;
  margin: 0 auto 64px;
  padding: 44px 40px;
  background: linear-gradient(135deg, #0b111e 0%, #1e293b 100%);
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
  .cs-closing {
    padding: 32px 24px;
  }
}

.cs-closing__title {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin-bottom: 18px;
}

.cs-closing p {
  font-size: 15px;
  line-height: 1.9;
  color: #cbd5e1;
}

.cs-closing p + p {
  margin-top: 14px;
}

/* CTAセクション */
.cs-cta {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 56px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* 「同じような開発を相談する」ボタン */
.cs-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 320px;
  padding: 18px 36px;
  border-radius: 999px;
  background: var(--color-main);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(0, 126, 227, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cs-cta__btn::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--color-gradation);
  opacity: 0;
  transition: opacity 0.3s;
}

.cs-cta__btn span,
.cs-cta__btn svg {
  position: relative;
  z-index: 1;
}

.cs-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 126, 227, 0.45);
}

.cs-cta__btn:hover::before {
  opacity: 1;
}

.cs-cta__btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.cs-cta__btn:hover svg {
  transform: translateX(4px);
}

.cs-cta__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cs-cta__back-link:hover {
  color: #0f172a;
  transform: translateX(-4px);
}

/* トップページの「Case Studies 一覧を見る」ボタン */
.p-top-case__more {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

.p-top-case__more-btn {
  min-width: 280px;
  padding: 16px 56px 16px 38px;
  font-size: 17px;
}

@media (max-width: 767px) {
  .p-top-case__more-btn {
    min-width: 240px;
    padding: 13px 48px 13px 30px;
    font-size: 15px;
  }
}
