/* ==========================================================================
   深淵アーカイブ デザインシステム
   対象: 神格・存在 / 生物図鑑 / 用語集 / 原典読解 / 作品史・年表 / 入門ガイド
         各カテゴリー一覧・詳細ページ、および将来のTOPページ後半セクション。
   既存の演出テンプレート(template-*.php)・JIN:R本体には一切影響しない。
   全クラスは .shn-arc 配下でのみ有効(グローバル汚染防止のため接頭辞必須)。
   ========================================================================== */

.shn-arc{
  --shn-ink:#0a0f0d;
  --shn-deep:#0d1f1a;
  --shn-green:#163c32;
  --shn-moss:#8aa285;
  --shn-paper:#d9d0b8;
  --shn-gold:#c9a45c;
  --shn-text:#d8cfc0;
  --shn-text-dim:#9aa79e;
  --shn-line:rgba(217,208,184,.16);
  background:var(--shn-ink);
  color:var(--shn-text);
  font-family:'Shippori Mincho',serif;
  position:relative;
  isolation:isolate;
}
.shn-arc *{box-sizing:border-box;}

/* 明暗切り替え: ライトテーマ(2026-07-24)。トークンは shinen-theme-skin.css と同じ値。
   .shn-arc はここでトークンをローカル宣言しているため、:root側の上書きだけでは効かず
   この階層でも同じ上書きが必要。 */
:root[data-theme="light"] .shn-arc{
  --shn-ink:#f5f0e3;
  --shn-deep:#ece4d0;
  --shn-green:#163c32;
  --shn-moss:#8aa285;
  --shn-paper:#2a2620;
  --shn-gold:#9c7130;
  --shn-text:#2a2620;
  --shn-text-dim:#6b6a5e;
  --shn-line:rgba(42,38,32,.16);
}
:root[data-theme="light"] .shn-arc .shn-article p,
:root[data-theme="light"] .shn-arc .shn-article ul{
  color:#3a352b;
}
:root[data-theme="light"] .shn-arc .shn-filter-input{
  background:rgba(42,38,32,.04);
}
.shn-arc a{color:inherit;text-decoration:none;}
.shn-arc .shn-kicker,
.shn-arc .shn-eyebrow,
.shn-arc .shn-latin,
.shn-arc small{
  font-family:'Unbounded',sans-serif;
  font-size:10px;
  letter-spacing:.24em;
  color:var(--shn-gold);
}

/* ---- パンくず(JIN:Rの標準パンくずと共存。アーカイブ配下だけ余白調整) ---- */
.shn-arc .shn-breadcrumbs{
  font:9px/1.8 'Unbounded',sans-serif;
  letter-spacing:.14em;
  color:var(--shn-text-dim);
  padding:100px 6vw 0; /* JIN:Rヘッダー(position:absolute)との重なり回避 */
  position:relative;
  z-index:2;
}
.shn-arc .shn-breadcrumbs a:hover{color:var(--shn-gold);}

/* ---- ページヒーロー(一覧・詳細共通の見出しブロック) ---- */
.shn-arc .shn-hero{
  min-height:340px;
  padding:60px 6vw 70px;
  display:flex;
  align-items:flex-end;
  position:relative;
  overflow:hidden;
  background:radial-gradient(circle at 75% 40%,var(--shn-green),var(--shn-deep) 55%,var(--shn-ink));
}
.shn-arc .shn-hero:before{
  content:'⌾';
  position:absolute;right:4vw;top:20px;
  font-size:220px;line-height:1;
  color:rgba(201,164,92,.08);
}
.shn-arc .shn-hero-inner{position:relative;max-width:880px;}
/* 2026-07-25追加: カテゴリー入口の演出差別化(canvas生成アニメーション)。
   shinen-hero-fx.js が該当カテゴリーのみ挿入する。prefers-reduced-motion時は
   JS側でcanvasごと挿入をスキップするため、このCSSは常時安全。 */
.shn-arc .shn-hero-fx{
  position:absolute;inset:0;width:100%;height:100%;
  mix-blend-mode:screen;opacity:.8;pointer-events:none;
}
.shn-arc .shn-hero h1{
  font-size:clamp(32px,4.6vw,58px);
  line-height:1.2;
  margin:18px 0 14px;
  font-weight:600;
  color:var(--shn-paper);
}
.shn-arc .shn-hero p{
  font-size:16px;
  line-height:1.9;
  color:var(--shn-text-dim);
  max-width:600px;
  margin:0;
}

/* ---- 神格ページ専用: 大型ポートレート+姿の引用(2026-07-24 ユーザー指示) ---- */
.shn-arc .shn-deity-portrait{
  padding:0 6vw 70px;
  border-top:none;
}
.shn-arc .shn-deity-portrait-frame{
  max-width:960px;
  margin:0 auto;
  border:1px solid var(--shn-line);
  overflow:hidden;
  background:var(--shn-deep);
}
.shn-arc .shn-deity-portrait-frame img{
  display:block;
  width:100%;
  height:auto;
  max-height:86vh;
  object-fit:contain;
  background:var(--shn-ink);
}
.shn-arc .shn-deity-portrait-quote{
  max-width:960px;
  margin:26px auto 0;
  padding:0 6vw;
  text-align:center;
}
.shn-arc .shn-deity-portrait-quote p{
  font-size:clamp(18px,2.2vw,26px);
  line-height:1.7;
  color:var(--shn-paper);
  margin:0 0 8px;
  font-weight:600;
}
.shn-arc .shn-deity-portrait-quote cite{
  display:block;
  font-style:normal;
  font-size:12px;
  letter-spacing:.08em;
  color:var(--shn-text-dim);
}

/* ---- セクション共通 ---- */
.shn-arc .shn-section{
  padding:70px 6vw;
  border-top:1px solid var(--shn-line);
  position:relative;
}
.shn-arc .shn-section.shn-alt{background:var(--shn-deep);}
.shn-arc .shn-section h2{
  font-size:clamp(26px,3.4vw,42px);
  line-height:1.25;
  margin:0 0 40px;
  font-weight:600;
  color:var(--shn-paper);
}
.shn-arc .shn-lead{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:8vw;
  margin-bottom:50px;
  align-items:start;
}
.shn-arc .shn-lead p{font-size:16px;line-height:1.95;color:var(--shn-text-dim);margin:0;max-width:52ch;}

/* ---- おすすめ横スクロールカルーセル(2026-07-24追加)
   「記事全数」の一覧とは別レイヤーで、編集部が薦める代表作だけを先に見せる。
   shinen_arc_featured=1 の投稿(archive-list-lovecraft.php等)を横スクロールで表示。 ---- */
