/* ================================================================
   世界史人物ナビゲーション スタイルシート
   スコープ: #world-history-person-guide 配下のみ (汎用セレクタ禁止)
   ================================================================ */

#world-history-person-guide {
  /* デザイントークン (ムダシル。ブランド継承) */
  --wh-bg: #FDF8EE;
  --wh-ink: #1A1818;
  --wh-sub: #5A5248;
  --wh-line: #E8DFCE;
  --wh-brand: #FF6B35;
  --wh-navy: #2B4C7E;
  --wh-yellow: #F4C842;
  --wh-card-bg: #FFFFFF;

  /* 時代別アクセント */
  --wh-era-kodai: #C8920A;
  --wh-era-kodai-soft: #FBF0D2;
  --wh-era-chusei: #2B4C7E;
  --wh-era-chusei-soft: #E2E9F2;
  --wh-era-kinsei: #3D7A52;
  --wh-era-kinsei-soft: #E0EDE3;
  --wh-era-kindai: #B83260;
  --wh-era-kindai-soft: #FCE2E8;
  --wh-era-gendai: #5A6374;
  --wh-era-gendai-soft: #EAECEF;

  --wh-radius: 14px;
  --wh-shadow: 0 2px 10px rgba(26, 24, 24, 0.07);
  --wh-maxw: 1080px;

  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--wh-ink);
  background: var(--wh-bg);
  line-height: 1.7;
  font-size: 16px;
  padding: 0 16px 72px;
  box-sizing: border-box;
}

#world-history-person-guide *,
#world-history-person-guide *::before,
#world-history-person-guide *::after {
  box-sizing: border-box;
}

#world-history-person-guide .wh-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#world-history-person-guide a {
  color: var(--wh-navy);
}

#world-history-person-guide :focus-visible {
  outline: 3px solid var(--wh-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 見出し ===== */
#world-history-person-guide .wh-h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 6px solid var(--wh-brand);
  line-height: 1.4;
}

#world-history-person-guide .wh-section {
  max-width: var(--wh-maxw);
  margin: 0 auto;
  padding: 40px 0 8px;
}

#world-history-person-guide .wh-section-lead {
  margin: 0 0 18px;
  color: var(--wh-sub);
  font-size: 0.95rem;
}

/* ===== 1. ヒーロー ===== */
#world-history-person-guide .wh-hero {
  max-width: var(--wh-maxw);
  margin: 0 auto;
  padding: 44px 0 10px;
  text-align: center;
}

#world-history-person-guide .wh-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 14px;
  background: var(--wh-navy);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#world-history-person-guide .wh-title {
  margin: 0 0 12px;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.3;
}

#world-history-person-guide .wh-lead {
  margin: 0 auto 22px;
  max-width: 620px;
  color: var(--wh-sub);
  font-size: 0.98rem;
}

#world-history-person-guide .wh-hero-search {
  max-width: 560px;
  margin: 0 auto 16px;
}

#world-history-person-guide .wh-searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wh-card-bg);
  border: 2px solid var(--wh-line);
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color 0.15s;
}

#world-history-person-guide .wh-searchbox:focus-within {
  border-color: var(--wh-brand);
}

#world-history-person-guide .wh-search-ic {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--wh-sub);
}

#world-history-person-guide .wh-searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--wh-ink);
  outline: none;
}

#world-history-person-guide .wh-hero-jumps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

#world-history-person-guide .wh-jump-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--wh-brand);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--wh-shadow);
  transition: transform 0.15s, opacity 0.15s;
}

#world-history-person-guide .wh-jump-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

#world-history-person-guide .wh-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

#world-history-person-guide .wh-stat {
  background: var(--wh-card-bg);
  border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius);
  padding: 10px 22px;
  min-width: 120px;
}

#world-history-person-guide .wh-stat dt {
  font-size: 0.75rem;
  color: var(--wh-sub);
  font-weight: 700;
}

#world-history-person-guide .wh-stat dd {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--wh-navy);
  line-height: 1.2;
}

#world-history-person-guide .wh-stat dd span {
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 2px;
  color: var(--wh-sub);
}

