@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');
@import 'tokens.css';

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-body); color: var(--color-ink); background: var(--color-paper); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }

/* ── Skip Link ── */
.skip-link { position: absolute; top: -100%; left: 0; background: var(--color-accent); color: #fff; padding: var(--space-3) var(--space-6); z-index: 1000; font-size: var(--text-sm); text-decoration: none; transition: top var(--dur-base) var(--ease-out); }
.skip-link:focus { top: 0; }

/* ── Container ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-5); }

/* ── Fade-in ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════
   N6 MASTHEAD NAV
   ════════════════════════════════ */
.masthead { background: var(--color-masthead-bg); color: var(--color-masthead-fg); padding: var(--space-4) 0; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.masthead__brand { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: 0.12em; color: var(--color-masthead-fg); text-decoration: none; }
.masthead__nav { display: flex; gap: var(--space-6); list-style: none; }
.masthead__nav a { font-size: var(--text-sm); font-weight: 500; color: oklch(75% 0.01 240); text-decoration: none; letter-spacing: 0.03em; transition: color var(--dur-fast) var(--ease-out); white-space: nowrap; }
.masthead__nav a:hover, .masthead__nav a:focus-visible { color: var(--color-masthead-fg); }
.masthead__nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm); }
.masthead__toggle { display: none; background: none; border: none; cursor: pointer; color: var(--color-masthead-fg); padding: var(--space-2); }

@media (max-width: 640px) {
  .masthead__nav { display: none; }
  .masthead__nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-masthead-bg); padding: var(--space-4); gap: var(--space-3); z-index: 200; }
  .masthead__toggle { display: flex; }
  .masthead { position: relative; }
}

/* ════════════════════════════════
   HERO — Stat-Led macrostructure
   (hero image + headline + 3 stats strip)
   ════════════════════════════════ */
.hero { position: relative; min-height: clamp(320px, 45vh, 560px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: url('/images/recruit/jobs/information-systems/top.webp') center/cover no-repeat; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, oklch(10% 0.03 240 / 0.88) 0%, oklch(10% 0.03 240 / 0.45) 55%, oklch(10% 0.03 240 / 0.2) 100%); }
.hero__body { position: relative; z-index: 1; padding: var(--space-16) 0 0; }
.hero__eyebrow { display: inline-block; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: 0.04em; color: #fff; margin-bottom: var(--space-3); }
.hero__title { font-family: var(--font-display); font-size: var(--text-display); font-weight: 700; color: #fff; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: var(--space-3); overflow-wrap: anywhere; min-width: 0; }
.hero__sub { font-size: var(--text-2xl); font-weight: 300; color: oklch(88% 0.01 240); margin-bottom: var(--space-10); }

/* Stat strip */
.hero__stats { background: var(--color-surface); border-top: 3px solid var(--color-accent); display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__stat { padding: var(--space-6) var(--space-8); border-right: var(--rule-weight) solid var(--color-rule); }
.hero__stat:last-child { border-right: none; }
.hero__stat-num { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; color: var(--color-accent); line-height: 1; margin-bottom: var(--space-1); }
.hero__stat-label { font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.4; }
.hero__stat-note { display: block; font-size: var(--text-xs); color: var(--color-ink-3); margin-top: var(--space-1); }

@media (max-width: 640px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stat { border-right: none; border-bottom: var(--rule-weight) solid var(--color-rule); }
  .hero__stat:last-child { border-bottom: none; }
}

/* ════════════════════════════════
   SECTION COMMON
   ════════════════════════════════ */
.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--color-paper-2); }
.section--dark { background: var(--color-masthead-bg); color: var(--color-masthead-fg); }

.section__label { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-3); display: block; }
.section--dark .section__label { color: oklch(70% 0.14 250); }
.section__heading { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; color: var(--color-ink); line-height: 1.2; margin-bottom: var(--space-3); letter-spacing: -0.015em; overflow-wrap: anywhere; min-width: 0; }
.section--dark .section__heading { color: var(--color-masthead-fg); }
.section__desc { font-size: var(--text-base); color: var(--color-ink-2); max-width: 800px; margin-bottom: var(--space-lg); line-height: 1.75; }
.section--dark .section__desc { color: oklch(72% 0.01 240); }
.section__rule { width: 40px; height: 3px; background: var(--color-accent); border: none; margin: var(--space-4) 0 var(--space-8); }