.shn-arc .shn-featured{padding:56px 6vw 8px;border-top:1px solid var(--shn-line);}
.shn-arc .shn-featured-head{margin-bottom:22px;max-width:60ch;}
.shn-arc .shn-featured-head h2{font-size:clamp(20px,2.2vw,28px);margin:0 0 8px;color:var(--shn-paper);font-weight:600;}
.shn-arc .shn-featured-head p{font-size:13px;line-height:1.8;color:var(--shn-text-dim);margin:0;}
.shn-arc .shn-featured-track{
  display:flex;gap:18px;overflow-x:auto;padding:2px 2px 20px;margin:0 -2px;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
}
.shn-arc .shn-featured-track::-webkit-scrollbar{height:5px;}
.shn-arc .shn-featured-track::-webkit-scrollbar-track{background:transparent;}
.shn-arc .shn-featured-track::-webkit-scrollbar-thumb{background:var(--shn-line);border-radius:3px;}
.shn-arc .shn-featured-card{
  flex:0 0 auto;width:230px;scroll-snap-align:start;text-decoration:none;display:block;
  border:1px solid var(--shn-line);background:rgba(0,0,0,.14);
  transition:border-color .25s ease,transform .2s ease;
}
.shn-arc .shn-featured-card:hover{border-color:var(--shn-gold);transform:translateY(-4px);}
.shn-arc .shn-featured-photo{height:120px;background-size:cover;background-position:center;}
.shn-arc .shn-featured-body{padding:14px 16px 16px;}
.shn-arc .shn-featured-body small{font-size:10.5px;letter-spacing:.05em;color:var(--shn-text-dim);}
.shn-arc .shn-featured-body h3{font-size:15px;margin:6px 0 8px;color:var(--shn-paper);line-height:1.4;}
.shn-arc .shn-featured-body p{font-size:12px;line-height:1.75;color:var(--shn-text-dim);margin:0;}
@media(max-width:750px){
  .shn-arc .shn-featured{padding:40px 5vw 4px;}
  .shn-arc .shn-featured-card{width:200px;}
}

/* ---- カードグリッド(一覧ページの主役) ---- */
.shn-arc .shn-card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--shn-line);
  border-left:1px solid var(--shn-line);
}
.shn-arc .shn-card-grid > a{
  display:block;
  padding:30px;
  min-height:220px;
  border-right:1px solid var(--shn-line);
  border-bottom:1px solid var(--shn-line);
  transition:.25s;
}
.shn-arc .shn-card-grid > a:hover{
  background:rgba(201,164,92,.07);
  transform:translateY(-4px);
}
.shn-arc .shn-card-photo{
  height:140px;
  margin:-30px -30px 24px;
  background-size:cover;
  background-position:center;
  position:relative;
}
.shn-arc .shn-card-photo:after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(10,15,13,.15),var(--shn-ink) 96%);
}

/* 人物カテゴリーのみ: 生成ポートレートは顔が画像上部1/3に寄っているため、
   140px高のカードで background-position:center のままだと頭頂部(帽子等)が
   フレーム上端で見切れる(2026-07-28ユーザー指摘)。center 30%に寄せることで、
   headroomを確保しつつ顎も収まる範囲を実測のうえ選定した
   (E・ホフマン・プライスの帽子、ゼリア・ビショップの髪で顕著に改善)。
   他カテゴリーの象徴的サムネイル(顔を含まない)には影響させないよう
   body.category-personsでスコープする。 */
body.category-persons .shn-arc .shn-card-photo{
  background-position:center 30%;
}
.shn-arc .shn-card-mark{
  width:48px;height:48px;
  border:1px solid rgba(201,164,92,.5);
  border-radius:50%;
  display:grid;place-items:center;
  color:var(--shn-gold);
  font-size:19px;
  margin-bottom:24px;
}
.shn-arc .shn-card-grid h3{font-size:21px;margin:0 0 12px;color:var(--shn-paper);}
.shn-arc .shn-card-grid p{font-size:13.5px;line-height:1.85;color:var(--shn-text-dim);margin:0;}
.shn-arc .shn-card-grid b{display:block;margin-top:16px;font-size:10px;color:var(--shn-gold);font-weight:400;}

/* ---- 一覧の即時絞り込み検索(2026-07-25追加。カード数が多いカテゴリーのみ自動表示) ---- */
.shn-arc .shn-filter-wrap{
  display:flex;align-items:center;gap:14px;
  margin:0 0 26px;
}
.shn-arc .shn-filter-input{
  flex:1 1 auto;max-width:420px;
  padding:12px 18px;
  background:rgba(0,0,0,.25);
  border:1px solid var(--shn-line);
  border-radius:2px;
  color:var(--shn-text);
  font-family:inherit;
  font-size:14px;
}
.shn-arc .shn-filter-input::placeholder{color:var(--shn-text-dim);}
.shn-arc .shn-filter-input:focus{
  outline:none;border-color:var(--shn-gold);
}
.shn-arc .shn-filter-count{
  font-size:12px;color:var(--shn-text-dim);letter-spacing:.05em;white-space:nowrap;
}
.shn-arc .shn-filter-empty{
  color:var(--shn-text-dim);font-size:13px;padding:40px 0;text-align:center;
}

/* ---- 分類パネル(詳細ページ左サイド) ---- */
.shn-arc .shn-detail{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:7vw;
}
/* 2026-07-28: 「関連作品ガイド」以降のフル幅化は、CSSの負マージンhackから
   inc/archive-detail.php側でのテンプレート分割(.shn-detail gridの外に
   独立した.shn-guide-sectionとして出力)に置き換えた。.shn-guide-wideの
   CSSはもう不要(post_content側のdivクラスとしては残っているが無害)。
   2026-07-29(ユーザー指摘): .shn-guide-sectionは.shn-detail gridの外に
   出ているため縦の区切り線が理屈の上では伸びないはずだが、直前セクションとの
   境目が.shn-section共通の薄いborder-top(var(--shn-line))任せで分かりにくい
   との指摘。「関連作品ガイド」見出し直前に、前の見出しと1行あける余白+
   はっきりした横線を明示的に追加し、区切りを視覚的に確定させる。 */
.shn-guide-wide > h2:first-child{
  margin-top:1.6em;
  padding-top:40px;
  border-top:1px solid var(--shn-line);
}
.shn-arc .shn-aside{
  border-right:1px solid var(--shn-line);
  padding-right:34px;
  display:flex;
  flex-direction:column;
}
.shn-arc .shn-aside small{display:block;margin:18px 0 6px;}
.shn-arc .shn-aside b{color:var(--shn-gold);font-size:15px;font-weight:600;}
.shn-arc .shn-aside span{display:block;font-size:12px;line-height:1.7;color:var(--shn-text-dim);}
/* 2026-07-29: 原典リンクの説明を「あらすじ要約(shn-source-desc)」+「掲載元(shn-source-host)」
   の2段に分離。要約の方を主役として少し目立たせ、掲載元は小さな補足ラベル扱いにする。 */
