/* キャラクター図鑑 — フィギュア展示ギャラリー調のライトテーマ。
   配色の根拠: 図鑑×図鑑ファミリーの共通アイデンティティ（トップカードの木製棚、
   yokai/WHの金・真鍮系アクセント）から、ウォルナット材 + 真鍮を構造色に採る。
   世界遺産図鑑の「温かい紙のレイヤー」設計（--paper/--wall/羊皮紙的階調）を下限品質とする。 */

:root {
  color-scheme: light;
  --paper: #fafaf8;
  --paper-strong: #ffffff;
  --wall: #f1f0ec;
  --ink: #211f1c;
  --ink-soft: #4a4741;
  --muted: #807b72;
  --walnut: #63513c;
  --walnut-deep: #453729;
  --brass: #a08040;
  --brass-soft: #c2a468;
  --brass-tint: rgba(160, 128, 64, 0.08);
  --line: rgba(33, 31, 28, 0.12);
  --line-strong: rgba(33, 31, 28, 0.22);
  --shadow: 0 26px 70px rgba(28, 26, 22, 0.14);
  --shadow-soft: 0 14px 34px rgba(28, 26, 22, 0.1);
  --max: 1180px;
  --wide: 1520px;
  --header-height: 84px;
  --display-font: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: #f3f2ee;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1400px 700px at 85% -8%, rgba(112, 108, 98, 0.05), transparent 62%),
    radial-gradient(1100px 800px at -10% 108%, rgba(112, 108, 98, 0.04), transparent 55%),
    linear-gradient(180deg, #fdfdfc 0%, var(--paper) 34%, #f3f2ee 100%);
  background-attachment: fixed;
  font-family: var(--body-font);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  background:
    radial-gradient(360px 100px at 58% -40%, rgba(205, 163, 82, 0.1), transparent 72%),
    rgba(255, 252, 244, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(166, 123, 50, 0.38);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.site-header::before,
.site-header::after {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 36px;
  aspect-ratio: 1;
  content: "";
  background: url("ornament-corner-v3.webp") center / contain no-repeat;
  opacity: 0.78;
  pointer-events: none;
}

.site-header::before {
  left: 0;
}

.site-header::after {
  right: 0;
  transform: rotate(90deg);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  width: min(100% - 56px, 1620px);
  min-height: var(--header-height);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
  justify-self: start;
}

.zukan-home-link {
  max-width: 100%;
}

.brand__mark {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: var(--walnut-deep);
  border: 1px solid var(--walnut-deep);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 14px rgba(80, 54, 32, 0.28);
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__text strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.brand__text small {
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav {
  justify-self: end;
}

.global-brand {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  width: min(32vw, 286px);
  min-width: 0;
  padding: 4px 0;
}

.global-brand img {
  width: 100%;
  height: auto;
}

/* ---------- 詳細ヒーロー: 左=名前 / 中央=フィギュア / 右=カバー ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 8% 0%, rgba(112, 108, 98, 0.05), transparent 60%),
    linear-gradient(180deg, #fdfdfc 0%, #f7f6f3 100%);
  border-bottom: 1px solid var(--line-strong);
}

.hero::before {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 4;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--brass-soft) 30%, var(--brass) 50%, var(--brass-soft) 70%, transparent);
  opacity: 0.6;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(22px, 2.6vw, 42px);
  width: min(100% - 48px, var(--wide));
  min-height: clamp(416px, 34vw, 544px);
  margin: 0 auto;
  padding: clamp(28px, 3.6vw, 44px) 0 0;
}

.hero__copy {
  position: relative;
  z-index: 3;
  display: grid;
  grid-column: 1;
  gap: 12px;
  min-width: 0;
  justify-items: start;
  padding-bottom: clamp(36px, 4.5vw, 56px);
  text-align: left;
}

.hero__series {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  overflow-wrap: break-word;
}

.hero__series::before {
  flex: 0 0 auto;
  width: 34px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--brass), transparent);
}

.hero__title {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 3.1vw, 2.85rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.24;
  overflow-wrap: break-word;
}

.hero__kana {
  min-width: 0;
  max-width: 100%;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.3em;
  overflow-wrap: break-word;
}

.hero__tagline {
  min-width: 0;
  max-width: 100%;
  margin: 10px 0 0;
  padding-top: 14px;
  color: var(--walnut);
  border-top: 1px solid var(--line);
  font-family: var(--display-font);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.hero__lead {
  min-width: 0;
  max-width: 34em;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--display-font);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 2;
  overflow-wrap: break-word;
}

/* 属性タグ。件数は項目ごとにまちまちなので、上限を設けず折り返して収める。 */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero__tag {
  padding: 5px 12px;
  color: var(--walnut);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--brass-tint);
  font-family: var(--body-font);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
}

.hero__art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: end center;
  grid-column: 2;
  align-self: end;
  min-width: 0;
  margin: 0;
  padding: 10px 0 26px;
}

/* フィギュアの接地面（展示台のような楕円の落ち影） */
.hero__art::after {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 0;
  width: min(66%, 260px);
  height: 20px;
  content: "";
  background: radial-gradient(50% 50% at 50% 50%, rgba(28, 26, 22, 0.26), rgba(28, 26, 22, 0.1) 55%, transparent 72%);
  transform: translateX(-50%);
}

.hero__figure {
  position: relative;
  z-index: 1;
  width: min(360px, 94%);
  max-height: clamp(340px, 35vw, 512px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 20px rgba(28, 26, 22, 0.18));
}

/* カバー画像: ヒーロー右側に全面ブリードで敷くキービジュアル。
   左端はヒーロー背景色へ溶かし、中央のフィギュアと干渉させない */
.hero__cover {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: min(52%, 980px);
  min-width: 0;
  margin: 0;
}

.hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero__cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #fbfbf9 0%, rgba(251, 251, 249, 0.6) 14%, rgba(251, 251, 249, 0) 34%);
}

/* ---------- 本文 ---------- */

.article-wrap {
  position: relative;
}

.article-wrap__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 56px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.article-stack {
  grid-column: 1;
  min-width: 0;
}

.article-section {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 32px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.article-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section-heading__ornament {
  position: relative;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 15px;
  background: linear-gradient(135deg, var(--brass-soft), var(--brass));
  box-shadow: 0 0 0 3px var(--brass-tint);
  transform: rotate(45deg);
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.section-heading h2::after {
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 14px;
  content: "";
  background: linear-gradient(90deg, var(--brass), rgba(166, 127, 53, 0.08));
}

.article-section__body {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}

.article-section__body p {
  margin: 0;
}

.article-section__body p + p {
  margin-top: 1.15em;
}

.article-section__body strong {
  color: var(--walnut-deep);
  font-weight: 700;
  background: linear-gradient(transparent 64%, rgba(200, 164, 95, 0.3) 64%);
}

/* 本文中のイメージカット（リラックス/シリアス）。登録がある項目だけ出る任意画像。
   直前セクションの余白（padding-bottom 38px）に続けて置き、見出し列に揃えず本文カラム全幅で敷く。 */
.article-cut {
  margin: 0 0 38px;
}

.article-cut img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* ネタバレ。details に grid を敷くと閉じている間も本文が表示されてしまうため、
   レイアウトは block のままにして summary と本文をそれぞれ組む。 */
details.article-section--spoiler {
  display: block;
}

/* 開閉トグルなので、見出しを全幅のクリック可能なバーにする。 */
.article-section--spoiler > summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.article-section--spoiler > summary::-webkit-details-marker {
  display: none;
}

.article-section--spoiler > summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.spoiler-hint {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.article-section--spoiler[open] .spoiler-hint {
  display: none;
}

/* 本文は他セクションの本文と同じ位置に揃える（見出し列 152px + gap 32px）。 */
.article-section--spoiler > .article-section__body {
  margin-top: 24px;
  margin-left: 184px;
}

/* ---------- サイドバー ---------- */

.side-stack {
  grid-column: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
}

.info-panel,
.quote-panel {
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.info-panel h2,
.quote-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 17px 20px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(33, 31, 28, 0.028), rgba(33, 31, 28, 0));
  border-bottom: 1px solid var(--line);
  font-family: var(--display-font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.info-panel h2::before,
.quote-panel h2::before {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  content: "";
  background: linear-gradient(135deg, var(--brass-soft), var(--brass));
  transform: rotate(45deg);
}

/* セリフ引用 */

.quote-panel {
  position: relative;
  background:
    radial-gradient(340px 200px at 108% -12%, rgba(160, 128, 64, 0.07), transparent 70%),
    var(--paper-strong);
}

.quote-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 6px 20px 20px;
  list-style: none;
}

.quote-list__item {
  position: relative;
  padding: 18px 2px 16px 30px;
  border-top: 1px solid var(--line);
}

.quote-list__item:first-child {
  border-top: 0;
}

.quote-list__item::before {
  position: absolute;
  top: 10px;
  left: 0;
  content: "\201C";
  color: var(--brass-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1;
}

.quote-list__text {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.quote-list__source {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-align: right;
}

.quote-list__source::before {
  content: "— ";
  color: var(--brass);
}

/* 基本情報 */

.fact-list {
  margin: 0;
  padding: 4px 20px 18px;
}

.fact-list__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.fact-list__row:first-child {
  border-top: 0;
}

.fact-list dt,
.fact-list dd {
  margin: 0;
}

.fact-list dt {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.fact-list dd {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* 来歴 */

.timeline {
  position: relative;
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 6px 22px 22px 46px;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 28px;
  left: 31px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, var(--brass), rgba(166, 127, 53, 0.1));
}

.timeline li {
  position: relative;
  display: grid;
  gap: 3px;
}

.timeline li::before {
  position: absolute;
  top: 0.66em;
  left: -20px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--paper-strong);
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}

.timeline time {
  color: var(--walnut);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.timeline span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- 一覧 ---------- */

.index-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f6efe2;
  background: #1a140f;
  border: 1px solid rgba(188, 139, 54, 0.74);
  box-shadow: 0 8px 20px rgba(71, 48, 19, 0.16), inset 0 0 0 1px rgba(255, 227, 164, 0.16);
}

.index-hero::before,
.index-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.index-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 11, 8, 0.9) 0%, rgba(15, 11, 8, 0.72) 22%, rgba(15, 11, 8, 0.35) 36%, rgba(15, 11, 8, 0.08) 52%, transparent 68%),
    linear-gradient(180deg, rgba(12, 9, 7, 0.1), transparent 38%, rgba(12, 9, 7, 0.42));
}

.index-hero::after {
  z-index: 3;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), inset 0 -1px rgba(206, 164, 84, 0.2);
}

.index-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(100% - 56px, 1620px);
  min-height: clamp(330px, 22vw, 365px);
  margin: 0 auto;
  pointer-events: none;
}

.index-hero__copy {
  width: min(36%, 550px);
  padding: 36px 0 40px;
}

.index-hero h1 {
  margin: 0;
  color: #fffaf0;
  font-family: var(--display-font);
  font-size: clamp(2.7rem, 3.4vw, 3.55rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.48);
}

.index-hero h1::after {
  display: block;
  width: min(100%, 510px);
  height: 1px;
  margin-top: 14px;
  content: "";
  background: linear-gradient(90deg, rgba(228, 193, 122, 0.92), rgba(228, 193, 122, 0.35) 78%, transparent);
  box-shadow: 0 1px rgba(59, 36, 12, 0.7);
}

.index-hero__lead {
  max-width: 34em;
  margin: 14px 0 0;
  color: rgba(255, 248, 236, 0.82);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.index-hero__count {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 6px 12px;
  color: #e8cc91;
  border: 1px solid rgba(218, 179, 104, 0.38);
  font-family: var(--display-font);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.index-hero__gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.index-hero__gallery::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: url("hero-radiance-v3.webp") center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.38;
  pointer-events: none;
}

.index-hero-card {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  overflow: hidden;
  z-index: 0;
  width: 18%;
  background: #211a14;
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  transition: filter 220ms var(--ease);
}

.index-hero-card[hidden] {
  display: none;
}

.index-hero-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 10, 7, 0.08), transparent 45%, rgba(15, 10, 7, 0.2));
  box-shadow: inset 1px 0 rgba(255, 243, 215, 0.22), inset -1px 0 rgba(26, 16, 8, 0.28);
  pointer-events: none;
}

