/**
 * 深淵書架 TOP 新候補 — 案B「深度ゾーン書庫」(2026-07-26 Round 1決定)
 * スクロール=書庫を潜る。scene色はCSS変数のみ(WebGL/動画不使用)。
 * v2.1可読性原則を継続: テキストは無地に近い高コントラスト面の上にのみ置く
 * (ヒーロー・終着のみ重スクリム+text-shadow)。
 */

.shn-top {
  /* tokens */
  --abyss-black: #05090d;
  --panel-1: #0a1218;
  --panel-2: #0e1a22;
  --panel-3: #13222c;
  --archive-paper: #d8d0be;
  --oxidized-brass: #b89a5e;
  --brass-bright: #d4b87c;
  --sealed-red: #8a3838;
  --text-hi: #f2f4f1;
  --text-mid: #c8d0cc;
  --text-low: #8f9c98;
  --line: rgba(200, 208, 204, 0.14);
  /* scene(現在深度の色。JSがスクロールに応じてroot data-sceneを更新) */
  --scene-accent: #3c6a6e;
  --scene-glow: rgba(80, 150, 145, 0.25);

  background: var(--abyss-black);
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
  overflow-x: hidden;
}
.shn-top[data-scene="entity"]  { --scene-accent: #2a9d8a; --scene-glow: rgba(42, 157, 138, 0.32); }
.shn-top[data-scene="source"]  { --scene-accent: #c9a45e; --scene-glow: rgba(201, 164, 94, 0.3); }
.shn-top[data-scene="feature"] { --scene-accent: #b04a4a; --scene-glow: rgba(176, 74, 74, 0.28); }

/* =============== 海面: ヒーロー =============== */
.shn-top-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 5vw 90px;
  isolation: isolate;
}
.shn-top-bg, .shn-top-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -3;
}
.shn-top-tint {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 65% 55% at 50% 40%, var(--scene-glow), transparent 72%),
    linear-gradient(180deg, rgba(5, 9, 13, 0.62), rgba(5, 9, 13, 0.3) 38%, rgba(5, 9, 13, 0.86) 78%, var(--abyss-black) 100%);
  transition: background 0.9s ease;
}
.shn-top-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shn-top-particles i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--scene-accent); opacity: 0.3;
  animation: shn-top-drift 18s linear infinite;
}
.shn-top-particles i:nth-child(1) { left: 8%;  bottom: 6%; }
.shn-top-particles i:nth-child(2) { left: 22%; bottom: 12%; animation-delay: -3s; animation-duration: 22s; }
.shn-top-particles i:nth-child(3) { left: 37%; bottom: 4%;  animation-delay: -7s; }
.shn-top-particles i:nth-child(4) { left: 52%; bottom: 16%; animation-delay: -11s; animation-duration: 25s; }
.shn-top-particles i:nth-child(5) { left: 64%; bottom: 8%;  animation-delay: -5s; }
.shn-top-particles i:nth-child(6) { left: 76%; bottom: 3%;  animation-delay: -9s; animation-duration: 20s; }
.shn-top-particles i:nth-child(7) { left: 88%; bottom: 14%; animation-delay: -14s; }
.shn-top-particles i:nth-child(8) { left: 95%; bottom: 7%;  animation-delay: -2s; animation-duration: 27s; }
@keyframes shn-top-drift {
  from { transform: translateY(0); opacity: 0; }
  12%  { opacity: 0.3; }
  88%  { opacity: 0.26; }
  to   { transform: translateY(-70vh); opacity: 0; }
}

.shn-top-hero-inner { max-width: 860px; }
.shn-top-eyebrow {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--brass-bright);
  margin: 0 0 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.shn-top-logo {
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(38px, 5vw, 64px); /* PCでは1行に収める(改行はモバイルのみ) */
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85), 0 0 60px rgba(120, 180, 175, 0.25);
}
.shn-top-hero-cite {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--brass-bright);
  opacity: 0.9;
  margin: 0 0 36px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
/* 2026-07-27: ヒーロー題辞の左から順の「ふわー」出現(浮遊引用かぶり廃止の代替演出) */
.shn-hero-reveal .shn-hero-ch {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}
.shn-hero-reveal-go .shn-hero-reveal .shn-hero-ch {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .shn-hero-reveal .shn-hero-ch { opacity: 1; transform: none; filter: none; transition: none; }
}

.shn-top-tagline {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-hi);
  margin: 0 0 30px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.shn-top-br-sp { display: none; } /* モバイルのみ改行(640px以下で解除) */