/* ════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════ */
.about-grid { display: flex; flex-direction: column; gap: var(--space-10); }
@media (max-width: 768px) { .about-grid { gap: var(--space-8); } }

/* Age bar */
.age-bar-wrap { margin-bottom: var(--space-8); }
.age-bar-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-3); display: block; }
.age-bar { display: flex; height: 28px; border-radius: var(--radius-md); overflow: hidden; gap: 2px; }
.age-seg { display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; color: #fff; font-weight: 600; transition: opacity var(--dur-fast) var(--ease-out); min-width: 0; }
.age-seg span { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.age-seg--20 { background: var(--color-accent); }
.age-seg--30 { background: oklch(42% 0.17 250); }
.age-seg--40 { background: oklch(35% 0.14 250); }
.age-seg--50 { background: oklch(28% 0.10 250); }
.age-seg--60 { background: oklch(22% 0.06 250); }
.age-list { display: none; list-style: none; margin-top: var(--space-4); }
.age-list li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-ink-2); padding: var(--space-2) 0; }
.age-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.age-dot--20 { background: var(--color-accent); }
.age-dot--30 { background: oklch(42% 0.17 250); }
.age-dot--40 { background: oklch(35% 0.14 250); }
.age-dot--50 { background: oklch(28% 0.10 250); }
.age-dot--60 { background: oklch(22% 0.06 250); }
@media (max-width: 480px) { .age-bar { display: none; } .age-list { display: block; } }

/* Location */
.location-wrap { margin-bottom: var(--space-8); }
.location-title { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-2); display: block; }
.location-note { font-size: var(--text-sm); color: var(--color-ink-2); margin-bottom: var(--space-4); }
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.location-item { display: flex; flex-direction: column; align-items: center; padding: var(--space-4) var(--space-2); background: var(--color-paper-2); border-radius: var(--radius-md); border: var(--rule-weight) solid var(--color-rule); }
.location-pct { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--color-accent); line-height: 1; }
.location-name { font-size: var(--text-xs); color: var(--color-ink-3); margin-top: var(--space-1); }
@media (max-width: 480px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }

/* Tech stack */
.techstack { margin-top: 0; }
.techstack__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-6); }
.techstack__cat { margin-bottom: var(--space-6); }
.techstack__cat-name { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink-3); margin-bottom: var(--space-3); padding-bottom: var(--space-2); border-bottom: var(--rule-weight) solid var(--color-rule); }
/* フロントエンド: 横並びアイコンカード */
.techstack__items--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 480px) { .techstack__items--grid { grid-template-columns: repeat(2, 1fr) !important; } }
.tech-icon-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-3); background: var(--color-surface); border: var(--rule-weight) solid var(--color-rule); border-radius: var(--radius-lg); text-align: center; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.tech-icon-card:hover { border-color: var(--color-accent); }
.tech-icon-card__logo { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); flex-shrink: 0; }
.tech-icon-card__name { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
/* 他カテゴリ: 縦並びリスト */
.techstack__items { display: flex; flex-direction: column; gap: var(--space-2); }
.tech-tag { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-paper-2); border: var(--rule-weight) solid var(--color-rule); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.tech-tag:hover { border-color: var(--color-accent); background: var(--color-accent-light); transform: translateX(4px); }
.tech-tag svg { color: var(--color-accent); flex-shrink: 0; }

/* AI block */
.ai-block { margin-top: var(--space-6); padding: var(--space-6); border-left: 3px solid var(--color-accent); background: var(--color-accent-light); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.ai-block__title { font-size: var(--text-base); font-weight: 600; color: var(--color-accent-hover); margin-bottom: var(--space-2); }
.ai-block__text { font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.7; }

/* ════════════════════════════════
   WORKSTYLE SECTION
   ════════════════════════════════ */
.workstyle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-bottom: var(--space-10); }
@media (max-width: 640px) { .workstyle-grid { grid-template-columns: 1fr; } }
.work-card { background: var(--color-surface); border: var(--rule-weight) solid var(--color-rule); border-radius: var(--radius-lg); padding: var(--space-6); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.work-card:hover { border-color: var(--color-accent); }
.work-card:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.work-card__num { width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent); color: #fff; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; text-align: center; line-height: 28px; flex-shrink: 0; }
.work-card__header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.work-card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); margin-bottom: 0; }
.work-card__text { font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.75; }
.workstyle-fig { text-align: center; }
.workstyle-fig img { max-width: 100%; height: auto; max-height: 400px; object-fit: cover; border-radius: var(--radius-lg); }
.workstyle-fig figcaption { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-ink-3); }