/* ===== 2. 流れ ===== */
#world-history-person-guide .wh-flow-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#world-history-person-guide .wh-flow-era {
  background: var(--wh-card-bg);
  border: 1px solid var(--wh-line);
  border-left: 8px solid var(--wh-accent, var(--wh-navy));
  border-radius: var(--wh-radius);
  box-shadow: var(--wh-shadow);
  padding: 18px 20px;
}

#world-history-person-guide .wh-flow-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

#world-history-person-guide .wh-flow-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wh-accent, var(--wh-navy));
}

#world-history-person-guide .wh-flow-years {
  font-size: 0.85rem;
  color: var(--wh-sub);
  font-weight: 700;
}

#world-history-person-guide .wh-flow-desc {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

#world-history-person-guide .wh-flow-regions {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--wh-sub);
}

#world-history-person-guide .wh-flow-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

#world-history-person-guide .wh-flow-more {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid var(--wh-accent, var(--wh-navy));
  color: var(--wh-accent, var(--wh-navy));
  background: transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#world-history-person-guide .wh-flow-more:hover {
  background: var(--wh-accent, var(--wh-navy));
  color: #FFFFFF;
}

/* ===== 3. 時代タブ ===== */
#world-history-person-guide .wh-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}

#world-history-person-guide .wh-tab {
  flex: none;
  padding: 9px 20px;
  border-radius: 999px;
  border: 2px solid var(--wh-line);
  background: var(--wh-card-bg);
  color: var(--wh-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

#world-history-person-guide .wh-tab[aria-selected="true"] {
  background: var(--wh-accent, var(--wh-navy));
  border-color: var(--wh-accent, var(--wh-navy));
  color: #FFFFFF;
}

#world-history-person-guide .wh-tab-count {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-left: 4px;
}

/* ===== 4. 地域グリッド ===== */
#world-history-person-guide .wh-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

#world-history-person-guide .wh-region-card {
  text-align: left;
  background: var(--wh-card-bg);
  border: 2px solid var(--wh-line);
  border-radius: var(--wh-radius);
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

#world-history-person-guide .wh-region-card:hover {
  border-color: var(--wh-navy);
  transform: translateY(-1px);
}

#world-history-person-guide .wh-region-card[aria-pressed="true"] {
  border-color: var(--wh-brand);
  background: #FFF4EC;
}

#world-history-person-guide .wh-region-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

#world-history-person-guide .wh-region-count {
  font-size: 0.8rem;
  color: var(--wh-brand);
  font-weight: 800;
}

#world-history-person-guide .wh-region-desc {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--wh-sub);
  line-height: 1.5;
}

#world-history-person-guide .wh-region-reps {
  margin: 0;
  font-size: 0.8rem;
  color: var(--wh-navy);
  font-weight: 700;
}

#world-history-person-guide .wh-region-result,
#world-history-person-guide .wh-theme-result {
  margin-top: 18px;
}

/* ===== 5. テーマチップ ===== */
#world-history-person-guide .wh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

#world-history-person-guide .wh-chips--sub {
  padding-top: 2px;
}

#world-history-person-guide .wh-chips-label {
  font-size: 0.82rem;
  color: var(--wh-sub);
  font-weight: 700;
  align-self: center;
}

#world-history-person-guide .wh-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 2px solid var(--wh-line);
  background: var(--wh-card-bg);
  color: var(--wh-ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

#world-history-person-guide .wh-chip:hover {
  border-color: var(--wh-navy);
}

#world-history-person-guide .wh-chip[aria-pressed="true"] {
  background: var(--wh-navy);
  border-color: var(--wh-navy);
  color: #FFFFFF;
}

#world-history-person-guide .wh-chip--sub {
  font-size: 0.8rem;
  padding: 5px 12px;
}

#world-history-person-guide .wh-chip-count {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 3px;
}

/* ===== 人物カード ===== */
#world-history-person-guide .wh-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

#world-history-person-guide .wh-card {
  display: flex;
  gap: 12px;
  background: var(--wh-card-bg);
  border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius);
  box-shadow: var(--wh-shadow);
  padding: 14px;
  text-decoration: none;
  color: var(--wh-ink);
  transition: transform 0.15s, border-color 0.15s;
}

