/* ──────────────────────────────────────────────────────────────
   pages.css — 作家ページ / 索引ページ共通スタイル (build-pages.mjs が
   dist/assets/pages.css へコピーする)。トークンは src/style.css と同値。
   Phase 1 で生成ビジュアル・エゴグラフ等のリッチ化を重ねる前提の骨格。
   ────────────────────────────────────────────────────────────── */
:root {
  --jet: #222222; --ink: #1F1F1F; --ink2: #4E4F4F; --mut: #666666;
  --canvas: #FCFCFD; --surface: #F7F7F7; --paper: #F7F5F1; --line: #E3DFD9;
  --brand: #3FB96B; --brand-deep: #249361; --amber: #CC8E30;
  --font-display: 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-mincho: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-body); background: var(--canvas);
  color: var(--ink); line-height: 1.8; -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(63, 185, 107, .22); }
a { color: inherit; }

/* ── ヘッダー / フッター ── */
.siteheader {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 253, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.siteheader .in {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-family: var(--font-serif); font-weight: 700; font-size: 22px; color: var(--jet); text-decoration: none; }
.siteheader nav { display: flex; gap: 22px; font-size: 13px; color: var(--ink2); }
.siteheader nav a { text-decoration: none; }
.siteheader nav a:hover { color: var(--ink); }
.sitefoot {
  max-width: 780px; margin: 0 auto; padding: 26px 24px 60px;
  border-top: 1px solid var(--line); display: flex; gap: 20px;
  font-size: 12px; color: var(--mut);
}
.sitefoot a { color: var(--mut); }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── パンくず / 見出し ── */
.crumbs { font-size: 12px; color: var(--mut); padding: 22px 0 0; }
.crumbs a { text-decoration: none; color: var(--mut); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { margin: 0 7px; color: var(--line); }

/* ── ページ頭 (肖像 + 名前) ──
   2026-08-10 に「生成ビジュアル帯」を廃止した。作品でも肖像でもない模様に
   縦 190px を使っていて、運動クラスタが neutral の作家ではただの灰色の帯に
   なっていた。いまはパンくずの直下に肖像と名前を素直に置く。
   肖像 (.portrait) と生涯ストリップは残している。 */
.pagehead {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 26px 0 6px;
}
.pagehead .artist-head { padding: 0; flex: 1; min-width: 0; }
.portrait {
  flex: none;
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 2px 14px rgba(31,31,31,.14);
  background: var(--paper); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mincho); font-size: 33px; font-weight: 600; color: var(--ink);
}

/* 生きた時代ストリップ (birth/death_year から自動描画・軸は作家ごとに可変)
   帯は SVG。位置が作家ごとに変わるので style 属性で書きたくなるが、CSP
   (style-src 'self') がインライン style を通さないため x/width は SVG の
   プレゼンテーション属性で渡している。色はここで当てる。 */
.lifeline { margin-top: 18px; }
.lifeline .bar { display: block; width: 100%; height: 6px; overflow: visible; }
.lifeline .track { fill: #ECE7E0; }
.lifeline .span { fill: var(--brand-deep); opacity: .85; }
.lifeline .ticks {
  display: flex; justify-content: space-between; font-size: 9.5px; color: var(--mut);
  margin-top: 5px; font-variant-numeric: tabular-nums;
}
.lifeline .cap { font-size: 10.5px; color: var(--mut); margin-top: 3px; }
.lifeline .cap i { font-style: normal; color: var(--brand-deep); font-weight: 600; }

.artist-head { padding: 30px 0 6px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--brand-deep); font-weight: 600; margin-bottom: 10px; }
h1.artist-name {
  font-family: var(--font-mincho); font-weight: 600;
  font-size: clamp(32px, 6vw, 46px); line-height: 1.25; margin: 0 0 2px;
  letter-spacing: .02em; text-wrap: balance;
}
/* 索引系の見出し。h1.artist-name より詳細度を上げてある (0,0,2,0 > 0,0,1,1) */
.artist-name.sm { font-size: 28px; }
.artist-name.md { font-size: 30px; }
.artist-sub { font-family: var(--font-serif); font-size: 16px; color: var(--mut); font-style: italic; }
.factchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 13px;
}
.chip b { color: var(--ink); font-weight: 600; }

