/* 西尾の六武将（/nishio/） */

:root {
  --ink: #15110d;
  --ink-2: #1d1813;
  --ink-3: #29211a;
  --paper: #f4efe4;
  --paper-2: #e9e0cd;
  --gold: #c9a14a;
  --gold-hi: #f1d892;
  --gold-lo: #7d6026;
  --text: #f0e8d8;
  --text-dim: rgba(240, 232, 216, 0.74);
  --dark: #221b14;
  --dark-dim: rgba(34, 27, 20, 0.72);
  --vermilion: #b8392b;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "BIZ UDPMincho", serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body.nb {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--gothic);
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

.nb img {
  display: block;
}

.nb a {
  color: inherit;
}

.nb :focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.section-title {
  margin: 0 0 28px;
  font-family: var(--mincho);
  font-size: clamp(26px, 6.4vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

/* ---------- トップビュー（画面いっぱいに表示） ---------- */

/* 縦長の画面: 題字 → 六武将 → 目次を縦に並べ、六武将が残りの高さを埋める。
   横長の画面（下の「横長の画面のトップビュー」）: 題字を左、六武将を右に並べる。
   文字の大きさは画面の幅と高さの小さいほうに合わせ、スクロールせずに全体が収まるようにする */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: max(18px, calc(env(safe-area-inset-top) + 10px)) 0 calc(10px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(201, 161, 74, 0.26), transparent 62%),
    radial-gradient(90% 45% at 50% 78%, rgba(184, 57, 43, 0.28), transparent 70%),
    linear-gradient(180deg, #0e0b08 0%, var(--ink) 100%);
}

/* ゆっくり漂う光 */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -30%;
  z-index: -1;
  background:
    radial-gradient(26% 20% at 30% 28%, rgba(241, 216, 146, 0.13), transparent 70%),
    radial-gradient(24% 20% at 72% 64%, rgba(214, 90, 52, 0.16), transparent 70%);
  pointer-events: none;
}

/* 斬撃のあとの閃光（最初だけ） */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  background: radial-gradient(60% 42% at 50% 46%, rgba(255, 240, 205, 0.34), transparent 72%);
  opacity: 0;
  pointer-events: none;
}

.hero__embers {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__slash {
  position: absolute;
  top: 46%;
  left: -30%;
  z-index: 7;
  width: 160%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(241, 216, 146, 0) 12%, #fff6d2 50%, rgba(241, 216, 146, 0) 88%, transparent 100%);
  box-shadow: 0 0 16px 2px rgba(255, 214, 140, 0.5);
  opacity: 0;
  rotate: -14deg;
  transform-origin: 0 50%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 5;
  padding: 0 22px clamp(4px, 1svh, 12px);
  text-align: center;
  /* 下へスクロールすると、題字が先に上へ抜けていく（--hero-p は nishio.js が 0〜1 で設定） */
  transform: translate3d(0, calc(var(--hero-p, 0) * -90px), 0);
  opacity: calc(1 - var(--hero-p, 0) * 1.4);
}

.hero__project {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gold-hi);
  font-size: clamp(11px, 3.3vw, 13px);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero__project span {
  padding: 3px 8px 2px;
  border: 1px solid rgba(241, 216, 146, 0.6);
  font-size: 0.85em;
  letter-spacing: 0.2em;
}

.hero__title {
  position: relative;
  display: inline-block;
  margin: clamp(6px, 1.3svh, 14px) 0 0;
  font-family: var(--mincho);
  font-weight: 900;
  line-height: 1;
}

.hero__title-small {
  display: block;
  font-size: clamp(20px, min(6.8vw, 3.6svh), 44px);
  letter-spacing: 0.3em;
  color: var(--text);
}

.hero__title-big {
  display: block;
  margin-top: 0.06em;
  font-size: clamp(60px, min(27vw, 12.5svh), 210px);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero__char {
  display: inline-block;
}

/* 金の文字。手前の層は、ときどき文字の上を走る光 */
.hero__glyph {
  display: inline-block;
  color: var(--gold-hi);
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.92) 50%, transparent 60%),
    linear-gradient(180deg, #fff6d2 0%, #ecc976 38%, #a8792b 66%, #f4dc95 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: -10% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 朱の落款「見参」 */
.hero__seal {
  position: absolute;
  top: -0.2em;
  right: -0.15em;
  display: grid;
  place-items: center;
  width: 2.35em;
  height: 2.35em;
  border-radius: 5px;
  background: var(--vermilion);
  box-shadow:
    inset 0 0 0 2px var(--vermilion),
    inset 0 0 0 3.5px rgba(255, 238, 222, 0.85),
    0 6px 18px rgba(0, 0, 0, 0.35);
  color: #fff3e6;
  font-size: clamp(12px, min(3.4vw, 1.9svh), 19px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  rotate: 8deg;
}

.hero__copy {
  margin: clamp(8px, 1.6svh, 18px) 0 0;
  font-family: var(--mincho);
  font-size: clamp(13px, min(4.2vw, 2.25svh), 21px);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.14em;
  color: var(--text);
}

.hero__line {
  display: inline-block;
}

/* 後列（上半身が見える）と前列の二段組み。「西尾の6武将」カードの並びに合わせる */
.hero__cast {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  width: min(100%, 980px);
  min-height: 190px;
  max-height: 150vw;
  margin: auto;
  /* 下へスクロールすると、六武将はゆっくり沈む */
  transform: translate3d(0, calc(var(--hero-p, 0) * 70px), 0);
}

.hero__cast::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  /* 後列の下半身だけを暗く沈める（縁で透明になるので四角い境目が出ない） */
  background: radial-gradient(50% 34% at 50% 54%, rgba(21, 17, 13, 0.62), rgba(21, 17, 13, 0));
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hero__cast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
  z-index: 5;
}

/* 背後の金の月輪。--mx・--my はマウスの位置（nishio.js が -1〜1 で設定） */
.hero__halo {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 0;
  height: 84%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 236, 190, 0.24), rgba(241, 216, 146, 0.11) 50%, rgba(201, 161, 74, 0.04) 80%, transparent);
  translate: -50% -50%;
  transform: translate3d(calc(var(--mx, 0) * -8px), calc(var(--my, 0) * -8px), 0) scale(calc(1 + var(--hero-p, 0) * 0.3));
}

.hero__halo::before,
.hero__halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero__halo::before {
  inset: 4%;
  border: 1px solid rgba(241, 216, 146, 0.3);
  box-shadow: inset 0 0 40px rgba(241, 216, 146, 0.08);
}

.hero__halo::after {
  inset: -6%;
  border: 1.5px dashed rgba(241, 216, 146, 0.24);
}

.hero__row {
  position: absolute;
  inset: 0;
}

.hero__row--back {
  z-index: 1;
  transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -6px), 0);
}

