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

/* ヒーローセクション */
.case-detail-hero {
  background: #111;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.case-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,56,13,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.case-detail-hero > .wrap {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.case-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.case-detail-back:hover { color: #fff; }
.case-detail-back i { font-size: 12px; }
.case-detail-industry {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #e8380d;
  background: rgba(232,56,13,0.15);
  border: 1px solid rgba(232,56,13,0.4);
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.case-detail-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 20px;
  max-width: 760px;
}
.case-detail-summary {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 36px;
}
.case-detail-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.case-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-detail-meta-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.case-detail-meta-value {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* KPIカード */
.case-kpi-section {
  background: #fff;
  padding: 60px 0;
  border-bottom: 1px solid #f0f0f0;
}
.case-kpi-section > .wrap {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}
.case-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-kpi-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 28px;
  text-align: center;
}
.case-kpi-number {
  font-size: 44px;
  font-weight: 800;
  color: #e8380d;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.case-kpi-label {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* 本文コンテンツ */
.case-body-section {
  padding: 72px 0 100px;
  background: #fff;
}
.case-body-section > .wrap {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
.case-body-main {}
.case-body-sidebar {}

/* 本文 */
.case-section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8380d;
  display: inline-block;
}
.case-section-text {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.case-section-text strong {
  color: #111;
  font-weight: 700;
}
.case-section-text p + p {
  margin-top: 16px;
}

/* 引用ブロック */
.case-quote {
  background: #fafafa;
  border-left: 4px solid #e8380d;
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.case-quote-text {
  font-size: 16px;
  font-style: italic;
  color: #333;
  line-height: 1.8;
  margin-bottom: 12px;
}
.case-quote-author {
  font-size: 13px;
  color: #999;
}

/* 本文画像 */
.case-body-img {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.case-body-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* サイドバー */
.case-sidebar-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.case-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.case-sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.case-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.case-sidebar-label {
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.05em;
}
.case-sidebar-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* CTAカード */
.case-sidebar-cta {
  background: linear-gradient(135deg, #e8380d 0%, #c42d09 100%);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: #fff;
}
.case-sidebar-cta-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}
.case-sidebar-cta-text {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 20px;
}
.case-sidebar-cta-btn {
  display: block;
  background: #fff;
  color: #e8380d;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 0;
  text-decoration: none;
  transition: background 0.2s;
}
.case-sidebar-cta-btn:hover {
  background: rgba(255,255,255,0.9);
}

/* 関連事例 */
.case-related-section {
  padding: 60px 0 80px;
  background: #fafafa;
  border-top: 1px solid #eee;
}
.case-related-section > .wrap {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}
.case-related-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 28px;
}
.case-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* レスポンシブ */
@media screen and (max-width: 1024px) {
  .case-body-section > .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .case-body-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .case-sidebar-cta { grid-column: 1 / -1; }
  .case-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .case-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 820px) {
  .case-detail-title { font-size: 26px; }
  .case-kpi-grid { grid-template-columns: 1fr; gap: 12px; }
  .case-kpi-number { font-size: 36px; }
  .case-body-sidebar { grid-template-columns: 1fr; }
  .case-related-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 500px) {
  .case-detail-hero { padding: 52px 0 48px; }
  .case-detail-title { font-size: 22px; }
  .case-detail-meta { gap: 20px; }
}
