/* ===================================================
   column-4.css  — 記事共通スタイル継承 + フロー図
   =================================================== */

/* ---- 記事共通スタイル（column-1.css と同一） ---- */
.article-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
  padding-top: 40px;
}
.article-main { max-width: 720px; }
.article-header { margin-bottom: 48px; }
.article-tags { display: flex; gap: 8px; margin-bottom: 16px; }
.article-title {
  font-family: var(--font-ja-heading);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 12px;
}
.article-subtitle {
  font-family: var(--font-ja-heading);
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--mid-gray);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-hero-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 48px;
  max-height: 500px;
  object-fit: cover;
}
.article-body h2 {
  font-family: var(--font-ja-heading);
  font-size: 26px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
}
.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.article-body strong { color: var(--teal); font-weight: 600; }
.article-body ul {
  margin: 0 0 24px 0;
  padding-left: 1.4em;
}
.article-body ul li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.article-body ul li strong { color: var(--teal); font-weight: 600; }

/* サイドバー */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-toc {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-toc-title {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.sidebar-toc a {
  display: block;
  font-size: 15px;
  color: var(--mid-gray);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  line-height: 1.6;
}
.sidebar-toc a:last-child { border-bottom: none; }
.sidebar-toc a:hover { color: var(--teal); }
.sidebar-cta {
  background: var(--teal);
  border-radius: 4px;
  padding: 28px;
  text-align: center;
}
.sidebar-cta p {
  font-family: var(--font-ja-heading);
  font-size: 15px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.6;
}
.sidebar-cta a {
  display: block;
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px;
  border-radius: 4px;
  transition: background 0.2s;
}
.sidebar-cta a:hover { background: rgba(255,255,255,0.9); }

/* 前後ナビ */
.article-nav {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.article-nav a {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.article-nav a:hover { color: var(--deep-teal); gap: 10px; }
.article-nav a svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===================================================
   フロー図  .case-flow
   =================================================== */
.case-flow {
  margin: 40px 0 8px;
}

/* セクションラベル */
.case-flow__label {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* 1ステップ行：番号列 ＋ カード */
.case-flow__step {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* 左カラム：番号 ＋ 縦線 */
.case-flow__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}

.case-flow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.case-flow__line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), rgba(0,128,128,0.15));
  margin: 8px 0;
  min-height: 20px;
}

/* 矢印 */
.case-flow__arrow {
  display: flex;
  justify-content: flex-start;
  padding-left: 21px; /* (44px - 2px) / 2 で縦線と揃える */
  margin: 0 0 0 0;
}
.case-flow__arrow svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal);
  opacity: 0.5;
}

/* カードヘッダー：アイコン ＋ タグ・タイトル */
.case-flow__card-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.case-flow__icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

/* カード本体 */
.case-flow__card {
  flex: 1;
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  background: var(--white);
  margin-bottom: 4px;
}

/* STEP 1：抵抗・課題感 → やや抑えたトーン */
.case-flow__card--away {
  border-left: 4px solid #B0BEC5;
  background: #FAFBFB;
}

/* STEP 2：関係構築・入り込む → teal系ライト */
.case-flow__card--engage {
  border-left: 4px solid var(--mint);
  background: rgba(134,202,182,0.06);
}

/* STEP 3：成果・解決 → teal強調 */
.case-flow__card--result {
  border-left: 4px solid var(--teal);
  background: rgba(0,128,128,0.04);
}

/* カード内タグ */
.case-flow__tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.case-flow__tag--result {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

/* カード内タイトル */
.case-flow__title {
  font-family: var(--font-ja-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 10px;
  line-height: 1.4;
}

/* カード内本文 */
.case-flow__body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.case-flow__body strong {
  color: var(--teal);
  font-weight: 600;
}

/* カード内箇条書き */
.case-flow__bullets {
  margin: 0;
  padding-left: 1.2em;
  list-style: none;
}
.case-flow__bullets li {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 4px;
  position: relative;
  padding-left: 1em;
}
.case-flow__bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}

/* ===================================================
   レスポンシブ
   =================================================== */
@media (max-width: 1024px) {
  .article-wrapper { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .case-flow__step { gap: 16px; }
  .case-flow__left { width: 36px; }
  .case-flow__num  { width: 36px; height: 36px; font-size: 15px; }
  .case-flow__arrow { padding-left: 17px; }
  .case-flow__card  { padding: 18px 20px; }
  .case-flow__title { font-size: 16px; }
  .case-flow__body  { font-size: 15px; }
}