#world-history-person-guide a.wh-card:hover {
  transform: translateY(-2px);
  border-color: var(--wh-accent, var(--wh-navy));
}

#world-history-person-guide .wh-card--nolink {
  opacity: 0.92;
}

#world-history-person-guide .wh-card-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wh-accent-soft, var(--wh-era-gendai-soft));
  color: var(--wh-accent, var(--wh-navy));
  overflow: hidden;
}

#world-history-person-guide .wh-card-icon svg {
  width: 30px;
  height: 30px;
}

#world-history-person-guide .wh-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#world-history-person-guide .wh-card-body {
  min-width: 0;
  flex: 1;
}

#world-history-person-guide .wh-card-name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.4;
}

#world-history-person-guide .wh-card-alias {
  font-size: 0.78rem;
  color: var(--wh-sub);
  margin-bottom: 2px;
}

#world-history-person-guide .wh-card-meta {
  font-size: 0.78rem;
  color: var(--wh-accent, var(--wh-navy));
  font-weight: 700;
  margin-bottom: 4px;
}

#world-history-person-guide .wh-card-summary {
  margin: 0 0 8px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--wh-sub);
}

#world-history-person-guide .wh-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#world-history-person-guide .wh-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--wh-bg);
  border: 1px solid var(--wh-line);
  color: var(--wh-sub);
}

#world-history-person-guide .wh-card-cta {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--wh-brand);
  white-space: nowrap;
}

#world-history-person-guide .wh-badge-pending {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: #F0EEE8;
  color: var(--wh-sub);
  white-space: nowrap;
}

/* ===== 7. 検索パネル ===== */
#world-history-person-guide .wh-search-panel {
  background: var(--wh-card-bg);
  border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius);
  box-shadow: var(--wh-shadow);
  padding: 16px 18px;
  margin-bottom: 18px;
}

#world-history-person-guide .wh-filters {
  margin-top: 12px;
  border-top: 1px dashed var(--wh-line);
  padding-top: 10px;
}

#world-history-person-guide .wh-filters summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--wh-navy);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#world-history-person-guide .wh-filters summary::-webkit-details-marker {
  display: none;
}

#world-history-person-guide .wh-filters summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform 0.15s;
}

#world-history-person-guide .wh-filters[open] summary::before {
  transform: rotate(90deg);
}

#world-history-person-guide .wh-filter-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  padding-top: 10px;
}

#world-history-person-guide .wh-filter {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wh-sub);
}

#world-history-person-guide .wh-filter select {
  font: inherit;
  font-size: 0.9rem;
  padding: 7px 10px;
  border-radius: 8px;
  border: 2px solid var(--wh-line);
  background: #FFFFFF;
  color: var(--wh-ink);
  min-width: 130px;
}

#world-history-person-guide .wh-clear-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--wh-line);
  background: transparent;
  color: var(--wh-sub);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

#world-history-person-guide .wh-clear-btn:hover {
  border-color: var(--wh-brand);
  color: var(--wh-brand);
}

#world-history-person-guide .wh-found {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--wh-sub);
}

#world-history-person-guide .wh-found b {
  color: var(--wh-brand);
  font-size: 1.2rem;
}

#world-history-person-guide .wh-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--wh-sub);
  font-size: 0.95rem;
}

#world-history-person-guide .wh-empty .wh-clear-btn {
  margin-top: 12px;
}

#world-history-person-guide .wh-more-wrap {
  text-align: center;
  padding: 18px 0 4px;
}

#world-history-person-guide .wh-more-btn {
  padding: 11px 34px;
  border-radius: 999px;
  border: 2px solid var(--wh-navy);
  background: transparent;
  color: var(--wh-navy);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#world-history-person-guide .wh-more-btn:hover {
  background: var(--wh-navy);
  color: #FFFFFF;
}

/* ===== 8. 使い方 ===== */
#world-history-person-guide .wh-usage-list {
  margin: 0;
  padding-left: 1.4em;
  font-size: 0.95rem;
}

#world-history-person-guide .wh-usage-list li {
  margin-bottom: 8px;
}

#world-history-person-guide .wh-usage-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--wh-sub);
}

/* ===== 静的さくいん ===== */
#world-history-person-guide .wh-static-index {
  background: var(--wh-card-bg);
  border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius);
  padding: 14px 18px;
}