.hero__row--front {
  z-index: 3;
  transform: translate3d(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 9px), 0);
}

.cast {
  position: absolute;
  left: var(--x);
  bottom: 0;
  width: auto;
  height: 64%;
  max-width: none;
  transform: translateX(-50%);
  transition: opacity 0.9s ease, translate 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), scale 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cast--back {
  bottom: 36%;
  height: 60%;
}

.cast--center {
  z-index: 1;
  height: 70%;
}

.hero__cast.is-anim .cast:not(.is-up) {
  opacity: 0;
  translate: 0 12%;
  scale: 0.94;
}

/* 目次にマウスを乗せると、その武将だけを照らす */
.hero__cast.is-focus::before {
  opacity: 0;
}

.hero__cast.is-focus .cast {
  transition-duration: 0.35s, 1.1s, 0.45s;
}

.hero__cast.is-focus .cast:not(.is-on) {
  opacity: 0.25;
}

.hero__cast.is-focus .cast.is-on {
  scale: 1.04;
}

.hero__index {
  position: relative;
  z-index: 5;
  width: min(100% - 28px, 980px);
  margin: clamp(4px, 1svh, 10px) auto 0;
}

.hero__index ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__index a {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  padding: clamp(5px, 0.9svh, 9px) 10px;
  border-left: 3px solid var(--c);
  background: rgba(255, 244, 214, 0.06);
  font-family: var(--mincho);
  font-size: clamp(13px, 3.7vw, 15px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* 武将の色の帯が左から伸びる */
.hero__index a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--c), transparent);
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__index a:hover::before,
.hero__index a:focus-visible::before {
  transform: scaleX(1);
}