.shn-top-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.shn-top-btn {
  display: inline-block;
  min-width: 220px;
  padding: 16px 34px;
  border: 1px solid rgba(212, 184, 124, 0.75);
  color: var(--text-hi);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-align: center;
  background: rgba(5, 9, 13, 0.78);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.shn-top-btn:hover, .shn-top-btn:focus-visible {
  background: rgba(184, 154, 94, 0.22);
  color: #fff;
  transform: translateY(-1px);
}
.shn-top-btn-primary {
  background: linear-gradient(180deg, #cfae6e, #a3824c);
  color: #14100a;
  border-color: transparent;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
}
.shn-top-btn-primary:hover, .shn-top-btn-primary:focus-visible {
  background: linear-gradient(180deg, #e0c184, #b3905a);
  color: #14100a;
}

.shn-top-scrollcue {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.34em; color: var(--text-low);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.shn-top-scrollcue span { width: 1px; height: 36px; background: linear-gradient(180deg, var(--brass-bright), transparent); }

/* =============== 深度ゾーン =============== */
.shn-top-zone {
  position: relative;
  padding: 90px 5vw;
  scroll-margin-top: 70px;
  /* ゾーン自身のscene色(JSなしでも各ゾーンの空気が変わる)。
     境界線は引かない: 深度は背景グラデーションの連鎖だけで連続的に沈める
     (前段の終端色=次段の開始色。境目を見せない 2026-07-26 Round3指示) */
}
.shn-top-zone[data-scene="entity"]  { --scene-accent: #2a9d8a; --scene-glow: rgba(42, 157, 138, 0.32); }
.shn-top-zone[data-scene="feature"] { --scene-accent: #b04a4a; --scene-glow: rgba(176, 74, 74, 0.28); }
/* 深度が増すほど背景を沈める(ヒーロー終端 #05090d から連鎖) */
.shn-top-zone[data-zone="shallow"] { background: linear-gradient(180deg, #05090d, #081119 26%, #060d14); }
.shn-top-zone[data-zone="main"]    { background: linear-gradient(180deg, #060d14, #04090f); }
.shn-top-zone[data-zone="abyss"]   { background: linear-gradient(180deg, #04090f, #020508); }
.shn-top-zone::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 100%;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, var(--scene-glow), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
/* 常時漂うマリンスノー(CSSのみ。reduced-motionでは全停止) */
.shn-top-zone::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 22% 30%, rgba(200, 220, 224, 0.5), transparent 100%),
    radial-gradient(1.2px 1.2px at 68% 62%, rgba(180, 205, 212, 0.42), transparent 100%),
    radial-gradient(1px 1px at 42% 84%, rgba(170, 195, 205, 0.36), transparent 100%),
    radial-gradient(1.3px 1.3px at 88% 18%, rgba(190, 212, 218, 0.4), transparent 100%);
  background-size: 460px 520px, 380px 440px, 300px 340px, 540px 600px;
  opacity: 0.5;
  animation: shn-top-snow 46s linear infinite;
}
@keyframes shn-top-snow {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 30px 520px, -24px 440px, 18px 340px, -36px 600px; }
}
.shn-top-zone-inner { position: relative; max-width: 1240px; margin: 0 auto; }
.shn-top-kicker {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--brass-bright);
  margin: 0 0 10px;
}
.shn-top-zone-depth {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: var(--scene-accent);
  margin-right: 10px;
  letter-spacing: 0.16em;
}
.shn-top-h2 {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin: 0;
  color: var(--text-hi);
}
.shn-top-h3 {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0;
  color: var(--text-hi);
}
.shn-top-zone-lead { font-size: 15px; color: var(--text-mid); max-width: 680px; margin: 12px 0 30px; }

.shn-top-zone-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.shn-top-zone-cards + .shn-top-zone-cards { margin-top: 16px; }
.shn-top-zone-cards a,
.shn-top-zone-cards .is-sealed > span {
  display: block;
  border: 1px solid var(--line);
  border-left: 3px solid var(--scene-accent);
  padding: 18px 22px;
  text-decoration: none;
  color: var(--text-hi);
  background: var(--panel-2);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.shn-top-zone-cards a:hover,
.shn-top-zone-cards a:focus-visible {
  border-color: var(--scene-accent);
  background: var(--panel-3);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px -12px var(--scene-glow);
}
.shn-top-zone-cards b { display: block; font-size: 17px; font-weight: 600; letter-spacing: 0.06em; }
.shn-top-zone-cards small { display: block; font-size: 12px; color: var(--text-low); margin-top: 4px; letter-spacing: 0.06em; }
.shn-top-zone-cards .is-sealed > span { opacity: 0.5; border-style: dashed; cursor: not-allowed; }
.shn-top-zone-cards .is-sealed small { color: #c86a6a; }

/* --- 2026-07-27 ナビカード改修: 画像付き大型カード(has-media) ---
   テキストは画像に重ねず、下の不透明パネルに置く(v2.1可読性原則)。 */
.shn-top-zone-cards li.has-media a {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.shn-top-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060c11;
}
.shn-top-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.35s ease;
  opacity: 0.9;
}
.shn-top-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 17, 0) 55%, rgba(6, 12, 17, 0.72) 100%);
  pointer-events: none;
}
.shn-top-zone-cards li.has-media a:hover .shn-top-card-media img,
.shn-top-zone-cards li.has-media a:focus-visible .shn-top-card-media img {
  transform: scale(1.05);
  opacity: 1;
}
.shn-top-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 20px 18px;
}
.shn-top-card-role {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--brass-bright);
  margin-bottom: 6px;
}
.shn-top-card-role::before { content: "— "; opacity: 0.6; }
.shn-top-zone-cards li.has-media b { font-size: 19px; }
.shn-top-zone-cards li.has-media small { font-size: 12.5px; line-height: 1.7; margin-top: 6px; }
.shn-top-card-count {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--scene-accent);
}
/* 画像なしカード(tools等)にbody構造が来た場合も破綻しないように */
.shn-top-zone-cards li:not(.has-media) .shn-top-card-body { padding: 0; }
.shn-top-zone-cards li:not(.has-media) .shn-top-card-count { padding-top: 8px; }

/* =============== 浅海: 最新の記録+新着の入手物 =============== */
.shn-top-latest { margin-top: 46px; }
.shn-top-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.shn-top-items-head { margin-top: 34px; }
.shn-top-news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.shn-top-news-list a {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--oxidized-brass);
  padding: 14px 22px 14px 14px;
  text-decoration: none;
  color: var(--text-hi);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.shn-top-news-list a:hover, .shn-top-news-list a:focus-visible {
  background: var(--panel-3);
  border-left-color: var(--brass-bright);
}
.shn-top-news-list img,
.shn-top-news-noimg {
  width: 104px; height: 66px;
  object-fit: cover;
  flex: none;
  display: grid; place-items: center;
  background: var(--panel-1);
  color: var(--text-low);
  font-size: 22px;
}
.shn-top-news-body { min-width: 0; }
.shn-top-news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.shn-top-news-meta time { font-size: 13px; color: var(--text-low); letter-spacing: 0.08em; }
.shn-top-chip {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 2px 10px;
  background: rgba(184, 154, 94, 0.16);
  border: 1px solid rgba(184, 154, 94, 0.5);
  color: var(--brass-bright);
}
.shn-top-chip[data-kind="改訂"] {
  background: rgba(140, 160, 156, 0.12);
  border-color: rgba(140, 160, 156, 0.45);
  color: var(--text-mid);
}
.shn-top-chip-cat { background: transparent; border-color: var(--line); color: var(--text-low); }
.shn-top-chip-buy {
  background: rgba(215, 169, 79, 0.2);
  border-color: rgba(215, 169, 79, 0.65);
  color: #e6c26a;
}
.shn-top-news-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============== 遷移演出(読むテキストなし) =============== */
.shn-top-transition {
  position: relative;
  height: 46vh;
  min-height: 260px;
  overflow: hidden;
  isolation: isolate;
}
.shn-top-transition img {
  position: absolute; inset: -4% 0;
  width: 100%; height: 108%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.7) saturate(0.85);
  animation: shn-top-drift-slow 30s ease-in-out infinite alternate;
}
@keyframes shn-top-drift-slow {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.07) translateY(-1.5%); }
}
.shn-top-transition-fx { position: absolute; inset: 0; z-index: -1; }
/* 前後ゾーンの背景色(#060d14)へ深くフェードし、境目を見せない */
.shn-top-transition-vortex { background: #060d14; }
.shn-top-transition-vortex .shn-top-transition-fx {
  background:
    linear-gradient(180deg, #060d14 0%, rgba(6, 13, 20, 0) 36%, rgba(6, 13, 20, 0) 62%, #060d14 100%);
}
.shn-top-transition-lightshaft { background: #04090f; }
.shn-top-transition-lightshaft .shn-top-transition-fx {
  background:
    linear-gradient(180deg, rgba(160, 200, 210, 0.0) 0%, rgba(160, 200, 210, 0.14) 30%, rgba(160, 200, 210, 0.05) 70%, transparent 100%),
    linear-gradient(90deg, transparent 46%, rgba(190, 220, 228, 0.16) 50%, transparent 54%);
  animation: shn-top-shaft 7s ease-in-out infinite alternate;
}
@keyframes shn-top-shaft {
  from { opacity: 0.65; transform: translateX(-1.5%); }
  to   { opacity: 1;    transform: translateX(1.5%); }
}

/* =============== このサイトについて(2026-07-28新設) =============== */
.shn-top-about {
  position: relative;
  padding: 72px 6vw 56px;
  background: linear-gradient(180deg, #071018, #0a1520);
  border-bottom: 1px solid rgba(212, 184, 124, 0.14);
}
.shn-top-about-lead {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-mid);
  max-width: 760px;
  margin: 14px 0 26px;
}
.shn-top-about-grid {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.shn-top-about-grid a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass-bright);
  background: var(--panel-2);
  text-decoration: none;
  color: var(--text-hi);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.shn-top-about-grid a:hover { background: var(--panel-3); border-color: var(--brass-bright); }
.shn-top-about-grid b { display: block; font-size: 16px; letter-spacing: 0.08em; margin-bottom: 6px; }
.shn-top-about-grid small { display: block; font-size: 12px; color: var(--text-low); line-height: 1.7; }
.shn-top-about-note { font-size: 13px; color: var(--text-low); line-height: 2; max-width: 760px; margin: 0; }
.shn-top-about-note a { color: var(--brass-bright); }
@media (max-width: 640px) {
  .shn-top-about { padding: 48px 5vw 40px; }
  .shn-top-about-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* =============== 終着: ルルイエ遠景(視覚のみ) =============== */
.shn-top-terminus {
  position: relative;
  height: 56vh;
  min-height: 320px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.shn-top-terminus img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.75);
}
.shn-top-terminus-tint {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #020508 0%, transparent 34%, rgba(2, 5, 8, 0.7) 100%);
}
.shn-top-terminus-mark {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 15px;
  letter-spacing: 0.6em;
  color: rgba(216, 208, 190, 0.55);
  margin: 0 0 34px 0.6em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

/* =============== 深度メーター(ゾーン目次) =============== */
.shn-top-meter {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 14px 6px;
}
.shn-top-meter-rail {
  position: absolute;
  top: 10px; bottom: 10px;
  right: 13px;
  width: 2px;
  background: rgba(212, 184, 124, 0.25);
}
.shn-top-meter-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--brass-bright);
  transition: height 0.15s linear;
}
.shn-top-meter a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
  min-height: 16px;
}
.shn-top-meter a i {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--brass-bright);
  background: var(--abyss-black);
  flex: none;
  margin-right: -2px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.shn-top-meter a span {
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-low);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  background: rgba(5, 9, 13, 0.85);
  padding: 3px 10px;
  border: 1px solid var(--line);
}
/* 2026-07-28: グループホバー展開はポインタ環境限定にする。
   タッチ端末では:hoverがタップで固着し、全ラベルが本文に被る(iOS実機で確認)。 */