/* ════════════════════════════════
   BUSINESS SECTION
   ════════════════════════════════ */
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 1024px) { .business-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .business-grid { grid-template-columns: 1fr; } }
.biz-card { border: var(--rule-weight) solid var(--color-rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.biz-card:hover { border-color: var(--color-accent); }
.biz-card__img { display: block; width: 100%; height: 180px; object-fit: cover; }
.biz-card__body { padding: var(--space-5) var(--space-5) var(--space-6); }
.biz-card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-3); }
.biz-card__text { font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.75; }

/* ════════════════════════════════
   COMPARISON SECTION (light accent — NOT dark)
   ════════════════════════════════ */
.section--accent { background: var(--color-accent-light); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 640px) { .comparison-grid { grid-template-columns: 1fr; } }
.cmp-col { padding: var(--space-8); border-radius: var(--radius-lg); border: var(--rule-weight) solid var(--color-rule); background: var(--color-surface); }
.cmp-col--paltac { border-color: var(--color-accent); border-width: 2px; background: #fff; box-shadow: 0 4px 24px oklch(50% 0.18 250 / 0.10); }
.cmp-col__title { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-ink-2); margin-bottom: var(--space-6); }
.cmp-col--paltac .cmp-col__title { color: var(--color-accent); }
.cmp-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.cmp-list li { font-size: var(--text-sm); color: var(--color-ink-2); display: flex; align-items: center; gap: var(--space-3); }
.cmp-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--color-ink-3); flex-shrink: 0; }
.cmp-list li.highlight { color: var(--color-ink); font-weight: 600; }
.cmp-list li.highlight::before { background: var(--color-accent); width: 7px; height: 7px; }
.cmp-message { text-align: center; margin-top: var(--space-10); font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--color-accent); }

/* ════════════════════════════════
   DOMAIN SECTION
   ════════════════════════════════ */
.domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 640px) { .domain-grid { grid-template-columns: 1fr; } }
.domain-card { background: var(--color-surface); border: var(--rule-weight) solid var(--color-rule); border-radius: var(--radius-lg); padding: var(--space-6); border-top: 3px solid var(--color-accent); }
.domain-card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-3); }
.domain-card__text { font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.75; }

/* ════════════════════════════════
   案B: 横並びステッパー
   教育制度・キャリア共通ステップで使用
   ════════════════════════════════ */
.hstepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--space-10);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hstepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  position: relative;
}
/* ステップ間のコネクタ線 */
.hstepper__item + .hstepper__item::before {
  content: '';
  position: absolute;
  top: 22px;
  right: 50%;
  left: calc(-50% + 22px);
  height: 2px;
  background: var(--color-rule);
  z-index: 0;
}
/* 丸番号 */
.hstepper__circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-accent-light);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.hstepper__item:nth-child(2) .hstepper__circle { background: #3d65d0; box-shadow: 0 0 0 4px #e8edfa; }
.hstepper__item:nth-child(3) .hstepper__circle { background: #2d4db8; box-shadow: 0 0 0 4px #e4eaf8; }
/* 共通ステップ用グレー */
.hstepper--common .hstepper__circle { background: #64748b; box-shadow: 0 0 0 4px #f1f5f9; }
/* テキスト部 */
.hstepper__body {
  text-align: center;
  margin-top: var(--space-3);
  padding: 0 var(--space-2);
}
.hstepper__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-1);
}
.hstepper__item:nth-child(2) .hstepper__label { color: #3d65d0; }
.hstepper__item:nth-child(3) .hstepper__label { color: #2d4db8; }
.hstepper--common .hstepper__item .hstepper__label { color: #64748b; }
.hstepper__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
  display: block;
  margin-bottom: var(--space-1);
}
.hstepper__dur {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  display: block;
}

/* 詳細カードグリッド（ステッパー直下） */
.hstepper-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
@media (max-width: 768px) { .hstepper-cards { grid-template-columns: 1fr; gap: var(--space-4); } }
.hstepper-card {
  background: var(--color-surface);
  border: var(--rule-weight) solid var(--color-rule);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-accent);
  padding: var(--space-6);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  /* カードの高さを揃えるためFlexboxで配置 */
  display: flex;
  flex-direction: column;
}
.hstepper-card:nth-child(2) { border-top-color: #3d65d0; }
.hstepper-card:nth-child(3) { border-top-color: #2d4db8; }
.hstepper-card:hover { border-color: var(--color-accent); }
.hstepper-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}
.hstepper-card__text {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.75;
  margin-bottom: var(--space-4);
  /* テキストが伸びて残りのスペースを埋める */
  flex: 1;
}
.hstepper-card__dur {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-3);
  padding-top: var(--space-3);
  border-top: var(--rule-weight) solid var(--color-rule);
  display: block;
  /* 下に固定 */
  margin-top: auto;
}

/* モバイル: hstepper を縦積み */
@media (max-width: 600px) {
  .hstepper {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    overflow-x: visible;
  }
  .hstepper__item {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4);
    width: 100%;
  }
  .hstepper__item + .hstepper__item::before {
    display: none;
  }
  .hstepper__body {
    text-align: left;
    margin-top: 0;
  }
}

/* ════════════════════════════════
   EDUCATION SECTION
   ════════════════════════════════ */
/* 旧スタイル（念のため残す） */
.edu-card__step  { display: none; }
.edu-card__title { display: none; }
.edu-card__text  { display: none; }
.edu-card__dur   { display: none; }

/* ════════════════════════════════
   縦接続 → 横分岐 キャリアパス (cvp)
   STEP01・02: 中央縦 → STEP03で左右分岐
   ════════════════════════════════ */
.career-path-wrap { margin-bottom: var(--space-10); }

/* 共通ステップ: 中央寄せ縦並び */
.cvp-center {
  display: flex;
  justify-content: center;
}
.cvp-step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface);
  border: var(--rule-weight) solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-8);
  min-width: 240px;
  max-width: 360px;
  width: 100%;
}
.cvp-step--common { border-top: 3px solid #64748b; }
.cvp-step__circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: #64748b; color: #fff;
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px #f1f5f9;
}
.cvp-step__body { display: flex; flex-direction: column; gap: 2px; }
.cvp-step__label {
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #64748b;
}
.cvp-step__title {
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--color-ink);
}
.cvp-step__desc { font-size: var(--text-xs); color: var(--color-ink-3); }