/* 丸旗アイコン (自前 SVG・絵文字不使用)。
   .chip の中では flex の gap が効くが、ブラウズ軸の .n のような
   ただのインライン文脈では効かないので、そちらは個別にマージンを当てる。 */
.flag {
  display: inline-block; width: 15px; height: 15px; border-radius: 50%;
  overflow: hidden; flex: none; vertical-align: -2.5px;
  box-shadow: inset 0 0 0 1px rgba(31, 31, 31, .14);
}
.flag svg { width: 100%; height: 100%; display: block; }

.bio { font-size: 15.5px; max-width: 660px; margin: 26px 0 0; }

section { margin-top: 48px; }
h2.sec {
  font-size: 13px; letter-spacing: .18em; font-weight: 700; margin: 0 0 18px;
  display: flex; align-items: center;
}
h2.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 16px; }
/* 見出しだけでは選定基準が伝わらないセクションに添える一行 (索引の「よく参照される作家」) */
.sec-note { font-size: 12.5px; color: var(--mut); margin: -8px 0 16px; }

/* ── 運動カード ── */
.movement-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px;
}
.movement-card .mv-name { font-family: var(--font-mincho); font-size: 21px; font-weight: 600; }
.movement-card .mv-era { font-size: 12px; color: var(--mut); margin-top: 2px; }
.movement-card p { font-size: 13.5px; color: var(--ink2); margin: 10px 0 0; line-height: 1.75; }

/* 円形肖像に PD 画像が入った場合 (Phase 3)。無ければモノグラムのまま (設計 §7) */
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 索引の「注目の作家」も、肖像が承認済みの作家は写真にする (2026-08-10)。
   .mono に overflow:hidden は付けない — ::after のリングが inset:-2px で
   外側に出ているので、クリップすると輪郭が切れる。丸めるのは img 側。 */
.mono img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.mono.has-img { background: var(--surface); }

/* ── 代表作 ──
   ⚠ 生成画像で「作品風」の絵は出さない (実在の作品と誤解されるため)。
   PD 画像が無い作品は従来どおりテキストカードで出す。 */

/* PD 画像のギャラリー (設計 §6.1)。
   masonry は CSS columns で組む。⚠ 高さを固定しない・object-fit で切らない —
   「原画像の縦横比のまま表示」が要件で、額装メタファーは廃止済み。
   トリミングは Storage 側の resize=contain と合わせて二重に防いでいる。 */
