/* ============================================================
   cloud-migration.css — クラウドマイグレーションサービスページ
   既存 style.css の CSS 変数を継承
   ============================================================ */

/* ------------------------------------------------------------
   パンくずナビ
   ------------------------------------------------------------ */
.cm-breadcrumb {
  background: var(--ts-bg-light, #F8FAFB);
  border-bottom: 1px solid #e4eaee;
  padding: 12px 0;
  margin-top: 70px;
}
.cm-breadcrumb .breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ts-text-muted, #999);
  flex-wrap: wrap;
}
.cm-breadcrumb .breadcrumb-list li + li::before {
  content: '›';
  margin-right: 6px;
  color: #bbb;
}
.cm-breadcrumb .breadcrumb-list a {
  color: var(--ts-primary, #5BBFDE);
  text-decoration: none;
}
.cm-breadcrumb .breadcrumb-list a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   ヒーローセクション
   ------------------------------------------------------------ */
.cm-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a1628;
}
.cm-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-image: url('/assets/img/cloud-migration/hero.jpg');
}
.cm-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 18, 40, 0.82) 0%,
    rgba(10, 30, 60, 0.72) 50%,
    rgba(5, 15, 35, 0.78) 100%
  );
}
.cm-hero__particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(91,191,222,0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: particleFloat 20s linear infinite;
  pointer-events: none;
}
@keyframes particleFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50px); }
}
.cm-hero__content {
  position: relative;
  z-index: 2;
  padding: 100px 0 80px;
  width: 100%;
}
.cm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,191,222,0.2);
  border: 1px solid rgba(91,191,222,0.5);
  color: #7DD1EC;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.cm-hero__title {
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.cm-hero__title em {
  font-style: normal;
  color: #7DD1EC;
}
.cm-hero__subtitle {
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  margin: 0 0 20px;
}
.cm-hero__desc {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 0 36px;
}
.cm-hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cm-hero__stat {
  text-align: center;
}
.cm-hero__stat-num {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: #7DD1EC;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}
.cm-hero__stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.cm-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #5BBFDE 0%, #3AA8CC 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(91,191,222,0.4);
}
.cm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91,191,222,0.5);
}
.cm-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
}
.cm-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
/* ヒーロー右側 アーキテクチャビジュアル */
.cm-hero__visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 40px 20px 20px;
  pointer-events: none;
}
.cm-migration-arrow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(91,191,222,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  backdrop-filter: blur(4px);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.cm-migration-arrow .arrow-from {
  background: rgba(255,100,80,0.15);
  border: 1px solid rgba(255,100,80,0.4);
  color: #ffaa99;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.cm-migration-arrow .arrow-icon {
  color: #7DD1EC;
  font-size: 18px;
}
.cm-migration-arrow .arrow-to {
  background: rgba(91,191,222,0.15);
  border: 1px solid rgba(91,191,222,0.4);
  color: #7DD1EC;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.cm-migration-arrow .arrow-tag {
  margin-left: auto;
  background: rgba(141,198,63,0.2);
  border: 1px solid rgba(141,198,63,0.4);
  color: #b4e060;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* ------------------------------------------------------------
   セクション共通
   ------------------------------------------------------------ */
.cm-section {
  padding: 80px 0;
}
.cm-section--gray {
  background: var(--ts-bg-light, #F8FAFB);
}
.cm-section--dark {
  background: #0d1b2e;
  color: #fff;
}
.cm-section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: var(--ts-text, #333);
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.4;
}
.cm-section--dark .cm-section-title { color: #fff; }
.cm-section-title span {
  color: var(--ts-primary, #5BBFDE);
}
.cm-section-lead {
  text-align: center;
  color: var(--ts-text-light, #666);
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 56px;
}
.cm-section--dark .cm-section-lead { color: rgba(255,255,255,0.72); }
.cm-section-label {
  display: inline-block;
  background: rgba(91,191,222,0.12);
  color: var(--ts-primary, #5BBFDE);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------
   対応クラウド・OS グリッド
   ------------------------------------------------------------ */
.cm-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.cm-platform-card {
  background: #fff;
  border: 2px solid #e8f0f5;
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
}
.cm-platform-card:hover {
  border-color: var(--ts-primary, #5BBFDE);
  box-shadow: 0 4px 20px rgba(91,191,222,0.18);
  transform: translateY(-3px);
}
.cm-platform-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.cm-platform-card__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.cm-platform-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ts-text, #333);
  line-height: 1.4;
}
.cm-platform-card__sub {
  font-size: 11px;
  color: var(--ts-text-muted, #999);
  margin-top: 4px;
}

/* OS バッジ群 */
.cm-os-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cm-os-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #d0dde5;
  color: var(--ts-text, #333);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.25s;
}
.cm-os-badge:hover {
  border-color: var(--ts-primary);
  color: var(--ts-primary);
  background: rgba(91,191,222,0.06);
}
.cm-os-badge i { color: var(--ts-primary); font-size: 14px; }
.cm-os-badge--legacy {
  border-color: #f0a000;
  background: #fffbf0;
  color: #8a6000;
}
.cm-os-badge--legacy i { color: #f0a000; }

/* ------------------------------------------------------------
   マイグレーションパターン（3種）
   ------------------------------------------------------------ */
.cm-patterns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cm-pattern-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.cm-pattern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.12);
}
.cm-pattern-card__head {
  padding: 28px 28px 20px;
  border-bottom: 1px solid #f0f4f8;
}
.cm-pattern-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}
.cm-pattern-card__icon--blue   { background: rgba(91,191,222,0.12); color: var(--ts-primary); }
.cm-pattern-card__icon--green  { background: rgba(141,198,63,0.12); color: var(--ts-secondary); }
.cm-pattern-card__icon--orange { background: rgba(247,148,29,0.12); color: var(--ts-accent); }
.cm-pattern-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ts-text, #333);
  margin: 0 0 6px;
}
.cm-pattern-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.08em;
}
.cm-pattern-card__tag--blue   { background: rgba(91,191,222,0.12);  color: var(--ts-primary); }
.cm-pattern-card__tag--green  { background: rgba(141,198,63,0.12);  color: var(--ts-secondary-dark); }
.cm-pattern-card__tag--orange { background: rgba(247,148,29,0.12);  color: var(--ts-accent-dark); }
.cm-pattern-card__body {
  padding: 20px 28px 28px;
  flex: 1;
}
.cm-pattern-card__desc {
  font-size: 14px;
  color: var(--ts-text-light, #666);
  line-height: 1.8;
  margin-bottom: 16px;
}
.cm-pattern-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cm-pattern-card__list li {
  font-size: 13px;
  color: var(--ts-text, #333);
  padding: 6px 0;
  border-bottom: 1px solid #f0f4f8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cm-pattern-card__list li::before {
  content: '✓';
  color: var(--ts-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.cm-pattern-card__list li:last-child { border-bottom: none; }

/* ------------------------------------------------------------
   移行フロー（ステッパー）
   ------------------------------------------------------------ */
.cm-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.cm-flow::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: linear-gradient(to right, var(--ts-primary), var(--ts-secondary));
  z-index: 0;
}
.cm-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}
.cm-flow-step__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ts-primary) 0%, var(--ts-primary-dark) 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(91,191,222,0.35);
  font-family: 'Montserrat', sans-serif;
}
.cm-flow-step:nth-child(2n) .cm-flow-step__num {
  background: linear-gradient(135deg, #3e9abf 0%, #2a7da0 100%);
}
.cm-flow-step__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ts-text, #333);
  margin-bottom: 6px;
  line-height: 1.4;
}
.cm-flow-step__desc {
  font-size: 12px;
  color: var(--ts-text-light, #666);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   強み（アドバンテージ）カード
   ------------------------------------------------------------ */
.cm-strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cm-strength-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(91,191,222,0.25);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s;
}
.cm-section--dark .cm-strength-card { color: #fff; }
.cm-strength-card:hover {
  background: rgba(91,191,222,0.08);
  border-color: rgba(91,191,222,0.5);
}
.cm-strength-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(91,191,222,0.15);
  color: #7DD1EC;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cm-strength-card__title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}
.cm-strength-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
}
.cm-strength-card__num {
  font-size: 36px;
  font-weight: 900;
  color: #7DD1EC;
  font-family: 'Montserrat', sans-serif;
  display: block;
  margin-bottom: 4px;
}

/* ------------------------------------------------------------
   ケーススタディ カード
   ------------------------------------------------------------ */
.cm-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cm-case-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.cm-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}
.cm-case-card__thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.cm-case-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.cm-case-card:hover .cm-case-card__thumb img {
  transform: scale(1.06);
}
.cm-case-card__industry {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.cm-case-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ts-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.cm-case-card__body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cm-case-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ts-text, #333);
  margin: 0 0 10px;
  line-height: 1.5;
}
.cm-case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cm-case-card__tag {
  display: inline-block;
  background: var(--ts-bg-light);
  border: 1px solid #dde8ef;
  color: var(--ts-text-light);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}
.cm-case-card__summary {
  font-size: 13px;
  color: var(--ts-text-light, #666);
  line-height: 1.7;
  flex: 1;
}
.cm-case-card__result {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(91,191,222,0.08), rgba(141,198,63,0.08));
  border-left: 3px solid var(--ts-primary);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}
.cm-case-card__result-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ts-primary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 2px;
}
.cm-case-card__result-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ts-text, #333);
}
.cm-case-card__arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ts-primary);
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
}

/* ------------------------------------------------------------
   ケーススタディ 詳細ページ用スタイル
   ------------------------------------------------------------ */
/* 詳細ページ ヒーロー */
.cm-detail-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.cm-detail-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cm-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,18,40,0.45) 0%,
    rgba(8,18,40,0.72) 70%,
    rgba(8,18,40,0.88) 100%
  );
}
.cm-detail-hero__content {
  position: relative;
  z-index: 2;
  padding: 100px 0 56px;
  width: 100%;
}
.cm-detail-hero__industry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(91,191,222,0.2);
  border: 1px solid rgba(91,191,222,0.5);
  color: #7DD1EC;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 16px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.cm-detail-hero__title {
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.cm-detail-hero__kpi {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.cm-detail-kpi-item {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
}
.cm-detail-kpi-item__num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #7DD1EC;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}
.cm-detail-kpi-item__label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  margin-top: 4px;
}

