/* Options Door テーマの見た目。
   デザイン案（第2版：ダークブラウンとシャンパンゴールド）をそのまま引き継ぐ。
   :root の値とクラス名は変えない。外部の資源は読み込まない（欧文の見出しは、テーマの中の Playfair Display）。 */

@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/playfair-display-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/playfair-display-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FBF8F3; --surface: #FFFFFF; --ink: #241812; --muted: #6B5A4C;
  --brand: #3A251A; --brand-ink: #F4EBDD; --accent: #C9A96A; --accent-ink: #2A1A12;
  --gold-on-dark: #E9C88C; --foot: #17110E; --foot-line: #3B2C22; --foot-muted: #C6B29B;
  --line: #E2D6C3; --tint: #F4EDE2; --red: #A8281A;
  --grad-gold: linear-gradient(100deg, #D9B87A 0%, #FFF3D2 26%, #F5E3B4 50%, #E6C98F 74%, #FFF6DC 100%);
  --grad-gold-deep: linear-gradient(100deg, #A9803F 0%, #E6C98F 28%, #C9A96A 55%, #F0D9A4 78%, #B8935A 100%);
  --gold-text: #8A6420;
  --hero-veil: linear-gradient(100deg, rgba(15,11,9,.92) 0%, rgba(36,24,18,.72) 45%, rgba(36,24,18,.1) 100%);
  --radius: 3px;
  --f-head: "Playfair Display", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --f-body: "Segoe UI", system-ui, -apple-system, "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
/* 日本語と中国語の見出しは、欧文の Playfair Display を先に置かない。英数字だけ字の大きさがそろわず、小さく見えるため
   （2026-10-14 利用者の指摘）。英数字も、その言語の明朝体の字形で書く。ロゴは .logo で Playfair Display を直接指定している。 */
html:lang(ja) {
  --f-head: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
}
html:lang(zh) {
  --f-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, STSong, serif;
}
html:lang(ar) {
  --f-head: "Sakkal Majalla", "Traditional Arabic", "Segoe UI", Tahoma, serif;
  --f-body: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ── 土台 ───────────────────────────────────────── */
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); line-height: 1.75; }
html:lang(ar) body { line-height: 1.9; font-size: 1.06rem; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: .02em; line-height: 1.35; margin: 0; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3 { line-height: 1.5; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { padding-inline: clamp(16px, 3vw, 44px); }
/* 画像の枠。画像が無いときは暗い地だけが見える。画像は style="--img:url(...)" で渡す（位置は --p、拡大は --z）。 */
.ph { display: block; background: #222 var(--img, none) var(--p, 50% 50%) / var(--z, cover) no-repeat; }
/* 実画像（img）を入れる枠は、枠いっぱいに切り抜く。画像が無い枠（ph-none）は、暗い地ではなく中立の色。 */
.ph-img { position: relative; overflow: hidden; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-none { background: linear-gradient(135deg, var(--tint), #E9DFCD); }

/* ── ヘッダー ─────────────────────────────────────── */
.hd { background: var(--brand); color: var(--brand-ink); border-bottom: 3px solid transparent; border-image: var(--grad-gold) 1; }
.hd-top { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-family: "Playfair Display", Georgia, serif; font-size: 2.3rem; font-weight: 700; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.logo svg { width: 30px; height: 42px; flex: none; }
.logo .door-frame { fill: none; stroke: var(--gold-on-dark); stroke-width: 1.4; }
.logo .door-light { fill: var(--accent); }
.logo .name { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; padding-block: .12em; }
.find { display: flex; flex: 1; justify-content: flex-end; gap: 8px; min-width: 0; }
.find input, .find select, .lang select { font: inherit; font-size: .9rem; height: 40px; padding: 0 10px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: var(--radius); background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; min-width: 0; }
.find input { flex: 0 1 300px; }
.find select { flex: 0 1 170px; }
.find select option, .lang select option { color: #111; background: #fff; }
.find button { font: inherit; font-size: .9rem; height: 40px; padding: 0 20px; border: 0; border-radius: var(--radius); background: var(--grad-gold); color: var(--accent-ink); font-weight: 700; cursor: pointer; white-space: nowrap; transition: filter .15s ease, transform .15s ease; }
.find button:hover, .find button:focus-visible { filter: brightness(1.08) saturate(1.2); transform: translateY(-1px); }
.nav { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0; padding: 0; list-style: none; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 11px 14px; text-decoration: none; font-size: 1rem; font-weight: 700; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.nav a:hover, .nav a:focus-visible { background: var(--grad-gold); color: var(--accent-ink); }
.nav .sep { margin-inline-start: auto; }
.nav .give a { color: var(--gold-on-dark); }
.nav .give a:hover, .nav .give a:focus-visible { color: var(--accent-ink); }

/* ── トップ：メインビジュアル ───────────────────────────── */
.hero { position: relative; min-height: clamp(300px, 46vh, 520px); display: flex; align-items: center; overflow: hidden; color: #fff; }
/* 画像は style="--img:url(絶対 URL)" で渡る（画像のファイル名は inc/front.php の od_hero_image_path() だけが持つ）。
   画像のファイルが無い間は --img が渡らず、.ph の暗い地（#222）と下の幕（--hero-veil）だけで、紹介の文を出す。 */
.hero .ph { position: absolute; inset: 0; --z: cover; --p: 70% 40%; }
html[dir="rtl"] .hero .ph { transform: scaleX(-1); }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-veil); }
html[dir="rtl"] .hero::after { transform: scaleX(-1); }
.hero-txt { position: relative; z-index: 1; max-width: 56rem; padding-block: 40px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.5rem); line-height: 1.3; padding-block: .08em; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-txt::before { content: ""; display: block; width: 72px; height: 3px; margin-bottom: 18px; background: var(--grad-gold); }
.hero p { margin: 14px 0 0; font-size: 1.05rem; max-width: 36rem; opacity: .92; }

/* ── トップ：区切りの見出し ─────────────────────────────── */
.sec { padding-block: 26px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sec-h { border-bottom: 1px solid var(--line); }
.sec-h h2 { font-size: 1.6rem; padding-bottom: 8px; margin-bottom: -1px; background: var(--grad-gold-deep) bottom / 100% 4px no-repeat; }
.sec-h a { font-size: .92rem; font-weight: 700; color: var(--gold-text); }

/* ── トップ：新着（大きい1件と小さい4件。左端の金の帯が「扉の光」） ──────────── */
.latest { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.door { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: #fff; min-height: 215px; background: #111; }
.door:first-child { grid-row: 1 / 3; }
.door .ph { position: absolute; inset: 0; transition: transform .5s ease; }
.door::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--grad-gold); z-index: 2; transition: width .25s ease; }
.door:hover::before { width: 12px; }
.door:hover .ph { transform: scale(1.04); }
.door .cap { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 50px 16px 14px 20px; background: linear-gradient(transparent, rgba(0,0,0,.88) 50%); }
html[dir="rtl"] .door .cap { padding: 50px 20px 14px 16px; }
.door .where { display: block; font-size: .82rem; color: var(--gold-on-dark); font-weight: 600; }
.door .ttl { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.06rem; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
/* 画像の無い記事：白い題が読めるよう、暗い地にする（見本は画像のある場合だけ） */
.door .ph-none { background: linear-gradient(135deg, var(--brand), var(--foot)); }
.door:first-child .ttl { font-size: 1.7rem; }
.door time { display: block; font-size: .82rem; opacity: .85; margin-top: 6px; }

/* ── トップ：地域ごと（3列）とトピックごと（2列）の案内 ─────────────── */
.groups { display: grid; gap: 22px 32px; }
.groups.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.groups.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grp { padding-top: 12px; background: var(--grad-gold-deep) top / 100% 3px no-repeat; }
.grp h3, .grp h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.2rem; }
.grp h3 span, .grp h2 span, .grp li .n { font-family: var(--f-body); font-size: .82rem; font-weight: 400; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.grp h2 a { text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.grp h2 a:hover { text-decoration: underline; color: var(--gold-text); }
.grp ul { margin: 6px 0 0; padding: 0; list-style: none; }
.grp li { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .97rem; line-height: 1.55; }
.grp li a { text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.grp li a:hover { text-decoration: underline; color: var(--gold-text); }
.grp time { color: var(--muted); font-size: .82rem; white-space: nowrap; }
/* 「もっと見る」で出す行は hidden 属性つき。.grp li の display: flex に負けないよう明示する */
.grp li[hidden] { display: none; }
.grp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 10px 0 0; }
.grp-foot .more { margin-top: 0; }
.grp-all { font-size: .9rem; font-weight: 700; color: var(--gold-text); }
.more { margin-top: 10px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--gold-text); background: none; border: 1px solid var(--accent); border-radius: var(--radius); padding: 4px 14px; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.more:hover, .more:focus-visible { background: var(--grad-gold); color: var(--accent-ink); }

/* ── トップ：第2段階の枠 ─────────────────────────────── */
.later { background: var(--tint); }
.later-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding-block: 26px; }
.box h2 { font-size: 1.3rem; }
.box p { margin: 8px 0 12px; color: var(--muted); }
.poll label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 6px; }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 10px 22px; border: 0; border-radius: var(--radius); background: var(--brand); color: var(--gold-on-dark); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover, .btn:focus-visible { background: var(--grad-gold); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(58, 37, 26, .28); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.alt { background: var(--grad-gold); color: var(--accent-ink); }
.btn.alt:hover, .btn.alt:focus-visible { background: var(--brand); color: var(--gold-on-dark); }
.phase { display: inline-block; font-size: .75rem; padding: 1px 8px; border: 1px dashed var(--muted); color: var(--muted); border-radius: 99px; margin-inline-start: 8px; font-family: var(--f-body); font-weight: 400; letter-spacing: 0; vertical-align: middle; }

/* ── フッター（濃い地に4つの列、その下に著作権の行） ───────────────────── */
.ft { background: var(--foot); color: var(--brand-ink); border-top: 3px solid transparent; border-image: var(--grad-gold) 1; margin-top: 30px; }
.ft-in { display: grid; grid-template-columns: 1.5fr 1.5fr .8fr 1fr; gap: 36px; padding-block: 44px 34px; }
.ft .logo { font-size: 2rem; }
.ft .logo svg { width: 26px; height: 36px; }
.ft p { margin: 12px 0 0; color: var(--foot-muted); max-width: 26em; font-size: .95rem; }
.ft h2 { width: fit-content; margin: 0 0 .8em; padding: 0 0 6px; padding-inline-end: 16px; font-family: var(--f-body); font-size: .9rem; letter-spacing: .08em; color: var(--gold-on-dark); font-weight: 700; background: var(--grad-gold) bottom / 100% 2px no-repeat; }
html:lang(ar) .ft h2 { letter-spacing: 0; font-size: 1rem; }
.ft ul { list-style: none; margin: 0; padding: 0; line-height: 2.05; font-weight: 700; font-size: .98rem; }
.ft ul.two { columns: 2; column-gap: 24px; }
.ft a { text-decoration: none; }
.ft a { transition: color .15s ease; }
.ft a:hover { color: var(--gold-on-dark); text-decoration: underline; text-underline-offset: 4px; }
.copy { border-top: 1px solid var(--foot-line); padding-block: 14px; font-size: .85rem; color: var(--foot-muted); }

/* ── 記事ページ ─────────────────────────────────────── */
.crumb { font-size: .88rem; color: var(--muted); padding-block: 12px 0; overflow-wrap: anywhere; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin-inline: 6px; }
.art-head { padding-block: 10px 18px; }
.art-head h1 { font-size: clamp(1.7rem, 3.3vw, 2.7rem); overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; color: var(--muted); font-size: .92rem; }
.ai-tag { display: inline-block; border: 1px solid #B8935A; border-radius: 99px; padding: 0 12px; background: var(--grad-gold); color: var(--accent-ink); font-weight: 700; }
.art-visual { aspect-ratio: 21 / 8; --z: cover; --p: 72% 46%; border-radius: var(--radius); position: relative; overflow: hidden; }
.art-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.art { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; padding-block: 26px; max-width: 1360px; margin-inline: auto; }
.prose { max-width: 56rem; font-size: 1.0625rem; line-height: 1.95; width: 100%; overflow-wrap: break-word; }
html:lang(en) .prose { max-width: 50rem; line-height: 1.75; }
html:lang(ar) .prose { max-width: 52rem; font-size: 1.15rem; line-height: 2; }
.prose h2 { font-size: 1.55rem; margin: 2.2em 0 .7em; padding: 4px 14px 8px; border-inline-start: 6px solid var(--accent); background: var(--grad-gold-deep) bottom / 100% 2px no-repeat, linear-gradient(90deg, rgba(201, 169, 106, .2), rgba(201, 169, 106, 0) 60%); }
html[dir="rtl"] .prose h2 { background: var(--grad-gold-deep) bottom / 100% 2px no-repeat, linear-gradient(270deg, rgba(201, 169, 106, .2), rgba(201, 169, 106, 0) 60%); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
.prose img { max-width: 100%; height: auto; }
.prose h2 { scroll-margin-top: 16px; }
.asof { background: var(--tint); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 1.4em; border-inline-start: 6px solid var(--accent); }
.asof strong { font-family: var(--f-head); font-size: 1.1rem; color: var(--gold-text); }
.asof strong { display: block; margin-bottom: 4px; }
.asof ul { margin: 6px 0 0; }
.red { color: var(--red); font-weight: 600; }
/* エディターの赤字は <mark style="background-color:rgba(0,0,0,0);color:…">。保存のとき wp_kses_post が background-color を落とすので、
   ブラウザの既定の黄色い背景が出ないよう、背景を透明にする（文字の色は style の color が残る）。 */
.prose mark { background: transparent; color: inherit; }
.prose small { font-size: .82em; color: var(--muted); }
/* 見出しレベル3：シャンパンゴールドの下線で、段落と見分けやすくする（下線は見出しの文字の幅まで）。 */
.prose h3 { width: fit-content; max-width: 100%; font-size: 1.25rem; margin: 1.9em 0 .75em; padding-block-end: 7px; padding-inline-end: 1.4em; background: var(--grad-gold-deep) bottom / 100% 2px no-repeat; }
/* 表の幅は中身の量に合わせる（中身が多ければ、本文の幅いっぱいまで広がる）。文字の少ない列（md.to_html が class="c" を付ける）は中央に揃える。 */
.prose table { width: auto; max-width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: .95em; }
.prose th.c, .prose td.c { text-align: center; white-space: nowrap; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: middle; } /* 行の見出し（th）と縦の位置をそろえる */
.prose th { background: linear-gradient(180deg, #FBF1D8, #F0DDB0); text-align: center; vertical-align: middle; font-weight: 700; }
.prose th, .prose td { border-color: #D9C49A; }
.scroll-x { overflow-x: auto; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.3em; }
.opt { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 16px 14px 20px; font-size: .95rem; line-height: 1.75; }
html[dir="rtl"] .opt { padding: 16px 20px 14px 16px; }
.opt::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--grad-gold); }
.opt b { display: block; font-family: var(--f-head); font-size: 1.1rem; margin-bottom: 4px; }
.refs { font-size: .92rem; overflow-wrap: anywhere; }
.refs li { margin-bottom: 4px; }
.refs a { color: #8A6420; text-decoration: underline; text-underline-offset: 3px; unicode-bidi: isolate; direction: ltr; }
.refs a:hover { color: var(--red); }
.ai-note { margin: 1.6em 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.fixes { margin: 1em 0 0; font-size: .9rem; color: var(--muted); }
.fixes h3 { font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.fixes ul { margin: 0; padding-inline-start: 1.2em; }
.fixes time { font-weight: 600; margin-inline-end: .4em; }
.side { position: sticky; top: 16px; display: grid; gap: 16px; overflow-wrap: anywhere; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; }
.card { border-top: 3px solid transparent; border-image: var(--grad-gold-deep) 1; }
.card h2 { font-size: 1.1rem; margin-bottom: 10px; color: var(--brand); }
.toc li::marker { color: var(--gold-text); font-weight: 700; }
.toc a:hover { color: var(--gold-text); }
.toc ol { margin: 0; padding-inline-start: 1.3em; font-size: .93rem; }
.toc li { padding: 2px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.sh { --net: var(--brand); display: flex; align-items: center; gap: 8px; font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 10px; border: 0; border-radius: var(--radius); background: var(--net); color: #fff; cursor: pointer; text-align: start; text-decoration: none; min-width: 0; transition: filter .15s ease, transform .15s ease; }
.sh[hidden] { display: none; }
.sh span { min-width: 0; overflow-wrap: anywhere; }
.sh svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.sh:hover { filter: brightness(1.12); transform: translateY(-1px); }
.sh-copy { grid-column: 1 / -1; background: var(--bg); color: var(--ink); border: 1px solid var(--line); justify-content: center; }
.sh-copy:hover { border-color: var(--brand); filter: none; }
.card p { margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rel a { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.rel a > div { padding: 10px 14px 14px; }
.rel .ph { aspect-ratio: 16 / 9; transition: transform .5s ease; }
.rel b { display: block; font-family: var(--f-head); font-weight: 700; line-height: 1.5; transition: color .2s ease; overflow-wrap: anywhere; }
.rel a:hover, .rel a:focus-visible { border-color: var(--accent); box-shadow: 0 6px 18px rgba(58, 37, 26, .16); transform: translateY(-2px); }
.rel a:hover .ph, .rel a:focus-visible .ph { transform: scale(1.05); }
.rel a:hover b, .rel a:focus-visible b { color: #8A6420; text-decoration: underline; text-underline-offset: 4px; }
.rel time { font-size: .82rem; color: var(--muted); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.pn a { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; text-decoration: none; }
.pn a { transition: border-color .2s ease, box-shadow .2s ease; }
.pn a:hover, .pn a:focus-visible { border-color: var(--accent); box-shadow: 0 6px 18px rgba(58, 37, 26, .16); }
.pn a:hover b, .pn a:focus-visible b { color: #8A6420; text-decoration: underline; text-underline-offset: 4px; }
.pn .dir { font-size: .84rem; color: var(--muted); }
.pn b { display: block; font-family: var(--f-head); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.pn time { font-size: .82rem; color: var(--muted); }
.pn a.pn-newer { grid-column: 1; }
.pn a.pn-older { grid-column: 2; text-align: end; }

/* ── 言語の案内（自動では切り替えない） ─────────────────────── */
.suggest { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; background: var(--grad-gold); color: var(--accent-ink); font-size: .9rem; padding: 7px 16px; }
.suggest[hidden] { display: none; } /* hidden で出し、suggest.js が外す。上の display: flex に負けないよう明示する */
.suggest a { font-weight: 700; }
.suggest button { font: inherit; background: none; border: 1px solid currentColor; border-radius: var(--radius); padding: 1px 10px; color: inherit; cursor: pointer; }

/* ── 計測の同意（デザイン案には無い。濃い地・金の線・金の文字はフッターの見本、ボタンの作りは言語の案内の帯に合わせる） ── */
/* 画面の下の端に固定。読むのを止めず、フォーカスも閉じ込めない。
   出ている間は、consent.js が <html> に od-consent-open と帯の高さ（--od-consent-h）を付け、ページの終わりに同じ高さの余白を足す。 */
.consent { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 14px clamp(16px, 3vw, 44px); background: var(--foot); color: var(--brand-ink); border-block-start: 3px solid transparent; border-image: var(--grad-gold) 1; font-size: .92rem; line-height: 1.7; box-shadow: 0 -8px 24px rgba(0, 0, 0, .28); }
.consent[hidden] { display: none; } /* hidden で出し、consent.js が外す。上の display: flex に負けないよう明示する */
/* フォーカスの輪郭は、全体の :focus-visible の規則のまま残す（帯は画面の端いっぱいなので、輪郭は内側へ） */
.consent:focus-visible { outline-offset: -6px; }
.consent p { flex: 1 1 28rem; margin: 0; min-width: 0; }
.consent a { color: var(--gold-on-dark); font-weight: 700; text-underline-offset: 4px; }
.consent-btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* 同意する・同意しないは、同じ見た目（どちらかを目立たせない） */
.consent-btn { font: inherit; font-weight: 700; min-width: 8.5em; padding: 8px 20px; border: 1px solid var(--gold-on-dark); border-radius: var(--radius); background: transparent; color: var(--brand-ink); cursor: pointer; transition: background .15s ease, color .15s ease; }
.consent-btn:hover, .consent-btn:focus-visible { background: var(--grad-gold); color: var(--accent-ink); border-color: transparent; }
html.od-consent-open body { padding-block-end: var(--od-consent-h, 9rem); }
/* 帯が出ている間、キーボードでフォーカスが動いたとき、下端の帯にフォーカスされた要素が隠れないようにする */
html.od-consent-open { scroll-padding-block-end: var(--od-consent-h, 9rem); }
/* フッターの著作権の行：著作権の文と「計測の設定」のボタンを並べる */
.copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.consent-reset { font: inherit; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.consent-reset:hover, .consent-reset:focus-visible { color: var(--gold-on-dark); }
/* 画像は AI が生成したものであることの注記：フッターでは著作権の文のそばに、記事ではメインの画像のすぐ下に、小さく */
.copy-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 22px; min-width: 0; }
.img-note { font-size: .8rem; line-height: 1.6; }
.art-figure { margin: 0; }
.art-figure .img-note { display: block; margin-top: 6px; color: var(--muted); text-align: end; }

/* ── 画面の幅に合わせる ─────────────────────────────── */
@media (max-width: 1000px) {
  .art { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .prose { max-width: none; }
  .side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .later-in { grid-template-columns: 1fr; }
  .latest { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .door:first-child { grid-row: auto; grid-column: 1 / 3; min-height: 300px; }
  .groups.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav ul { flex-wrap: nowrap; overflow-x: auto; }
  .nav .sep { margin-inline-start: 0; }
  .hd-top { flex-wrap: wrap; gap: 10px; }
  .logo { font-size: 1.8rem; }
  .logo svg { width: 24px; height: 34px; }
  .find { order: 3; flex-basis: 100%; }
  .find input { flex: 1 1 100%; }
  .find select { flex: 1 1 40%; }
  .lang { margin-inline-start: auto; }
  .hero { min-height: 300px; }
  .hero .ph { background-image: var(--img-s, var(--img, none)); } /* 幅の狭い画面用の画像（--img-s）が渡っていれば、そちらを使う */
  /* 幅の狭い画面では、紹介の文が幅いっぱいに広がるので、幕を終わりの側まで濃くする（色は --hero-veil と同じ、濃さだけを変える） */
  .hero::after { background: linear-gradient(100deg, rgba(15,11,9,.92) 0%, rgba(36,24,18,.8) 45%, rgba(36,24,18,.6) 100%); }
  .hero-txt { padding-block: 28px; }
  .latest { grid-template-columns: 1fr; }
  .door:first-child { grid-column: auto; min-height: 260px; }
  .door:first-child .ttl { font-size: 1.3rem; }
  .groups.c3, .groups.c2 { grid-template-columns: 1fr; }
  .opts, .rel, .pn, .side { grid-template-columns: minmax(0, 1fr); } /* 長い語で列が広がらないように minmax(0, 1fr) */
  .rel a { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
  .rel .ph { height: 100%; width: 100%; min-height: 84px; aspect-ratio: auto; } /* 比から幅が決まって、文の列に食い込まないように */
  .art-visual { aspect-ratio: 16 / 9; }
  .prose { font-size: 1rem; }
  .prose th.c, .prose td.c { white-space: normal; } /* 幅の狭い画面では、短い列も折り返してよい（表が画面からはみ出さないように） */
  .pn a.pn-newer, .pn a.pn-older { grid-column: auto; text-align: start; }
  .ft-in { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ── テーマで足した規則（デザイン案には無いもの） ─────────────────── */

/* スキップリンク：フォーカスが来たときだけ現れる */
.skip-link { position: absolute; inset-inline-start: 8px; top: -120px; z-index: 100; padding: 10px 16px; border-radius: var(--radius); background: var(--grad-gold); color: var(--accent-ink); font-weight: 700; }
.skip-link:focus { top: 8px; }
main[tabindex="-1"]:focus { outline: none; }

/* 画面には出さず、読み上げにだけ使う文字（ページ送りの見出しなど） */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 言語の切り替え：見本の選択欄と同じ見た目の開閉（スクリプト無しで動く） */
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; font-size: .9rem; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: var(--radius); background: color-mix(in srgb, currentColor 8%, transparent); cursor: pointer; list-style: none; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: .45em; height: .45em; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg) translateY(-.15em); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: 20; min-width: 100%; margin: 0; padding: 4px 0; list-style: none; background: #fff; color: #111; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.lang li a { display: block; padding: 8px 18px; text-decoration: none; white-space: nowrap; }
.lang li a:hover, .lang li a:focus-visible { background: var(--grad-gold); color: var(--accent-ink); }
.lang li a[aria-current] { font-weight: 700; }

/* 記事のタグ（デザイン案には無い部品。色と形は見本のものだけ：枠は明るい地の上の濃い金、ホバーはメニューと同じ金の地、丸みは札と同じ）。
   本文の一覧の規則（.prose ul）より強いセレクターにして、字下げと余白を打ち消す。左右を名指しする指定は使わない。 */
.prose .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 1.4em 0; margin-inline: 0; padding: 0; list-style: none; font-size: .88rem; line-height: 1.6; }
.prose .tags li { margin: 0; min-width: 0; max-width: 100%; }
.prose .tags a { display: inline-block; max-width: 100%; padding-block: 2px; padding-inline: 12px; border: 1px solid var(--gold-text); border-radius: 99px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; transition: background-color .15s ease, color .15s ease; }
.prose .tags a:hover, .prose .tags a:focus-visible { background: var(--grad-gold); color: var(--accent-ink); }

/* 固定ページ・404・一覧の代わりの本文 */
.page-main { padding-block: 30px 12px; min-height: 40vh; }
.page-title { font-size: clamp(1.7rem, 3.3vw, 2.7rem); padding-bottom: 10px; margin-bottom: 22px; background: var(--grad-gold-deep) bottom / 100% 4px no-repeat; }
.plain-list { margin: 0 0 24px; padding: 0; list-style: none; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list time { margin-inline-start: 12px; color: var(--muted); font-size: .85rem; }

/* 一覧のページ（地域・トピックのアーカイブ、検索の結果）：記事の行。トップの枠（.grp）の行と同じ見た目 */
.rows { margin: 0 0 24px; padding: 0; list-style: none; }
.rows li { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; line-height: 1.6; }
.rows li a { text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.rows li a:hover, .rows li a:focus-visible { text-decoration: underline; color: var(--gold-text); }
.rows time { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* ページ送り（the_posts_pagination が出す nav.pagination） */
.pagination { margin: 0 0 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination .page-numbers { display: inline-block; min-width: 2.4em; padding: 6px 12px; text-align: center; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pagination a.page-numbers:hover, .pagination a.page-numbers:focus-visible { border-color: var(--accent); color: var(--gold-text); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.pagination .page-numbers.dots { border-color: transparent; background: none; }

/* 「国・地域から探す」：大カテゴリーの枠が並ぶ（枠は .grp、列は .groups.c3） */
.browse { margin-bottom: 24px; }

/* ── 固定ページ（About・FAQ・Privacy Policy・Disclaimer）：画像を大きく使う、映画の一場面のような見せ方 ─────────
   色は :root のものと、そこから color-mix で作った濃淡だけ。書体も増やさない。左右を名指しする指定は使わない
   （グラデーションの向きだけは、論理の指定が無いので、--to-end / --to-start をアラビア語で入れ替える）。
   画像は、main の style で渡る（--shot、--scene-1 …。幅の狭い画面用は -s）。画像の名前は inc/cine.php だけが持つ。
   仕組み：画像の層は画面に固定（position: fixed）し、冒頭・場面という「窓」（clip-path: inset(0)）から見せる。
   読み進めると、窓だけが動いて、場面から場面へ切り替わる。background-attachment: fixed とスクリプトは使わない。 */
body.od-cine { background: var(--foot); }
body.od-cine .ft { position: relative; margin-top: 0; } /* position は、最後の場面の窓の端より上に重ねるため */
/* ヘッダーは、同じ並びのまま、画像の上の濃いガラスにする（金の線は残す） */
body.od-cine .hd { position: relative; z-index: 30; background: color-mix(in srgb, var(--foot) 76%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15); }
.cine { --deep: var(--foot); --to-end: to right; --to-start: to left; --gut: clamp(16px, 5.5vw, 88px); --col: 38rem; --frame: none; --veil: 100%; position: relative; color: var(--brand-ink); }
html[dir="rtl"] .cine { --to-end: to left; --to-start: to right; }
/* 1 行の長さ：日本語・中国語は 34〜40 字、欧文とアラビア語は 62〜70 字ほどになる幅（測って決めた） */
html:lang(en) .cine, html:lang(fr) .cine, html:lang(es) .cine { --col: 31rem; }
html:lang(ar) .cine { --col: 34rem; }

/* 冒頭の画像の層：ページの後ろに固定する。ヘッダーの下にも敷かれる。入るときに 1 度だけ、暗がりから現れて、わずかに引いて落ち着く */
.cine-backdrop { position: fixed; inset-inline: 0; inset-block-start: 0; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; background: var(--deep); }
.cine-pic { position: absolute; inset: 0; background: var(--shot, none) 50% 50% / cover no-repeat; animation: cine-fade 1.4s ease-out both, cine-settle 3.2s cubic-bezier(.16, .8, .3, 1) both; }
@keyframes cine-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cine-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes cine-title { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 冒頭の場面：題名は下の端に、大きく。幕は、上（ヘッダーのすぐ下）と題名の側を暗くし、下の端は本文の地へ溶かす */
.cine-open { position: relative; display: flex; align-items: flex-end; min-height: max(72vh, 26rem); padding-block: 5rem clamp(2.25rem, 7vh, 4.5rem); padding-inline: var(--gut);
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--deep) 30%, transparent) 0%, transparent 26%, color-mix(in srgb, var(--deep) 38%, transparent) 60%, color-mix(in srgb, var(--deep) var(--veil), transparent) 100%),
    linear-gradient(var(--to-end), color-mix(in srgb, var(--deep) 64%, transparent) 0%, transparent 66%); }
.cine-in { width: 100%; max-width: var(--frame); margin-inline: auto; animation: cine-title 1.2s .35s cubic-bezier(.2, .7, .2, 1) both; }
/* 題名は、本文の列の始まりの端にそろえ、長い題名は、列の幅を越えて終わりの側の余白まで使ってよい（語の途中で折らないため） */
.cine .page-title { inline-size: max-content; max-inline-size: calc((100vw - 2 * var(--gut) + 100%) / 2 - 8px); margin: 0; padding-block: .08em .14em; font-size: clamp(2.6rem, 11vw, 5.75rem); line-height: 1.1; letter-spacing: .005em; overflow-wrap: break-word;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 20px rgba(0, 0, 0, .6)); }
html:lang(zh) .cine .page-title { line-height: 1.25; }
html:lang(ar) .cine .page-title { line-height: 1.45; letter-spacing: 0; }
.cine-in::after { content: ""; display: block; height: 1px; margin-block-start: clamp(14px, 2.6vh, 26px); background: linear-gradient(var(--to-end), var(--gold-on-dark), color-mix(in srgb, var(--accent) 35%, transparent) 55%, transparent); }

/* 本文の文字（暗い地の上）。文字は落ち着かせる：見出しは金、本文は明るい生成り、強調は金 */
main.cine .prose { max-width: var(--frame); margin-inline: auto; color: var(--brand-ink); }
main.cine .prose h2 { margin: 0 0 .8em; padding: 0; border: 0; background: none; color: var(--gold-on-dark); line-height: 1.4; scroll-margin-top: 24px; }
.cine .prose strong { color: var(--gold-on-dark); }
.cine .prose li::marker { color: var(--accent); }
.cine .prose li + li { margin-block-start: .5em; }
.cine .prose code { padding: .08em .4em; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--gold-on-dark); font-size: .92em; overflow-wrap: anywhere; }
.cine .prose section > :last-child { margin-block-end: 0; }
.cine .prose th, .cine .prose td { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.cine .prose th { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--gold-on-dark); }
.cine .prose tbody th { width: 32%; }

/* About：節ごとに、別の画像の場面。画像は場面の窓から見え、文字は片側の暗い幕の上に置く（奇数は始まりの側、偶数は終わりの側） */
.cine-scenes .cine-body { background: var(--deep); }
.cine-scenes .prose > section { position: relative; clip-path: inset(0); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 100vh; padding-block: clamp(6rem, 17vh, 11rem); padding-inline: var(--gut); --side: var(--to-end); }
.cine-scenes .prose > section:nth-of-type(even) { align-items: flex-end; --side: var(--to-start); }
.cine-scenes .prose > section > * { width: 100%; max-width: var(--col); }
/* 画像の層と幕の層。どちらも画面に固定して、同じ窓から見せる（場面の切り替わりは、窓の端でのすっきりした切り替え）。
   幕を窓の中の位置に合わせる層（position: absolute）にすると、窓の端が画素の途中に来たとき、端の 1 行だけ画像が幕なしで透けて、
   明るい線になる（固定の層と、そうでない層とで、窓の端の丸め方が違うため）。幅の広い画面の幕は、横の向きだけで決まるので、固定にできる。
   幕は、文字の側を、文字の幅まで濃くし、その先はゆっくり薄くする（文字の下の濃さは、どの画像の上でも 82% 以上） */
.cine-scenes .prose > section::before, .cine-scenes .prose > section::after { content: ""; position: fixed; inset-inline: 0; inset-block-start: 0; height: 100vh; height: 100lvh; pointer-events: none; }
.cine-scenes .prose > section::before { z-index: -2; background: var(--deep) var(--pic, none) 50% 50% / cover no-repeat; }
.cine-scenes .prose > section::after { z-index: -1; background: linear-gradient(var(--side), color-mix(in srgb, var(--deep) 88%, transparent) 0, color-mix(in srgb, var(--deep) 82%, transparent) calc(var(--gut) + var(--col) + 1.5rem), color-mix(in srgb, var(--deep) 40%, transparent) calc(var(--gut) + var(--col) + 14rem), color-mix(in srgb, var(--deep) 12%, transparent) calc(var(--gut) + var(--col) + 30rem), color-mix(in srgb, var(--deep) 4%, transparent) 100%); }
.cine-scenes .prose > section:nth-of-type(6n+1) { --pic: var(--scene-1); --pic-s: var(--scene-1-s, var(--scene-1)); }
.cine-scenes .prose > section:nth-of-type(6n+2) { --pic: var(--scene-2); --pic-s: var(--scene-2-s, var(--scene-2)); }
.cine-scenes .prose > section:nth-of-type(6n+3) { --pic: var(--scene-3); --pic-s: var(--scene-3-s, var(--scene-3)); }
.cine-scenes .prose > section:nth-of-type(6n+4) { --pic: var(--scene-4); --pic-s: var(--scene-4-s, var(--scene-4)); }
.cine-scenes .prose > section:nth-of-type(6n+5) { --pic: var(--scene-5, var(--scene-1)); --pic-s: var(--scene-5-s, var(--scene-5, var(--scene-1-s, var(--scene-1)))); }
.cine-scenes .prose > section:nth-of-type(6n) { --pic: var(--scene-6, var(--scene-2)); --pic-s: var(--scene-6-s, var(--scene-6, var(--scene-2-s, var(--scene-2)))); }
main.cine-scenes .prose h2 { margin-block-end: .7em; padding-block-end: .5em; font-size: clamp(1.9rem, 3.3vw, 2.85rem); line-height: 1.25; background: linear-gradient(var(--to-end), var(--gold-on-dark), color-mix(in srgb, var(--accent) 30%, transparent) 60%, transparent) bottom / 100% 1px no-repeat; }
html:lang(ar) main.cine-scenes .prose h2 { line-height: 1.5; }

/* FAQ と、Privacy Policy・Disclaimer：冒頭の 1 枚の画像を、ページの終わりまで後ろに保つ。本文の地は、その上に掛ける薄い幕 */
.cine-cards { --veil: 50%; --frame: 45rem; }
.cine-read { --veil: 72%; --frame: 48rem; }
html:lang(en) .cine-cards, html:lang(fr) .cine-cards, html:lang(es) .cine-cards { --frame: 37rem; }
html:lang(en) .cine-read, html:lang(fr) .cine-read, html:lang(es) .cine-read { --frame: 39rem; }
html:lang(ar) .cine-cards { --frame: 38rem; }
html:lang(ar) .cine-read { --frame: 40rem; }
.cine-cards .cine-body, .cine-read .cine-body { padding-block: clamp(1rem, 4vh, 2.5rem) clamp(4.5rem, 14vh, 9rem); padding-inline: var(--gut); background: color-mix(in srgb, var(--deep) var(--veil), transparent); }

/* FAQ：問いと答えの組を、濃いガラスのカードに。始まりの側の細い金の光は、トップの新着と同じ「扉の光」 */
/* カードの列の後ろは、もう一段暗くする（カードの間から、明るい画像が縞になって見えないように。列の外は、画像が見えるまま） */
.cine-cards .prose { display: grid; gap: 18px; background: color-mix(in srgb, var(--deep) 56%, transparent); box-shadow: 0 0 72px 56px color-mix(in srgb, var(--deep) 56%, transparent); }
.cine-cards .prose > section { position: relative; padding: clamp(20px, 3.2vw, 34px) clamp(22px, 3.8vw, 42px); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--deep) 74%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
.cine-cards .prose > section::before { content: ""; position: absolute; inset-block: -1px; inset-inline-start: -1px; width: 3px; background: var(--grad-gold); border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
main.cine-cards .prose h2 { margin-block-end: .5em; font-size: clamp(1.2rem, 1.9vw, 1.45rem); }

/* Privacy Policy・Disclaimer：1 枚の読む面。画像は、面の両脇と冒頭にだけ、かすかに残る */
.cine-read .prose { padding: clamp(22px, 4.6vw, 56px); border-block-start: 1px solid var(--gold-on-dark); background: color-mix(in srgb, var(--deep) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 64px rgba(0, 0, 0, .36); }
.cine-read .prose > section + section, .cine-read .prose > p + section { margin-block-start: 2.4em; padding-block-start: 2.2em; border-block-start: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); }
main.cine-read .prose h2 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }

@media (max-width: 1000px) {
  /* 場面：上に画像、その下に文字。高さは中身のまま。幕は上から下へ掛ける */
  .cine-scenes .prose > section, .cine-scenes .prose > section:nth-of-type(even) { align-items: flex-start; justify-content: flex-end; min-height: 0; padding-block: 36vh 4.5rem; }
  /* 幕は、場面の中の位置に合わせる（文字の高さは場面ごとに違う）。場面の上の端では透明なので、端の 1 行が透けても線にならない */
  .cine-scenes .prose > section::after { position: absolute; inset: 0; height: auto; background: linear-gradient(to bottom, transparent 0, color-mix(in srgb, var(--deep) 16%, transparent) 20vh, color-mix(in srgb, var(--deep) 88%, transparent) 34vh, color-mix(in srgb, var(--deep) 90%, transparent) calc(100% - 5rem), var(--deep) 100%); }
  .cine-scenes .prose > section > * { max-width: min(var(--col), 100%); }
}
@media (max-width: 700px) {
  .cine-open { min-height: max(55vh, 20rem); padding-block-start: 3rem; }
  .cine-pic { background-image: var(--shot-s, var(--shot, none)); }
  .cine-scenes .prose > section::before { background-image: var(--pic-s, var(--pic, none)); }
  .cine-cards .prose { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .cine-pic, .cine-in { animation: none; } }
