/* ========================================
   DataScience Lab
   article.css
   投稿記事ページ専用
======================================== */

/* ========================================
   section: theme base
======================================== */

.cases-article-page {
  --article-bg: #f7f9fc;
  --article-surface: #ffffff;
  --article-surface-soft: #fbfbfc;
  --article-text: #1b1b1b;
  --article-text-soft: #5d6877;
  --article-border: #e3e8ef;
  --article-shadow-sm: 0 6px 18px rgba(20, 31, 56, 0.04);
  --article-shadow-md: 0 12px 34px rgba(20, 31, 56, 0.08);

  --article-accent: #0f6cbd;
  --article-accent-dark: #0f3863;
  --article-accent-soft: rgba(15, 108, 189, 0.08);
  --article-accent-soft-strong: rgba(15, 108, 189, 0.14);
  --article-chip-bg: #eaf4fc;
  --article-chip-text: #0f6cbd;
  --article-highlight: #de982f;

  background: var(--article-bg);
  color: var(--article-text);
}

.cases-article-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ========================================
   section: theme mapping
   シリーズ / 主題タグ連動
======================================== */

.theme-ds {
  --article-accent: #0f6cbd;
  --article-accent-dark: #0f3863;
  --article-accent-soft: rgba(15, 108, 189, 0.08);
  --article-accent-soft-strong: rgba(15, 108, 189, 0.14);
  --article-chip-bg: #eaf4fc;
  --article-chip-text: #0f6cbd;
  --article-highlight: #de982f;
}

.theme-ai {
  --article-accent: #1a357d;
  --article-accent-dark: #24408f;
  --article-accent-soft: rgba(26, 53, 125, 0.08);
  --article-accent-soft-strong: rgba(26, 53, 125, 0.14);
  --article-chip-bg: rgba(36, 64, 143, 0.10);
  --article-chip-text: #1a357d;
  --article-highlight: #de982f;
}

.theme-seido {
  --article-accent: #9c3d3d;
  --article-accent-dark: #7f2f2f;
  --article-accent-soft: rgba(156, 61, 61, 0.08);
  --article-accent-soft-strong: rgba(156, 61, 61, 0.14);
  --article-chip-bg: rgba(156, 61, 61, 0.10);
  --article-chip-text: #9c3d3d;
  --article-highlight: #de982f;
}

.theme-career {
  --article-accent: #eb5a0c;
  --article-accent-dark: #b9470b;
  --article-accent-soft: rgba(235, 90, 12, 0.08);
  --article-accent-soft-strong: rgba(235, 90, 12, 0.14);
  --article-chip-bg: rgba(235, 90, 12, 0.10);
  --article-chip-text: #eb5a0c;
  --article-highlight: #de982f;
}

.theme-hakohige {
  --article-accent: #f4b400;
  --article-accent-dark: #8a6800;
  --article-accent-soft: rgba(244, 180, 0, 0.10);
  --article-accent-soft-strong: rgba(244, 180, 0, 0.16);
  --article-chip-bg: rgba(244, 180, 0, 0.14);
  --article-chip-text: #8a6800;
  --article-highlight: #0f6cbd;
}

.theme-cases {
  --article-accent: #7A6858;
  --article-accent-dark: #5A4E43;
  --article-accent-soft: rgba(122, 104, 88, 0.08);
  --article-accent-soft-strong: rgba(122, 104, 88, 0.14);
  --article-chip-bg: rgba(122, 104, 88, 0.10);
  --article-chip-text: #7A6858;
  --article-highlight: #de982f;
}

/* ========================================
   section: header
======================================== */

.cases-article-header {
  padding: 40px 0 28px;
  background: #ffffff;
}

.cases-article-header__series {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--article-chip-bg);
  color: var(--article-chip-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.cases-article-header__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.cases-article-header__lead {
  max-width: 760px;
  margin: 0 0 18px;
  color: #4a5565;
  font-size: 15px;
  line-height: 1.9;
}

.cases-article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  color: #6b7685;
  font-size: 12px;
  line-height: 1.7;
}

.cases-article-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.cases-article-header__tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce6f0;
  border-radius: 999px;
  background: #ffffff;
  color: #445061;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.cases-article-header__tag:hover {
  transform: translateY(-1px);
  background: var(--article-chip-bg);
  border-color: transparent;
  color: var(--article-chip-text);
}

.cases-article-header__thumb-wrap {
  overflow: hidden;
  border-radius: 24px;
  background: #dde5f0;
}