/* 詳細ページ本文レイアウト */
.cm-detail-wrap {
  padding: 64px 0 100px;
}
.cm-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.cm-detail-body {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  line-height: 1.9;
  font-size: 16px;
  color: var(--ts-text, #333);
}
.cm-detail-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ts-text, #333);
  margin: 48px 0 18px;
  padding: 14px 20px;
  background: var(--ts-bg-light);
  border-left: 4px solid var(--ts-primary);
  border-radius: 0 8px 8px 0;
}
.cm-detail-body h2:first-child { margin-top: 0; }
.cm-detail-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ts-text, #333);
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--ts-secondary);
}
.cm-detail-body p {
  margin: 0 0 18px;
}
.cm-detail-body ul, .cm-detail-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.cm-detail-body li { margin-bottom: 8px; }
.cm-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0;
}

/* 課題→解決 ビジュアルブロック */
.cm-challenge-solution {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 32px 0;
  background: var(--ts-bg-light);
  border-radius: 14px;
  padding: 24px;
}
.cm-challenge {
  background: rgba(255,80,50,0.05);
  border: 1px solid rgba(255,80,50,0.2);
  border-radius: 10px;
  padding: 18px;
}
.cm-challenge__label {
  font-size: 11px;
  font-weight: 700;
  color: #e04020;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.cm-solution {
  background: rgba(91,191,222,0.06);
  border: 1px solid rgba(91,191,222,0.3);
  border-radius: 10px;
  padding: 18px;
}
.cm-solution__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ts-primary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.cm-cs-arrow {
  font-size: 32px;
  color: var(--ts-primary);
  font-weight: 900;
  line-height: 1;
}