.shn-arc .shn-source-desc{color:var(--shn-text);font-size:12.5px;margin-top:4px;}
.shn-arc .shn-source-host{font-size:10.5px;letter-spacing:.04em;color:var(--shn-text-dim);opacity:.75;margin-top:6px;}
.shn-arc .shn-source-link{
  display:inline-block;
  border:1px solid var(--shn-gold);
  padding:12px 14px;
  margin-top:28px;
  color:var(--shn-gold);
  font-size:10px;
  text-align:center;
}

/* ---- 出没地域マップ(サイドパネル内、Leaflet) ---- */
.shn-arc .shn-habitat-map{
  width:100%;
  height:160px;
  margin-top:10px;
  border:1px solid var(--shn-line);
  background:var(--shn-deep);
}
.shn-arc .shn-habitat-map .leaflet-control-attribution{
  font-size:8px;
  background:rgba(10,15,13,.7);
  color:var(--shn-text-dim);
}
.shn-arc .shn-habitat-map .leaflet-control-attribution a{color:var(--shn-gold);}
/* 外洋など模様のないタイルは単色に近く、コンテナ背景(--shn-deep)と明度差が
   小さいため「タイルが読み込まれていない空白」に見えてしまう(UT指摘#4)。
   タイルペインのみ明るさ/コントラストを上げて背景から視覚的に区別する。 */
.shn-arc .shn-habitat-map .leaflet-tile-pane{filter:brightness(1.8) contrast(1.1);}

/* ---- 3Dモデル欄(現在は暫定的に2D画像を表示) ---- */
.shn-arc .shn-model3d{text-align:center;}
.shn-arc .shn-model3d-note{color:var(--shn-text-dim);font-size:12.5px;margin:16px auto 0;max-width:52ch;}
.shn-arc .shn-model3d-viewer{
  width:360px;
  max-width:100%;
  height:360px;
  margin:0 auto;
  display:block;
  object-fit:cover;
  border-radius:50%;
  border:1px solid var(--shn-line);
}

/* ---- 続きを辿る(関連記事レコメンド、2026-07-25) ----
   4段階フォールバック(module-g-related-articles.php)の結果を、既存の
   .shn-featured と同じ横スクロールカルーセルの視覚言語で表示する。 */
.shn-arc .shn-nextread-head{margin-bottom:22px;}
.shn-arc .shn-nextread-head h2{font-size:clamp(20px,2.2vw,26px);margin:0;color:var(--shn-paper);font-weight:600;}
.shn-arc .shn-nextread-track{
  display:flex;gap:16px;overflow-x:auto;padding-bottom:6px;
  scroll-snap-type:x proximity;
}
.shn-arc .shn-nextread-track::-webkit-scrollbar{height:5px;}
.shn-arc .shn-nextread-track::-webkit-scrollbar-track{background:transparent;}
.shn-arc .shn-nextread-track::-webkit-scrollbar-thumb{background:var(--shn-line);border-radius:3px;}
.shn-arc .shn-nextread-card{
  flex:none;width:230px;border:1px solid var(--shn-line);background:rgba(0,0,0,.14);
  scroll-snap-align:start;transition:.2s;display:block;
}
:root[data-theme="light"] .shn-arc .shn-nextread-card{background:rgba(0,0,0,.03);}
.shn-arc .shn-nextread-card:hover{border-color:var(--shn-gold);transform:translateY(-4px);}
.shn-arc .shn-nextread-photo{height:120px;background-size:cover;background-position:center;background-color:var(--shn-green);}
.shn-arc .shn-nextread-body{padding:14px 16px 16px;}
.shn-arc .shn-nextread-reason{
  font-size:9.5px;letter-spacing:.08em;color:var(--shn-gold);
  display:flex;align-items:center;gap:5px;margin:0 0 8px;
}
.shn-arc .shn-nextread-reason span{width:5px;height:5px;border-radius:50%;background:var(--shn-gold);flex:none;display:inline-block;}
.shn-arc .shn-nextread-type{font-size:10px;color:var(--shn-text-dim);letter-spacing:.03em;margin:0;}
.shn-arc .shn-nextread-card h3{font-size:15px;margin:5px 0 7px;color:var(--shn-paper);line-height:1.4;}
.shn-arc .shn-nextread-card p:last-child{font-size:11.5px;line-height:1.75;color:var(--shn-text-dim);margin:0;}
@media(max-width:640px){
  .shn-arc .shn-nextread-card{width:190px;}
}

/* ---- タグ ---- */
.shn-arc .shn-tags{display:flex;flex-wrap:wrap;gap:8px;}
.shn-arc .shn-tags span{
  border:1px solid var(--shn-line);
  padding:8px 12px;
  font-size:11px;
  color:var(--shn-gold);
}