.index-hero-card:hover,
.index-hero-card:focus-visible {
  z-index: 1;
  filter: brightness(1.08) saturate(1.08);
  outline: none;
}

.index-hero-card:focus-visible::after {
  box-shadow: inset 0 0 0 3px rgba(255, 225, 165, 0.92);
}

.index-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transform: scale(1.045);
  transition: transform 300ms var(--ease);
}

.index-hero-card:hover img,
.index-hero-card:focus-visible img {
  transform: scale(1.08);
}

.index-hero-card span {
  display: none;
}

.index-hero-card--1 { left: -4%; }
.index-hero-card--2 { left: 9%; }
.index-hero-card--3 { left: 22%; }
.index-hero-card--4 { left: 35%; }
.index-hero-card--5 { left: 48%; }
.index-hero-card--6 { left: 61%; }
.index-hero-card--7 { left: 74%; }
.index-hero-card--8 { left: 87%; }

.frame-corner {
  position: absolute;
  z-index: 4;
  display: block;
  width: 48px;
  aspect-ratio: 1;
  background: url("ornament-corner-v3.webp") center / contain no-repeat;
  pointer-events: none;
}

.frame-corner--tl { top: -1px; left: -1px; }
.frame-corner--tr { top: -1px; right: -1px; transform: rotate(90deg); }
.frame-corner--br { right: -1px; bottom: -1px; transform: rotate(180deg); }
.frame-corner--bl { bottom: -1px; left: -1px; transform: rotate(270deg); }