/* アーキテクチャ図 コンテナ */
.cm-arch-diagram {
  background: #f8fafc;
  border: 1px solid #dde8ef;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  overflow-x: auto;
}
.cm-arch-diagram img {
  width: 100%;
  border-radius: 8px;
  margin: 0;
}

/* 成果 KPI ボックス */
.cm-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.cm-result-item {
  background: linear-gradient(135deg, #f0f9fd, #eaf5f0);
  border: 1px solid #c8e8f0;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.cm-result-item__num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--ts-primary-dark);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}
.cm-result-item__unit {
  font-size: 16px;
  font-weight: 700;
  vertical-align: super;
}
.cm-result-item__label {
  display: block;
  font-size: 12px;
  color: var(--ts-text-light);
  margin-top: 6px;
  line-height: 1.5;
}

/* タイムライン */
.cm-timeline {
  position: relative;
  padding-left: 32px;
  margin: 24px 0;
}
.cm-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ts-primary), var(--ts-secondary));
}
.cm-timeline-item {
  position: relative;
  padding: 0 0 28px 20px;
}
.cm-timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ts-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(91,191,222,0.3);
}
.cm-timeline-item:last-child { padding-bottom: 0; }
/* タイムライン月ラベル＆コンテンツ（詳細ページ用エイリアス） */
.cm-timeline-month {
  font-size: 11px;
  font-weight: 700;
  color: var(--ts-primary);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.cm-timeline-content { margin: 0; }
.cm-timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ts-text);
  margin-bottom: 6px;
}
.cm-timeline-content p {
  font-size: 14px;
  color: var(--ts-text-light);
  line-height: 1.7;
  margin: 0;
}
.cm-timeline-item__phase {
  font-size: 11px;
  font-weight: 700;
  color: var(--ts-primary);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.cm-timeline-item__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ts-text);
  margin-bottom: 6px;
}
.cm-timeline-item__desc {
  font-size: 14px;
  color: var(--ts-text-light);
  line-height: 1.7;
}