/* ---- 本文タイポ ---- */
.shn-arc .shn-article h2{font-size:26px;margin:44px 0 16px;color:var(--shn-paper);}
.shn-arc .shn-article h2:first-child{margin-top:0;}
.shn-arc .shn-article p{font-size:15px;line-height:2;color:#c3c2b5;margin:0 0 8px;}
.shn-arc .shn-article ul{margin:0 0 8px;padding-left:1.3em;color:#c3c2b5;font-size:14px;line-height:1.9;}
.shn-arc .shn-article a.shn-autolink{
  color:var(--shn-gold);
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
  text-decoration-color:rgba(201,164,92,.6);
}
.shn-arc .shn-article a.shn-autolink:hover{text-decoration-style:solid;}
/* 2026-07-27(ユーザー指示): 本文中のリンクは自動・手動を問わず全て下線あり。
   手動リンク(class無しのa)にも自動リンクと同じ点線下線を適用して見た目を統一する。
   ボタン類(shn-buy-btn等、class持ち)は対象外。 */
.shn-arc .shn-article a:not([class]){
  color:var(--shn-gold);
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
  text-decoration-color:rgba(201,164,92,.6);
}
.shn-arc .shn-article a:not([class]):hover{text-decoration-style:solid;}

/* ---- 本編スクロール演出の埋め込み(iframe、既存全画面テンプレートの静的書き出し) ---- */
.shn-arc .shn-fx-embed{
  background:var(--shn-ink);
  line-height:0;
}
.shn-arc .shn-fx-embed iframe{width:100%;}

/* ---- プレミアム演出(TOPページ用スクロールポリッシュ) ---- */
.shn-arc .shn-hero-parallax{background:var(--shn-ink);}
.shn-arc .shn-hero-bg{
  position:absolute;
  top:-12%;left:0;right:0;
  height:124%;
  background-size:cover;
  background-position:center;
  will-change:transform;
}
/* 2026-07-21l バグ修正: dive-heroは.shn-hero-bg(背景div方式)ではなく
   <picture><img>方式(class="shn-hero-bg-picture"/"shn-hero-bg-img")を使っているが、
   これに対応する position:absolute のCSSが一度も書かれておらず、
   .shn-hero(display:flex)の通常のフレックス項目として画像がレイアウトに
   参加してしまっていた。結果、画像が左側の945px分だけを占有し、
   文言(.shn-hero-inner)がその右側へ押し出される形になっていた
   (「左側が空いている」というより「本来フルブリードのはずの背景画像が
   横並びレイアウトの1項目になっていた」のが実態)。.shn-hero-shadeの
   左を暗くするグラデーションは文言を左に置く前提の意匠だったため、
   画像をposition:absoluteのフルブリードに直すことで、文言も自然に
   左側(暗い側)に戻る。 */
.shn-arc .shn-dive-hero .shn-hero-bg-picture{
  position:absolute;inset:0;z-index:0;
}
.shn-arc .shn-dive-hero .shn-hero-bg-img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.shn-arc .shn-hero-shade{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(3,10,8,.35),rgba(3,10,8,.15) 40%,rgba(3,10,8,.94)),
             linear-gradient(90deg,rgba(3,10,8,.6),transparent 55%);
}
.shn-arc .shn-hero-scrollcue{
  position:absolute;bottom:36px;left:6vw;
  display:flex;align-items:center;gap:10px;
  font:9px 'Unbounded',sans-serif;letter-spacing:.24em;color:var(--shn-text-dim);
}
/* 2026-07-23b(ユーザー指示): ヒーロー段階から星空の海のWebGL背景
   (.shn-dive-canvas-layer、z-index:0)を表示し、ヒーロー文言はその上の
   レイヤーとして重ねる方針に変更。文言とスクロールキューだけをcanvas-layerの
   上(z-index:2)へ出し、静止画背景(.shn-hero-bg-picture)と.shn-hero-shadeは
   z-index:0のままcanvas-layerの下に残す — これらはJS無効/モバイル/
   reduced-motion時のフォールバック表示としてのみ見える。 */
.shn-arc .shn-dive-hero .shn-hero-inner,
.shn-arc .shn-dive-hero .shn-hero-scrollcue{z-index:2;}
.shn-arc .shn-hero-scrollcue span{
  width:1px;height:34px;background:linear-gradient(var(--shn-gold),transparent);
  display:block;
}
.shn-arc .shn-btn-primary,
.shn-arc .shn-btn-ghost{
  padding:15px 22px;
  font:11px 'Unbounded',sans-serif;letter-spacing:.1em;
  transition:.35s cubic-bezier(.2,.8,.2,1);
  display:inline-block;
}
.shn-arc .shn-btn-primary{border:1px solid var(--shn-gold);color:var(--shn-paper);}
.shn-arc .shn-btn-primary:hover{background:var(--shn-gold);color:var(--shn-ink);letter-spacing:.16em;}
.shn-arc .shn-btn-ghost{border:1px solid var(--shn-line);color:var(--shn-text-dim);}
.shn-arc .shn-btn-ghost:hover{border-color:var(--shn-gold);color:var(--shn-gold);letter-spacing:.16em;}

.shn-arc .shn-skip-link{
  font:11px 'Unbounded',sans-serif;
  letter-spacing:.08em;
  color:var(--shn-text-dim);
  text-decoration:underline;
  text-underline-offset:4px;
  opacity:.8;
}
.shn-arc .shn-skip-link:hover{color:var(--shn-gold);opacity:1;}

.shn-arc .shn-card-hover{transition:transform .5s cubic-bezier(.2,.8,.2,1),background .5s;overflow:hidden;}
.shn-arc .shn-card-hover:hover{transform:translateY(-6px);}
.shn-arc .shn-card-hover .shn-card-photo{transition:transform .6s cubic-bezier(.2,.8,.2,1);}
.shn-arc .shn-card-hover:hover .shn-card-photo{transform:scale(1.06);}

/* GSAPが未読み込み/無効時は常時表示のまま(プログレッシブエンハンスメント) */
.shn-arc .shn-reveal{opacity:1;}

/* ---- レスポンシブ ---- */
@media(max-width:900px){
  .shn-arc .shn-card-grid{grid-template-columns:1fr 1fr;}
  .shn-arc .shn-detail{grid-template-columns:1fr;gap:40px;}
  .shn-arc .shn-aside{border-right:0;border-bottom:1px solid var(--shn-line);padding:0 0 30px;}
}
@media(max-width:640px){
  .shn-arc .shn-card-grid{grid-template-columns:1fr;}
  .shn-arc .shn-lead{grid-template-columns:1fr;gap:30px;}
  .shn-arc .shn-hero{padding:40px 6vw 50px;min-height:260px;}
}

/* ---- 深淵潜行 three.jsシーン(ISSUE-D01 Phase 2, 2026-07-21拡張) ----
   #shn-dive-scene の中身(.shn-dive-beat)はPHPが実データで描画した本物のHTML。
   JS未実行/機能フラグOFF/WebGL不可/reduced-motion/モバイルでは、以下の
   .shn-dive-active系ルールが一切効かず、ビートは通常の縦積みブロックとして
   読める(CLSゼロ、リンクも最初から機能する)。
   JSが起動すると#shn-dive-sceneに.shn-dive-activeが付き、
   canvas-layerがsticky背景として先頭に挿入され、各ビートがオーバーレイ表示になる。
*/
.shn-arc .shn-dive-canvas-layer{
  /* 2026-07-21h バグ修正: position:stickyでcanvas(WebGL)を追従させる実装は、
     iOS Safariでスクロール中にcanvasの再描画が追いつかず、途中で止まった
     フレーム同士が継ぎ目のように見える(色が途中でぶつ切りになる)既知の不具合が
     実機で確認された。position:fixedに切り替え、JS(dive-scene.js)側で
     #shn-dive-sceneが画面内にある間だけこのレイヤーをvisibleにする方式に変更
     (fixedはiOSのコンポジタがcanvas/video背景により安定して扱える)。 */
  position:fixed;
  top:0; left:0;
  width:100%;
  height:100vh;
  overflow:hidden;
  background:#05070b;
  z-index:0;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  /* 2026-07-21k: ヒーロー(静止画)→WebGLシーン開始が瞬時に切り替わり
     不自然、という指摘への対応。visibilityの即時切替をopacityフェードに変更。 */
  transition:opacity .9s ease, visibility 0s linear .9s;
}
.shn-arc .shn-dive-canvas-layer.shn-dive-visible{
  opacity:1;
  visibility:visible;
  transition:opacity .9s ease, visibility 0s linear 0s;
}
.shn-arc .shn-dive-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
/* 2026-07-21n: 「海面通過」ビートのスクラブ動画(渦→水面突入→水中)。
   ループ再生ではなくスクロール位置にcurrentTimeを直結させるため、
   自動再生・ループ属性は付けない(JS側で毎フレームcurrentTimeを設定)。
   canvas(z-index未指定=auto/0相当)より上、gauge(z-index:5)より下に
   置き、深度計は動画再生中も常に見える。opacityはJSがdから連続的に
   計算してクロスフェードさせる(ビート境界での唐突な切り替えを避ける)。 */
.shn-arc .shn-dive-scrub-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;
  opacity:0;
  pointer-events:none;
}
.shn-arc .shn-dive-gauge{
  position:absolute;
  right:18px;top:50%;
  transform:translateY(-50%);
  z-index:5; /* 常に最前面。パネル系ビートの上からも見える(=潜行中である感覚を切らさない) */
  text-align:right;
  font-family:'Unbounded',sans-serif;
  letter-spacing:.14em;color:var(--shn-text-dim);
  user-select:none;pointer-events:none;
}
.shn-arc .shn-dive-gauge .num{font-size:clamp(14px,1.4vw,18px);color:var(--shn-paper);font-variant-numeric:tabular-nums;display:block;}
.shn-arc .shn-dive-gauge .unit{font-size:10px;opacity:.6;}
.shn-arc .shn-dive-gauge .ticks{
  margin:10px 0 10px auto;width:14px;height:120px;
  background:repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 15px);
  opacity:.35;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 25%,#000 75%,transparent);
          mask-image:linear-gradient(to bottom,transparent,#000 25%,#000 75%,transparent);
}