.work-gallery { columns: 2; column-gap: 12px; }
@media (min-width: 720px) { .work-gallery { columns: 3; } }
.work-img {
  break-inside: avoid; margin: 0 0 12px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.work-img img { display: block; width: 100%; height: auto; }
.work-img figcaption { padding: 8px 10px 10px; font-size: 11px; line-height: 1.5; color: var(--mut); }
.work-img .wt { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.work-img .wy { display: block; }
/* 出典クレジットは法的に不要な場合 (CC0/PD) でも常時表示する — 製品ポリシー (§1.3) */
.work-img .credit { display: block; margin-top: 3px; font-size: 10px; }
.work-img .credit a { color: var(--mut); text-decoration: underline; }
.work-gallery + .works { margin-top: 12px; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.work {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; font-size: 14px; font-weight: 600;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
/* 作品名の前に置く中立なしるし。画像プレースホルダに見えないよう
   「額縁っぽい四角」ではなく細い縦罫にする (PD 画像が入るのは Phase 3)。 */
.work .qm {
  flex: none; width: 3px; align-self: stretch; min-height: 20px; margin-top: 2px;
  border-radius: 2px; background: var(--line);
}
.work:hover .qm { background: var(--brand-deep); }
.forms { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.forms .chip { background: #fff; }

/* ── ミニ系譜グラフ ──
   グラフは体験、下の HTML カードが検索エンジンと内部リンクの実体 (設計 §6.3)。
   グラフだけに情報を持たせない二層構造を守る。 */
.minigraph {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); overflow: hidden; margin-bottom: 14px;
}
/* 2 ホップぶんのノード (最大 20) を置くので Phase 1 の 330px では詰まる */
.minigraph canvas { display: block; width: 100%; height: 400px; cursor: grab; }
.minigraph .g-hint {
  position: absolute; left: 14px; bottom: 12px; font-size: 10.5px; color: var(--mut);
  background: rgba(252,252,253,.85); border-radius: 999px; padding: 3px 11px;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .minigraph .g-hint { display: none; } }

/* ── 作家カード (モノグラム肖像フォールバック) ── */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.a-card {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; text-decoration: none; transition: border-color .18s, transform .18s;
}
a.a-card:hover { border-color: var(--jet); transform: translateY(-1px); }
.a-card.plain { background: var(--surface); color: var(--ink2); }
/* モノグラムのリング色。build-pages.mjs の CLUSTER_COLOR と 1:1 で対応させる。
   色を style="--ring:…" で渡すと CSP (style-src 'self') に弾かれるため、
   クラスタ名をクラスとして出し、色はこちらが持つ。 */
.ring-impress      { --ring: #2E9E5B; }
.ring-japan        { --ring: #44619E; }
.ring-classical    { --ring: #A66A16; }
.ring-abstract     { --ring: #8A63B8; }
.ring-avantgarde   { --ring: #C05B4D; }
.ring-contemporary { --ring: #14A0B3; }
.ring-neutral      { --ring: #9B948A; }
.mono {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mincho); font-size: 19px; font-weight: 600;
  background: var(--paper); color: var(--ink); position: relative;
}
.mono::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--ring, var(--line));
}
.a-card .nm { font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.a-card .yrs { font-size: 11.5px; color: var(--mut); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.flag.sm { width: 13px; height: 13px; vertical-align: -2px; }
.a-card .rel {
  display: inline-block; margin-top: 7px; font-size: 11.5px; color: var(--brand-deep);
  background: rgba(63, 185, 107, .10); border-radius: 999px; padding: 2px 10px;
}

/* ── 展覧会カード ── */
.exh {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 10px;
}
/* 残り日数を主役にする (設計 §6.1) */
.exh .date-col {
  min-width: 92px; text-align: center; color: var(--mut);
  border-right: 1px solid var(--line); padding-right: 16px;
}
.exh .date-col .until { font-size: 10px; letter-spacing: .08em; }
.exh .date-col .d {
  font-size: 21px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.exh .date-col .d span { font-size: 11px; font-weight: 600; color: var(--mut); margin-left: 2px; }
.exh .meat { flex: 1; min-width: 200px; }
.exh .t { font-size: 15px; font-weight: 700; }
.exh .venue { font-size: 12.5px; color: var(--ink2); margin-top: 3px; }
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff;
  background: var(--brand-deep); border-radius: 4px; padding: 2px 8px;
  margin-right: 8px; vertical-align: 1px;
}
.badge-soon { background: var(--amber); }
.exh .acts { display: flex; gap: 8px; }
.btn-ghost {
  font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px;
  background: var(--canvas); transition: border-color .15s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--jet); }

/* ── CTA / フッター注記 ── */
.cta {
  margin-top: 54px; background: var(--jet); border-radius: 18px; color: #fff;
  padding: 30px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
}
.cta .lead { flex: 1; min-width: 240px; }
.cta .lead b { font-size: 18px; display: block; margin-bottom: 6px; }
.cta .lead span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.btn-store {
  display: inline-block; background: #fff; color: var(--jet); text-decoration: none;
  font-weight: 700; font-size: 14px; border-radius: 10px; padding: 13px 26px;
}
.pagefoot {
  margin: 50px 0 0; border-top: 1px solid var(--line); padding: 20px 0 40px;
  font-size: 11.5px; color: var(--mut); display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.pagefoot a { color: var(--mut); }

/* ── 索引ページ ── */
.idx-lead { font-size: 14px; color: var(--ink2); margin: 14px 0 0; }
.searchbox { margin-top: 30px; }
.searchbox input {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); outline: none;
}
.searchbox input:focus { border-color: var(--brand-deep); }
#results { margin-top: 12px; }
.alllist { columns: 2; padding-left: 20px; font-size: 13.5px; margin-top: 24px; }
.alllist a { text-decoration: none; color: var(--ink2); }
.alllist a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 640px) { .alllist { columns: 3; } }

/* ── ページャ (2026-08-10) ──
   以前は .btn-ghost の枠線ボタンを並べていて、ページ下部でいちばん強い
   要素になっていた。番号だけの控えめな行にする。現在地は下線で示す。 */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.pager a, .pager .p-cur, .pager .p-gap {
  min-width: 30px; height: 30px; display: inline-flex;
  align-items: center; justify-content: center;
  text-decoration: none; color: var(--mut); border-radius: 8px;
}
.pager a:hover { color: var(--ink); background: var(--surface); }
/* 現在地は下線で示す。⚠ border-radius を残したまま inset の影を敷くと
   角丸に沿って下線が反り、笑った口のような形になる。ここだけ角丸を切る。 */
.pager .p-cur {
  color: var(--ink); font-weight: 700;
  border-radius: 0; box-shadow: inset 0 -2px 0 var(--brand-deep);
}
.pager .p-gap { min-width: 16px; color: var(--line); }
.pager .p-arrow { font-size: 17px; }
.pager .lb { font-size: 11.5px; color: var(--mut); margin-right: 10px; }

/* ── ブラウズ軸 (国別 / 時代別) ── */
.browse { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.browse.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.browse a {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 13px; font-size: 13px; transition: border-color .15s;
}
.browse a:hover { border-color: var(--jet); }
.browse a .n { flex: 1; font-weight: 600; }
/* 旗と国名がくっついて見えていた。.n は .mv-era-inline (ブロック) を抱える
   ことがあるので flex 化はできない — 旗そのものに余白を持たせる。 */
.browse a .n .flag { margin-right: 7px; }
.browse a .c { font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; }

/* ── モバイル ── */
@media (max-width: 640px) {
  .siteheader nav { gap: 14px; font-size: 12px; }
  /* 84px の肖像と clamp(32px) の名前が横に並ぶと名前が 2〜3 行に折れる。
     縦積みにして名前に幅を渡す。 */
  .pagehead { flex-direction: column; gap: 14px; }
  .exh { padding: 14px 16px; }
  .exh .date-col {
    min-width: 0; text-align: left; border-right: none; padding-right: 0;
    display: flex; align-items: baseline; gap: 6px;
  }
  .cta { padding: 24px 22px; }
  .minigraph canvas { height: 340px; }
}

/* ── A3 運動ページ ── */
.mv-body { font-size: 15.5px; max-width: 660px; margin: 30px 0 0; }
.mv-body p { margin: 0 0 1.3em; }
.mv-era-inline { display: block; font-size: 10.5px; color: var(--mut); font-weight: 400; margin-top: 1px; }
a.movement-card { display: flex; gap: 20px; align-items: flex-start; text-decoration: none; transition: border-color .2s; }
a.movement-card:hover { border-color: var(--brand-deep); }
.movement-card .go { margin-left: auto; align-self: center; white-space: nowrap; font-size: 12.5px; color: var(--brand-deep); font-weight: 600; }

/* ══ A4 アプリ導線 (2026-08-11) ═══════════════════════════════════
   作家ページのアプリ訴求が最下部の .cta だけで、実測でスクロール深度 90%
   の位置にあった (SP で全長 5,402px のページ)。ほとんどの読者に届いていない。
   追従しない導線を 2 つ足す:
     A. 右レール (.rail)      … 1024px 以上。sticky で追従するバナー
     B. 本文中インライン CTA  … 全幅共通。作品例の直後 = スクロール約 50%
   最下部の .cta は「終端の一番強い一発」として変更せず残す。
   固定オーバーレイ (SP 下部固定バー等) は採らない — 判断の経緯は
   docs/design/web-content-pages.md 参照。
   ────────────────────────────────────────────────────────────── */

/* ── A. 右レール ──
   .wrap は索引・運動・全件リストでも共用しているので、レール有りは
   modifier (.has-rail) で分離する。素の .wrap は 780px のまま。 */
.wrap.has-rail { max-width: 780px; }
.col-main { min-width: 0; }

/* ⚠ 打ち消しの既定値はメディアクエリより「前」に置く。どちらも詳細度
   (0,0,1,0) なので後ろに書いた方が勝つ。順序を逆にするとレールが
   永久に display:none のままになる。 */
.rail {
  display: none;
  position: sticky;
  top: 76px;                 /* sticky ヘッダー 60px + 16px */
  margin-top: 70px;          /* 肖像 (.pagehead) の頭と高さを揃える */
}

/* 1024px 以上でのみ表示。本文カラムを可変 (上限 780px) にすることで
   iPad 横 (1133/1180/1376) と iPad Pro 縦 (1032) が全部入る。

   ⚠ max-width の 1120px は .siteheader .in と同値。ヘッダーのワードマークと
     本文の左端が揃う。ただし .wrap には padding: 0 24px があるので中身は
     1072px しかなく、本文カラムは 1072 - 300 - 40 = 732px になる
     (レール無しの 780px より 48px 狭い)。.bio は元々 max-width: 660px なので
     本文の読み幅は変わらず、狭くなるのは作品グリッドと展覧会カードだけ。
     本文 780px を保ちたくなったら 1168px にするが、その場合は
     .siteheader .in も 1168px に揃えないと左端が 24px ずれる。 */
@media (min-width: 1024px) {
  .wrap.has-rail {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 780px) 300px;
    column-gap: 40px;
    align-items: start;
  }
  .rail { display: block; }
}

/* バナー本体。ロゴロックアップ → 見出し → ボタン → 端末画像、の順。
   端末画像はカード下端に食い込ませて途中で切る (画面が覗いている形)。 */
.rail-card {
  background: var(--jet); border: 1px solid var(--jet);
  border-radius: 16px;
  overflow: hidden;          /* 端末画像を角丸で切るのに必須 */
}
.rail-inner { padding: 18px 20px 16px; }

/* ロゴロックアップ。マークは apple-touch-icon と同じセリフの A、
   ワードマークは既存 .wordmark と同じ Source Serif 4 bold。 */
.rail-lock { display: flex; align-items: center; gap: 10px; }
.rail-lock img {
  width: 34px; height: 34px; flex: none; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18); background: #fff; display: block;
}
.rail-lock .nm {
  font-family: var(--font-serif); font-weight: 700; font-size: 17px;
  color: #fff; line-height: 1.15;
}
.rail-lock .tg { font-size: 10.5px; color: rgba(255, 255, 255, .55); line-height: 1.3; }

.rail-lead {
  font-family: var(--font-mincho); font-size: 18px; font-weight: 600;
  line-height: 1.5; letter-spacing: .01em; margin: 14px 0 0; color: #fff;
}
.rail-body {
  font-size: 12px; color: rgba(255, 255, 255, .72); line-height: 1.7; margin: 7px 0 0;
}
.rail-btn {
  display: block; text-align: center; margin-top: 14px;
  background: #fff; color: var(--jet); text-decoration: none;
  font-weight: 700; font-size: 13.5px; border-radius: 10px; padding: 11px 16px;
  transition: opacity .15s;
}
.rail-btn:hover { opacity: .86; }
.rail-meta { font-size: 10.5px; color: rgba(255, 255, 255, .5); text-align: center; margin-top: 8px; }

/* 端末画像。画像は自然な縦横比のまま置き、親を 150px に固定して overflow で
   下を切る (= 上端から 150px だけ見える)。
   ⚠ 親に height を持たせず img 側で切ろうとすると、img の height: auto が
     効いて 600px 超の帯になる。切るのは必ず親側。
   ⚠ width/height 属性を img に必ず入れる。入れないとレイアウトシフトする。 */
.rail-shot { height: 150px; overflow: hidden; background: #2C2C2C; }
.rail-shot img { display: block; width: 100%; height: auto; }

/* 文脈連動ブロック。開催中の展覧会がある作家だけ出す。
   このサイトで唯一の「いま役に立つ情報」なのでフックとして最も強い。 */
.rail-exh {
  display: flex; align-items: center; gap: 11px; margin-top: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; text-decoration: none; transition: border-color .15s;
}
.rail-exh:hover { border-color: var(--brand-deep); }
.rail-exh .n {
  font-family: var(--font-serif); font-weight: 700; font-size: 21px;
  color: var(--brand-deep); font-variant-numeric: tabular-nums; line-height: 1;
}
.rail-exh .t { flex: 1; font-size: 12px; color: var(--ink2); line-height: 1.45; }
.rail-exh .go { font-size: 13px; color: var(--mut); }

/* 目次。純粋な広告面ではなく回遊にも効かせて、レールの存在を正当化する。 */
.rail-toc { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 15px; }
.rail-toc .lb {
  font-size: 10px; letter-spacing: .18em; color: var(--mut);
  font-weight: 700; margin-bottom: 7px;
}
.rail-toc a {
  display: block; font-size: 12.5px; color: var(--ink2);
  text-decoration: none; padding: 4px 0; line-height: 1.5;
}
.rail-toc a:hover { color: var(--ink); }

/* ── B. 本文中インライン CTA ──
   左に端末画像、右にロゴロックアップ + 見出し + ボタンの横型バナー。
   追従しないので、最下部 .cta (濃色) より弱く、周囲の本文より少しだけ強い。
   ⚠ 片側だけの太い border (border-left のアクセント線) は使わない。
     border-radius と併用すると角で線が反る。 */
.cta-inline {
  display: flex; align-items: stretch; gap: 20px;
  margin-top: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
/* レールと同じ「上から N px だけ見せる」切り方。全身を小さく入れると
   ただのサムネイルに見えて、アプリの画面だと伝わらない。 */
.cta-inline .shot {
  flex: none; width: 112px; height: 124px; align-self: center;
  border-radius: 10px; overflow: hidden; background: #fff;
  border: 1px solid var(--line);
}
.cta-inline .shot img { display: block; width: 100%; height: auto; }
.cta-inline .t { flex: 1; min-width: 0; align-self: center; }
.cta-inline .lock { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.cta-inline .lock img {
  width: 22px; height: 22px; border-radius: 6px; display: block;
  border: 1px solid var(--line); background: #fff;
}
.cta-inline .lock .nm {
  font-family: var(--font-serif); font-weight: 700; font-size: 14px; color: var(--jet);
}
/* ⚠ text-wrap: balance は必須。SP では端末画像 (84px) と余白に持っていかれて
     文字列の幅が 245px しか残らず、素直に折ると「この作品を、美術館で見つけ／
     たら。」「…作家名も／AIが整理。」と末尾だけが 1 行に取り残される。
     h1.artist-name と同じ手当て。 */
.cta-inline .t b {
  display: block; font-size: 16px; margin-bottom: 3px; text-wrap: balance;
}
/* ⚠ block にしないと直後の .b (inline-block) と同じ行に並び、本文とボタンが
   横に潰れる。 */
.cta-inline .t span {
  display: block; font-size: 12.5px; color: var(--ink2); text-wrap: balance;
}
.cta-inline .b {
  display: inline-block; margin-top: 12px;
  text-decoration: none; font-size: 13px; font-weight: 700; color: #fff;
  background: var(--jet); border: 1px solid var(--jet); border-radius: 9px;
  padding: 10px 20px; white-space: nowrap; transition: opacity .15s;
}
.cta-inline .b:hover { opacity: .86; }

/* SP は端末画像を残したまま縦を詰める。画像を消すと一目でアプリの導線だと
   分からなくなるので、消さずに縮める。 */
@media (max-width: 640px) {
  .cta-inline { padding: 16px; gap: 14px; }
  .cta-inline .shot { width: 84px; height: 104px; }
  .cta-inline .t b { font-size: 15px; }
  .cta-inline .b { display: block; text-align: center; margin-top: 11px; }
}