#world-history-person-guide .wh-static-index summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  color: var(--wh-navy);
}

#world-history-person-guide .wh-static-index h3 {
  font-size: 1rem;
  margin: 16px 0 6px;
  padding-left: 10px;
  border-left: 4px solid var(--wh-line);
}

#world-history-person-guide .wh-static-index ul {
  margin: 0;
  padding-left: 1.4em;
  font-size: 0.88rem;
}

#world-history-person-guide .wh-static-index li {
  margin-bottom: 3px;
}

/* ===== トップへ戻る ===== */
#world-history-person-guide .wh-backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--wh-navy);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: var(--wh-shadow);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

#world-history-person-guide .wh-backtop svg {
  width: 20px;
  height: 20px;
}

#world-history-person-guide .wh-backtop.wh-visible {
  display: flex;
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  #world-history-person-guide .wh-title {
    font-size: 1.8rem;
  }
  #world-history-person-guide .wh-card-grid,
  #world-history-person-guide .wh-flow-cards {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

@media (max-width: 640px) {
  #world-history-person-guide {
    font-size: 15px;
  }
  #world-history-person-guide .wh-title {
    font-size: 1.55rem;
  }
  #world-history-person-guide .wh-h2 {
    font-size: 1.25rem;
  }
  #world-history-person-guide .wh-card-grid,
  #world-history-person-guide .wh-flow-cards,
  #world-history-person-guide .wh-region-grid {
    grid-template-columns: 1fr;
  }
  #world-history-person-guide .wh-stat {
    min-width: 96px;
    padding: 8px 14px;
  }
  #world-history-person-guide .wh-stat dd {
    font-size: 1.3rem;
  }
  #world-history-person-guide .wh-filter select {
    min-width: 116px;
  }
  #world-history-person-guide .wh-jump-btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}

/* ===== アニメーション抑制 ===== */
@media (prefers-reduced-motion: reduce) {
  #world-history-person-guide *,
  #world-history-person-guide *::before,
  #world-history-person-guide *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}


/* ================================================================
   地域別年表 (wh-timeline)
   ================================================================ */

/* 時代アクセントのクラス割り当て */
#world-history-person-guide .wh-era-kodai  { --wh-accent: var(--wh-era-kodai);  --wh-accent-soft: var(--wh-era-kodai-soft); }
#world-history-person-guide .wh-era-chusei { --wh-accent: var(--wh-era-chusei); --wh-accent-soft: var(--wh-era-chusei-soft); }
#world-history-person-guide .wh-era-kinsei { --wh-accent: var(--wh-era-kinsei); --wh-accent-soft: var(--wh-era-kinsei-soft); }
#world-history-person-guide .wh-era-kindai { --wh-accent: var(--wh-era-kindai); --wh-accent-soft: var(--wh-era-kindai-soft); }
#world-history-person-guide .wh-era-gendai { --wh-accent: var(--wh-era-gendai); --wh-accent-soft: var(--wh-era-gendai-soft); }

#world-history-person-guide .wh-tl-legend-flag {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wh-brand);
  vertical-align: baseline;
}

/* ===== 地域ジャンプナビ ===== */
#world-history-person-guide .wh-tl-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 4px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--wh-bg) 92%, transparent);
  backdrop-filter: blur(4px);
}

#world-history-person-guide .wh-tl-nav-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 2px solid var(--wh-navy);
  background: var(--wh-card-bg);
  color: var(--wh-navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

#world-history-person-guide .wh-tl-nav-chip:hover {
  background: var(--wh-navy);
  color: #FFFFFF;
}

/* ===== 地域ブロック ===== */
#world-history-person-guide .wh-tl-region {
  margin: 30px 0 0;
  scroll-margin-top: 70px;
}

#world-history-person-guide .wh-tl-region-head {
  margin-bottom: 14px;
}

#world-history-person-guide .wh-tl-region-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 4px;
  padding: 8px 14px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--wh-navy);
  border-radius: 10px;
}

#world-history-person-guide .wh-tl-region-tag {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.85;
}

#world-history-person-guide .wh-tl-region-lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--wh-sub);
}