.hero__index a span {
  display: block;
  color: var(--gold);
  font-family: var(--gothic);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero__scroll {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin: clamp(6px, 1.2svh, 12px) auto 0;
  padding-left: 0.32em;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.32em;
  text-decoration: none;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 24px;
  background: linear-gradient(var(--gold-hi), var(--gold-hi)) 0 -10px / 100% 10px no-repeat rgba(241, 216, 146, 0.22);
}

/* スマホの縦向き: 目次を「其の一 足利義氏」の1行にして、六武将の場所を確保する */
@media (max-width: 719px) {
  .hero__index a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
    padding: 6px 8px;
  }

  .hero__index a span {
    display: inline;
    font-size: 9px;
    letter-spacing: 0.1em;
  }
}

/* 高さの足りない画面では、SCROLL の案内を省く（縦長の画面は目次が下端にあるので案内なしでも分かる） */
@media (max-height: 620px), (max-height: 739px) and (max-aspect-ratio: 1/1) {
  .hero__scroll {
    display: none;
  }
}

/* ---------- このプロジェクトについて ---------- */

.about {
  position: relative;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(201, 161, 74, 0.18), transparent 70%),
    var(--paper);
  color: var(--dark);
}

.about__inner {
  width: min(100% - 44px, 760px);
  margin: 0 auto;
  padding: 72px 0 76px;
}

.about .kicker {
  color: var(--vermilion);
}

.about__title {
  margin: 0 0 26px;
  font-family: var(--mincho);
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.about p {
  margin: 0 0 1.2em;
}

.about__quote {
  margin: 34px 0 0;
  padding: 22px 22px 18px;
  border: 1px solid rgba(125, 96, 38, 0.45);
  background: rgba(255, 255, 255, 0.5);
}

.about__quote blockquote {
  margin: 0;
}

.about__quote blockquote p {
  margin: 0;
  font-family: var(--mincho);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.95;
}

.about__quote figcaption {
  margin-top: 10px;
  color: var(--dark-dim);
  font-size: 12px;
  text-align: right;
}

/* ---------- 年表 ---------- */

.chrono {
  background: var(--ink-2);
}

.chrono__inner {
  width: min(100% - 44px, 760px);
  margin: 0 auto;
  padding: 72px 0 64px;
}

.chrono__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chrono__list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 70px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-lo) 8%, var(--gold-lo) 92%, transparent);
  /* スクロールに合わせて上から線が伸びる（--draw は nishio.js が 0〜1 で設定） */
  transform: scaleY(var(--draw, 1));
  transform-origin: 50% 0;
}

.chrono__list li {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0 24px;
  padding: 10px 0 14px;
}

.chrono__list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 66px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--ink-2);
}

.chrono__year {
  font-family: var(--mincho);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}

.chrono__year small {
  display: block;
  font-size: 11px;
  line-height: 1;
  color: var(--text-dim);
}

.chrono__list p {
  margin: 2px 0 0;
  color: var(--text-dim);
}

.chrono__list a {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: rgba(241, 216, 146, 0.5);
  text-underline-offset: 3px;
}

/* ---------- 六武将 ---------- */

.roster {
  padding: 72px 0 0;
  background: var(--ink);
  /* 横から滑り込む絵で、ページが横にはみ出さないようにする */
  overflow-x: clip;
}

.roster__title {
  margin: 0 0 8px;
  font-family: var(--mincho);
  font-size: clamp(30px, 8vw, 52px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.roster__title .kicker {
  display: block;
  font-family: var(--gothic);
}

.busho {
  position: relative;
  padding: 44px 0 64px;
  background:
    radial-gradient(90% 55% at 50% 22%, rgba(255, 244, 214, 0.08), transparent 72%),
    var(--ink);
  background:
    radial-gradient(90% 55% at 50% 22%, color-mix(in srgb, var(--c) 34%, transparent), transparent 72%),
    var(--ink);
  scroll-margin-top: 12px;
}

.busho + .busho {
  border-top: 1px solid rgba(201, 161, 74, 0.18);
}

.busho__art {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 560px;
}

/* 絵の後ろの、武将の色の光 */
.busho__art::before {
  content: "";
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: -1;
  width: min(86%, 480px);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(241, 216, 146, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 244, 214, 0.1), transparent);
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--c) 46%, transparent), transparent);
  translate: -50% -50%;
}

.busho__art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(118vw, 560px);
}

.busho__line {
  position: absolute;
  top: 2%;
  right: 12px;
  max-height: 78%;
  padding: 0.75em 0.45em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 8, 6, 0.86);
  color: #fff;
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-size: clamp(13px, 3.6vw, 18px);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.busho__body {
  width: min(100% - 40px, 620px);
  margin: 18px auto 0;
}