@media (hover: hover) and (pointer: fine) {
  .shn-top-meter:hover a span { opacity: 1; transform: none; }
}
.shn-top-meter a:focus-visible span,
.shn-top-meter a.is-active span { opacity: 1; transform: none; }
.shn-top-meter a.is-active i {
  background: var(--brass-bright);
  box-shadow: 0 0 12px rgba(212, 184, 124, 0.7);
}
.shn-top-meter a.is-active span { color: var(--brass-bright); }
.shn-top-meter-depth {
  position: absolute;
  right: 0;
  bottom: -44px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brass-bright);
  white-space: nowrap;
  opacity: 0;
}
.shn-top.js .shn-top-meter-depth { opacity: 0.9; }
.shn-top-meter-depth small { font-size: 10px; margin-left: 2px; }

/* =============== 深度引用(潜るほど名言が浮かぶ) =============== */
/* なるべく1行で見せる(2026-07-26指示): 幅を広く取り、フォントは控えめに */
.shn-top-quote {
  position: absolute;
  max-width: min(1100px, 92%);
  margin: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 2.4s ease, transform 2.8s ease;
}
.shn-top-quote p {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 2.1;
  color: rgba(205, 220, 222, 0.4);
  margin: 0 0 8px;
  text-shadow: 0 0 26px rgba(120, 180, 190, 0.3);
}
.shn-top-quote cite {
  font-style: normal;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(212, 184, 124, 0.55);
}
/* 45字超の長文引用: フォントを落として1行を維持する */
.shn-top-quote.is-long p { font-size: clamp(12px, 1.15vw, 15px); letter-spacing: 0.08em; }
.shn-top-transition .shn-top-quote.is-long p,
.shn-top-terminus .shn-top-quote.is-long p { font-size: clamp(13px, 1.3vw, 17px); }
.shn-top-quote.is-visible { opacity: 1; transform: none; }
/* JSなしでは最初から表示(演出なしで成立させる) */
.shn-top:not(.js) .shn-top-quote { opacity: 1; transform: none; }
/* 記事リンク化された引用: 全体がリンク。ホバー/フォーカスで静かに明るくなる */
.shn-top-quote.is-linked a {
  display: block;
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
}
.shn-top-quote.is-linked a:hover p,
.shn-top-quote.is-linked a:focus-visible p { color: rgba(228, 240, 240, 0.75); }
.shn-top-quote.is-linked a:hover cite,
.shn-top-quote.is-linked a:focus-visible cite { color: rgba(224, 198, 138, 0.9); }
.shn-top-quote.is-linked a:focus-visible { outline: 1px solid rgba(212, 184, 124, 0.6); outline-offset: 6px; }
/* 2026-07-27: ヒーロー(海面0m)の引用。開いてすぐ視界に入る位置に中央でふわりと出す */
.shn-top-hero .shn-top-quote {
  left: 50%;
  bottom: 110px;
  top: auto;
  transform: translate(-50%, 26px);
  text-align: center;
  max-width: min(1000px, 92%);
  width: 92%;
  z-index: 3;
}
.shn-top-hero .shn-top-quote.is-visible,
.shn-top:not(.js) .shn-top-hero .shn-top-quote { opacity: 1; transform: translate(-50%, 0); }
.shn-top-hero .shn-top-quote p { color: rgba(213, 227, 229, 0.5); }

