/* 世界ミステリー図鑑 型 v9（本番） — 共通。css-v9/tokens.css＋v9.css に、本番の外枠との境界と全部品を足したもの */
/* 世界ミステリー図鑑 型 v8「資料綴じ」— 共通。色3つ・書体2つ・飾りは金の髪線だけ。階層は大きさと余白で作る */
:root{
  --ink:#1d1915; --ink-2:#55493b; --ink-3:#8a7d6b;
  --red:#8e1f17;
  --gold:#b08d3c;
  --hair:rgba(29,25,21,.22);
  --paper:#f3ead6;
  --paper-img:url("../assets/paper08-natural-tile.webp");
  --serif:"Noto Serif JP","Yu Mincho","Hiragino Mincho ProN",serif;
  --sans:"Noto Sans JP","Yu Gothic","Hiragino Sans",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}

/* ===== 本番の外枠（SWELL）との境界：reader-2記事だけ。型の部品より先に置く ===== */
body:has(.wm-reader[data-edition="reader-2"]) :is(#body_wrap,#content,.l-mainContent,.l-mainContent__inner){background:transparent!important}
body:has(.wm-reader[data-edition="reader-2"]) #body_wrap{container-type:inline-size}
body:has(.wm-reader[data-edition="reader-2"]) .l-mainContent{width:100%!important;max-width:none!important}
.post_content>.wm-reader[data-edition="reader-2"]{width:100cqw;max-width:100cqw;margin-left:calc(50% - 50cqw);margin-right:calc(50% - 50cqw)}
.post_content .wm-reader{color:var(--ink);font-family:var(--serif);text-align:left}
.post_content .wm-reader :is(h2,h3,h4){background:none;border:0;border-radius:0;box-shadow:none;padding:0;color:var(--ink);letter-spacing:normal;position:static}
.post_content .wm-reader :is(h2,h3,h4)::before,.post_content .wm-reader :is(h2,h3,h4)::after{content:none}
.post_content .wm-reader :is(ul,ol){margin-top:0;margin-bottom:0}
.post_content .wm-reader :is(ul,ol)>li::before{content:none}
.post_content .wm-reader blockquote{background:none;border-top:0;border-right:0;border-bottom:0;box-shadow:none;margin:0}
.post_content .wm-reader blockquote::before,.post_content .wm-reader blockquote::after{content:none}
.post_content .wm-reader :is(figure,figcaption,p){margin-top:0}
.post_content .wm-reader table{margin:0}
.post_content .wm-site-ad__title{background:none;border:0;box-shadow:none;padding:0;color:var(--ink)}
.post_content .wm-site-ad__title::before,.post_content .wm-site-ad__title::after{content:none}
.wm-reader :is(h2,h3,h4){margin:0}
.wm2-deco{display:none}
.wm2-chapter-title,.wm2-title-phrase{display:inline}
.wm2-credit-count{display:inline-block;white-space:nowrap}
.wm2-stage--desk{background:none;border:0;box-shadow:none}
/* 管理バー（ログイン中の編集者だけ）：狭い幅で挨拶を畳む */
   the avatar nor a long greeting can fall over the site's search button.
   The accessible account name and its profile menu remain available. */
@media (max-width:1280px) {
 body:has(.wm-reader[data-edition="reader-2"]) #wpadminbar {--wm2-admin-height:32px;--wm2-admin-space:80px}
 body:has(.wm-reader[data-edition="reader-2"]) #wpadminbar #wp-admin-bar-root-default {width:calc(100% - var(--wm2-admin-space));height:var(--wm2-admin-height)}
 body:has(.wm-reader[data-edition="reader-2"]) #wpadminbar #wp-admin-bar-top-secondary {position:absolute;top:0;right:0}
 /* Keep WordPress menus and their popovers intact; plugin shortcuts are
    available in wp-admin and need not consume the reader header row. */
 body:has(.wm-reader[data-edition="reader-2"]) #wpadminbar :is(#wp-admin-bar-code-snippets,#wp-admin-bar-wpseo-menu,#wp-admin-bar-swell_settings,#wp-admin-bar-google-site-kit) {display:none}
 body:has(.wm-reader[data-edition="reader-2"]) #wpadminbar #wp-admin-bar-my-account > .ab-item {font-size:0;width:40px;padding:0}
 body:has(.wm-reader[data-edition="reader-2"]) #wpadminbar #wp-admin-bar-my-account > .ab-item .display-name {font-size:0}
 body:has(.wm-reader[data-edition="reader-2"]) #wpadminbar #wp-admin-bar-my-account .ab-sub-wrapper {left:auto;right:0;max-width:calc(100vw - 16px)}
 body:has(.wm-reader[data-edition="reader-2"]) #wpadminbar #wp-admin-bar-my-account > .ab-item img {position:static;display:block;width:24px;height:24px;max-height:24px;object-fit:cover;margin:calc((var(--wm2-admin-height) - 24px)/2) 8px}
}
@media (max-width:782px) {
 body:has(.wm-reader[data-edition="reader-2"]) #wpadminbar {--wm2-admin-height:46px;--wm2-admin-space:40px}
}
body{margin:0;color:var(--ink);font-family:var(--serif);font-weight:400;
  background:linear-gradient(rgba(255,251,240,.55),rgba(255,251,240,.55)),var(--paper-img) center top/1400px auto,var(--paper)}
/* 読んだ量を示す金の髪線（JSなし） */
body::before{content:"";position:fixed;left:0;top:0;z-index:50;height:2px;width:100%;background:var(--gold);transform-origin:0 50%;animation:wm-read linear both;animation-timeline:scroll(root)}
@keyframes wm-read{from{transform:scaleX(0)}to{transform:scaleX(1)}}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,p,ul,ol,dl,dd,blockquote,figure{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:400;color:var(--ink)}
a{color:inherit;text-decoration:none;border-bottom:1px solid var(--hair)}
a:hover{border-bottom-color:var(--red);color:var(--red)}
.wm-no-break{white-space:nowrap}.wm2-credit-unit{white-space:nowrap}

/* ラベル：小さなサンセリフ、字間を開ける */
.wm2-label,.wm2-dossier__title,.wm2-theory-card__can>span,.wm2-theory-card__cannot>span,.wm2-conflict .wm2-title,.wm2-conflict__vs,.wm2-chapters summary,figcaption::before,.wm2-document__img>span,.wm2-hero__credit,.wm2-coda__credit,.wm2-stat__note,.wm2-archive-credits summary{font-family:var(--sans);font-weight:500;letter-spacing:.14em;color:var(--ink-3)}
.wm2-dossier__title,.wm2-theory-card__can>span,.wm2-theory-card__cannot>span,.wm2-conflict .wm2-title{color:var(--red)}

/* 強調：場面の一言＝墨の太字＋金の下線、驚き＝朱 */
.wm2-mark{font-weight:700;color:var(--ink);background:linear-gradient(transparent 82%,var(--gold) 82%);padding-bottom:.02em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.wm2-mark--red{background:none;color:var(--red);font-weight:700}

/* 章：巨大な章番号を余白に沈める。章頭はドロップキャップ */
.wm2-sheet__pad{counter-reset:ch}
.wm2-section-frame{counter-increment:ch;position:relative}
.wm2-section-frame>.wm2-head{position:relative}
.wm2-section-frame>.wm2-head::before{content:counter(ch,decimal-leading-zero);display:block;font-family:var(--serif);font-weight:400;line-height:1;color:var(--red);letter-spacing:.04em}
.wm2-section-frame>.wm2-head h2::after{content:"";display:block;width:56px;height:1px;background:var(--gold);margin-top:22px}

/* 資料番号：写真・地図・資料に通し番号を自動で振る */
.wm-reader{counter-reset:fig}
.wm2-figure,.wm2-location,.wm2-document{counter-increment:fig}
figcaption::before,.wm2-document__col>h3::before,.wm2-location figcaption::before{content:"資料 " counter(fig,decimal-leading-zero);display:block;font-family:var(--sans);font-size:15px;letter-spacing:.2em;color:var(--red);margin-bottom:8px}
.wm2-document__col>h3::before{font-size:15px}
figcaption{color:var(--ink-2)}
.wm2-image-link{display:inline-block;margin-top:6px;font-family:var(--sans);font-size:15px;letter-spacing:.12em;color:var(--ink-3);border-bottom:1px solid var(--hair)}

/* 囲み類：線は髪線だけ。塗りも影も角丸もなし */
.wm2-theories,.wm2-question,.wm2-callout,.wm2-note,.wm2-panel--dark,.wm2-conflict,.wm2-document,.wm2-location{border-top:1px solid var(--ink);border-bottom:1px solid var(--hair)}
.wm2-theory-card,.wm2-question__item{border-top:1px solid var(--hair)}
.wm2-theory-card:first-child,.wm2-question__item:first-child{border-top:0}
.wm2-theories{counter-reset:th}.wm2-theory-card{counter-increment:th}
.wm2-theory-card>h3::before{content:counter(th,upper-roman);display:block;font-family:var(--serif);color:var(--gold);letter-spacing:.06em;margin-bottom:6px}
.wm2-question__list{list-style:none;padding:0}
.wm2-question__num{display:block;font-family:var(--serif);color:var(--gold);line-height:1}
.wm2-question__item .wm2-title{font-family:var(--serif);color:var(--ink)}
.wm2-stats{display:grid;grid-template-columns:repeat(3,1fr)}
.wm2-stat__value{font-family:var(--serif);color:var(--ink);line-height:1;letter-spacing:-.02em}
.wm2-stat--accent .wm2-stat__value{color:var(--red)}
.wm2-unit{color:var(--ink-3);letter-spacing:0}

/* 引用：巨大な引用符を紙に沈める */
.wm2-quote{position:relative}
.wm2-quote::before{content:"“";position:absolute;left:0;top:-.1em;font-family:Georgia,serif;line-height:1;color:var(--gold);opacity:.55}
.wm2-quote blockquote{font-family:var(--serif);color:var(--ink);border:0}
.wm2-quote cite{display:block;font-style:normal;font-family:var(--sans);letter-spacing:.08em;color:var(--ink-3)}
.wm2-conflict blockquote{border-left:2px solid var(--gold)}

/* 目次 */
.wm2-chapters ol{list-style:none;padding:0;counter-reset:nav}
.wm2-chapters li{counter-increment:nav}
.wm2-chapters a{border:0;color:var(--ink-2)}
.wm2-chapters a::before{content:counter(nav,decimal-leading-zero);font-family:var(--serif);color:var(--gold);margin-right:.6em;letter-spacing:.04em}
.wm2-chapters a.is-current{color:var(--red)}
.wm2-chapters summary{cursor:pointer;list-style:none}
.wm2-chapters summary::-webkit-details-marker{display:none}

/* 結び・出典 */
.wm2-coda{position:relative}
.wm2-coda>img{width:100%;object-fit:cover}
.wm2-coda__body{position:relative}
.wm2-coda__body::before{content:"";display:block;width:56px;height:1px;background:var(--gold);margin:0 auto 28px}
.wm2-coda__body p{text-align:center}
.wm2-coda__credit{display:block;text-align:center}
.wm2-endmatter{border-top:1px solid var(--ink);font-family:var(--sans);font-weight:400}
.wm2-endmatter a{overflow-wrap:anywhere;border-bottom-color:var(--hair)}
.wm2-endmatter>h2{font-family:var(--serif)}
.wm2-source-group h3{font-family:var(--sans);font-weight:500;letter-spacing:.12em;color:var(--red)}
.wm2-archive-credits summary{cursor:pointer}
.wm2-map__north,.wm2-location__north{color:var(--red)}
.wm2-hero__credit,.wm2-coda__credit{font-weight:400;letter-spacing:.08em}
/* v9「最高傑作」— v8の上に、型ごとの色・縦書きの肩書き・スクロールで動く紙面・資料の額装を足す。全部CSSだけ */

/* 1. 記事の型（data-type）ごとに色が決まる。casefile=臙脂×藍、dig=赤土×焦茶、observe=深い青緑×夜、travel=深緑、document=藍墨 */
.wm-reader{--accent:#8e1f17;--night:#1f2a44;--night-ink:#f1e9d6;--kicker:"事件と証言の謎"}
.wm-reader[data-type="dig"]{--accent:#a4571d;--night:#2a1f16;--kicker:"遺跡と発掘の謎"}
.wm-reader[data-type="observe"]{--accent:#1d5b64;--night:#0f1b24;--kicker:"観測と現象の謎"}
.wm-reader[data-type="travel"]{--accent:#2e6a4e;--night:#13241c;--kicker:"土地と旅の謎"}
.wm-reader[data-type="document"]{--accent:#3b3b7c;--night:#191a33;--kicker:"文書と記録の謎"}
.wm-reader{--red:var(--accent)}
::selection{background:var(--accent);color:#fff}
body::before{background:linear-gradient(90deg,var(--gold),var(--accent))}

/* 2. 日本語組版の仕上げ：プロポーショナル仮名・ぶら下げ・行頭の約物詰め */
h1,h2,h3,.wm2-hero__hook,.wm2-quote blockquote,.wm2-coda__body p{font-feature-settings:"palt" 1;text-spacing-trim:trim-start}
.wm2-prose p{hanging-punctuation:allow-end;text-spacing-trim:space-first}

/* 3. 扉：型の肩書きを縦書きで左端に。写真は型の色で二重露光 */
.wm2-hero{isolation:isolate}
.wm2-hero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--accent) 0%,transparent 42%);mix-blend-mode:multiply;opacity:.22}
.wm2-hero::before{content:var(--kicker);position:absolute;z-index:2;writing-mode:vertical-rl;font-family:var(--sans);font-weight:500;letter-spacing:.5em;color:#fff;background:var(--accent);padding:26px 9px 30px;line-height:1}
.wm2-hero h1{color:var(--ink)}
.wm2-hero h1::after{background:var(--accent)}

/* 4. 章番号は型の色で薄く、スクロールに合わせてゆっくり浮く */
.wm2-section-frame>.wm2-head::before{color:var(--accent);opacity:.1}
.wm2-section-frame>.wm2-head h2::after{background:var(--accent)}
@supports (animation-timeline:view()){
  .wm2-section-frame>.wm2-head::before{animation:wm-drift linear both;animation-timeline:view();animation-range:cover 0% cover 100%}
  @keyframes wm-drift{from{translate:0 90px}to{translate:0 -90px}}
  .wm2-figure,.wm2-quote,.wm2-theories,.wm2-document,.wm2-location,.wm2-conflict,.wm2-panel--dark,.wm2-question__item,.wm2-theory-card{animation:wm-in ease-out both;animation-timeline:view();animation-range:entry 0% entry 35%}
  @keyframes wm-in{from{opacity:0;translate:0 28px}to{opacity:1;translate:0 0}}
  .wm2-theory-card:nth-child(2),.wm2-question__item:nth-child(2){animation-range:entry 10% entry 45%}
  .wm2-theory-card:nth-child(3),.wm2-question__item:nth-child(3){animation-range:entry 20% entry 55%}
}

/* 5. 資料の額装：写真の背後に型の色の面をずらして敷く。資料番号は型の色 */
.wm2-figure>.wm2-photo-print,.wm2-document__img,.wm2-location__map{position:relative}
.wm2-figure>.wm2-photo-print::before,.wm2-document__img::before,.wm2-location__map::before{content:"";position:absolute;inset:14px -14px -14px 14px;background:var(--accent);opacity:.16;z-index:-1}
figcaption::before,.wm2-document__col>h3::before{color:var(--accent)}
.wm2-figure figcaption{border-left:2px solid var(--accent);padding-left:14px}

/* 6. 引用：型の色の巨大な引用符。強調も型の色 */
.wm2-quote::before{color:var(--accent);opacity:.3}
.wm2-mark{background:linear-gradient(transparent 80%,color-mix(in srgb,var(--accent) 45%,transparent) 80%)}
.wm2-mark--red{color:var(--accent)}

/* 7. 「三つの問い」は夜の見開き：全幅の深い色の帯に、型の色の番号 */
.wm2-question{background:var(--night);color:var(--night-ink);border:0;padding-top:72px;padding-bottom:72px;position:relative}
.wm2-question::before{content:"";position:absolute;inset:0 0 auto 0;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.wm2-question .wm2-head h2,.wm2-question__item .wm2-title{color:var(--night-ink)}
.wm2-question__item p:not(.wm2-title){color:color-mix(in srgb,var(--night-ink) 72%,transparent)}
.wm2-question__num{color:var(--gold)}
.wm2-question__item{border-color:rgba(255,255,255,.14)}

/* 8. 数字・説比較・目次に型の色 */
.wm2-stat--accent .wm2-stat__value{color:var(--accent)}
.wm2-theory-card>h3::before{color:var(--accent)}
.wm2-chapters a.is-current,.wm2-chapters a.is-current::before{color:var(--accent)}
.wm2-chapters a::before{color:color-mix(in srgb,var(--accent) 70%,var(--gold))}
.wm2-dossier__mystery li::before{color:var(--accent)}
.wm2-dossier__title,.wm2-theory-card__can>span,.wm2-theory-card__cannot>span,.wm2-conflict .wm2-title,.wm2-source-group h3,.wm2-panel--dark h3{color:var(--accent)}

/* 9. 結び：写真を型の色で染め、紙へ溶かす */
.wm2-coda>img{filter:saturate(.85)}
.wm2-coda::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--night) 55%,transparent),transparent 60%);pointer-events:none}
.wm2-coda__body::before{background:var(--accent)}

/* ===== 本番の外枠で消される疑似要素を戻す ===== */
.wm-reader .wm2-section-frame>.wm2-head h2::after{content:"";display:block;width:56px;height:1px;background:var(--accent,var(--gold));margin-top:22px}
.wm-reader .wm2-theories .wm2-theory-card>h3::before{content:counter(th,upper-roman);display:block;font-family:var(--serif);color:var(--accent,var(--gold));letter-spacing:.06em;margin-bottom:6px}
.wm-reader .wm2-document .wm2-document__col>h3::before{content:"資料 " counter(fig,decimal-leading-zero);display:block;font-family:var(--sans);font-size:15px;letter-spacing:.2em;color:var(--accent,var(--red));margin-bottom:8px}
.wm-reader .wm2-dossier .wm2-dossier__mystery>li::before{content:counter(q,upper-roman)}

/* ===== アステカ以外の記事の部品（v9の流儀：髪線・余白・型の色） ===== */
.wm2-prose a[rel~="nofollow"][target="_blank"]{font:500 15px/0 var(--sans);vertical-align:super;border:0;color:var(--ink-3);margin-left:.1em;white-space:nowrap}
.wm2-chapters>p{font:500 15px/1.6 var(--sans);letter-spacing:.2em;color:var(--ink-3);margin:0}
.wm2-photo-print,.wm2-photo-corners,.wm2-photo-taped{padding:0;background:none;box-shadow:none;border:0}
.wm-reader :is(.wm2-photo-corners,.wm2-photo-taped)::after{content:none}
[data-photo-credit]{display:block;font-family:var(--sans);color:var(--ink-3);letter-spacing:.04em;margin-top:4px}
.wm2-mark--gold,.wm2-mark--teal{font-weight:700}

.wm2-spec{display:grid;grid-template-columns:minmax(6em,32%) minmax(0,1fr);border-top:1px solid var(--ink);font-family:var(--sans)}
.wm2-spec :is(dt,dd){margin:0;padding:10px 0;border-bottom:1px solid var(--hair)}
.wm2-spec dt{color:var(--accent,var(--red));letter-spacing:.1em;padding-right:14px}

.wm2-timeline{list-style:none;padding:0;border-left:1px solid var(--gold)}
.wm2-timeline__item{position:relative}
.wm-reader .wm2-timeline>.wm2-timeline__item::before{content:"";position:absolute;left:-4px;top:.75em;width:7px;height:7px;border-radius:50%;background:var(--accent,var(--red))}
.wm2-timeline__time{font-family:var(--serif);color:var(--accent,var(--red));line-height:1.25;letter-spacing:.02em}
.wm2-timeline__body strong{display:block;font-weight:700;margin:2px 0 4px}
.wm2-timeline__body{color:var(--ink-2)}

.wm2-margin-note{border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);color:var(--ink-2)}
.wm-reader .wm2-margin-note::before{content:"補足";display:block;font:500 15px/1.6 var(--sans);letter-spacing:.2em;color:var(--accent,var(--red));margin-bottom:6px}
.wm2-interlude{text-align:center;border:0}
.wm2-interlude::before{content:"";display:block;width:56px;height:1px;background:var(--gold);margin:0 auto 22px}
.wm2-interlude__note{display:block;font:15px/1.7 var(--sans);color:var(--ink-3);letter-spacing:.06em;margin-top:10px}
.wm2-pull{font-family:var(--serif);text-align:center;color:var(--ink);word-break:auto-phrase;text-wrap:balance;border-top:1px solid var(--ink);border-bottom:1px solid var(--hair)}

.wm2-photo-pair,.wm2-photo-grid,.wm2-evidence-board,.wm2-person,.wm2-reading,.wm2-editorial-split{display:grid;align-items:start}
:is(.wm2-photo-pair,.wm2-photo-grid) figure{margin:0}
:is(.wm2-photo-pair,.wm2-photo-grid,.wm2-editorial-split) img{width:100%;object-fit:cover}
.wm2-evidence-board__item,.wm2-person__card,.wm2-reading__item{margin:0;border-top:1px solid var(--ink);padding-top:16px}
:is(.wm2-evidence-board__item,.wm2-reading__item) h3,.wm2-person .wm2-title{font-family:var(--serif);font-weight:400;margin-bottom:8px}
:is(.wm2-evidence-board__item,.wm2-reading__item,.wm2-person__card) p{color:var(--ink-2)}
.wm2-person__card img{width:140px;aspect-ratio:1;object-fit:cover;margin-bottom:12px}
.wm2-person__role{font-family:var(--sans);letter-spacing:.1em;color:var(--accent,var(--red))}
.wm2-editorial-split__media{margin:0}

.wm2-photo-break{display:block;background:none;color:var(--ink)}
.wm2-photo-break>img{width:100%;object-fit:cover}
.wm2-photo-break__body{text-align:center}
.wm2-photo-break__body h2{font-family:var(--serif);font-weight:400;color:var(--ink)}
.wm2-photo-break__body p{color:var(--ink-2)}

.wm2-clock,.wm2-panel:not(.wm2-panel--dark){border-top:1px solid var(--ink);border-bottom:1px solid var(--hair)}
.wm2-clock__tick{display:grid;grid-template-columns:minmax(5em,.4fr) minmax(0,1fr);gap:18px;border-top:1px solid var(--hair)}
.wm2-clock__tick:first-child{border-top:0}
.wm2-num{font-family:var(--serif);color:var(--accent,var(--red));line-height:1.2}
.wm2-panel>h3{font:500 15px/1.6 var(--sans);letter-spacing:.2em;color:var(--accent,var(--red))}

.wm2-document__lines{list-style:none;padding:0}
.wm2-document__lines li{display:grid;grid-template-columns:2em minmax(0,1fr);gap:8px;border-top:1px solid var(--hair);padding:6px 0;color:var(--ink-2)}
.wm-reader .wm2-document .wm2-document__lines>li::before{content:attr(data-n);color:var(--accent,var(--red));font-family:var(--serif)}
.wm2-location__north,.wm2-location__scale{font:15px/1.7 var(--sans);color:var(--ink-3)}

.wm2-note li>strong:first-child{color:var(--accent,var(--red))}
.wm2-note li>strong:first-child::after{content:"　"}

.wm-site-ad{border-top:1px solid var(--ink);border-bottom:1px solid var(--hair);font-family:var(--sans)}
.wm-site-ad__label{font:500 15px var(--sans);color:var(--ink-3);letter-spacing:.2em;margin:0 0 10px}
.wm-site-ad__layout{display:grid;gap:18px;align-items:center}
.wm-site-ad__banner{width:300px;max-width:100%;height:auto}
.wm-site-ad__media a{border:0}
.post_content .wm-site-ad__title{font-family:var(--serif);font-weight:400;margin-bottom:8px}
.wm-site-ad__action a{color:var(--accent,var(--red));border-bottom-color:currentColor}
.wm-site-ad__note,.wm-site-ad-disclosure{font:15px/1.7 var(--sans);color:var(--ink-3)}
.wm-site-ad__tracking{position:absolute;width:1px;height:1px;overflow:hidden}

/* 資料番号：キャプションのある図版だけに通し番号（結びと広告は数えない） */
.wm2-figure,.wm2-location{counter-increment:none}
.wm-reader figure:has(>figcaption):not(.wm2-coda),.wm-reader .wm2-document{counter-increment:fig}
.wm-reader .wm2-coda figcaption::before,.wm-reader .wm2-coda__body::before{content:none}
.wm-reader .wm2-coda .wm2-coda__body::before{content:"";display:block;width:56px;height:1px;background:var(--accent);margin:0 auto 28px}
.wm-reader .wm2-evidence-board__item>figcaption::before,.wm-reader .wm2-photo-break>figcaption::before{content:"資料 " counter(fig,decimal-leading-zero)}

/* テーマの見出し飾り（下線）を番号に残さない */
.wm-reader .wm2-theories .wm2-theory-card>h3::before,.wm-reader .wm2-document .wm2-document__col>h3::before,.wm-reader .wm2-section-frame>.wm2-head h2::after{position:static;inset:auto;transform:none;border:0;box-shadow:none;width:auto;height:auto}
.wm-reader .wm2-theories .wm2-theory-card>h3::before,.wm-reader .wm2-document .wm2-document__col>h3::before{background:none}
.wm-reader .wm2-section-frame>.wm2-head h2::after{width:56px;height:1px}

/* 旧生成の資料（画像なし・行番号つき）は二段に並べる。番号は資料ごと */
.wm-reader .wm2-document{counter-increment:none}
.wm-reader .wm2-document__col{counter-increment:fig}
.wm2-document:has(.wm2-document__lines){display:grid;gap:24px 48px}
.wm2-document__col:has(.wm2-document__lines){display:block}
.wm2-document__col:has(.wm2-document__lines) .wm2-document__desc{margin:8px 0 12px}
.post_content .wm-reader :is(.wm2-document__lines,.wm2-timeline,.wm2-question__list,.wm2-chapters ol){padding-left:0}
.post_content .wm-reader .wm2-source-group ul{padding-left:0}

/* 長い欧文・キリル文字のクレジットは、どの幅でも枠の中で折り返す */
.wm2-hero__credit,.wm2-coda__credit,.wm-reader figcaption,.wm2-document__img>span,[data-photo-credit]{overflow-wrap:anywhere;min-width:0;max-width:100%}
.wm-reader :is(.wm2-hero__credit,.wm2-coda__credit,figcaption,.wm2-document__img>span) .wm2-credit-unit{white-space:normal}
.wm2-coda,.wm2-coda__body,.wm2-figure,.wm2-figure figcaption{min-width:0}
