/* ========== CASE DETAIL HERO ========== */
.case-hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy-dark) 48%, var(--navy-mid) 78%, var(--navy) 100%);
  position: relative;
  padding: 72px 40px 64px;
  overflow: hidden;
}
.case-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: 220px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(200,160,32,.1);
  pointer-events: none;
}
.case-hero::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(200,160,32,.2) 100%);
}
.case-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.case-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.case-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 3px;
}
.case-badge.srv-ai {
  background: rgba(7,9,80,0.25);
  color: #7ab0ff;
  border: 1px solid rgba(120,180,255,0.25);
}
.case-badge.srv-hr {
  background: rgba(200,160,32,0.2);
  color: var(--gold-light);
  border: 1px solid rgba(200,160,32,0.28);
}
.case-badge.srv-en {
  background: rgba(10,122,106,0.22);
  color: #5dd4c4;
  border: 1px solid rgba(10,122,106,0.3);
}
.case-badge.industry {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.14);
}
.case-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 16px;
}
.case-hero-lead {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  max-width: 720px;
}
.case-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.case-tag-chip {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ========== LAYOUT ========== */
.case-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.case-main { min-width: 0; }

.case-visual {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(7,9,80,0.08);
  background: var(--off-white);
}
.case-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.case-visual-caption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-content h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(7,9,80,0.1);
  scroll-margin-top: 100px;
}
.case-content h2:first-child { margin-top: 0; }
.case-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-link);
  margin: 28px 0 12px;
}
.case-content p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.case-content ul,
.case-content ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
  color: var(--text-secondary);
}
.case-content li {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 6px;
}

.case-highlight {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.case-highlight-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}
.case-highlight p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
}

.case-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.case-result-item {
  background: var(--off-white);
  border: 1px solid rgba(7,9,80,0.08);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}
.case-result-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--navy-link);
  line-height: 1.2;
  margin-bottom: 8px;
}
.case-result-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.case-cta-box {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-radius: 10px;
  color: #fff;
}
.case-cta-box h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.case-cta-box p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.case-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
}
.case-cta-btn:hover { background: var(--gold-light); }

.back-to-cases {
  margin-top: 40px;
  text-align: center;
}
.back-to-cases a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(7,9,80,0.2);
  padding-bottom: 4px;
}
.back-to-cases a:hover { color: var(--gold); border-color: var(--gold); }

/* ========== SIDEBAR ========== */
.case-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-side-card {
  border: 1px solid rgba(7,9,80,0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.case-side-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(7,9,80,0.08);
  background: var(--off-white);
}
.case-side-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.case-side-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}
.case-side-body { padding: 16px 18px 20px; }
.case-fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.case-fact-list li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(7,9,80,0.06);
}
.case-fact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.case-fact-list li:first-child { padding-top: 0; }
.case-fact-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.case-fact-value {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}
.case-side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.case-side-links a {
  display: block;
  font-size: 13px;
  color: var(--navy-link);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(7,9,80,0.06);
  line-height: 1.5;
}
.case-side-links li:last-child a { border-bottom: none; }
.case-side-links a:hover { color: var(--gold); }

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(7,9,80,0.06);
  line-height: 1.5;
}
.toc-list li:last-child a { border-bottom: none; }
.toc-list a:hover { color: var(--navy-link); }

@media (max-width: 960px) {
  .case-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px 64px;
  }
  .case-sidebar { position: static; }
  .case-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .case-hero { padding: 56px 20px 48px; }
  .case-layout { padding: 32px 16px 56px; }
  .case-cta-box { padding: 24px 20px; }
}