/* 詳細サイドバー */
.cm-detail-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cm-sidebar-box {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.cm-sidebar-box__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ts-text, #333);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ts-bg-light);
}
.cm-sidebar-spec {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cm-sidebar-spec li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f0f4f8;
  font-size: 13px;
  gap: 8px;
}
.cm-sidebar-spec li:last-child { border-bottom: none; }
.cm-sidebar-spec__key {
  color: var(--ts-text-muted);
  flex-shrink: 0;
  min-width: 80px;
}
.cm-sidebar-spec__val {
  color: var(--ts-text);
  font-weight: 600;
  text-align: right;
}
.cm-sidebar-cta {
  background: linear-gradient(135deg, #0d1b2e, #1a3050);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.cm-sidebar-cta__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.5;
}
.cm-sidebar-cta__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 16px;
  line-height: 1.6;
}
.cm-sidebar-cta__btn {
  display: block;
  background: linear-gradient(135deg, #5BBFDE, #3AA8CC);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  margin-bottom: 8px;
}
.cm-sidebar-cta__btn:hover {
  box-shadow: 0 4px 16px rgba(91,191,222,0.5);
  transform: translateY(-1px);
}
.cm-sidebar-cta__tel {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* 関連ケーススタディ */
.cm-related-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cm-related-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.cm-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.cm-related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.cm-related-card__body {
  padding: 16px;
}
.cm-related-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ts-text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.cm-related-card__tag {
  font-size: 11px;
  color: var(--ts-primary);
  font-weight: 600;
}

/* 前後ナビ */
.cm-case-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.cm-case-nav__item {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e4eaee;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.cm-case-nav__item:hover {
  border-color: var(--ts-primary);
  box-shadow: 0 4px 16px rgba(91,191,222,0.15);
}
.cm-case-nav__label {
  font-size: 11px;
  color: var(--ts-text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.cm-case-nav__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ts-primary);
  line-height: 1.4;
}

/* CTA セクション */
.cm-cta-section {
  background: linear-gradient(135deg, #0a1628 0%, #0d2240 50%, #0a1628 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cm-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(91,191,222,0.12) 0%, transparent 70%);
}
.cm-cta-section__inner { position: relative; z-index: 1; }
.cm-cta-section__title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.35;
}
.cm-cta-section__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.cm-cta-section__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cm-cta-section__free {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
}

/* 比較テーブル */
.cm-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  margin: 24px 0;
}
.cm-compare-table th {
  background: var(--ts-primary);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  text-align: left;
}
.cm-compare-table th:first-child {
  background: #0d1b2e;
}
.cm-compare-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
}
.cm-compare-table tr:last-child td { border-bottom: none; }
.cm-compare-table tr:nth-child(even) td { background: #fafcfd; }
.cm-compare-table .check { color: #5ba246; font-size: 16px; }
.cm-compare-table .cross { color: #cc3333; font-size: 16px; }

/* FAQ アコーディオン */
.cm-faq { max-width: 800px; margin: 0 auto; }
.cm-faq-item {
  border-bottom: 1px solid #e4eaee;
}
.cm-faq-item:first-child { border-top: 1px solid #e4eaee; }
.cm-faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--ts-text, #333);
  list-style: none;
  user-select: none;
}
.cm-faq-question::-webkit-details-marker { display: none; }
.cm-faq-question::before {
  content: 'Q';
  background: var(--ts-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cm-faq-question::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  color: var(--ts-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}
details[open] .cm-faq-question::after {
  transform: rotate(45deg);
}
.cm-faq-answer {
  padding: 0 0 20px 42px;
  font-size: 14px;
  color: var(--ts-text-light, #666);
  line-height: 1.85;
}
.cm-faq-answer::before {
  content: 'A. ';
  color: var(--ts-secondary-dark);
  font-weight: 700;
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 1024px) {
  .cm-hero__visual { display: none; }
  .cm-patterns { grid-template-columns: 1fr; gap: 16px; }
  .cm-strengths { grid-template-columns: repeat(2, 1fr); }
  .cm-cases { grid-template-columns: repeat(2, 1fr); }
  .cm-detail-layout { grid-template-columns: 1fr 260px; gap: 32px; }
  .cm-results-grid { grid-template-columns: repeat(2, 1fr); }
  .cm-related-cases { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cm-flow { grid-template-columns: repeat(3, 1fr); }
  .cm-flow::before { display: none; }
}

@media screen and (max-width: 768px) {
  .cm-hero { min-height: 480px; }
  .cm-hero__content { padding: 80px 0 60px; }
  .cm-hero__stats { gap: 20px; }
  .cm-section { padding: 56px 0; }
  .cm-patterns { grid-template-columns: 1fr; }
  .cm-strengths { grid-template-columns: 1fr; }
  .cm-cases { grid-template-columns: 1fr; }
  .cm-detail-layout { grid-template-columns: 1fr; }
  .cm-detail-body { padding: 28px 20px; }
  .cm-detail-body h2 { font-size: 18px; padding: 10px 14px; }
  .cm-detail-sidebar { position: static; }
  .cm-challenge-solution { grid-template-columns: 1fr; }
  .cm-cs-arrow { transform: rotate(90deg); }
  .cm-results-grid { grid-template-columns: repeat(2, 1fr); }
  .cm-related-cases { grid-template-columns: 1fr; gap: 14px; }
  .cm-case-nav { grid-template-columns: 1fr; }
  .cm-flow { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cm-detail-hero__kpi { gap: 12px; }
}

@media screen and (max-width: 480px) {
  .cm-section { padding: 44px 0; }
  .cm-platforms { grid-template-columns: repeat(3, 1fr); }
  .cm-hero__actions { flex-direction: column; }
  .cm-btn-primary, .cm-btn-outline { width: 100%; justify-content: center; }
  .cm-results-grid { grid-template-columns: repeat(2, 1fr); }
  .cm-flow { grid-template-columns: 1fr; }
  .cm-cta-section__btns { flex-direction: column; align-items: center; }
  .cm-detail-body { padding: 20px 14px; font-size: 15px; }
}

/* ============================================================
   追加レスポンシブ修正（インラインスタイル上書き）
============================================================ */

/* body横スクロール防止 */
.cloud-migration-page {
  overflow-x: hidden;
}

.cloud-migration-page .container {
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* お悩みセクション（3カラムグリッド対応） */
@media screen and (max-width: 900px) {
  .cm-section--gray > .container > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 640px) {
  .cm-section--gray > .container > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* ヒーロー説明文の改行を非表示 */
  .cm-hero__desc br,
  .cm-cta-section__title br {
    display: none;
  }

  /* 統計エリア */
  .cm-hero__stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .cm-hero__stat {
    width: 100%;
    max-width: 200px;
  }

  /* ヒーローアクションボタン */
  .cm-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .cm-hero__actions .cm-btn-primary,
  .cm-hero__actions .cm-btn-outline {
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    box-sizing: border-box;
  }
}

/* 技術スタックセクション（4カラムグリッド対応） */
@media screen and (max-width: 1024px) {
  .cm-section > .container > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 640px) {
  .cm-section > .container > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* セクションリード文の改行非表示 */
  .cm-section-lead br {
    display: none;
  }

  /* プラットフォームカード */
  .cm-platforms {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* OSバッジ */
  .cm-os-badge {
    font-size: 11px;
    padding: 6px 10px;
  }

  /* CTAボタン */
  .cm-cta-section__btns {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .cm-cta-section__btns .cm-btn-primary,
  .cm-cta-section__btns .cm-btn-outline {
    width: 100%;
    max-width: 320px;
  }
}