.cases-article-header__thumb {
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
   section: layout
======================================== */

.cases-article-layout {
  padding: 36px 0 72px;
}

.cases-article-layout__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.cases-article-main,
.cases-article-sidebar {
  min-width: 0;
}

/* ========================================
   section: article content shell
======================================== */

.cases-article-content {
  padding: 30px;
  border: 1px solid var(--article-border);
  border-radius: 24px;
  background: var(--article-surface);
  box-shadow: var(--article-shadow-sm);
}

.cases-article-content section {
  margin-bottom: 28px;
}

/* ========================================
   section: typography
======================================== */

.cases-article-content h2 {
  position: relative;
  display: block;
  margin: 42px 0 16px;
  padding: 14px 18px 14px 20px;
  border-radius: 14px;
  background: var(--article-accent-soft);
  font-size: 28px;
  line-height: 1.45;
}

.cases-article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: var(--article-accent);
}

.cases-article-content h3 {
  position: relative;
  margin: 28px 0 12px;
  padding-left: 12px;
  font-size: 20px;
  line-height: 1.55;
}

.cases-article-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 999px;
  background: var(--article-accent);
}

.cases-article-content h4 {
  margin: 22px 0 10px;
  color: #233244;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.cases-article-content p {
  margin: 0 0 16px;
  color: #2f3742;
  font-size: 15px;
  line-height: 1.95;
}

.cases-article-content ul,
.cases-article-content ol {
  margin: 0 0 18px 1.2em;
  padding: 0;
}

.cases-article-content li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.9;
}

.cases-article-content strong {
  font-weight: 700;
}

.cases-article-content a {
  color: var(--article-accent-dark);
  text-underline-offset: 0.18em;
}

.cases-article-content hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--article-border);
}

.cases-article-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 18px 0 10px;
  border-radius: 18px;
}

.cases-article-content figure {
  margin: 18px 0;
}

.cases-article-content figure img {
  margin: 0;
}

.cases-article-content figcaption {
  margin-top: 8px;
  color: #7a8594;
  font-size: 12px;
  line-height: 1.7;
}

.cases-article-content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--article-accent);
  background: var(--article-accent-soft);
  color: #334255;
}

.cases-article-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--article-border);
}

.cases-article-content th,
.cases-article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--article-border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.8;
}

.cases-article-content th {
  background: #f7f9fc;
  font-weight: 700;
}

/* ========================================
   section: reusable content blocks
======================================== */

.dsl-section-head {
  margin: 0 0 24px;
  padding: 26px 26px 22px;
  border: 1px solid var(--article-accent-soft-strong);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--article-accent-soft), rgba(255, 255, 255, 0.9));
}

.dsl-section-head__label {
  display: block;
  margin: 0 0 12px;
  color: var(--article-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dsl-section-head__title {
  position: relative;
  margin: 0 0 12px;
  padding: 16px 18px 16px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.40);
  font-size: 22px;
  line-height: 1.5;
}

.dsl-section-head__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: var(--article-accent);
}

.dsl-section-head__lead {
  margin: 0;
  color: #465363;
  font-size: 15px;
  line-height: 1.9;
}

.case-intro-box {
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid var(--article-accent-soft-strong);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--article-accent-soft-strong), var(--article-accent-soft));
}

.case-intro-box__eyebrow {
  margin: 0 0 10px;
  color: var(--article-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-intro-box__title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.5;
}

.case-intro-box__text {
  margin: 0;
  color: #2f3742;
  font-size: 15px;
  line-height: 1.95;
}

.case-point-box {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #dce6f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--article-shadow-sm);
}

.case-point-box__title {
  position: relative;
  margin: 0 0 12px;
  padding-left: 12px;
  font-size: 18px;
  line-height: 1.5;
}

.case-point-box__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: var(--article-accent);
}

.case-point-box p:last-child,
.case-point-box ul:last-child {
  margin-bottom: 0;
}

.case-point-box--strong {
  background: linear-gradient(135deg, rgba(222, 152, 47, 0.12), rgba(222, 152, 47, 0.05));
  border: 1px solid rgba(222, 152, 47, 0.22);
}

.case-point-box--strong .case-point-box__title::before {
  background: var(--article-highlight);
}

.case-summary-box {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--article-accent-soft-strong);
  border-radius: 20px;
  background: var(--article-accent-soft);
}

.case-summary-box h3 {
  position: relative;
  margin: 0 0 12px;
  padding-left: 12px;
  font-size: 20px;
  line-height: 1.5;
}

.case-summary-box h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: var(--article-accent);
}

.case-summary-box p:last-child,
.case-summary-box ul:last-child {
  margin-bottom: 0;
}

.case-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
  margin: 24px 0 28px;
}

.case-flex img,
.case-flex-media img {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 16px;
}

.case-flex-text {
  font-size: 15px;
  line-height: 1.9;
}

.case-flex-text h3 {
  margin-top: 0;
}

.dsl-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 28px;
}

.dsl-card {
  padding: 22px;
  border: 1px solid var(--article-border);
  border-radius: 20px;
  background: #fff;
}

.dsl-card h3,
.dsl-card h4 {
  margin-top: 0;
}

.dsl-card p:last-child,
.dsl-card ul:last-child {
  margin-bottom: 0;
}