.index-wrap {
  width: min(100% - 56px, 1620px);
  margin: 0 auto;
  padding: 24px 0 76px;
}

.index-empty {
  padding: 60px 24px;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: center;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.index-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--wall);
  border: 1px solid rgba(181, 130, 45, 0.72);
  border-radius: 2px;
  box-shadow: 0 4px 11px rgba(80, 53, 18, 0.14);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.index-card:hover,
.index-card:focus-visible {
  border-color: #d3a654;
  box-shadow: 0 10px 24px rgba(67, 43, 14, 0.23);
  transform: translateY(-3px);
  outline: none;
}

.index-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(160, 128, 64, 0.28), 0 12px 28px rgba(45, 33, 19, 0.2);
}

.index-card > .frame-corner {
  width: min(15%, 29px);
  opacity: 0.84;
}

.index-card__visual {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.index-card__visual::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.index-card__visual::before {
  z-index: 1;
  background: linear-gradient(180deg, transparent 46%, rgba(17, 11, 7, 0.08) 58%, rgba(17, 11, 7, 0.94) 100%);
}

.index-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms var(--ease), filter 260ms var(--ease);
}

.index-card:hover .index-card__image,
.index-card:focus-visible .index-card__image {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.035);
}

.index-card__meta {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 28% 10px 8px;
  pointer-events: none;
}

