/* ===========================
   PAGE HEADER
=========================== */
.page-header-inner { position: relative; z-index: 1; }

/* ===========================
   CASE STUDIES
=========================== */
.case-studies-section { background: #f8f9fb; }

.cs-tab-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 32px; margin-bottom: 48px;
}
.cs-tab-btn {
  padding: 9px 22px; border-radius: 24px;
  border: 1.5px solid var(--border-solid);
  background: transparent; color: var(--text-mid);
  font-size: 13px; font-weight: 700; font-family: var(--font-jp);
  cursor: pointer; transition: all 0.2s var(--ease);
}
.cs-tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cs-tab-btn:hover:not(.active) { border-color: var(--navy); color: var(--navy); }

/* プランフィルター */
.cs-plan-nav { display: flex; gap: 8px; margin-bottom: 32px; }
.cs-plan-btn {
  padding: 7px 18px; border-radius: 20px;
  border: 1.5px solid var(--border-solid);
  background: transparent; color: var(--text-mid);
  font-size: 12px; font-weight: 700; font-family: var(--font-jp);
  cursor: pointer; transition: all 0.2s var(--ease);
}
.cs-plan-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.cs-plan-btn:hover:not(.active) { border-color: var(--orange); color: var(--orange); }
.cs-card[data-plan="light"] { border-top: 3px solid var(--orange); }
.cs-card[data-plan="customize"] { border-top: 3px solid #2980e6; }

/* カテゴリーグループ */
.cs-group { margin-bottom: 56px; }
.cs-group:last-of-type { margin-bottom: 0; }
.cs-group-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.cs-group-title { font-size: 18px; font-weight: 900; color: var(--navy); margin: 0; }
.cs-group-count {
  margin-left: auto;
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--text-light);
  background: var(--off-white); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 20px;
}

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

/* カード */
.cs-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none; color: inherit;
}
.cs-card-more { font-size: 13px; font-weight: 700; color: var(--navy-light); margin: 4px 0 0; }
.cs-card:hover .cs-card-more { text-decoration: underline; }
.cs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cs-card-img-wrap {
  margin: -24px -24px 0; height: 160px; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0; flex-shrink: 0;
}
.cs-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s var(--ease);
}
.cs-card:hover .cs-card-img-wrap img { transform: scale(1.04); }
.cs-industry-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; padding: 3px 10px; border-radius: 12px;
  background: rgba(11,26,53,0.08); color: var(--navy);
}
.cs-dept {
  font-size: 15px; font-weight: 900; color: var(--navy); line-height: 1.4; margin: 0;
}
.cs-background {
  font-size: 12px; color: var(--text-light); line-height: 1.7; margin: 0;
  padding: 8px 12px;
  background: var(--off-white); border-radius: var(--radius);
}
.cs-bar-label-row {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
}
.cs-bar-label { font-size: 11px; font-weight: 700; color: var(--text-mid); }
.cs-bar-pct   { font-size: 13px; font-weight: 800; }
.cs-bar-track { height: 8px; background: rgba(0,0,0,0.07); border-radius: 4px; overflow: hidden; }
.cs-bar-fill  { height: 100%; border-radius: 4px; }
.cs-bar-fill.green  { background: #16a34a; }
.cs-bar-fill.blue   { background: #2980e6; }
.cs-bar-fill.orange { background: var(--orange); }
.cs-bar-fill.purple { background: #7c3aed; }
.cs-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-mid); margin: 0 0 4px;
}
.cs-challenge { font-size: 13px; color: var(--text-mid); line-height: 1.8; margin: 0; }
.cs-solution-wrap { border-top: 1px solid var(--border); padding-top: 12px; }
.cs-solution { font-size: 13px; color: var(--navy); font-weight: 500; line-height: 1.8; margin: 0; }
.cs-results {
  background: rgba(22, 163, 74, 0.06);
  border-left: 3px solid #16a34a;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
}
.cs-results .cs-label { color: #16a34a; }
.cs-result-text { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.8; margin: 0; }

/* ===========================
   CTA BAND
=========================== */
.cta-section {
  background: linear-gradient(135deg, #060f1e 0%, #0b1a35 60%, #0b2040 100%);
  padding: 100px 0; position: relative; overflow: hidden; text-align: center;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(126,184,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,184,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cta-inner { position: relative; z-index: 1; }
.cta-tag {
  display: inline-block; font-family: var(--font-en);
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); background: rgba(232,93,38,0.12);
  border: 1px solid rgba(232,93,38,0.25); border-radius: 20px;
  padding: 5px 16px; margin-bottom: 24px;
}
.cta-section h2 {
  font-size: clamp(24px, 3.2vw, 40px); font-weight: 900; color: #fff;
  letter-spacing: -0.025em; line-height: 1.3; margin-bottom: 14px;
}
.cta-section > div > p {
  font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 44px; font-weight: 300;
}
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-tab-btn { font-size: 12px; padding: 8px 14px; }
  .cs-group-title { font-size: 16px; }
  .cta-section { padding: 72px 0; }
}