.dsl-card--accent {
  background: linear-gradient(135deg, var(--article-accent-soft), #ffffff);
  border-color: var(--article-accent-soft-strong);
}

.dsl-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.dsl-number-card {
  padding: 24px 20px;
  border: 1px solid var(--article-border);
  border-radius: 20px;
  background: #fff;
}

.dsl-number-card__value {
  margin: 0 0 10px;
  color: var(--article-accent);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
}

.dsl-number-card__label {
  margin: 0;
  color: #4a5565;
  font-size: 14px;
  line-height: 1.8;
}

.dsl-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.dsl-flow__step {
  padding: 22px 20px;
  border: 1px solid #dce6f0;
  border-radius: 20px;
  background: #fff;
}

.dsl-flow__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--article-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.dsl-flow__step h3,
.dsl-flow__step h4 {
  margin-top: 0;
}

.dsl-flow__step p:last-child {
  margin-bottom: 0;
}

.dsl-compare {
  overflow-x: auto;
  margin: 28px 0;
}

.dsl-compare table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--article-border);
}

.dsl-compare th,
.dsl-compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--article-border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.8;
}

.dsl-compare th {
  background: var(--article-accent-soft);
  font-weight: 700;
}

.dsl-banner-link {
  display: block;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--article-accent-soft-strong);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--article-accent-soft), #ffffff);
  color: inherit;
  text-decoration: none;
}

.dsl-banner-link__label {
  display: block;
  margin: 0 0 8px;
  color: var(--article-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dsl-banner-link__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.5;
}

.dsl-banner-link__text {
  margin: 0;
  color: #556171;
  font-size: 14px;
  line-height: 1.8;
}

.marker-hand {
  font-weight: 700;
  background-image: linear-gradient(transparent 62%, rgba(222, 152, 47, 0.45) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.marker-hand-blue {
  font-weight: 700;
  background-image: linear-gradient(transparent 62%, var(--article-accent-soft-strong) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* ========================================
   section: sidebar
======================================== */

.cases-sidebar {
  display: grid;
  gap: 18px;
}

.cases-sidebar-box {
  padding: 20px;
  border: 1px solid var(--article-border);
  border-radius: 20px;
  background: #ffffff;
}

.cases-sidebar-box__title {
  position: relative;
  margin: 0 0 8px;
  padding-left: 12px;
  font-size: 18px;
  line-height: 1.5;
}

.cases-sidebar-box__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--article-accent);
}

.cases-sidebar-box__lead {
  margin: 0 0 14px;
  color: #6b7685;
  font-size: 12px;
  line-height: 1.7;
}

.cases-sidebar-post-list,
.cases-sidebar-series-list {
  display: grid;
  gap: 10px;
}

.cases-sidebar-post-item,
.cases-sidebar-series-item {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f9fc;
  color: #1b1b1b;
  line-height: 1.7;
  text-decoration: none;
}

.cases-sidebar-post-item__title {
  font-size: 14px;
}

.cases-sidebar-box--service {
  background: linear-gradient(135deg, var(--article-accent-soft-strong), rgba(222, 152, 47, 0.08));
}

.cases-sidebar-service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  background: #de982f;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cases-sidebar-service-card__label {
  font-size: 14px;
}

/* ========================================
   section: article cta
======================================== */

.cases-article-cta {
  margin-top: 32px;
  padding: 30px;
  border: 1px solid var(--article-accent-soft-strong);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--article-accent-soft-strong), var(--article-accent-soft));
}

.cases-article-cta__eyebrow {
  margin: 0 0 8px;
  color: var(--article-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cases-article-cta__title {
  position: relative;
  margin: 0 0 12px;
  padding-left: 14px;
  font-size: 26px;
  line-height: 1.4;
}

.cases-article-cta__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: var(--article-accent);
}

.cases-article-cta__text {
  margin: 0 0 20px;
  color: #4a5565;
  font-size: 14px;
  line-height: 1.8;
}

.cases-article-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #de982f;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border: none;
}

.cases-article-cta__button:hover {
  opacity: 0.92;
}

/* ========================================
   section: related posts
======================================== */

.cases-related-posts {
  margin-top: 40px;
}

.cases-related-posts__heading {
  margin-bottom: 20px;
}

.cases-related-posts__heading h2 {
  position: relative;
  margin: 0 0 8px;
  padding-left: 14px;
  font-size: 26px;
  line-height: 1.4;
}

.cases-related-posts__heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: var(--article-accent);
}

.cases-related-posts__heading p {
  margin: 0;
  color: #5d6877;
  font-size: 13px;
  line-height: 1.8;
}

.cases-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ========================================
   section: responsive
======================================== */