/* 縦の接続線 */
.cvp-vline {
  display: flex; justify-content: center;
  height: 32px;
}
.cvp-vline::after {
  content: '';
  width: 2px; height: 100%;
  background: var(--color-rule);
}
.cvp-vline--mgmt::after { background: #3b82f6; }
.cvp-vline--tech::after  { background: #10b981; }

/* 分岐ライン: 縦→横 */
.cvp-fork-area {
  display: flex; flex-direction: column; align-items: center;
  height: 48px; position: relative;
}
.cvp-fork-vline {
  width: 2px; height: 24px;
  background: var(--color-rule);
}
.cvp-fork-hlines {
  width: 100%; display: flex;
  position: absolute; bottom: 0;
}
.cvp-fork-hline {
  flex: 1; height: 2px;
  background: var(--color-rule);
  position: relative;
}
.cvp-fork-hline--left  { margin-right: 1px; }
.cvp-fork-hline--right { margin-left: 1px; }
/* 両端に下向き短線 */
.cvp-fork-hline--left::after,
.cvp-fork-hline--right::after {
  content: ''; position: absolute; bottom: 0;
  width: 2px; height: 16px;
  background: var(--color-rule);
}
.cvp-fork-hline--left::after  { right: 0; }
.cvp-fork-hline--right::after { left: 0; }

/* 分岐後 3カラム（左:管理職 / 中:矢印 / 右:技術職） */
.cvp-branches {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  align-items: stretch;
}
@media (max-width: 640px) {
  .cvp-branches {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  /* モバイル: 管理職 → 矢印 → 技術職 の順に並べる */
  .cvp-route--mgmt { order: 1; }
  .cvp-switch      { order: 2; flex-direction: row; height: auto; padding: var(--space-2) 0; }
  .cvp-route--tech { order: 3; }
}

.cvp-route {
  background: var(--color-surface);
  border: var(--rule-weight) solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cvp-route--mgmt { border-top: 3px solid #3b82f6; }
.cvp-route--tech { border-top: 3px solid #10b981; }

/* ルート内ステップ: dotをまとめる wrapper に縦線を引く */
.cvp-route__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding: var(--space-3) 0;
}
/* dotの中心(left: 18px)を縦に結ぶ線 */
.cvp-route__steps::before {
  content: '';
  position: absolute;
  left: 17px;          /* dotの中心: width36/2 - 1px */
  top: 36px;           /* 最初のdot下端 */
  bottom: 18px;        /* 最後のdotの中心 */
  width: 2px;
  z-index: 0;
}
.cvp-route--mgmt .cvp-route__steps::before { background: #3b82f6; }
.cvp-route--tech .cvp-route__steps::before { background: #10b981; }

.cvp-vstep {
  display: flex; align-items: flex-start; gap: var(--space-3);
  position: relative; z-index: 1;
  padding: var(--space-3) 0;
}
/* cvp-vline は廃止 */
.cvp-vline { display: none; }
.cvp-vstep__dot {
  width: 36px; height: 36px; border-radius: 50%;
  color: #fff; font-family: var(--font-display);
  font-size: var(--text-sm); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cvp-vstep__dot--mgmt { background: #3b82f6; }
.cvp-vstep__dot--tech { background: #10b981; }
.cvp-vstep__body { padding-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.cvp-vstep__label {
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; display: block;
  margin-bottom: var(--space-1);
}
.cvp-vstep__label--mgmt { color: #3b82f6; }
.cvp-vstep__label--tech { color: #10b981; }
.cvp-vstep__body strong { font-size: var(--text-base); color: var(--color-ink); font-weight: 600; }
.cvp-vstep__body small  { font-size: var(--text-sm); color: var(--color-ink-3); }

/* 相互変更可能の中央矢印 */
.cvp-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  height: 100%;
}
.cvp-switch__label {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}
/* デスクトップ: 横矢印を表示、縦矢印を非表示 */
.cvp-switch__icon--v { display: none; }
.cvp-switch__icon--h { display: block; }
@media (max-width: 640px) {
  /* モバイル: 縦矢印を表示、横矢印を非表示 */
  .cvp-switch__icon--h { display: none; }
  .cvp-switch__icon--v { display: block; }
}

/* Career timeline badges */
.tl-badge { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: 2px 8px; border-radius: 20px; margin: 2px 2px 2px 0; white-space: nowrap; }
.tl-badge--common { background: oklch(88% 0.00 0);   color: oklch(30% 0.00 0); }
.tl-badge--mgmt   { background: oklch(91% 0.09 250); color: oklch(35% 0.18 240); }
.tl-badge--tech   { background: oklch(91% 0.08 155); color: oklch(30% 0.14 155); }
.career-footer { margin-top: var(--space-8); text-align: center; padding: var(--space-8); background: var(--color-surface); border: var(--rule-weight) solid var(--color-rule); border-radius: var(--radius-lg); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--color-ink); line-height: 1.6; }
.career-footer small { display: block; margin-top: var(--space-2); font-size: var(--text-sm); font-weight: 400; color: var(--color-ink-3); }

/* ════════════════════════════════
   案C: 左ライン縦型タイムライン
   キャリアタイムラインで使用
   ════════════════════════════════ */
.vtl {
  position: relative;
  padding-left: 56px;
  margin-bottom: var(--space-8);
}
/* 左の縦軸 */
.vtl::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #3b82f6 0%, #6366f1 35%, #8b5cf6 65%, #a855f7 100%);
}
.vtl__item {
  position: relative;
  margin-bottom: var(--space-8);
}
.vtl__item:last-child { margin-bottom: 0; }
/* 年代ドット */
.vtl__dot {
  position: absolute;
  left: -44px;
  top: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 0 4px var(--color-paper-2);
  z-index: 1;
}
.vtl__item:nth-child(1) .vtl__dot { background: #3b82f6; }
.vtl__item:nth-child(2) .vtl__dot { background: #6366f1; }
.vtl__item:nth-child(3) .vtl__dot { background: #8b5cf6; }
.vtl__item:nth-child(4) .vtl__dot { background: #a855f7; }
/* コンテンツ本体 */
.vtl__body {
  background: var(--color-surface);
  border: var(--rule-weight) solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.vtl__age {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  display: block;
}
.vtl__item:nth-child(1) .vtl__age { color: #3b82f6; }
.vtl__item:nth-child(2) .vtl__age { color: #6366f1; }
.vtl__item:nth-child(3) .vtl__age { color: #8b5cf6; }
.vtl__item:nth-child(4) .vtl__age { color: #a855f7; }
/* 2カラムで管理職/技術職を並べる */
.vtl__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) { .vtl__cols { grid-template-columns: 1fr; gap: var(--space-3); } }
.vtl__col {
  background: var(--color-paper-2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border-left: 3px solid transparent;
}
.vtl__col--mgmt { border-left-color: #3b82f6; }
.vtl__col--tech { border-left-color: #10b981; }
.vtl__col--common { border-left-color: #94a3b8; grid-column: 1 / -1; }
.vtl__col-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: block;
}
.vtl__col--mgmt .vtl__col-label   { color: #3b82f6; }
.vtl__col--tech .vtl__col-label   { color: #10b981; }
.vtl__col--common .vtl__col-label { color: #94a3b8; }
.vtl__col-roles { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* タイムライン凡例 */
.vtl-legend {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.vtl-legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}
.vtl-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .vtl { padding-left: 48px; }
  .vtl__dot { left: -38px; width: 36px; height: 36px; font-size: 0.7rem; }
  .vtl::before { left: 16px; }
}

/* ════════════════════════════════
   Ft5 STATEMENT FOOTER
   ════════════════════════════════ */
.footer { background: var(--color-masthead-bg); color: var(--color-masthead-fg); padding: var(--space-16) 0 var(--space-8); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-10); align-items: end; border-bottom: var(--rule-weight) solid oklch(28% 0.02 240); padding-bottom: var(--space-10); margin-bottom: var(--space-8); }
@media (max-width: 640px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; letter-spacing: 0.08em; color: var(--color-masthead-fg); }
.footer__tagline { font-size: var(--text-sm); color: oklch(60% 0.01 240); margin-top: var(--space-2); }
.footer__badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-5); border: var(--rule-weight) solid oklch(35% 0.04 250); border-radius: var(--radius-md); font-size: var(--text-sm); color: oklch(70% 0.10 250); font-weight: 500; }
.footer__copy { font-size: var(--text-xs); color: oklch(45% 0.01 240); text-align: center; }

/* ════════════════════════════════
   RESPONSIVE OVERRIDES (320–768px)
   ════════════════════════════════ */
@media (max-width: 414px) {
  .hero__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero__stat-num { font-size: var(--text-3xl); }
  .container { padding: 0 var(--space-4); }
}

/* ════════════════════════════════
   PIE CHART (SVG donut)
   ════════════════════════════════ */
.pie-wrap { display: flex; align-items: center; gap: var(--space-8); margin-bottom: var(--space-8); flex-wrap: wrap; }
.pie-wrap svg { flex-shrink: 0; }
.pie-legend { display: flex; flex-direction: column; gap: var(--space-3); }
.pie-legend-item { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-base); }
.pie-legend-dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
.pie-legend-label { color: var(--color-ink-2); }
.pie-legend-pct { font-weight: 700; color: var(--color-ink); margin-left: auto; padding-left: var(--space-6); }

/* ════════════════════════════════
   VISUAL ENHANCEMENT
   ════════════════════════════════ */
/* Section icon badges */
.section__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--color-accent-light); color: var(--color-accent); margin-bottom: var(--space-4); }
/* Hero stat hover */
.hero__stat { transition: background var(--dur-fast) var(--ease-out); cursor: default; }
.hero__stat:hover { background: var(--color-paper-2); }
/* Edu card accent line animation */
.edu-card { border-top: 3px solid var(--color-accent); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.edu-card:hover { border-color: var(--color-accent); }
/* Domain card icon */
.domain-card { display: flex; flex-direction: column; gap: var(--space-2); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.domain-card:hover { border-color: var(--color-accent); }
.domain-card__icon { font-size: 1.5rem; margin-bottom: var(--space-1); }
/* Work card left accent */
.work-card { border-left: 3px solid transparent; }
.work-card:hover { border-left-color: var(--color-accent); }
/* Business card accent tag */
.biz-card__tag { display: inline-block; font-size: var(--text-xs); font-weight: 600; color: var(--color-accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-2); }