.busho__no {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gold);
  font-family: var(--mincho);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.busho__no span {
  padding: 1px 8px;
  border: 1px solid rgba(201, 161, 74, 0.5);
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.busho__title {
  display: inline-block;
  margin: 16px 0 0;
  padding: 3px 34px 3px 12px;
  background: linear-gradient(90deg, var(--c) 0%, var(--c) 55%, transparent 100%);
  color: #fff;
  font-family: var(--mincho);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.busho__name {
  margin: 4px 0 0;
  font-family: var(--mincho);
  font-size: clamp(42px, 12vw, 66px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.busho__name rt,
.ojo__name rt,
.ina__name rt {
  font-family: var(--gothic);
  font-size: 0.24em;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold-hi);
}

.busho__years {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 18px;
  font-family: var(--mincho);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}

.busho__years span {
  font-family: var(--gothic);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.busho__lead {
  margin: 0 0 22px;
}

.busho__nishio {
  margin: 0 0 22px;
  padding: 18px 18px 6px;
  border: 1px solid rgba(201, 161, 74, 0.42);
  background: rgba(255, 244, 214, 0.05);
}

.busho__nishio h4 {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.busho__nishio p {
  margin: 0 0 12px;
}

.tale {
  margin: 0 0 18px;
}

.tale__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-family: var(--mincho);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.tale__title::before {
  content: "逸話";
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border: 1px solid #e8786a;
  border-radius: 4px;
  background: var(--vermilion);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(-4deg);
}

.tale p {
  margin: 0;
  color: var(--text-dim);
}

.busho__places {
  margin: 20px 0 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.75;
}

.busho__places span {
  display: inline-block;
  margin-right: 8px;
  padding: 0 7px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.busho__card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 22px 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-hi);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.busho__card::before {
  content: "";
  width: 14px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent 60%, currentColor 60% 66%, transparent 66%);
}

.busho__card:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- ニシィ・お嬢 ---------- */

.ojo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 20% 10%, rgba(255, 196, 214, 0.55), transparent 70%),
    radial-gradient(60% 50% at 90% 90%, rgba(176, 214, 140, 0.5), transparent 70%),
    linear-gradient(160deg, #fff6f4 0%, #f7ecd4 60%, #eaf2dc 100%);
  color: var(--dark);
  scroll-margin-top: 12px;
}

.ojo__inner {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 64px 0 72px;
}

.ojo__art {
  margin: 0 auto;
  max-width: 420px;
}

.ojo__art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(120vw, 620px);
  margin: 0 auto;
}

.ojo .kicker {
  color: #c2457a;
}

.ojo__title {
  display: inline-block;
  margin: 18px 0 0;
  padding: 3px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e46d98, #c99a3b);
  color: #fff;
  font-family: var(--mincho);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.ojo__name {
  margin: 4px 0 16px;
  font-family: var(--mincho);
  font-size: clamp(38px, 10.5vw, 60px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.ojo__name rt {
  color: #b04a72;
}

.ojo__speech {
  position: relative;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 2px solid #e9a2bc;
  border-radius: 22px;
  background: #fff;
  font-family: var(--mincho);
  font-weight: 700;
  line-height: 1.95;
}

.ojo__speech::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 34px;
  width: 20px;
  height: 20px;
  border-top: 2px solid #e9a2bc;
  border-left: 2px solid #e9a2bc;
  background: #fff;
  transform: rotate(45deg);
}

.ojo__body p {
  margin: 0 0 1em;
}

.ojo__note {
  color: var(--dark-dim);
  font-size: 13px;
}

.ojo__card {
  border-color: #c2457a;
  color: #a8305f;
}

.ojo__card:hover {
  background: #c2457a;
  color: #fff;
}

/* ---------- 伊奈忠次 ---------- */

.ina {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(124, 196, 224, 0.22), transparent 70%),
    repeating-linear-gradient(170deg, rgba(124, 196, 224, 0.035) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #0d2029 0%, #10303d 100%);
  color: #e8f2f5;
  scroll-margin-top: 12px;
}

.ina__inner {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 68px 0 76px;
}

.ina .kicker {
  color: #8fd3ec;
}

.ina__title {
  display: inline-block;
  margin: 0;
  padding: 3px 14px 3px 12px;
  background: linear-gradient(90deg, #3b8fb0, transparent);
  color: #fff;
  font-family: var(--mincho);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ina__name {
  margin: 4px 0 0;
  font-family: var(--mincho);
  font-size: clamp(42px, 12vw, 66px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.ina__name rt,
.ina .busho__years {
  color: #bfe7f5;
}

.ina__art {
  margin: 8px auto 0;
  max-width: 400px;
  text-align: center;
}

.ina__art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(110vw, 520px);
  margin: 0 auto;
}

.ina__art figcaption {
  margin-top: 6px;
  color: rgba(232, 242, 245, 0.6);
  font-size: 12px;
}

.ina__body p {
  margin: 0 0 1.1em;
}

.ina__works {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.ina__works li {
  padding: 12px 16px;
  border-left: 3px solid #7cc4e0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 242, 245, 0.82);
  font-size: 14.5px;
  line-height: 1.7;
}

.ina__works strong {
  display: block;
  color: #fff;
  font-family: var(--mincho);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.tale--ina p,
.ina .busho__places {
  color: rgba(232, 242, 245, 0.8);
}

.ina__note {
  margin-top: 18px;
  color: rgba(232, 242, 245, 0.6);
  font-size: 12.5px;
}

/* ---------- 西尾城 ---------- */

.castle {
  background: var(--paper);
  color: var(--dark);
}

.castle__inner {
  display: grid;
  gap: 30px;
  width: min(100% - 44px, 1000px);
  margin: 0 auto;
  padding: 68px 0 72px;
}

.castle .kicker {
  color: var(--vermilion);
}

.castle__card {
  margin: 0 auto;
  width: min(68vw, 300px);
}

.castle__card a {
  display: block;
  transform: rotate(-2.5deg);
  box-shadow: 0 18px 40px rgba(34, 27, 20, 0.32);
  border-radius: 14px;
  overflow: hidden;
}

.castle__card img {
  width: 100%;
  height: auto;
}

.castle__body p {
  margin: 0 0 1em;
}

.castle .busho__places {
  color: var(--dark-dim);
}

/* ---------- 参考資料・フッター ---------- */

.sources {
  background: var(--ink-2);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.8;
}

.sources__inner {
  width: min(100% - 44px, 860px);
  margin: 0 auto;
  padding: 56px 0 48px;
}

.sources__title {
  margin: 0 0 16px;
  color: var(--text);
  font-family: var(--mincho);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sources__notes,
.sources__list {
  margin: 0 0 18px;
  padding-left: 1.2em;
}

.sources__notes li,
.sources__list li {
  margin-bottom: 6px;
}

.sources__list a {
  color: var(--gold-hi);
  text-underline-offset: 2px;
}

.foot {
  padding: 34px 22px calc(34px + env(safe-area-inset-bottom));
  background: #0c0907;
  color: rgba(240, 232, 216, 0.6);
  font-size: 12px;
  text-align: center;
}

.foot p {
  margin: 0 0 10px;
}

.foot__links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.foot__links a {
  color: var(--gold-hi);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- カード表示 ---------- */

.cardview {
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.cardview::backdrop {
  background: rgba(8, 6, 4, 0.86);
}

.cardview__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.cardview__img {
  width: auto;
  height: auto;
  max-width: min(92vw, 520px);
  max-height: calc(100svh - 120px);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.cardview__close {
  padding: 10px 28px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(21, 17, 13, 0.9);
  color: var(--gold-hi);
  font: 700 14px/1 var(--gothic);
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ---------- スクロールの進み具合（画面上端の細い線） ---------- */

.nb-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--vermilion), var(--gold) 60%, var(--gold-hi));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- トップビューの演出 ---------- */

/* 斬撃 → 閃光 → 題字が一文字ずつ押される → 落款 → 六武将が立ち上がる → 目次。
   そのあとは火の粉（nishio.js）、漂う光、月輪の脈動と回転、題字を走る光、六武将の呼吸が続く。
   CSS だけで動くので、JavaScript が読めなくても最後は完成した状態で止まる */
@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: nb-drift 18s ease-in-out infinite alternate;
  }

  .hero::after {
    animation: nb-flash 1s ease-out 0.3s both;
  }

  .hero__slash {
    animation: nb-slash 0.8s cubic-bezier(0.7, 0, 0.3, 1) 0.05s both;
  }

  .hero__embers {
    animation: nb-fade 1.6s ease 0.5s both;
  }

  .hero__project {
    animation: nb-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
  }

  .hero__title-small {
    animation: nb-gather 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s both;
  }

  .hero__char {
    animation: nb-stamp 0.62s cubic-bezier(0.2, 0.9, 0.3, 1.25) calc(0.6s + var(--i) * 0.13s) both;
  }

  .hero__glyph {
    animation: nb-shine 7s ease-in-out calc(2.3s + var(--i) * 0.12s) infinite;
  }

  .hero__seal {
    animation: nb-seal 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) 1.3s both;
  }

  .hero__line {
    animation: nb-wipe 1s cubic-bezier(0.65, 0, 0.35, 1) 1s both;
  }

  .hero__line:nth-of-type(2) {
    animation-delay: 1.3s;
  }

  .hero__halo {
    animation: nb-halo 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
  }

  .hero__halo::before {
    animation: nb-pulse 5.5s ease-in-out 1.8s infinite;
  }

  .hero__halo::after {
    animation: nb-spin 90s linear infinite;
  }

  .hero__cast.is-anim .cast.is-up {
    animation: nb-breathe 7s ease-in-out 1.4s infinite alternate;
  }

  .hero__cast.is-anim .hero__row--back .cast.is-up {
    animation-duration: 8.5s;
  }

  .hero__cast.is-anim .cast--center.is-up {
    animation-duration: 6s;
  }

  .hero__index li {
    animation: nb-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s both;
  }

  .hero__index li:nth-child(2) { animation-delay: 1.57s; }
  .hero__index li:nth-child(3) { animation-delay: 1.64s; }
  .hero__index li:nth-child(4) { animation-delay: 1.71s; }
  .hero__index li:nth-child(5) { animation-delay: 1.78s; }
  .hero__index li:nth-child(6) { animation-delay: 1.85s; }

  .hero__scroll {
    animation: nb-fade 0.8s ease 2.2s both;
  }

  .hero__scroll::after {
    animation: nb-cue 1.8s cubic-bezier(0.6, 0, 0.4, 1) 2.4s infinite;
  }
}

@keyframes nb-drift {
  from { transform: translate3d(-4%, -2%, 0); }
  to { transform: translate3d(4%, 3%, 0); }
}

@keyframes nb-flash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes nb-slash {
  0% { opacity: 1; transform: scaleX(0); }
  50% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1) scaleY(0.3); }
}

@keyframes nb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nb-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes nb-gather {
  from { opacity: 0; transform: translate3d(0, -12px, 0); letter-spacing: 0.7em; }
  to { opacity: 1; transform: none; }
}

@keyframes nb-stamp {
  0% { opacity: 0; transform: scale(1.9); }
  55% { opacity: 1; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes nb-shine {
  0% { background-position: 110% 0, 0 0; }
  22%, 100% { background-position: -10% 0, 0 0; }
}

@keyframes nb-seal {
  0% { opacity: 0; scale: 2.4; }
  60% { opacity: 1; scale: 0.92; }
  100% { opacity: 1; scale: 1; }
}

@keyframes nb-wipe {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  30% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes nb-halo {
  from { opacity: 0; scale: 0.35; }
  to { opacity: 1; scale: 1; }
}

@keyframes nb-pulse {
  0%, 100% { opacity: 0.5; scale: 1; }
  50% { opacity: 1; scale: 1.035; }
}

@keyframes nb-spin {
  to { rotate: 360deg; }
}

@keyframes nb-breathe {
  from { translate: 0 0; }
  to { translate: 0 -1.4%; }
}

@keyframes nb-cue {
  from { background-position: 0 -10px; }
  to { background-position: 0 24px; }
}

/* ---------- スクロールの動き ---------- */

/* nishio.js が対象に data-rv（動きの種類）と rv-wait を付け、画面に入ったら rv-in に替える。
   一度出たら隠さない。視差効果を減らす設定と、JavaScript が動かないときは最初から表示する */
.rv-wait {
  opacity: 0;
}

.rv-wait[data-rv="up"] {
  transform: translate3d(0, 34px, 0);
}

.rv-wait[data-rv="left"] {
  transform: translate3d(-40px, 0, 0);
}

.rv-wait[data-rv="zoom"] {
  transform: scale(0.9);
}

/* 武将の絵は、絵のある側から滑り込む（overflow: clip が使えない古いブラウザーでは下から） */
.rv-wait[data-rv="art"] {
  transform: translate3d(0, 40px, 0) scale(0.96);
}

@supports (overflow-x: clip) {
  .rv-wait[data-rv="art"] {
    transform: translate3d(-64px, 0, 0) scale(0.96);
  }

  .busho:nth-of-type(even) .rv-wait[data-rv="art"] {
    transform: translate3d(64px, 0, 0) scale(0.96);
  }
}

.rv-wait[data-rv="card"] {
  transform: translate3d(0, 70px, 0) rotate(-9deg);
}

.rv-wait[data-rv="wipe"] {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
}

.rv-wait[data-rv="drop"] {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
}

.rv-in {
  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.rv-in[data-rv="wipe"],
.rv-in[data-rv="drop"] {
  clip-path: inset(0 0 0 0);
}

/* 武将の絵の後ろに広がる光の円 */
.rv-wait.busho__art::before {
  opacity: 0;
  scale: 0.3;
}

.rv-in.busho__art::before {
  transition: opacity 1s ease, scale 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 視差効果を減らす設定では nishio.js が is-anim・rv-wait を付けず、スクロールに合わせた動きもしない */
@media (prefers-reduced-motion: reduce) {
  .cast,
  .rv-in {
    transition: none;
  }
}

/* ---------- 広い画面 ---------- */

@media (min-width: 720px) {
  .hero__index ol {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .chrono__list::before {
    left: 90px;
  }

  .chrono__list li {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 0 34px;
  }

  .chrono__list li::before {
    left: 86px;
  }

  .chrono__year {
    font-size: 28px;
  }
}

@media (min-width: 900px) {
  body.nb {
    font-size: 16px;
  }

  .busho {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 0 48px;
    width: 100%;
    padding: 80px max(40px, calc((100% - 1120px) / 2)) 88px;
  }

  .busho:nth-of-type(even) .busho__art {
    order: 2;
  }

  .busho__art {
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .busho__art img {
    max-height: 640px;
  }

  .busho__line {
    right: 0;
  }

  .busho__body {
    width: auto;
    margin: 0;
  }

  .ojo__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 0 56px;
  }

  .ojo__art {
    max-width: none;
  }

  .ina__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas:
      "art head"
      "art body";
    align-items: start;
    gap: 0 56px;
  }

  .ina__head {
    grid-area: head;
  }

  .ina__art {
    grid-area: art;
    align-self: center;
    max-width: none;
  }

  .ina__body {
    grid-area: body;
  }

  .ina__works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .castle__inner {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }

  .castle__card {
    width: 100%;
  }
}

/* ---------- 横長の画面のトップビュー（PC・タブレットの横向き・スマホの横向き） ---------- */

/* 題字を左、六武将を右、目次を下に並べ、画面の高さちょうどに収める */
@media (min-width: 640px) and (min-aspect-ratio: 1/1) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "text cast"
      "index index"
      "scroll scroll";
    align-items: center;
    gap: 0 clamp(16px, 2vw, 32px);
    height: 100vh;
    height: 100svh;
    min-height: 360px;
    padding:
      clamp(16px, 4svh, 48px)
      max(32px, 4vw, env(safe-area-inset-right), calc((100% - 2200px) / 2))
      calc(clamp(8px, 1.4svh, 16px) + env(safe-area-inset-bottom))
      max(32px, 4vw, env(safe-area-inset-left), calc((100% - 2200px) / 2));
  }

  .hero__inner {
    grid-area: text;
    padding: 0;
    text-align: left;
  }

  .hero__title-small {
    font-size: clamp(18px, min(3vw, 5svh), 60px);
  }

  .hero__title-big {
    font-size: clamp(56px, min(9.6vw, 17svh), 220px);
  }

  .hero__seal {
    font-size: clamp(12px, min(1.5vw, 2.6svh), 28px);
  }

  .hero__copy {
    font-size: clamp(13px, min(1.5vw, 2.6svh), 28px);
  }

  .hero__cast {
    grid-area: cast;
    align-self: stretch;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
  }

  .hero__cast::after {
    display: none;
  }

  .hero__index {
    grid-area: index;
    width: 100%;
    margin: clamp(6px, 1.4svh, 14px) 0 0;
  }

  .hero__index ol {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .hero__index a {
    font-size: clamp(13px, min(1.05vw, 2.2svh), 19px);
  }

  .hero__index a span {
    font-size: clamp(9px, min(0.7vw, 1.4svh), 12px);
  }

  .hero__scroll {
    grid-area: scroll;
  }
}