@media (max-width: 1024px) {
  .cases-article-layout__inner {
    grid-template-columns: 1fr;
  }

  .cases-related-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dsl-number-grid,
  .dsl-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .case-flex,
  .dsl-card-grid,
  .dsl-number-grid,
  .dsl-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cases-article-header {
    padding: 28px 0 20px;
  }

  .cases-article-layout {
    padding: 24px 0 48px;
  }

  .cases-article-content {
    padding: 22px;
  }

  .cases-article-content h2 {
    font-size: 24px;
    padding: 12px 14px 12px 16px;
  }

  .cases-article-content h3 {
    font-size: 18px;
  }

  .cases-article-content h4,
  .cases-article-content p,
  .cases-article-content li,
  .case-flex-text,
  .case-intro-box__text,
  .dsl-section-head__lead {
    font-size: 14px;
  }

  .dsl-section-head {
    padding: 20px 18px 18px;
  }

  .dsl-section-head__title {
    font-size: 20px;
  }

  .cases-article-cta {
    padding: 24px;
  }

  .cases-article-cta__title {
    font-size: 22px;
  }

  .cases-related-posts__grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   DataScience Lab
   article.css add-on
   シリーズ連動・タグ色強化
======================================== */

/* ========================================
   section: article visual emphasis
======================================== */

.cases-article-header {
  position: relative;
}

.cases-article-header::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--article-accent);
  opacity: 0.18;
}

/* ========================================
   section: header tag chips
   記事冒頭タグを見える色差にする
======================================== */

.cases-article-header__tag {
  background: #fff;
  border-width: 1px;
  border-style: solid;
}

/* データ分析系 */
.cases-article-header__tag[href*="/tag/data-analysis/"],
.cases-article-header__tag[href*="/tag/statistics/"],
.cases-article-header__tag[href*="/tag/machine-learning/"],
.cases-article-header__tag[href*="/tag/python/"],
.cases-article-header__tag[href*="/tag/sql/"],
.cases-article-header__tag[href*="/tag/bi/"],
.cases-article-header__tag[href*="/tag/tableau/"],
.cases-article-header__tag[href*="/tag/power-bi/"] {
  background: rgba(15, 108, 189, 0.10);
  border-color: rgba(15, 108, 189, 0.22);
  color: #0f3863;
}

/* AI / DX 系 */
.cases-article-header__tag[href*="/tag/generative-ai/"],
.cases-article-header__tag[href*="/tag/ai-agent/"],
.cases-article-header__tag[href*="/tag/prompt/"],
.cases-article-header__tag[href*="/tag/automation/"],
.cases-article-header__tag[href*="/tag/llm/"],
.cases-article-header__tag[href*="/tag/rag/"],
.cases-article-header__tag[href*="/tag/chatgpt/"],
.cases-article-header__tag[href*="/tag/claude/"],
.cases-article-header__tag[href*="/tag/gemini/"],
.cases-article-header__tag[href*="/tag/copilot/"],
.cases-article-header__tag[href*="/tag/dx/"] {
  background: rgba(26, 53, 125, 0.10);
  border-color: rgba(26, 53, 125, 0.22);
  color: #1a357d;
}

/* 制度系 */
.cases-article-header__tag[href*="/tag/seido/"],
.cases-article-header__tag[href*="/tag/kyufu/"],
.cases-article-header__tag[href*="/tag/education-benefit/"],
.cases-article-header__tag[href*="/tag/specialized-training-benefit/"],
.cases-article-header__tag[href*="/tag/general-training-benefit/"],
.cases-article-header__tag[href*="/tag/human-resource-grant/"],
.cases-article-header__tag[href*="/tag/hello-training/"] {
  background: rgba(156, 61, 61, 0.10);
  border-color: rgba(156, 61, 61, 0.22);
  color: #9c3d3d;
}

/* キャリア / 個人 */
.cases-article-header__tag[href*="/tag/career/"],
.cases-article-header__tag[href*="/tag/people/"],
.cases-article-header__tag[href*="/tag/reskilling/"],
.cases-article-header__tag[href*="/tag/education/"] {
  background: rgba(235, 90, 12, 0.10);
  border-color: rgba(235, 90, 12, 0.22);
  color: #b9470b;
}

/* 法人 / 実務活用 */
.cases-article-header__tag[href*="/tag/hr/"],
.cases-article-header__tag[href*="/tag/marketing/"],
.cases-article-header__tag[href*="/tag/finance/"],
.cases-article-header__tag[href*="/tag/retail/"],
.cases-article-header__tag[href*="/tag/manufacturing/"],
.cases-article-header__tag[href*="/tag/usecase/"],
.cases-article-header__tag[href*="/tag/corporate/"] {
  background: rgba(0, 166, 146, 0.10);
  border-color: rgba(0, 166, 146, 0.22);
  color: #007c6d;
}

/* 箱ひげ先生 */
.cases-article-header__tag[href*="/tag/hakohige-sensei/"] {
  background: rgba(244, 180, 0, 0.14);
  border-color: rgba(244, 180, 0, 0.24);
  color: #8a6800;
}