/* 配置: ゾーン内は上部の空きに右寄せ(各スロット1件選出)、遷移帯は中央に堂々と */
.shn-top-zone .shn-top-quote { right: 4%; top: 56px; text-align: right; }
.shn-top-transition .shn-top-quote {
  left: 50%; top: 50%;
  transform: translate(-50%, -38%);
  text-align: center;
  max-width: min(1200px, 94%);
  width: 94%;
}
.shn-top-transition .shn-top-quote.is-visible,
.shn-top:not(.js) .shn-top-transition .shn-top-quote { transform: translate(-50%, -50%); }
.shn-top-transition .shn-top-quote p { color: rgba(215, 228, 230, 0.55); font-size: clamp(16px, 1.75vw, 22px); }
.shn-top-terminus .shn-top-quote {
  left: 50%; top: 38%;
  transform: translate(-50%, -30%);
  text-align: center;
  max-width: min(1200px, 94%);
  width: 94%;
}
.shn-top-terminus .shn-top-quote.is-visible,
.shn-top:not(.js) .shn-top-terminus .shn-top-quote { transform: translate(-50%, -50%); }
.shn-top-terminus .shn-top-quote p { color: rgba(216, 226, 228, 0.6); font-size: clamp(17px, 2vw, 25px); }

/* =============== モバイル =============== */
@media (max-width: 640px) {
  .shn-top { font-size: 15px; }
  .shn-top-hero { min-height: auto; padding: 110px 5vw 60px; }
  .shn-top-particles { display: none; }
  .shn-top-br-sp { display: inline; }
  .shn-top-cta { flex-direction: column; align-items: stretch; }
  .shn-top-btn { min-width: 0; }
  .shn-top-zone { padding: 56px 5vw; }
  .shn-top-zone-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shn-top-zone-cards a, .shn-top-zone-cards .is-sealed > span { padding: 14px 14px; }
  .shn-top-zone-cards b { font-size: 15px; }
  /* 画像付きカードはモバイルでは1列(画像+3行テキストを2列に押し込まない) */
  .shn-top-zone-cards li.has-media { grid-column: 1 / -1; }
  .shn-top-zone-cards li.has-media a { padding: 0; }
  .shn-top-zone-cards li.has-media b { font-size: 17px; }
  .shn-top-card-body { padding: 12px 16px 14px; }
  .shn-top-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .shn-top-news-list img, .shn-top-news-noimg { width: 84px; height: 56px; }
  .shn-top-news-title { white-space: normal; font-size: 15px; }
  .shn-top-transition { height: 34vh; min-height: 200px; }
  .shn-top-terminus { height: 38vh; min-height: 240px; }
  /* モバイル: ゾーン内の引用はカードと衝突するため遷移帯・終着のみ表示 */
  .shn-top-zone .shn-top-quote { display: none; }
  /* ヒーロー引用はモバイルでも見せる(CTAと重ならないよう下げて小さく) */
  .shn-top-hero .shn-top-quote { bottom: 64px; }
  .shn-top-hero .shn-top-quote p { font-size: 13px; line-height: 1.9; }
  .shn-top-transition .shn-top-quote p, .shn-top-terminus .shn-top-quote p { font-size: 14px; line-height: 2; }
  .shn-top-scrollcue { display: none; }
  /* メーターはドットのみ(ラベルはタップ時のfocusで出る) */
  /* モバイルは完全にドットのみ(ラベルは非表示 — is-active含む。本文への被り防止) */
  .shn-top-meter { right: 8px; gap: 20px; padding: 10px 4px; }
  .shn-top-meter a span { display: none; }
  .shn-top-meter-depth { display: none; }
}