.shn-arc .shn-dive-beat{
  position:relative;
  z-index:2;
  padding:14vh 8vw;
}
.shn-arc .shn-dive-active .shn-dive-beat{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  opacity:0;
  transform:translateY(28px);
  transition:opacity 1s ease, transform 1s ease;
}
.shn-arc .shn-dive-active .shn-dive-beat.in{
  opacity:1;
  transform:none;
}
/* ビート1〜4(星空の海/星の渦/海面通過/光柱の降下): 見出し+短文のみ、背景はWebGLがそのまま見える */
.shn-arc .shn-dive-beat > h2{
  font-size:clamp(24px,3.4vw,38px);color:var(--shn-paper);margin:0 0 14px;
  text-shadow:0 2px 30px rgba(0,0,0,.85);
}
.shn-arc .shn-dive-beat > p{
  max-width:34em;font-size:14.5px;line-height:1.9;color:#bcc3c4;margin:0;
  text-shadow:0 1px 18px rgba(0,0,0,.9);
}

/* WHAT IS THE MYTHOSビート: 2026-07-21kユーザー指摘「文言が浮きすぎ、演出と
   合わせた表現に」への対応で、不透明パネル背景を撤去。他の語りビートと同じく
   text-shadowのみでWebGL背景の上に直接文字を置く形に統一した
   (可読性はtext-shadowで確保、雰囲気の一体感を優先)。 */
.shn-arc .shn-dive-panel .shn-kicker{
  font-family:'Unbounded',sans-serif;font-size:10px;letter-spacing:.24em;color:var(--shn-gold);
  margin-bottom:14px;text-shadow:0 2px 20px rgba(0,0,0,.9);
}
.shn-arc .shn-dive-panel .shn-lead h2{
  font-size:clamp(26px,3.4vw,42px);margin:0 0 20px;
  text-shadow:0 2px 30px rgba(0,0,0,.9);
}
.shn-arc .shn-dive-panel .shn-lead p{
  max-width:52ch;text-shadow:0 1px 18px rgba(0,0,0,.95);
}

/* ---- 遺物ビート「.shn-dive-relic」(2026-07-21c) ----
   「カード群」というUI発想自体をやめる指示に応じ、6カテゴリー+知識の地球儀を
   グリッドカードではなく、星空の海〜光柱の降下と同じ「1ビート=1発見」の
   語りの形式に統一。写真サムネイル・罫線グリッドは廃止。巨大な印(⌾、ゆっくり
   明滅する)+見出し(リンク)+由来+短文+開くリンク、という石板/印形のような
   簡素な構成にしている。WebGLはビートの背景全面に見えたまま(パネル背景なし)。 */
.shn-arc .shn-dive-relic{
  text-align:center;
  align-items:center;
}
.shn-arc .shn-dive-relic-depth{
  font-family:'Unbounded',sans-serif;font-size:10px;letter-spacing:.3em;
  color:var(--shn-text-dim);opacity:.7;margin-bottom:18px;
}
.shn-arc .shn-dive-relic-mark{
  font-size:clamp(40px,6vw,64px);line-height:1;color:var(--shn-gold);
  margin-bottom:18px;
  animation:shn-relic-pulse 4.5s ease-in-out infinite;
}
@keyframes shn-relic-pulse{
  0%,100%{opacity:.55;text-shadow:0 0 18px rgba(201,164,92,.25);}
  50%{opacity:1;text-shadow:0 0 34px rgba(201,164,92,.55);}
}
.shn-arc .shn-dive-relic small{display:block;margin-bottom:10px;}
.shn-arc .shn-dive-relic h2{
  margin:0 0 18px;font-size:clamp(28px,4.2vw,48px);
}
.shn-arc .shn-dive-relic h2 a{
  color:var(--shn-paper);text-decoration:none;
  background-image:linear-gradient(var(--shn-gold),var(--shn-gold));
  background-repeat:no-repeat;background-position:0 100%;background-size:0% 2px;
  transition:color .35s, background-size .35s;
  padding-bottom:4px;
}
.shn-arc .shn-dive-relic h2 a:hover{color:var(--shn-gold);background-size:100% 2px;}
.shn-arc .shn-dive-relic p{
  max-width:36em;margin:0 auto;font-size:15px;line-height:1.95;color:#bcc3c4;
}
.shn-arc .shn-dive-relic-link{
  display:inline-block;margin-top:26px;
  font-family:'Unbounded',sans-serif;font-size:10.5px;letter-spacing:.16em;
  color:var(--shn-text-dim);text-decoration:none;
  border-bottom:1px solid rgba(201,164,92,.4);padding-bottom:3px;
  transition:color .3s,border-color .3s;
}
.shn-arc .shn-dive-relic-link:hover{color:var(--shn-gold);border-color:var(--shn-gold);}