.cases-article-header__tag:hover {
  box-shadow: 0 4px 10px rgba(20, 31, 56, 0.06);
}

/* ========================================
   section: stronger intro + summary linkage
======================================== */

.dsl-section-head {
  border-width: 1px;
  box-shadow: 0 8px 24px rgba(20, 31, 56, 0.04);
}

.dsl-section-head__title {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.20));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.case-summary-box,
.case-point-box,
.dsl-banner-link,
.cases-article-cta,
.cases-sidebar-box--service {
  box-shadow: 0 10px 28px rgba(20, 31, 56, 0.04);
}

/* ========================================
   section: h2 / h3 polish
======================================== */

.cases-article-content h2 {
  border: 1px solid var(--article-accent-soft-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cases-article-content h3 {
  color: #233244;
}

/* ========================================
   section: series-specific atmospheres
   シリーズごとの差を見えやすくする
======================================== */

/* データワールド */
.theme-ds .dsl-section-head,
.theme-ds .case-summary-box,
.theme-ds .dsl-banner-link,
.theme-ds .cases-article-cta {
  background-image: linear-gradient(180deg, rgba(15, 108, 189, 0.10), rgba(255, 255, 255, 0.95));
}

/* AI / DX */
.theme-ai .dsl-section-head,
.theme-ai .case-summary-box,
.theme-ai .dsl-banner-link,
.theme-ai .cases-article-cta {
  background-image: linear-gradient(180deg, rgba(26, 53, 125, 0.10), rgba(255, 255, 255, 0.95));
}

.theme-ai .cases-article-header__series {
  box-shadow: inset 0 0 0 1px rgba(26, 53, 125, 0.10);
}

/* 制度 */
.theme-seido .dsl-section-head,
.theme-seido .case-summary-box,
.theme-seido .dsl-banner-link,
.theme-seido .cases-article-cta {
  background-image: linear-gradient(180deg, rgba(156, 61, 61, 0.10), rgba(255, 255, 255, 0.96));
}

.theme-seido .case-point-box--strong {
  background: linear-gradient(135deg, rgba(156, 61, 61, 0.06), rgba(222, 152, 47, 0.06));
  border-color: rgba(156, 61, 61, 0.16);
}

/* キャリア */
.theme-career .dsl-section-head,
.theme-career .case-summary-box,
.theme-career .dsl-banner-link,
.theme-career .cases-article-cta {
  background-image: linear-gradient(180deg, rgba(235, 90, 12, 0.10), rgba(255, 255, 255, 0.96));
}

/* 箱ひげ先生 */
.theme-hakohige .dsl-section-head,
.theme-hakohige .case-summary-box,
.theme-hakohige .dsl-banner-link,
.theme-hakohige .cases-article-cta {
  background-image: linear-gradient(180deg, rgba(244, 180, 0, 0.14), rgba(255, 255, 255, 0.96));
}

.theme-hakohige .dsl-section-head__label,
.theme-hakohige .cases-article-cta__eyebrow,
.theme-hakohige .dsl-banner-link__label {
  color: #8a6800;
}

/* 読み物・中立 */
.theme-cases .dsl-section-head,
.theme-cases .case-summary-box,
.theme-cases .dsl-banner-link,
.theme-cases .cases-article-cta {
  background-image: linear-gradient(180deg, rgba(122, 104, 88, 0.10), rgba(255, 255, 255, 0.96));
}

/* ========================================
   section: CTA contrast adjustment
======================================== */

.cases-article-cta__button,
.cases-sidebar-service-card {
  box-shadow: 0 8px 20px rgba(222, 152, 47, 0.20);
}

.cases-article-cta__button:hover,
.cases-sidebar-service-card:hover {
  transform: translateY(-1px);
}

/* ========================================
   section: in-article visual blocks
======================================== */

.dsl-card {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dsl-card:hover {
  transform: translateY(-2px);
  border-color: var(--article-accent-soft-strong);
  box-shadow: 0 10px 24px rgba(20, 31, 56, 0.05);
}

.dsl-flow__step {
  box-shadow: 0 6px 20px rgba(20, 31, 56, 0.04);
}

.dsl-number-card {
  box-shadow: 0 6px 20px rgba(20, 31, 56, 0.04);
}

/* ========================================
   section: related posts heading tie-in
======================================== */

.cases-related-posts__heading {
  padding-top: 8px;
}

.cases-related-posts__heading p {
  max-width: 720px;
}

/* ========================================
   section: sidebar refinement
======================================== */

.cases-sidebar-box {
  box-shadow: 0 8px 22px rgba(20, 31, 56, 0.03);
}

.cases-sidebar-post-item:hover,
.cases-sidebar-series-item:hover {
  background: var(--article-accent-soft);
}

/* ========================================
   section: small screen refinement
======================================== */

@media (max-width: 640px) {
  .cases-article-header::after {
    width: 56px;
  }

  .cases-article-header__tag {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .dsl-section-head__title {
    padding: 14px 14px 14px 18px;
  }
}
/* ========================================
   DataScience Lab
   article.css finish
   白ベース / フラット化 / CTA役割色化 / サイド洗練
======================================== */

/* ========================================
   section: root overwrite
======================================== */

.cases-article-page {
  --article-bg: #f5f6f8;
  --article-surface: #ffffff;
  --article-surface-soft: #fbfcfd;
  --article-text: #1d2430;
  --article-text-soft: #5c6878;
  --article-border: #e5e9ef;
  --article-shadow-sm: 0 4px 14px rgba(15, 24, 38, 0.04);
  --article-shadow-md: 0 10px 24px rgba(15, 24, 38, 0.05);
}

/* ========================================
   section: header finish
======================================== */

.cases-article-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 24, 38, 0.06);
}

.cases-article-header::after {
  display: none;
}

.cases-article-header__series {
  background: #fff;
  border: 1px solid var(--article-accent-soft-strong);
  color: var(--article-accent-dark);
}

.cases-article-header__lead {
  color: #4c5968;
}

.cases-article-header__thumb-wrap {
  border: 1px solid var(--article-border);
  background: #fff;
  box-shadow: none;
}

/* ========================================
   section: header tag chips finish
======================================== */

.cases-article-header__tag {
  background: #fff;
  box-shadow: none;
}

.cases-article-header__tag:hover {
  box-shadow: none;
}

/* ========================================
   section: article shell finish
======================================== */

.cases-article-content {
  border-color: var(--article-border);
  background: #ffffff;
  box-shadow: none;
}

.cases-article-content h2 {
  border: 1px solid var(--article-border);
  background: #f7f9fc;
  box-shadow: none;
}

.cases-article-content h2::before {
  width: 4px;
}

.cases-article-content h3 {
  color: #233244;
}

/* ========================================
   section: intro / summary / banner
   グラデーション感を減らして白ベースへ
======================================== */

.dsl-section-head {
  border: 1px solid var(--article-border);
  background: #ffffff;
  box-shadow: none;
}

.dsl-section-head__title {
  background: #f7f9fc;
  box-shadow: none;
}

.dsl-section-head__label {
  color: var(--article-accent-dark);
}

.case-intro-box {
  border: 1px solid var(--article-border);
  background: #ffffff;
  box-shadow: none;
}

.case-point-box {
  border: 1px solid var(--article-border);
  background: #ffffff;
  box-shadow: none;
}

.case-point-box--strong {
  border: 1px solid rgba(201, 144, 44, 0.18);
  background: #fffaf2;
}

.case-summary-box {
  border: 1px solid var(--article-border);
  background: #ffffff;
  box-shadow: none;
}

.dsl-banner-link {
  border: 1px solid var(--article-border);
  background: #ffffff;
  box-shadow: none;
}

.dsl-banner-link__label {
  color: var(--article-accent-dark);
}

/* シリーズ別アクセントは線・文字に限定 */
.theme-ds .dsl-section-head,
.theme-ds .case-summary-box,
.theme-ds .dsl-banner-link,
.theme-ds .cases-article-cta {
  background: #ffffff;
}

.theme-ai .dsl-section-head,
.theme-ai .case-summary-box,
.theme-ai .dsl-banner-link,
.theme-ai .cases-article-cta {
  background: #ffffff;
}

.theme-seido .dsl-section-head,
.theme-seido .case-summary-box,
.theme-seido .dsl-banner-link,
.theme-seido .cases-article-cta {
  background: #ffffff;
}

.theme-career .dsl-section-head,
.theme-career .case-summary-box,
.theme-career .dsl-banner-link,
.theme-career .cases-article-cta {
  background: #ffffff;
}

.theme-hakohige .dsl-section-head,
.theme-hakohige .case-summary-box,
.theme-hakohige .dsl-banner-link,
.theme-hakohige .cases-article-cta {
  background: #ffffff;
}

.theme-cases .dsl-section-head,
.theme-cases .case-summary-box,
.theme-cases .dsl-banner-link,
.theme-cases .cases-article-cta {
  background: #ffffff;
}

/* ========================================
   section: cards / flow / compare finish
======================================== */

.dsl-card,
.dsl-number-card,
.dsl-flow__step {
  border: 1px solid var(--article-border);
  background: #ffffff;
  box-shadow: none;
}

.dsl-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--article-shadow-sm);
}