/* =============== reduced motion =============== */
@media (prefers-reduced-motion: reduce) {
  .shn-top-particles { display: none; }
  .shn-top *, .shn-top *::before, .shn-top *::after {
    transition-duration: 0.15s !important;
    animation: none !important;
  }
}

/* =============== 神話の三層(2026-07-28新設) ===============
   このサイトの編集方針(どの記述が誰の創作かを分けて記録する)をTOPで示すカード帯。
   「深淵書架とは」の直後、深度ゾーンに入る前に置く。
   層の定義そのものは module-k-canon-layers.php にあり、ここでは見た目だけを扱う。 */
.shn-top-layers {
  position: relative;
  padding: 72px 6vw 64px;
  background: linear-gradient(180deg, #0a1520, #071018);
  border-bottom: 1px solid rgba(212, 184, 124, 0.14);
}
.shn-top-layers .shn-top-about-lead strong { color: var(--text-hi); font-weight: 600; }
.shn-layer-cards {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shn-layer-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass-bright);
  background: var(--panel-2);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.shn-layer-card:hover { background: var(--panel-3); border-color: var(--brass-bright); transform: translateY(-3px); }
/* 層ごとに上端の色を変え、一覧やバッジと視覚的に対応させる */
.shn-layer-card[data-layer="derleth"] { border-top-color: #7fa8b8; }
.shn-layer-card[data-layer="trpg"]    { border-top-color: #9b8fb5; }
.shn-layer-card-hit {
  display: flex; flex-direction: column; flex: 1;
  padding: 22px 20px 18px;
  text-decoration: none; color: inherit;
}
.shn-layer-card-no { font-size: 11px; letter-spacing: 0.2em; color: var(--brass-bright); opacity: 0.55; margin-bottom: 12px; }
.shn-layer-card-years { font-size: 11px; letter-spacing: 0.2em; color: var(--brass-bright); margin-bottom: 8px; }
.shn-layer-card h3 { margin: 0 0 12px; font-size: 17px; letter-spacing: 0.06em; line-height: 1.5; color: var(--text-hi); }
.shn-layer-card-who {
  margin: 0 0 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.9; color: var(--text-low);
}
.shn-layer-card-who strong { display: block; font-size: 14px; color: var(--brass-bright); font-weight: 600; }
.shn-layer-card-blurb { margin: 0 0 18px; font-size: 13px; line-height: 1.95; color: var(--text-mid); flex: 1; }
.shn-layer-card-more { display: block; margin-top: auto; font-size: 12px; color: var(--text-low); transition: color 0.25s ease; }
.shn-layer-card-more b { color: var(--brass-bright); font-weight: 600; }
.shn-layer-card:hover .shn-layer-card-more { color: var(--brass-bright); }
.shn-layer-card-ref {
  display: block; margin: 0 20px 16px;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-low); text-decoration: none;
  transition: color 0.25s ease;
}
.shn-layer-card-ref:hover { color: var(--brass-bright); }
@media (max-width: 900px) {
  .shn-layer-cards { grid-template-columns: 1fr; gap: 12px; }
  .shn-layer-card-blurb { flex: none; }
}
@media (max-width: 640px) {
  .shn-top-layers { padding: 48px 5vw 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .shn-layer-card:hover { transform: none; }
}