.index-card__series,
.index-card__name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.index-card__series {
  color: #dec38b;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.index-card__name {
  color: #fffaf0;
  font-family: var(--display-font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.72);
}

/* ---------- フッター ---------- */

.site-footer {
  background: linear-gradient(180deg, rgba(33, 31, 28, 0.02), rgba(33, 31, 28, 0.05)), var(--wall);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(100% - 48px, var(--wide));
  min-height: 112px;
  margin: 0 auto;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.site-footer a {
  color: var(--walnut);
  border-bottom: 1px solid rgba(107, 74, 44, 0.3);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.site-footer a:hover {
  color: var(--brass);
  border-color: var(--brass);
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 1380px) {
  .index-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .index-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  /* ヒーローを縦積みへ: フィギュア → 名前 → カバー（カバーは全幅ブリードの帯） */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 28px;
    width: min(100% - 48px, 720px);
    min-height: 0;
    padding-bottom: 0;
  }

  .hero__art {
    grid-column: 1;
    order: 1;
    width: 100%;
    align-self: auto;
  }

  .hero__copy {
    grid-column: 1;
    order: 2;
    justify-items: center;
    padding-bottom: 8px;
    text-align: center;
  }

  .hero__series::before {
    display: none;
  }

  .hero__cover {
    position: static;
    order: 3;
    width: 100vw;
    height: clamp(260px, 58vw, 430px);
    margin-left: calc(50% - 50vw);
  }

  .hero__cover::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .article-wrap__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .article-stack,
  .side-stack {
    grid-column: 1;
  }

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

  .index-hero__copy {
    width: min(52%, 500px);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .site-header__inner,
  .article-wrap__inner,
  .index-hero__inner,
  .index-wrap,
  .site-footer__inner {
    width: min(100% - 32px, var(--max));
  }

  .index-hero__inner {
    min-height: 292px;
  }

  .index-hero__copy {
    width: 70%;
    padding: 30px 0 32px;
  }

  .index-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
    letter-spacing: 0.05em;
  }

  .index-hero__lead {
    margin-top: 12px;
    font-size: 0.78rem;
    line-height: 1.7;
  }

  .index-hero__count {
    margin-top: 14px;
  }

  .hero__inner {
    width: min(100% - 32px, 720px);
    gap: 24px;
    padding: 36px 0 44px;
  }

  .hero__figure {
    width: min(300px, 76vw);
    max-height: 380px;
  }

  .brand__text strong {
    font-size: 1.05rem;
  }

  .brand__text small {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .global-brand {
    width: 122px;
    min-width: 0;
  }

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

  .index-wrap {
    padding: 40px 0 64px;
  }

  .index-card__meta {
    gap: 0;
    padding: 28% 6px 5px;
  }

  .index-card__series {
    display: none;
  }

  .index-card__name {
    font-size: 0.64rem;
    letter-spacing: 0;
  }

  .article-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 30px 0;
  }

  .article-cut {
    margin-bottom: 30px;
  }

  .article-section--spoiler > .article-section__body {
    margin-top: 16px;
    margin-left: 0;
  }

  .section-heading h2 {
    font-size: 1.42rem;
  }

  .fact-list__row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 9px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .brand__text strong {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .global-brand {
    width: 108px;
  }

  .hero__title {
    font-size: 2.05rem;
  }

  .index-grid {
    gap: 6px;
  }

  .index-card__meta {
    padding: 26% 5px 4px;
  }

  .index-card__name {
    font-size: 0.58rem;
  }
}