.dsl-card--accent {
  background: #ffffff;
  border-color: var(--article-accent-soft-strong);
}

.dsl-compare th {
  background: #f7f9fc;
}

/* ========================================
   section: CTA finish
   ボタン色を役割別に整理
======================================== */

.cases-article-cta {
  border: 1px solid var(--article-border);
  background: #ffffff;
  box-shadow: none;
}

.cases-article-cta__title::before {
  background: var(--article-accent);
}

.cases-article-cta__button,
.cases-sidebar-service-card {
  box-shadow: none;
  border: none;
}

/* 相談系だけ相談色 */
.cases-article-cta--personal .cases-article-cta__button,
.cases-article-cta--consult .cases-article-cta__button {
  background: #c9902c;
  color: #fff !important;
}

/* 制度 */
.cases-article-cta--seido .cases-article-cta__button {
  background: #9c3d3d;
  color: #fff !important;
}

/* 学習 / 講座一覧 */
.cases-article-cta--learning .cases-article-cta__button {
  background: #5F6E7A;
  color: #fff !important;
}

/* 法人 */
.cases-article-cta--corporate .cases-article-cta__button {
  background: #00a692;
  color: #fff !important;
}

/* 個人 */
.cases-article-cta--personal .cases-article-cta__button {
  background: #4C6280;
  color: #fff !important;
}