/* 知識の地球儀(7件目、6カテゴリーとは別枠のボーナス到達点として少し特別扱い) */
.shn-arc .shn-dive-relic-globe{
  background:radial-gradient(circle at 50% 55%, rgba(201,164,92,.07), transparent 62%);
}
.shn-arc .shn-dive-relic-globe .shn-dive-relic-mark{animation-duration:6s;}

/* ---- 三層セクション「.shn-dive-strata」(2026-07-28) ----
   「クトゥルフ神話」が書き手の異なる三層でできていることを、TOPで明示する
   セクション。3カラムのカード帯(2026-07-28にユーザーが2026-07-21cの
   「カードをやめる」決定を撤回したため、カード形式で作ってよい)。
   背景は不透明にせず、WebGLがカード面越しに透けるガラス板の質感にしている
   (可読性はblur+暗色オーバーレイで確保しつつ、潜行演出との一体感を残す)。
   .shn-dive-relic は付けていない — dive-scene.jsのRELIC_TINTSがDOM順の
   インデックスで色味を割り当てているため(front-page-dive.php側の注記参照)。 */
.shn-arc .shn-dive-strata > h2{
  font-size:clamp(26px,3.4vw,42px);margin:0 0 20px;
  text-shadow:0 2px 30px rgba(0,0,0,.9);
}
.shn-arc .shn-dive-strata > p{
  max-width:46ch;font-size:15px;line-height:1.95;color:#bcc3c4;margin:0;
  text-shadow:0 1px 18px rgba(0,0,0,.95);
}
.shn-arc .shn-dive-strata > p strong{color:var(--shn-paper);font-weight:600;}

.shn-arc .shn-layer-cards{
  list-style:none;margin:46px 0 0;padding:0;
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
  max-width:1080px;
  counter-reset:shn-layer;
}
.shn-arc .shn-layer-card{
  display:flex;flex-direction:column;
  border:1px solid rgba(201,164,92,.26);
  background:linear-gradient(170deg, rgba(10,20,26,.62), rgba(4,9,13,.78));
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  transition:border-color .35s, transform .35s, box-shadow .35s;
}
.shn-arc .shn-layer-card:hover{
  border-color:rgba(201,164,92,.6);
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(0,0,0,.45);
}
/* カード本体(一覧へのリンク)。カード全面をクリック領域にする */
.shn-arc .shn-layer-card-hit{
  display:flex;flex-direction:column;flex:1;
  padding:26px 24px 22px;
  text-decoration:none;color:inherit;
}
.shn-arc .shn-layer-card-no{
  font-family:'Unbounded',sans-serif;font-size:11px;letter-spacing:.2em;
  color:var(--shn-gold);opacity:.55;margin-bottom:14px;
}
.shn-arc .shn-layer-card-years{
  font-family:'Unbounded',sans-serif;font-size:10.5px;letter-spacing:.22em;
  color:var(--shn-gold);margin-bottom:10px;
}
.shn-arc .shn-layer-card h3{
  margin:0 0 14px;font-size:clamp(17px,1.6vw,20px);line-height:1.5;
  color:var(--shn-paper);
}
.shn-arc .shn-layer-card-who{
  margin:0 0 14px;padding-bottom:14px;
  border-bottom:1px solid rgba(201,164,92,.18);
  font-size:11.5px;letter-spacing:.06em;line-height:1.9;color:var(--shn-text-dim);
}
.shn-arc .shn-layer-card-who strong{
  display:block;font-size:14px;font-weight:600;color:var(--shn-gold);letter-spacing:.02em;
}
.shn-arc .shn-layer-card-blurb{
  margin:0 0 20px;font-size:13.5px;line-height:1.95;color:#bcc3c4;
  flex:1;
}
.shn-arc .shn-layer-card-more{
  display:block;margin-top:auto;
  font-size:12px;letter-spacing:.05em;color:var(--shn-text-dim);
  transition:color .3s;
}
.shn-arc .shn-layer-card-more b{color:var(--shn-gold);font-weight:600;}
.shn-arc .shn-layer-card:hover .shn-layer-card-more{color:var(--shn-gold);}
/* 解説記事への副リンク(カード全面リンクの入れ子を避けるため本体の外) */
.shn-arc .shn-layer-card-ref{
  display:block;margin:0 24px 20px;
  font-size:11.5px;letter-spacing:.04em;
  color:var(--shn-text-dim);text-decoration:none;
  border-top:1px solid rgba(201,164,92,.18);padding-top:14px;
  transition:color .3s;
}
.shn-arc .shn-layer-card-ref:hover{color:var(--shn-gold);}

@media(max-width:900px){
  .shn-arc .shn-layer-cards{grid-template-columns:1fr;gap:16px;max-width:560px;}
  .shn-arc .shn-layer-card-blurb{flex:none;}
}
@media(prefers-reduced-motion:reduce){
  .shn-arc .shn-layer-card:hover{transform:none;}
}

/* ---- 層バッジ「.shn-canon-badge」(2026-07-28) ----
   記事詳細のヒーロー(タイトル直下)に置き、その記事がどの層に属するかを示す。
   TOPの三層カードと同じ配色ロジック(層ごとに小さな点の色を変える)。
   ヒーローは背景画像の上なので、半透明の暗色地+ゴールドの細罫で可読性を確保する。 */