#world-history-person-guide .wh-tl-region-count {
  margin-left: 8px;
  font-weight: 700;
  color: var(--wh-navy);
  white-space: nowrap;
}

/* ===== タイムライン本体 ===== */
#world-history-person-guide .wh-tl {
  position: relative;
  margin: 0 0 8px;
  padding: 6px 0 6px 26px;
}

#world-history-person-guide .wh-tl::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--wh-line);
}

#world-history-person-guide .wh-tl-item {
  position: relative;
  margin: 0 0 14px;
}

#world-history-person-guide .wh-tl-node {
  position: absolute;
  left: -23px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--wh-accent, var(--wh-navy));
  border: 3px solid var(--wh-bg);
  box-shadow: 0 0 0 2px var(--wh-accent, var(--wh-navy));
}

/* ---- イベントマーカー ---- */
#world-history-person-guide .wh-tl-item--event {
  margin: 0 0 10px;
}

#world-history-person-guide .wh-tl-item--event .wh-tl-node {
  width: 9px;
  height: 9px;
  top: 9px;
  left: -21px;
  background: var(--wh-brand);
  box-shadow: 0 0 0 2px var(--wh-brand);
}

#world-history-person-guide .wh-tl-event {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--wh-brand) 9%, var(--wh-card-bg));
  border: 1px dashed color-mix(in srgb, var(--wh-brand) 45%, transparent);
  font-size: 0.9rem;
}

#world-history-person-guide .wh-tl-eyear {
  flex: none;
  font-weight: 900;
  color: var(--wh-brand);
  font-variant-numeric: tabular-nums;
}

#world-history-person-guide .wh-tl-elabel {
  font-weight: 700;
}

#world-history-person-guide .wh-tl-eperson {
  font-size: 0.8rem;
  color: var(--wh-sub);
}

#world-history-person-guide .wh-tl-eperson::before {
  content: "主要人物: ";
}

/* ---- 時代区分カード ---- */
#world-history-person-guide .wh-tl-card {
  background: var(--wh-card-bg);
  border: 1px solid var(--wh-line);
  border-left: 7px solid var(--wh-accent, var(--wh-navy));
  border-radius: var(--wh-radius);
  box-shadow: var(--wh-shadow);
  padding: 12px 16px 10px;
}

#world-history-person-guide .wh-tl-period-name {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--wh-accent, var(--wh-navy));
}

#world-history-person-guide .wh-tl-period-desc {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--wh-sub);
}

/* ---- 人物アイコンリスト ---- */
#world-history-person-guide .wh-tl-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#world-history-person-guide .wh-tl-people li {
  margin: 0;
  padding: 0;
}

#world-history-person-guide .wh-tl-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 76px;
  padding: 6px 2px 4px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--wh-ink);
  transition: background 0.15s, transform 0.15s;
}

#world-history-person-guide .wh-tl-person img,
#world-history-person-guide .wh-tl-noicon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--wh-accent-soft, var(--wh-line));
  border: 2px solid var(--wh-accent-soft, var(--wh-line));
}

#world-history-person-guide .wh-tl-noicon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--wh-accent, var(--wh-navy));
}

#world-history-person-guide .wh-tl-person-name {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

#world-history-person-guide .wh-tl-person--linked img {
  border-color: var(--wh-accent, var(--wh-navy));
}

#world-history-person-guide .wh-tl-person--linked:hover {
  background: var(--wh-accent-soft, var(--wh-line));
  transform: translateY(-2px);
}

#world-history-person-guide .wh-tl-person--linked .wh-tl-person-name {
  color: var(--wh-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---- モバイル調整 ---- */
@media (max-width: 640px) {
  #world-history-person-guide .wh-tl {
    padding-left: 20px;
  }
  #world-history-person-guide .wh-tl::before {
    left: 6px;
  }
  #world-history-person-guide .wh-tl-node {
    left: -20px;
  }
  #world-history-person-guide .wh-tl-item--event .wh-tl-node {
    left: -18px;
  }
  #world-history-person-guide .wh-tl-person {
    width: 66px;
  }
  #world-history-person-guide .wh-tl-person img,
  #world-history-person-guide .wh-tl-noicon {
    width: 48px;
    height: 48px;
  }
}