/* AI寄りの記事本文内小CTAなど */
.theme-ai .dsl-banner-link {
  border-left: 4px solid #1a357d;
}

.theme-ds .dsl-banner-link {
  border-left: 4px solid #0f6cbd;
}

.theme-seido .dsl-banner-link {
  border-left: 4px solid #9c3d3d;
}

.theme-career .dsl-banner-link {
  border-left: 4px solid #eb5a0c;
}

.theme-hakohige .dsl-banner-link {
  border-left: 4px solid #f4b400;
}

.theme-cases .dsl-banner-link {
  border-left: 4px solid #7A6858;
}

/* ========================================
   section: sidebar finish
======================================== */

.cases-sidebar {
  gap: 16px;
}

.cases-sidebar-box {
  border: 1px solid var(--article-border);
  background: #ffffff;
  box-shadow: none;
}

.cases-sidebar-box__title {
  font-size: 17px;
}

.cases-sidebar-box__lead {
  color: #6a7788;
}

.cases-sidebar-post-item,
.cases-sidebar-series-item {
  border: 1px solid #edf1f5;
  background: #fafbfd;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cases-sidebar-post-item:hover,
.cases-sidebar-series-item:hover {
  background: #ffffff;
  border-color: var(--article-border);
}

.cases-sidebar-box--service {
  border-color: var(--article-border);
  background: #ffffff;
}

.cases-sidebar-service-card {
  min-height: 48px;
  background: var(--article-accent);
  color: #fff;
  border-radius: 999px;
}

.theme-seido .cases-sidebar-service-card {
  background: #9c3d3d;
}

.theme-ai .cases-sidebar-service-card {
  background: #1a357d;
}

.theme-ds .cases-sidebar-service-card {
  background: #0f6cbd;
}

.theme-career .cases-sidebar-service-card {
  background: #4C6280;
}

.theme-hakohige .cases-sidebar-service-card {
  background: #8a6800;
}

.theme-cases .cases-sidebar-service-card {
  background: #7A6858;
}

/* ========================================
   section: related posts finish
======================================== */

.cases-related-posts__heading h2 {
  font-size: 24px;
}

.cases-related-posts__grid .cases-post-card__link {
  box-shadow: none;
}

/* ========================================
   section: small screen
======================================== */

@media (max-width: 640px) {
  .cases-article-content {
    padding: 20px;
  }

  .cases-article-content h2 {
    font-size: 22px;
  }

  .cases-sidebar-box {
    padding: 18px;
  }
}

/* ========================================
   sidebar final color tuning
======================================== */

/* データワールド / データ分析系 */
.theme-ds .cases-sidebar-box__title::before,
.theme-ds .cases-sidebar-service-card,
.theme-ds .cases-sidebar-post-item:hover,
.theme-ds .cases-sidebar-series-item:hover {
  background-color: #0f6cbd;
}

.theme-ds .cases-sidebar-service-card {
  background: #0f6cbd;
  color: #fff;
}

.theme-ds .cases-sidebar-post-item:hover,
.theme-ds .cases-sidebar-series-item:hover {
  background: rgba(15, 108, 189, 0.08);
  border-color: rgba(15, 108, 189, 0.16);
}

/* 生成AI・DX系 */
.theme-ai .cases-sidebar-box__title::before,
.theme-ai .cases-sidebar-service-card {
  background: #1a357d;
}

/* 制度系 */
.theme-seido .cases-sidebar-box__title::before,
.theme-seido .cases-sidebar-service-card {
  background: #9c3d3d;
}

/* People / キャリア系 */
.theme-career .cases-sidebar-box__title::before,
.theme-career .cases-sidebar-service-card {
  background: #eb5a0c;
}

/* 箱ひげ先生 */
.theme-hakohige .cases-sidebar-box__title::before,
.theme-hakohige .cases-sidebar-service-card {
  background: #8a6800;
}

/* social-tour / 読み物 */
.theme-cases .cases-sidebar-box__title::before,
.theme-cases .cases-sidebar-service-card {
  background: #7A6858;
}

/* NEWS */
.theme-news .cases-sidebar-box__title::before,
.theme-news .cases-sidebar-service-card {
  background: #5F6E7A;
}

/* ========================================
   section: series theme mapping expand
   シリーズ単位のテーマクラス追加
======================================== */

.theme-data-world {
  --article-accent: #1E4E79;
  --article-accent-dark: #163A5A;
  --article-accent-soft: rgba(30, 78, 121, 0.08);
  --article-accent-soft-strong: rgba(30, 78, 121, 0.18);
  --article-chip-bg: rgba(99, 191, 217, 0.14);
  --article-chip-text: #1E4E79;
  --article-highlight: #63BFD9;
}

.theme-social-tour {
  --article-accent: #7A6858;
  --article-accent-dark: #5A4E43;
  --article-accent-soft: rgba(122, 104, 88, 0.08);
  --article-accent-soft-strong: rgba(122, 104, 88, 0.14);
  --article-chip-bg: rgba(122, 104, 88, 0.10);
  --article-chip-text: #7A6858;
  --article-highlight: #de982f;
}

.theme-generative-ai-dx {
  --article-accent: #5B3FD6;
  --article-accent-dark: #2B1F4A;
  --article-accent-soft: rgba(91, 63, 214, 0.08);
  --article-accent-soft-strong: rgba(91, 63, 214, 0.18);
  --article-chip-bg: rgba(91, 63, 214, 0.10);
  --article-chip-text: #4B34B2;
  --article-highlight: #36C690;
}

.theme-reskilling {
  --article-accent: #A64B55;
  --article-accent-dark: #7E313B;
  --article-accent-soft: rgba(166, 75, 85, 0.08);
  --article-accent-soft-strong: rgba(166, 75, 85, 0.18);
  --article-chip-bg: rgba(231, 183, 192, 0.18);
  --article-chip-text: #A64B55;
  --article-highlight: #E7B7C0;
}

.theme-people {
  --article-accent: #C86A3B;
  --article-accent-dark: #8A4728;
  --article-accent-soft: rgba(200, 106, 59, 0.08);
  --article-accent-soft-strong: rgba(200, 106, 59, 0.18);
  --article-chip-bg: rgba(230, 184, 156, 0.18);
  --article-chip-text: #A25731;
  --article-highlight: #E6B89C;
}

.theme-news {
  --article-accent: #4E6B5D;
  --article-accent-dark: #374B41;
  --article-accent-soft: rgba(78, 107, 93, 0.08);
  --article-accent-soft-strong: rgba(78, 107, 93, 0.18);
  --article-chip-bg: rgba(155, 183, 165, 0.18);
  --article-chip-text: #4E6B5D;
  --article-highlight: #9BB7A5;
}

/* ========================================
   section: CTA / sidebar series mapping
======================================== */

.theme-data-world .cases-sidebar-box__title::before,
.theme-data-world .cases-sidebar-service-card {
  background: #1E4E79;
}

.theme-social-tour .cases-sidebar-box__title::before,
.theme-social-tour .cases-sidebar-service-card {
  background: #7A6858;
}

.theme-generative-ai-dx .cases-sidebar-box__title::before,
.theme-generative-ai-dx .cases-sidebar-service-card {
  background: #5B3FD6;
}

.theme-reskilling .cases-sidebar-box__title::before,
.theme-reskilling .cases-sidebar-service-card {
  background: #A64B55;
}

.theme-people .cases-sidebar-box__title::before,
.theme-people .cases-sidebar-service-card {
  background: #C86A3B;
}

.theme-news .cases-sidebar-box__title::before,
.theme-news .cases-sidebar-service-card {
  background: #4E6B5D;
}

/* ========================================
   section: tag chip expand
======================================== */

.cases-article-header__tag[href*="/tag/ai-tools/"] {
  background: rgba(91, 63, 214, 0.10);
  border-color: rgba(91, 63, 214, 0.22);
  color: #4B34B2;
}

.cases-article-header__tag[href*="/tag/release/"],
.cases-article-header__tag[href*="/tag/column/"],
.cases-article-header__tag[href*="/tag/ai-news/"] {
  background: rgba(78, 107, 93, 0.10);
  border-color: rgba(78, 107, 93, 0.22);
  color: #374B41;
}

.cases-article-header__tag[href*="/tag/education/"],
.cases-article-header__tag[href*="/tag/course-datascience/"],
.cases-article-header__tag[href*="/tag/course-ai/"],
.cases-article-header__tag[href*="/tag/course-python/"] {
  background: rgba(200, 106, 59, 0.10);
  border-color: rgba(200, 106, 59, 0.22);
  color: #8A4728;
}


