/* =====================================================
   トップページ「企業のAI人材を育てるパートナー」
   新しいセクション（hp-）と、既存セクションの見出しの調整
   設計書：docs/superpowers/specs/2026-10-20-top-ai-partner-design.md
   ===================================================== */

.renewal-home {
  --hp-ink: #0a2b5c;
  --hp-paper: #f3f6fb;
  --hp-grid-light: #d5dfee;
  --hp-grid-dark: rgba(255,255,255,0.08);
  --hp-blue: #2f6fd6;
  --hp-blue-on-dark: #9cc0ff;
  --hp-marker: #ffd84d;
  --hp-text: #1a2233;
  --hp-text-sub: #5b6678;
  --hp-display: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --hp-body: 'BIZ UDPGothic', 'Noto Sans JP', sans-serif;
  --hp-mono: 'IBM Plex Mono', 'BIZ UDPGothic', monospace;
}

/* 方眼の地 */
.renewal-home .hp-hero,
.renewal-home .hp-map {
  background-color: var(--hp-ink);
  background-image:
    linear-gradient(var(--hp-grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--hp-grid-dark) 1px, transparent 1px);
  background-size: 32px 32px;
}
.renewal-home .hp-define,
.renewal-home .hp-cycle {
  background-color: var(--hp-paper);
  background-image:
    linear-gradient(var(--hp-grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--hp-grid-light) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── 共通 ── */
.renewal-home .hp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.renewal-home .hp-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.renewal-home .hp-sp-only { display: none; }

.renewal-home .hp-sec-head {
  margin-bottom: 48px;
  max-width: 900px;
}
.renewal-home .hp-eyebrow,
.renewal-home .rh-label {
  font-family: var(--hp-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}
.renewal-home .hp-eyebrow {
  color: var(--hp-blue);
  margin-bottom: 12px;
}
.renewal-home .hp-eyebrow::before { content: '— '; }
.renewal-home .hp-sec-title {
  font-family: var(--hp-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
  margin-bottom: 16px;
}
.renewal-home .hp-sec-desc {
  font-family: var(--hp-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--hp-text-sub);
}
.renewal-home .hp-sec-head--light .hp-eyebrow { color: var(--hp-marker); }
.renewal-home .hp-sec-head--light .hp-sec-title { color: #fff; }
.renewal-home .hp-sec-head--light .hp-sec-desc { color: rgba(255,255,255,0.78); }

/* ボタン */
.renewal-home .hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.renewal-home .hp-btn:hover { transform: translateY(-2px); }
.renewal-home .hp-btn--marker { background: var(--hp-marker); color: var(--hp-ink); }
.renewal-home .hp-btn--marker:hover { background: #ffe47f; color: var(--hp-ink); }
.renewal-home .hp-btn--line { border-color: rgba(255,255,255,0.6); color: #fff; }
.renewal-home .hp-btn--line:hover { background: #fff; color: var(--hp-ink); }
.renewal-home .hp-btn--ink { background: var(--hp-ink); color: #fff; }
.renewal-home .hp-btn--ink:hover { background: #163f7d; color: #fff; }

/* キーボード操作時のフォーカス */
.renewal-home a:focus-visible,
.renewal-home button:focus-visible {
  outline: 3px solid var(--hp-blue);
  outline-offset: 3px;
}
.renewal-home .hp-hero a:focus-visible,
.renewal-home .hp-map a:focus-visible,
.renewal-home .hp-map button:focus-visible {
  outline-color: var(--hp-blue-on-dark);
}

/* =====================================================
   ヒーロー
   ===================================================== */
.renewal-home .hp-hero {
  padding: 150px 0 0;
  color: #fff;
  overflow: hidden;
}
.renewal-home .hp-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.renewal-home .hp-hero__lead-in {
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hp-marker);
  margin-bottom: 20px;
}
.renewal-home .hp-hero__title {
  font-family: var(--hp-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7.2vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 28px;
}
.renewal-home .hp-hero__title span { display: inline-block; }
.renewal-home .hp-hero__title span + span {
  display: block;
  width: fit-content;
  background: linear-gradient(transparent 62%, rgba(255,216,77,0.9) 62%, rgba(255,216,77,0.9) 90%, transparent 90%);
}
.renewal-home .hp-hero__sub {
  font-family: var(--hp-body);
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.86);
  margin-bottom: 36px;
}
.renewal-home .hp-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 育成ルートの図 */
.renewal-home .hp-hero__chart { margin: 0; }
.renewal-home .hp-route-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.renewal-home .hp-route-chart text {
  font-family: var(--hp-mono);
  font-size: 13px;
  fill: rgba(255,255,255,0.6);
}
.renewal-home .hp-route-chart__cols text {
  text-anchor: middle;
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 15px;
  fill: #fff;
}
.renewal-home .hp-route-chart__dots circle { fill: rgba(255,255,255,0.35); }
.renewal-home .hp-route-chart__route {
  fill: none;
  stroke: var(--hp-marker);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.renewal-home .hp-route-chart__nodes circle {
  fill: var(--hp-ink);
  stroke: var(--hp-marker);
  stroke-width: 4;
}
.renewal-home .hp-hero__chart figcaption {
  font-family: var(--hp-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-align: right;
  margin-top: 8px;
}
/* JavaScriptが動くときだけ、読み込み時に線を1回引く */
.hp-js .renewal-home .hp-route-chart__route { animation: hp-draw 1.2s 0.3s ease-in-out both; }
.hp-js .renewal-home .hp-route-chart__nodes circle { animation: hp-node 0.3s ease-out both; }
.hp-js .renewal-home .hp-route-chart__nodes circle:nth-child(1) { animation-delay: 0.3s; }
.hp-js .renewal-home .hp-route-chart__nodes circle:nth-child(2) { animation-delay: 0.9s; }
.hp-js .renewal-home .hp-route-chart__nodes circle:nth-child(3) { animation-delay: 1.5s; }
@keyframes hp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hp-node { from { opacity: 0; } to { opacity: 1; } }

/* 実績の帯 */
.renewal-home .hp-stats {
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.renewal-home .hp-stats__item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 4px;
  color: #fff;
}
.renewal-home .hp-stats .rh-stats__num {
  font-family: var(--hp-mono);
  font-weight: 500;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.2;
}
.renewal-home .hp-stats__unit { font-family: var(--hp-body); font-size: 0.85rem; }
.renewal-home .hp-stats__label {
  flex-basis: 100%;
  font-family: var(--hp-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* =====================================================
   AI人材とは
   ===================================================== */
.renewal-home .hp-define { padding: 96px 0; }
.renewal-home .hp-define__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--hp-ink);
}
.renewal-home .hp-define__item {
  padding: 28px 28px 32px;
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--hp-grid-light);
}
.renewal-home .hp-define__item + .hp-define__item { border-left: 1px solid var(--hp-grid-light); }
.renewal-home .hp-define__tag {
  font-family: var(--hp-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--hp-blue);
  margin-bottom: 8px;
}
.renewal-home .hp-define__name {
  font-family: var(--hp-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--hp-ink);
  margin-bottom: 16px;
}
.renewal-home .hp-define__text {
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--hp-text);
  margin-bottom: 12px;
}
.renewal-home .hp-define__example {
  font-family: var(--hp-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--hp-text-sub);
}

/* =====================================================
   AI人材育成マップ
   ===================================================== */
.renewal-home .hp-map { padding: 96px 0; color: #fff; }

.renewal-home .hp-map__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.renewal-home .hp-map__filter[hidden] { display: none; }
.renewal-home .hp-map__filter-label {
  font-family: var(--hp-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-right: 4px;
}
.renewal-home .hp-map__filter-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.renewal-home .hp-map__filter-btn:hover { background: rgba(255,255,255,0.12); }
.renewal-home .hp-map__filter-btn[aria-pressed="true"] {
  background: var(--hp-marker);
  border-color: var(--hp-marker);
  color: var(--hp-ink);
}

.renewal-home .hp-map__table {
  width: calc(100% + 40px);
  margin: 0 -20px;
  border-collapse: separate;
  border-spacing: 20px 8px;
  table-layout: fixed;
}
.renewal-home .hp-map__table thead th {
  font-family: var(--hp-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  text-align: left;
  padding: 0 12px 4px;
  border-bottom: 2px solid var(--hp-marker);
}
.renewal-home .hp-map__table thead .hp-map__corner {
  width: 18%;
  font-family: var(--hp-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  border-bottom-color: rgba(255,255,255,0.3);
}
.renewal-home .hp-map__row { transition: opacity 0.25s; }
.renewal-home .hp-map__who {
  text-align: left;
  vertical-align: middle;
  padding: 12px;
  border-left: 4px solid rgba(255,255,255,0.25);
  transition: border-color 0.25s;
}
.renewal-home .hp-map__who-name {
  display: block;
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 1.05rem;
}
.renewal-home .hp-map__who-sub {
  display: block;
  font-family: var(--hp-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.renewal-home .hp-map__cell {
  position: relative;
  vertical-align: middle;
  padding: 0;
}
.renewal-home .hp-map__courses {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.renewal-home .hp-map__course,
.renewal-home .hp-map__open {
  display: block;
  padding: 12px 14px;
  border-radius: 4px;
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.renewal-home .hp-map__course {
  background: #fff;
  color: var(--hp-ink);
}
.renewal-home .hp-map__course:hover { background: var(--hp-marker); color: var(--hp-ink); }
.renewal-home .hp-map__course span,
.renewal-home .hp-map__open span {
  display: block;
  font-weight: 400;
  font-size: 0.76rem;
  margin-top: 2px;
}
.renewal-home .hp-map__course span { color: var(--hp-text-sub); }
.renewal-home .hp-map__open {
  position: relative;
  z-index: 1;
  border: 2px dashed rgba(255,216,77,0.7);
  background: var(--hp-ink);
  color: var(--hp-marker);
}
.renewal-home .hp-map__open span { color: rgba(255,255,255,0.65); }
.renewal-home .hp-map__open:hover { background: #24406a; color: var(--hp-marker); }

/* 対象者を選んだとき：ほかの行を薄くし、選んだ行を黄色のルートでつなぐ */
.renewal-home .hp-map__table[data-active] .hp-map__row { opacity: 0.32; }
.renewal-home .hp-map__table[data-active] .hp-map__row.is-active { opacity: 1; }
.renewal-home .hp-map__row.is-active .hp-map__who { border-left-color: var(--hp-marker); }

.renewal-home .hp-map__note {
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hp-marker);
  margin-top: 28px;
}
.renewal-home .hp-map__cta { margin-top: 20px; }

/* =====================================================
   1年の伴走
   ===================================================== */
.renewal-home .hp-cycle { padding: 96px 0; }
.renewal-home .hp-cycle__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.renewal-home .hp-cycle__step {
  background: #fff;
  border: 1px solid var(--hp-grid-light);
  border-top: 4px solid var(--hp-ink);
  padding: 20px 18px 24px;
}
.renewal-home .hp-cycle__num {
  display: block;
  font-family: var(--hp-mono);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: var(--hp-blue);
  margin-bottom: 14px;
}
.renewal-home .hp-cycle__title {
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--hp-ink);
  margin-bottom: 10px;
}
.renewal-home .hp-cycle__text {
  font-family: var(--hp-body);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--hp-text-sub);
}
/* 5から1へ戻る線：5の下から1の下まで点線でつなぎ、1の側を矢印にする */
.renewal-home .hp-cycle__loop {
  position: relative;
  margin: 0 10%;
  height: 48px;
  border: 2px dashed var(--hp-ink);
  border-top: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--hp-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hp-ink);
}
.renewal-home .hp-cycle__loop::before {
  content: '';
  position: absolute;
  top: 0;
  left: -9px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid var(--hp-ink);
}
.renewal-home .hp-cycle__loop span {
  position: relative;
  bottom: -0.6em;
  padding: 0 12px;
  background: var(--hp-paper);
  line-height: 1.2;
}
.renewal-home .hp-cycle__cta { margin-top: 40px; text-align: center; }

/* =====================================================
   既存セクションの調整
   ===================================================== */
.renewal-home .rh-final-cta__title { font-family: var(--hp-display); }

/* JavaScriptが動かないときは、出現の動きを使わず最初から表示する */
html:not(.hp-js) .renewal-home .rh-fade-up {
  opacity: 1;
  transform: none;
}

/* =====================================================
   PC：選んだ行の講座を黄色のルートでつなぐ
   ===================================================== */
@media screen and (min-width: 751px) {
  /* 線は選んだ行にだけ作り、左から順に伸ばす */
  .renewal-home .hp-map__row.is-active .hp-map__cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 4px;
    margin-top: -2px;
    background: var(--hp-marker);
    transform-origin: left center;
    animation: hp-line 0.3s ease-out both;
  }
  .renewal-home .hp-map__row.is-active .hp-map__cell:nth-child(3)::before { animation-delay: 0.2s; }
  .renewal-home .hp-map__row.is-active .hp-map__cell:nth-child(4)::before { animation-delay: 0.4s; right: 50%; }
}
@keyframes hp-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 講座名は配列で指定した位置（<wbr>）でだけ改行する。入りきらないときだけ途中で折る */
.renewal-home .hp-map__course {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 日本語は文節で折り返す（対応していないブラウザは通常の折り返し） */
.renewal-home .hp-map__open,
.renewal-home .hp-define__text,
.renewal-home .hp-define__example,
.renewal-home .hp-cycle__title,
.renewal-home .hp-sec-title,
.renewal-home .hp-sec-desc,
.renewal-home .hp-hero__sub {
  word-break: auto-phrase;
}

/* =====================================================
   タブレット
   ===================================================== */
@media screen and (min-width: 751px) and (max-width: 1024px) {
  .renewal-home .hp-hero { padding-top: 130px; }
  .renewal-home .hp-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .renewal-home .hp-hero__chart { max-width: 520px; }
  .renewal-home .hp-cycle__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================
   スマホ
   ===================================================== */
@media screen and (max-width: 750px) {
  .renewal-home .hp-sp-only { display: inline; }
  .renewal-home .hp-pc-only { display: none; }
  .renewal-home .hp-inner { padding: 0 16px; }
  .renewal-home .hp-sec-head { margin-bottom: 32px; }

  .renewal-home .hp-hero { padding-top: calc(20.333vw + 36px); }
  .renewal-home .hp-hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 0 16px 40px; }
  .renewal-home .hp-hero__lead-in { font-size: 0.92rem; margin-bottom: 14px; }
  .renewal-home .hp-hero__title { font-size: clamp(2.6rem, 13vw, 3.6rem); margin-bottom: 20px; }
  .renewal-home .hp-hero__sub { font-size: 0.95rem; margin-bottom: 28px; }
  .renewal-home .hp-hero__btns .hp-btn { flex: 1 1 100%; }
  .renewal-home .hp-stats { grid-template-columns: repeat(2, 1fr); row-gap: 16px; padding: 20px 16px 24px; }

  .renewal-home .hp-define,
  .renewal-home .hp-map,
  .renewal-home .hp-cycle { padding: 64px 0; }
  .renewal-home .hp-define__list { grid-template-columns: 1fr; }
  .renewal-home .hp-define__item + .hp-define__item { border-left: none; }
  .renewal-home .hp-define__item { padding: 24px 20px; }

  /* 育成マップは対象者ごとの縦積みにする */
  .renewal-home .hp-map__table,
  .renewal-home .hp-map__table tbody,
  .renewal-home .hp-map__table tr,
  .renewal-home .hp-map__table th,
  .renewal-home .hp-map__table td { display: block; width: auto; }
  .renewal-home .hp-map__table { margin: 0; }
  .renewal-home .hp-map__table thead { display: none; }
  .renewal-home .hp-map__row {
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
  }
  .renewal-home .hp-map__who { padding: 4px 12px; margin-bottom: 12px; }
  .renewal-home .hp-map__who-name,
  .renewal-home .hp-map__who-sub { display: inline; }
  .renewal-home .hp-map__who-sub { margin-left: 8px; }
  .renewal-home .hp-map__cell { margin-bottom: 12px; }
  .renewal-home .hp-map__cell::before {
    content: attr(data-step);
    display: block;
    font-family: var(--hp-display);
    font-weight: 900;
    font-size: 1rem;
    color: var(--hp-marker);
    margin-bottom: 6px;
  }
  .renewal-home .hp-map__cta .hp-btn { width: 100%; }

  .renewal-home .hp-cycle__steps { grid-template-columns: 1fr; gap: 12px; }
  .renewal-home .hp-cycle__step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    padding: 18px 16px;
  }
  .renewal-home .hp-cycle__num { grid-row: span 2; font-size: 1.6rem; }
  .renewal-home .hp-cycle__cta .hp-btn { width: 100%; }
}

/* タブレット・スマホでは戻る線を引かず、文だけを出す */
@media screen and (max-width: 1024px) {
  .renewal-home .hp-cycle__loop {
    display: block;
    height: auto;
    margin: 16px 0 0;
    border: none;
    text-align: center;
  }
  .renewal-home .hp-cycle__loop::before { content: '↻ '; position: static; border: none; }
  .renewal-home .hp-cycle__loop span { position: static; padding: 0; background: none; }
}

/* 動きを減らす設定のときは、線を引く動き・出現の動きを止める */
@media (prefers-reduced-motion: reduce) {
  .hp-js .renewal-home .hp-route-chart__route,
  .hp-js .renewal-home .hp-route-chart__nodes circle { animation: none; }
  .renewal-home .hp-map__row.is-active .hp-map__cell::before { animation: none; }
  .renewal-home .hp-map__row { transition: none; }
  .renewal-home .rh-fade-up { opacity: 1; transform: none; transition: none; }
  .renewal-home .hp-btn:hover { transform: none; }
}