.shn-arc .shn-canon-badge{
  display:inline-flex;align-items:center;gap:8px;
  margin:14px 0 0;padding:6px 13px;
  border:1px solid rgba(201,164,92,.4);border-radius:2px;
  background:rgba(4,9,13,.62);
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  text-decoration:none;
  transition:border-color .3s, background-color .3s;
}
.shn-arc .shn-canon-badge:hover{border-color:var(--shn-gold);background:rgba(4,9,13,.8);}
.shn-arc .shn-canon-badge-dot{
  width:7px;height:7px;border-radius:50%;flex:none;
  background:var(--shn-gold);
}
/* 層ごとに点の色を変え、一覧をざっと見たときに層の違いが視覚的に拾えるようにする */
.shn-arc .shn-canon-badge[data-layer="original"] .shn-canon-badge-dot{background:#c9a45c;}
.shn-arc .shn-canon-badge[data-layer="derleth"]  .shn-canon-badge-dot{background:#7fa8b8;}
.shn-arc .shn-canon-badge[data-layer="trpg"]     .shn-canon-badge-dot{background:#9b8fb5;}
.shn-arc .shn-canon-badge-label{
  font-size:12.5px;letter-spacing:.06em;color:var(--shn-paper);
}
.shn-arc .shn-canon-badge-years{
  font-family:'Unbounded',sans-serif;font-size:10px;letter-spacing:.14em;
  color:var(--shn-text-dim);
}

/* 一覧の層見出しへアンカー着地したとき、固定ヘッダーに隠れないようにする */
.shn-arc .shn-canon-anchor{scroll-margin-top:110px;}

/* ---- 常時漂う泡(2026-07-21c) ----
   sticky化されたcanvas-layer内にJS(dive-scene.js)がspanを生成して挿入する。
   1セクション限定ではなく潜行全体を通して背景に漂わせ、「浮いて見える」感を
   個別ビートの装飾ではなく通底する雰囲気として持たせる。 */
.shn-arc .shn-dive-ambient-bubbles{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;}
.shn-arc .shn-dive-ambient-bubbles span{
  position:absolute;bottom:-8%;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, rgba(220,235,240,.5), rgba(150,180,190,.06) 70%);
  animation:shn-bubble-rise linear infinite;
}
@keyframes shn-bubble-rise{
  0%{transform:translateY(0) translateX(0); opacity:0;}
  8%{opacity:.7;}
  90%{opacity:.4;}
  100%{transform:translateY(-115vh) translateX(18px); opacity:0;}
}

@media(max-width:640px){
  .shn-arc .shn-dive-relic-mark{animation:none;}
}

.shn-arc .shn-dive-arrival{
  text-align:center;align-items:center;
  background:radial-gradient(circle at 50% 50%, rgba(20,32,40,.85), rgba(3,6,9,.94) 70%);
}
.shn-arc .shn-dive-arrival-coord{
  font-family:'Cormorant Garamond',serif;font-style:italic;letter-spacing:.14em;
  font-size:clamp(1.3rem,3vw,2.2rem);color:var(--shn-gold);margin-bottom:18px;
}
.shn-arc .shn-dive-arrival h2{font-size:clamp(28px,4vw,46px);}
.shn-arc .shn-dive-arrival-latin{
  font-family:'Cormorant Garamond',serif;font-style:italic;letter-spacing:.2em;
  color:var(--shn-text-dim);margin:12px 0 0;
}
.shn-arc .shn-dive-arrival-note{font-size:11px;letter-spacing:.1em;color:var(--shn-text-dim);opacity:.6;margin-top:40px;}

@media(max-width:720px){
  /* モバイルはJSが起動しない(dive-bootstrap.js側の判断)。念のためCSS側でも二重に保険をかける。
     2026-07-21g バグ修正: この「二重の保険」自体が、?shn_dive_mobile=1 での実機検証を
     完全に無効化していた原因だった(JS側は正しくcanvasLayerを生成・初期化していたが、
     このルールが無条件でdisplay:noneにしていたため、canvas矩形が常に0×0になり、
     IntersectionObserverもinView=falseと判定してrAFすら回らなかった)。
     html.shn-dive-mobile-test(dive-bootstrap.jsがoverride時に付与)がある場合は
     このルールを効かせないようにする。 */
  html:not(.shn-dive-mobile-test) .shn-arc .shn-dive-canvas-layer{display:none;}
  html:not(.shn-dive-mobile-test) .shn-arc .shn-dive-active .shn-dive-beat{min-height:0;opacity:1;transform:none;}
}

/* ---- 演出ON/OFFトグル(2026-07-21m) ----
   ユーザー指示: 「演出ONOFFを手動で切り替えられたら良い。OFFにしたら全体的に
   普通のインターフェースのホームページになるみたいな」。dive-toggle.jsが
   localStorage(shn_dive_pref)に応じてラベルを更新し、クリックで
   トグル+リロードする。常時表示(演出が有効/無効どちらの状態でも動く必要が
   あるため、#shn-dive-sceneの外・.shn-arc直下に置いている)。 */
.shn-arc .shn-dive-toggle{
  position:fixed;right:16px;bottom:16px;z-index:9000;
  font-family:'Unbounded',sans-serif;font-size:10px;letter-spacing:.14em;
  color:var(--shn-text-dim);
  background:rgba(9,15,13,.82);
  border:1px solid rgba(201,164,92,.35);
  border-radius:999px;
  padding:10px 16px;
  cursor:pointer;
  backdrop-filter:blur(4px);
  transition:color .3s,border-color .3s,background .3s;
}
.shn-arc .shn-dive-toggle:hover{color:var(--shn-gold);border-color:var(--shn-gold);}
.shn-arc .shn-dive-toggle.is-on{color:var(--shn-gold);border-color:rgba(201,164,92,.6);}
@media(max-width:640px){
  .shn-arc .shn-dive-toggle{right:12px;bottom:12px;font-size:9px;padding:8px 13px;}
}

/* ---- 紋章 3Dビューア(試験導入) ---- */
.shn-arc .shn-emblem3d{text-align:center;}
.shn-arc .shn-emblem3d h2{margin-bottom:10px;}
.shn-arc .shn-emblem3d-note{color:var(--shn-text-dim);font-size:13.5px;margin:0 0 34px;}
.shn-arc .shn-emblem3d-viewer{
  width:100%;
  max-width:420px;
  height:420px;
  margin:0 auto;
  display:block;
  background:radial-gradient(circle at 50% 45%,var(--shn-green),var(--shn-ink) 72%);
  border-radius:50%;
  --poster-color:transparent;
}

/* ---- アイキャッチ画像ライトボックス(2026-08-02 ユーザー指摘「一部しか見えないのはもったいない」)----
   .shn-heroはbackground-size:coverでクロップ、.shn-deity-portrait-frameもフレーム幅に収まる
   範囲でしか見えないため、クリックで元画像全体をオーバーレイ表示する。対象は本記事に
   実際に設定されたfeatured imageがある場合のみ(archive-detail.phpのshn_has_own_thumb判定)。 */
.shn-arc .shn-hero-zoomable{cursor:zoom-in;}
.shn-arc .shn-deity-portrait-frame{position:relative;cursor:zoom-in;}
.shn-hero-zoom-hint{
  position:absolute;top:20px;right:4vw;z-index:3;
  width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(3,10,8,.55);color:var(--shn-paper,#f2ece0);
  font-size:18px;line-height:1;opacity:.75;pointer-events:none;
  backdrop-filter:blur(2px);
  transition:opacity .2s ease;
}
.shn-arc .shn-deity-portrait-frame .shn-hero-zoom-hint{top:16px;right:16px;}
.shn-arc .shn-hero-zoomable:hover .shn-hero-zoom-hint,
.shn-arc .shn-deity-portrait-frame:hover .shn-hero-zoom-hint{opacity:1;}

.shn-lightbox{
  position:fixed;inset:0;z-index:999999;
  display:none;align-items:center;justify-content:center;
  padding:5vh 5vw;
  background:rgba(3,10,8,.92);
}
.shn-lightbox.is-open{display:flex;}
.shn-lightbox img{
  max-width:100%;max-height:100%;
  object-fit:contain;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
}
.shn-lightbox-close{
  position:absolute;top:18px;right:24px;
  background:none;border:none;color:var(--shn-paper,#f2ece0);
  font-size:38px;line-height:1;cursor:pointer;opacity:.8;
  padding:4px 10px;
}
.shn-lightbox-close:hover{opacity:1;}
@media (max-width:600px){
  .shn-hero-zoom-hint{width:34px;height:34px;font-size:15px;top:14px;right:14px;}
  .shn-lightbox-close{font-size:30px;top:8px;right:12px;}
}
/* ==========================================================================
   記事信頼ストリップ + 商品ブロック末尾移動 (2026-08-02 外部監査 A05/A06/A25)
   shinen-archive.css の末尾に追記する。既存ルールは一切書き換えない
   (同名セレクタの再宣言もしていないので、追記位置による副作用はない)。

   コントラスト(WCAG 2.x 相対輝度で実測、A11Y_REPORT.mdの是正後トークン前提):
     ダーク --shn-text-dim #9aa79e  on --shn-ink  #0a0f0d …… 7.72:1  合格
                                    on --shn-deep #0d1f1a …… 6.84:1  合格
     ライト --shn-text-dim #68675c  on --shn-ink  #f5f0e3 …… 5.01:1  合格
                                    on --shn-deep #ece4d0 …… 4.50:1  合格
     リンク --shn-text    #d8cfc0  on #0a0f0d …… 12.52:1 合格
            --shn-text    #2a2620  on #f5f0e3 …… 13.22:1 合格
   ※リンクのホバー色に --shn-gold を使わないこと。ライトテーマの #9c7130 は
     --shn-ink 上で 3.83:1、--shn-deep 上で 3.44:1 と不合格になる
     (A11Y_REPORT.md 5-c と同じ理由)。下線の太さで状態変化を示す。
   ========================================================================== */

/* ---- 記事冒頭の信頼ストリップ(ヒーロー直下) ---- */
.shn-arc .shn-trust-strip{
  padding:16px 6vw 15px;
  border-bottom:1px solid var(--shn-line);
  background:var(--shn-ink);
  position:relative;
  z-index:2;
}
.shn-arc .shn-trust-facts{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px 20px;
  font-size:12px;
  line-height:1.8;
  color:var(--shn-text-dim);
}
.shn-arc .shn-trust-item{
  display:inline-flex;
  align-items:baseline;
  gap:7px;
  white-space:nowrap;
}
/* .shn-arc small は金色・10px・トラッキング広めの装飾用。ここはラベルであって
   装飾ではないので、span で組んで補助テキスト色に揃える。 */
.shn-arc .shn-trust-key{
  font-size:10.5px;
  letter-spacing:.1em;
  color:var(--shn-text-dim);
}
.shn-arc .shn-trust-val{
  color:var(--shn-text-dim);
  font-variant-numeric:tabular-nums;
}
.shn-arc .shn-trust-contact{
  margin:4px 0 0;
  font-size:11.5px;
  line-height:1.8;
  color:var(--shn-text-dim);
}
/* .shn-arc a{color:inherit;text-decoration:none} を打ち消して、
   訂正窓口へのリンクであることを色だけに頼らず下線で示す。 */
.shn-arc .shn-trust-link{
  color:var(--shn-text);
  text-decoration:underline;
  text-underline-offset:.22em;
  text-decoration-thickness:1px;
}
.shn-arc .shn-trust-link:hover,
.shn-arc .shn-trust-link:focus-visible{
  color:var(--shn-text);
  text-decoration-thickness:2px;
}

/* ストリップ直後が大型ポートレート(padding-top:0)だと詰まって見えるので、
   この並びのときだけ上余白を足す。 */
.shn-arc .shn-trust-strip + .shn-deity-portrait{padding-top:34px;}

@media(max-width:768px){
  .shn-arc .shn-trust-strip{padding:13px 6vw 12px;}
  .shn-arc .shn-trust-facts{gap:2px 14px;font-size:11.5px;}
  .shn-arc .shn-trust-item{white-space:normal;}
}

/* 印刷では残す。信頼ストリップは紙に出しても意味のある情報であり、
   既存の @media print が消しているアフィリエイト導線とは性格が違う
   (クラス名も shn-aff-* に一致しないよう意図的に分けてある)。
   万一あとから包括的な非表示ルールが増えても消えないよう明示しておく。 */
@media print{
  .shn-arc .shn-trust-strip{
    display:block !important;
    border-bottom:1px solid #000 !important;
    padding:0 0 8px !important;
  }
  .shn-arc .shn-trust-facts,
  .shn-arc .shn-trust-contact{color:#000 !important;}
  .shn-arc .shn-trust-link{text-decoration:underline !important;}
}

/* ---- 末尾へ移した商品ブロックの器(A25) ----
   module-e が生成する .shn-aff-box / .shn-ref-box は自前で上マージン
   (40〜56px)を持っている。.shn-section の padding:70px と二重になるため、
   この器の中でだけ先頭要素の上マージンを畳む。中身のHTMLには触れていない。 */
.shn-arc .shn-aff-tail{padding-top:0;}
.shn-arc .shn-aff-tail > *:first-child{margin-top:0;}
/* --------------------------------------------------------------------------
   一覧サムネイルのimg化に伴うカバー表示(サイト監査 2026-08-03 B-2 対応。
   本番 wp-content/themes/jinr-child/shinen-archive.css の末尾に追記する)

   従来はCSS background-imageで表示していたカード写真を、alt・loading="lazy"を
   持つ<img>へ変更(inc/archive-list*.php・archive-detail.php計10箇所)。
   コンテナ(.shn-card-photo等)の寸法・負マージン・hover transformは従来のまま、
   imgをコンテナ全面にobject-fit:coverで敷き、見た目を変えない。
   -------------------------------------------------------------------------- */
.shn-arc .shn-card-photo img,
.shn-arc .shn-featured-photo img,
.shn-arc .shn-nextread-photo img,
.shn-hub-card-photo img,
.shn-rv-pick-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* 人物一覧は旧background-position:center 30%相当を維持 */
body.category-persons .shn-arc .shn-card-photo img{object-position:center 30%;}
