@charset "UTF-8";

/* =========================================================
  jinbutsu.css  (History人物列伝ページ専用)
  - HTMLは変更不要（提示HTMLに完全対応）
  - 視認性◎ / 近代的 / 塾の信頼感
  - Font Awesome 不要（読み込み無し前提）
  - common.css の「変なマーク（疑似要素）」が混入しても、
    このページのカード内は自前の矢印・装飾で安定表示
========================================================= */

/* -----------------------------
  0) Tokens / Base
----------------------------- */
body.jinbutsu-page {
  --bg: #f6f8fc;
  --surface: rgba(255, 255, 255, 0.90);
  --card: #ffffff;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;

  --primary: #100964;   /* ネイバーのネイビー */
  --accent: #2563eb;    /* さわやかブルー */
  --brand-yellow: #ffcc00;

  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(16, 9, 100, 0.18);

  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 22px 58px rgba(15, 23, 42, 0.16);

  --radius-lg: 22px;
  --radius-md: 14px;

  --maxw: 1100px;

  --focus: 0 0 0 3px rgba(37, 99, 235, 0.26);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(37, 99, 235, 0.12), transparent 58%),
    radial-gradient(900px 520px at 98% 0%, rgba(255, 204, 0, 0.14), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 念のため */
body.jinbutsu-page * { box-sizing: border-box; }

/* common.css 側の container を尊重しつつ、念のため上書き */
body.jinbutsu-page .container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* -----------------------------
  1) Main spacing (固定ヘッダー想定)
  ※common.css側で body padding-top 済なら被ってもOK
----------------------------- */
main.jinbutsu-page {
  padding-top: 112px;
  padding-bottom: 84px;
}
@media (max-width: 600px) {
  main.jinbutsu-page {
    padding-top: 96px;
    padding-bottom: 72px;
  }
}

/* -----------------------------
  2) Breadcrumb
----------------------------- */
.jinbutsu-page .bread {
  margin: 10px 0 18px;
  padding: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.jinbutsu-page .bread a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 9, 100, 0.22);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.jinbutsu-page .bread a:hover { border-bottom-color: rgba(16, 9, 100, 0.45); }
.jinbutsu-page .bread a:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* -----------------------------
  3) Hero
----------------------------- */
.jinbutsu-page .nengo-hero {
  padding: 18px 0 10px;
}

.jinbutsu-page .hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 56px) clamp(18px, 4vw, 34px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(16, 9, 100, 0.07), rgba(37, 99, 235, 0.05)) border-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)) padding-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  text-align: center;
  backdrop-filter: blur(10px);
}

/* 柔らかい装飾 */
.jinbutsu-page .hero-card::before,
.jinbutsu-page .hero-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.jinbutsu-page .hero-card::before {
  width: 420px;
  height: 420px;
  top: -220px;
  right: -220px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.25), transparent 62%);
}
.jinbutsu-page .hero-card::after {
  width: 520px;
  height: 520px;
  bottom: -280px;
  left: -280px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 60%);
}

.jinbutsu-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 9, 100, 0.10);
  border: 1px solid rgba(16, 9, 100, 0.18);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
}
.jinbutsu-page .hero-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--brand-yellow));
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.18);
}

.jinbutsu-page .hero-title {
  margin: 14px 0 12px;
  font-size: clamp(1.9rem, 4.8vw, 3.0rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.jinbutsu-page .hero-lead {
  margin: 0 auto;
  max-width: 48rem;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 2.4vw, 1.12rem);
  position: relative;
  z-index: 1;
}

/* -----------------------------
  4) List / Grid
----------------------------- */
.jinbutsu-page .nengo-list { padding: 26px 0 10px; }

.jinbutsu-page .jinbutsu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 0 0;
}

@media (max-width: 980px) {
  .jinbutsu-page .jinbutsu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .jinbutsu-page .jinbutsu-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* -----------------------------
  5) Card Item
  - common.css の疑似要素が混ざっても上書きして安定させる
----------------------------- */
.jinbutsu-page .nengo-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 18px 54px 18px 30px; /* 右：矢印、左：アクセント分 */
  border-radius: var(--radius-md);
  text-decoration: none;

  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.84));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);

  color: var(--ink);
  font-weight: 800;

  transition:
    transform .22s var(--ease),
    box-shadow .22s var(--ease),
    border-color .22s var(--ease),
    background .22s var(--ease);
  overflow: hidden;
}

/* 左アクセント（自前） */
.jinbutsu-page .nengo-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-yellow), rgba(37, 99, 235, 0.65));
  opacity: 0.95;
}

/* 右矢印（自前） */
.jinbutsu-page .nengo-item::after {
  content: "";
  position: absolute;
  right: 22px;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(100, 116, 139, 0.90);
  border-right: 2px solid rgba(100, 116, 139, 0.90);
  transform: rotate(45deg);
  transition:
    transform .22s var(--ease),
    border-color .22s var(--ease),
    right .22s var(--ease);
}

/* 文字 */
.jinbutsu-page .nengo-item .event {
  display: inline-block;
  padding-left: 10px; /* 左アクセントの視覚バランス */
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  transition: color .22s var(--ease);
}

/* hover */
.jinbutsu-page .nengo-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.86));
}
.jinbutsu-page .nengo-item:hover .event { color: var(--primary); }
.jinbutsu-page .nengo-item:hover::after {
  border-color: rgba(16, 9, 100, 0.75);
  right: 18px;
  transform: rotate(45deg) translate(2px, -2px);
}

/* keyboard focus */
.jinbutsu-page .nengo-item:focus-visible {
  outline: none;
  box-shadow: var(--shadow-sm), var(--focus);
  border-color: rgba(37, 99, 235, 0.35);
}

/* active tap */
.jinbutsu-page .nengo-item:active { transform: translateY(-1px); }

/* -----------------------------
  6) 「変なマーク」混入対策（保険）
  - common.css が a::after 等を付けても、このエリアでは無効化
  ※ただし nengo-item 自前の ::before/::after は上で定義しているので問題なし
----------------------------- */
.jinbutsu-page .jinbutsu-grid a:not(.nengo-item)::before,
.jinbutsu-page .jinbutsu-grid a:not(.nengo-item)::after {
  content: none !important;
  display: none !important;
}

/* FontAwesome系が混ざっていた場合も非表示（念のため） */
.jinbutsu-page .nengo-item i,
.jinbutsu-page .nengo-item .fa,
.jinbutsu-page .nengo-item .fas,
.jinbutsu-page .nengo-item .far,
.jinbutsu-page .nengo-item .fab {
  display: none !important;
}

/* -----------------------------
  7) Mobile tweaks
----------------------------- */
@media (max-width: 640px) {
  .jinbutsu-page .hero-card { padding: 38px 18px; }
  .jinbutsu-page .hero-lead { font-size: 1.02rem; }

  .jinbutsu-page .nengo-item {
    padding: 16px 48px 16px 22px;
  }
  .jinbutsu-page .nengo-item::before { left: 8px; top: 10px; bottom: 10px; }
  .jinbutsu-page .nengo-item::after { right: 18px; }
  .jinbutsu-page .nengo-item .event { font-size: 1.05rem; }
}

/* -----------------------------
  8) Reduced motion
----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jinbutsu-page .nengo-item,
  .jinbutsu-page .nengo-item::after,
  .jinbutsu-page .bread a {
    transition: none !important;
  }
  .jinbutsu-page .nengo-item:hover { transform: none; }
}