/* マガジン・リサーチ（2026-10-23・モック）。LP の style.css は継承しない。トークン名は LP にそろえる。
   守ること: 写真・グラデーション背景・影・4〜24px の角丸・装飾の区切り線・スクロール連動の動きは使わない。
   角: 紙（表・図・箱）は 0、操作するもの（ボタン・タグ）はカプセル。黄色はマーカーだけ。明朝はプルクォートだけ */
:root {
  --ink: #1C1B19;
  --graphite: #6E6A64;
  --hairline: #E6E1D8;
  --marker: #F2C230;
  --bg: #FDFCFA;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Meiryo", sans-serif;  /* 2026-10-25 ユーザー指示: 読みやすさ優先（LP とは別でよい）。本文は OS の字体（Mac・iPhone はヒラギノ、Windows はメイリオ、Android は Noto）。日本語の字体を配ると 24MB を超えるため配らない */
  --mono: "IBM Plex Mono", "Hiragino Sans", "Meiryo", ui-monospace, monospace;
  --quote: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --hand: "Klee One", "Hiragino Sans", cursive;
  --title: "Oswald", "Instrument Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.media { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 2; letter-spacing: .02em; }  /* 文字を細く見せる antialiased はやめた（読みやすさ） */
.media a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hairline); transition: color 150ms, text-decoration-color 150ms; }
.media a:hover { color: var(--graphite); text-decoration-color: var(--graphite); }
.media a[aria-disabled="true"] { cursor: default; }
.wrap { max-width: 1032px; margin: 0 auto; padding: 0 32px; }  /* 本文 660 ＋ 間 48 ＋ 余白の注 260 ＝ 968 を中央に（2026-10-23: 右が空きすぎて見えたため 1040 から詰めた） */
.mini { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
time, .meta { font-family: var(--mono); font-size: 12px; color: var(--graphite); }

/* 誌名とヘッダー（固定しない） */
/* 2026-10-25 ユーザー指示: 境界線なし・スクロールに付いてくる（常に上に表示） */
.mast { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.mast .wrap { padding-top: 11px; padding-bottom: 11px; }  /* 2026-10-25 ユーザー指示: ヘッダーを細めに */
.body h2, .body h3, .endnotes li { scroll-margin-top: 88px; }  /* 目次から飛んだとき、固定のヘッダーに隠れないように */
.mast-top { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.mast-name { display: inline-flex; align-items: center; gap: 10px; font-family: var(--title); font-weight: 400; font-size: 21px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.mast-research .mast-name { text-transform: none; letter-spacing: .06em; }
.mast-name img { height: 14px; width: auto; }
.mast nav { display: flex; gap: 24px; flex-wrap: wrap; }
.mast nav a { font-size: 14px; text-decoration: none; }
.mast-tag { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--graphite); }

/* タグ（カプセル） */
.tag { display: inline-block; padding: 1px 10px; border: 1px solid var(--hairline); border-radius: 999px; font-family: var(--mono); font-size: 11px; line-height: 1.8; white-space: nowrap; color: var(--ink); }
.tag-product { background: var(--ink); border-color: var(--ink); color: #fff; }
.kicker { margin: 0 0 14px; }

/* マガジンの一覧 */
.latest { padding: 56px 0 48px; border-bottom: 1px solid var(--hairline); margin-bottom: 40px; }
.latest h1 { margin: 0 0 16px; font-size: 38px; font-weight: 500; line-height: 1.45; max-width: 860px; }
.latest h1 a { text-decoration: none; }
.latest-lead { margin: 0 0 18px; max-width: 760px; font-size: 17px; color: var(--graphite); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.row { display: grid; grid-template-columns: 112px 1fr auto; gap: 8px 28px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.row-title { font-size: 18px; font-weight: 500; text-decoration: none; line-height: 1.6; }
.row-lead { margin: 4px 0 0; font-size: 14px; color: var(--graphite); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row > div { min-width: 0; }
.index-foot { margin: 28px 0 0; font-family: var(--mono); font-size: 12px; color: var(--graphite); }

/* 記事 */
.art { max-width: 1032px; margin: 0 auto; padding: 56px 32px 0; }
.col { width: 660px; max-width: 100%; }
.art-title { margin: 0 0 18px; font-size: 36px; font-weight: 500; line-height: 1.4; }
.art-lead { margin: 0 0 32px; font-size: 18px; line-height: 1.9; color: #4A4742; }
.byline { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin-bottom: 40px; }
.avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #161412 url(/assets/favicon.svg) center / cover no-repeat; }  /* 書き手（SayonaraType 編集部）のアイコン */
.byline p { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.by-name { color: var(--ink); }
.by-name span { margin-left: 12px; color: var(--graphite); }
.by-meta { color: var(--graphite); }
.body p { margin: 0 0 1.9em; }
.body h2 { margin: 3.4em 0 1.1em; padding-bottom: .5em; border-bottom: 1px solid var(--hairline); font-size: 24px; font-weight: 700; line-height: 1.5; }
.body h3 { margin: 2.8em 0 .9em; font-size: 19px; font-weight: 700; line-height: 1.6; }
.body ul, .body ol { padding-left: 1.4em; margin: 0 0 1.9em; }
.body li { margin: 0 0 .5em; }
mark.mk { background: linear-gradient(transparent 60%, var(--marker) 60%); color: inherit; padding: 0 1px; }
.pq { margin: 2.2em 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--ink); }
.pq p { margin: 0; font-family: var(--quote); font-size: 22px; line-height: 1.75; }
.tbl { overflow-x: auto; margin: 2.4em 0 2.6em; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.75; }
/* 表は箱型（2026-10-25 ユーザー指示: 横線だけだと見出しの下線と混同するため、外枠と列の線も引く） */
.tbl table { border: 1px solid #CFC9BE; }
.tbl th { font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: left; padding: 10px 14px; background: #F2EEE7; border: 1px solid #CFC9BE; }
.tbl td { padding: 11px 14px; border: 1px solid #DDD7CC; vertical-align: top; }
.ours { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink); }
.fig { margin: 3em 0; }
.fig-box { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: #ECE9E3; border: 1px solid var(--hairline); font-family: var(--mono); font-size: 13px; color: var(--graphite); }
.fig figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--graphite); }
.chart figcaption { margin: 10px auto 0; max-width: 34em; text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--graphite); }  /* 画像・図の補足とそろえる（中央寄せ） */
.fig figcaption b { font-weight: 400; color: var(--ink); }
.chart { margin: 3em 0; }
.chart svg { width: 100%; height: auto; display: block; }
.bc-name, .bc-val { font-family: var(--mono); font-size: 12px; fill: #1C1B19; }
.bc-val { fill: #6E6A64; }
.bc-ours { font-size: 10px; }

/* 脚注と欄外メモ（PC は右の余白・本文の位置にそろう。スマホは記事の末尾） */
sup.fnref { font-family: var(--mono); font-size: 11px; line-height: 0; margin-left: 1px; }
sup.fnref a { text-decoration: none; }
.sidenote { float: right; clear: right; width: 260px; margin: .35em -308px 1em 0; font-size: 12.5px; line-height: 1.75; color: var(--graphite); }
.sn-n { font-family: var(--mono); font-size: 11px; color: var(--ink); margin-right: 6px; }
/* 書き手のコメント（アイコン＋吹き出し・2026-10-23 ユーザー指示）。吹き出しは紙の扱いで角 0、しっぽは左（アイコンの方） */
.memo { display: none; }  /* 2026-10-25 ユーザー指示: 吹き出しは右の余白ではなく本文の中に（全幅で .memo-inline を使う） */
.memo-av { flex: 0 0 32px; height: 32px; margin-top: 2px; border-radius: 50%; background: #161412 url(/assets/favicon.svg) center / cover no-repeat; }  /* 発言者は SayonaraType のアイコン（2026-10-25 ユーザー指示） */
.memo-b { position: relative; display: block; padding: 7px 12px 8px; background: #fff; border: 1px solid var(--ink); font-family: var(--hand); font-weight: 600; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.memo-b::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; background: #fff; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); }
.memo-inline { display: flex; gap: 12px; align-items: flex-start; margin: .2em 0 2.4em; max-width: 560px; }

/* 定型欄 */
.about { margin: 56px 0 0; padding: 20px 24px; border: 1px solid var(--hairline); }
.about dl { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 8px 16px; font-size: 14px; line-height: 1.75; }
.about dt { font-family: var(--mono); font-size: 11.5px; color: var(--graphite); padding-top: 2px; }
.about dd { margin: 0; }
.refs { margin: 36px 0 0; }
.refs ol, .refs ul { margin: 0; padding-left: 1.6em; font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--graphite); }
ul.plain { list-style: none; padding-left: 0; font-family: var(--mono); font-size: 12px; color: var(--graphite); }
/* 記事の最後の帯（2026-10-25 ユーザー指示: 見逃さないように目立たせる）。墨の地に、カバーと同じフィルムの光のにじみ */
.cta { margin: 56px 0 8px; border-radius: 12px; overflow: hidden; background: #1C1B19; background-image: radial-gradient(60% 120% at 85% 20%, rgba(232, 150, 70, .45), transparent 60%), radial-gradient(50% 120% at 10% 100%, rgba(140, 112, 176, .40), transparent 60%); color: #F4F1EA; }
.cta .col-wrap { max-width: none; padding: 32px 32px; justify-content: space-between; gap: 20px 24px; }
.cta .cta-head { font-size: 21px !important; }
.cta-text { max-width: 620px; }
.cta-brand { margin: 0 0 6px !important; font-family: var(--title); font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 241, 234, .7) !important; }
.cta-head { margin: 0 0 8px !important; font-size: 24px !important; font-weight: 700; line-height: 1.5; color: #fff !important; max-width: none !important; }
.cta-note { margin: 0 !important; font-size: 15px !important; color: rgba(244, 241, 234, .85) !important; }
.cta .btn { background: #fff; color: var(--ink) !important; padding: 15px 30px; font-size: 15px; font-weight: 700; }
.cta .btn:hover { background: #F2C230; }
.col-wrap { max-width: 1032px; margin: 0 auto; padding: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.col-wrap p { margin: 0; font-size: 14px; color: var(--graphite); max-width: 460px; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 14px; font-weight: 500; text-decoration: none !important; transition: background-color 150ms; }
.btn:hover { background: #3A3834; }
.related { margin-top: 56px; }

/* リサーチ */
.pubs { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.pub { padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.pub h2 { margin: 0 0 8px; font-size: 22px; font-weight: 500; line-height: 1.55; }
.pub h2 a { text-decoration: none; }
.abs { margin: 8px 0 10px; max-width: 760px; font-size: 14.5px; line-height: 1.8; color: var(--graphite); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-links { margin: 0; display: flex; gap: 18px; font-family: var(--mono); font-size: 12px; }
.rs { display: grid; grid-template-columns: minmax(0, 720px) 200px; gap: 48px; justify-content: center; max-width: 1032px; margin: 0 auto; padding: 56px 32px 0; }
.rs-col { min-width: 0; }
.rs-authors { margin: 0 0 4px; font-size: 14px; }
.rs-authors span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--graphite); }
.coi { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--ink); font-size: 14px; line-height: 1.8; }
.coi p { margin: 0; }
.band { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.cap { display: inline-block; padding: 4px 14px; border: 1px solid var(--hairline); border-radius: 999px; background: transparent; font-family: var(--mono); font-size: 12px; color: var(--ink); text-decoration: none !important; cursor: pointer; transition: border-color 150ms; }
.cap:hover { border-color: var(--graphite); }
.abstract { padding: 0 0 8px; border-bottom: 1px solid var(--hairline); margin-bottom: 8px; }
.abstract p { margin: 0 0 1.2em; }
.bib code { font-family: inherit; }
.bib { margin: 0 0 1.8em; padding: 16px 18px; border: 1px solid var(--hairline); overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.7; background: transparent; }
.card { display: grid; grid-template-columns: 9em 1fr; gap: 8px 16px; margin: 0 0 1.8em; font-size: 14px; line-height: 1.75; }
.card dt { font-family: var(--mono); font-size: 11.5px; color: var(--graphite); padding-top: 2px; }
.card dd { margin: 0; }
.toc { position: sticky; top: 32px; align-self: start; padding-top: 4px; }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.7; }
.toc li { padding: 5px 0; border-bottom: 1px solid var(--hairline); }
.toc a { text-decoration: none; }

/* フッター（白地） */
.foot { margin-top: 80px; border-top: 1px solid var(--hairline); }
.foot .wrap { padding-top: 24px; padding-bottom: 40px; font-family: var(--mono); font-size: 12px; color: var(--graphite); }
.foot p { margin: 0 0 8px; }
.langs .off { margin-right: 10px; color: #A9A49C; }
.langs b { font-weight: 400; color: var(--ink); margin-right: 10px; }

/* 広い画面: 本文の列そのものを中央に置き、脚注と吹き出しは右の余白に出す（左右の空きをそろえる・2026-10-23） */
@media (min-width: 1320px) { .art { max-width: 724px; } }
/* マガジンの記事の目次（2026-10-25 ユーザー指示: リサーチと同じく PC で目次を出す）。右の余白は脚注と吹き出しが使うので、目次は左の余白に置く。
   左端はヘッダーのロゴの左端にそろえ（ヘッダーの幅も同じ 1216px に）、上端は本文の最初の段落の上端にそろえる。スクロールすると、固定のヘッダーの下に留まる */
.art-toc { display: none; }
@media (min-width: 1320px) {
  .wrap { max-width: 1280px; }  /* ヘッダー・一覧・フッターの左端を、記事の目次とロゴの左端にそろえる */
  .art.has-toc { max-width: 1280px; display: grid; grid-template-columns: 200px 660px 260px; column-gap: 48px; justify-content: space-between; }
  .art.has-toc .art-head { grid-column: 2; grid-row: 1; }
  .art.has-toc .art-toc { display: block; grid-column: 1; grid-row: 2; top: 96px; }
  .art.has-toc .art-main { grid-column: 2; grid-row: 2; }
  .art-toc li { font-size: 13px; }
  .art-toc a.on { color: var(--ink); font-weight: 700; }
}
/* 狭い画面: 脚注・欄外メモは記事の末尾へ。目次は隠す */
@media (max-width: 1100px) {
  .sidenote, .memo { display: none; }
  .memo-inline { display: flex; gap: 12px; align-items: flex-start; margin: .2em 0 2.4em; max-width: 520px; }  /* 吹き出しの前後に1行ぶんの余白（2026-10-23 ユーザー指示） */
  .endnotes { display: block; }
  .rs { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .wrap, .art, .rs { padding-left: 16px; padding-right: 16px; }
  .col-wrap { padding: 24px 16px; }
  .mast-name { font-size: 17px; }
  .mast .wrap { padding-top: 12px; padding-bottom: 10px; }  /* 付いてくるヘッダーが画面を取りすぎないように */
  .mast-top { gap: 4px 24px; }
  .mast nav a { font-size: 13px; }
  .mast nav { gap: 16px; }
  .latest { padding-top: 36px; }
  .latest h1 { font-size: 26px; }
  .art-title { font-size: 26px; }
  .art-lead { font-size: 16px; }
  .row { grid-template-columns: 1fr auto; }
  .row time { grid-column: 1 / -1; }
  .row-lead { white-space: normal; }
  .about dl, .card { grid-template-columns: 1fr; gap: 2px; }
  .about dd, .card dd { margin-bottom: 10px; }
  .pq p { font-size: 19px; }
}

/* 画面の写し（2026-10-25）: 他社の公式ページ・アプリの画面。窓の枠は HTML。番号の丸は使わない（ユーザー判断）。
   画像の真下に中央寄せの小さな補足と出典。何を見るかは続く本文で伝える */
.shot { margin: 3em 0 2.6em; }
.shot-frame { border: 1px solid #D6D0C5; background: #fff; }  /* 画面の写しは細い枠だけ（窓のバーはやめた・2026-10-25） */
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--hairline); background: #F4F1EC; }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D8D4CC; }
.shot-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--graphite); }
.shot-frame img { display: block; width: 100%; height: auto; }
.fig-cap { margin: 10px auto 0; max-width: 34em; text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--graphite); }
.fig-cap .shot-src { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; }
.shot-pending .shot-wait { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; border: 1px dashed var(--graphite); font-family: var(--mono); font-size: 12.5px; color: var(--graphite); }

/* 図（HTML の文字で作る・各言語に訳せる） */
.dg { margin: 3em 0; }
.dg-flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border: 1px solid var(--ink); }
.dg-flow li { position: relative; padding: 16px 16px 18px; border-right: 1px solid var(--hairline); }
.dg-flow li:last-child { border-right: 0; }
.dg-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 16px; background: var(--bg); font-size: 14px; line-height: 1; padding: 2px 0; color: var(--graphite); z-index: 1; }
.dg-flow .dg-n { display: block; font-family: var(--mono); font-size: 11px; color: var(--graphite); }
.dg-flow li b { display: block; margin: 2px 0 6px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.dg-flow li > span:last-child:not(.dg-n) { display: block; font-size: 13px; line-height: 1.7; color: var(--graphite); }
@media (max-width: 560px) {
  .dg-flow ol { grid-template-columns: 1fr; }
  .dg-flow li { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .dg-flow li:last-child { border-bottom: 0; }
  .dg-flow li:not(:last-child)::after { content: "↓"; right: auto; left: 16px; top: auto; bottom: -10px; }
}
.map-box { position: relative; padding: 16px 16px 34px 38px; border: 1px solid var(--ink); }
.map-area { position: relative; aspect-ratio: 16 / 10; border-left: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: linear-gradient(var(--hairline), var(--hairline)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--hairline), var(--hairline)) 0 50% / 100% 1px no-repeat; }
.map-ax { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--graphite); }
.map-top { top: 16px; left: 12px; writing-mode: vertical-rl; }  /* 縦の軸の両端は左の縦書き（横の軸の両端と取り違えないように） */
.map-bottom { bottom: 34px; left: 12px; writing-mode: vertical-rl; }
.map-left { left: 38px; bottom: 9px; }
.map-right { right: 16px; bottom: 9px; }
.map-pt { position: absolute; transform: translate(-6px, 6px); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.map-pt i { width: 10px; height: 10px; border-radius: 50%; background: var(--graphite); flex: none; }
.map-pt.is-ours i { background: var(--ink); box-shadow: 0 0 0 3px var(--marker); }
.map-pt.is-ours { font-weight: 500; }
/* 選び方・まとめ（2026-10-25 ユーザー指示: 表や見出しの線と紛れないように、地色の箱に白いカード） */
.dg-choose { padding: 22px 24px 24px; background: #F2EEE7; border-radius: 10px; }
.dg-choose .ch-head { margin: 0 0 14px; text-align: left; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); max-width: none; }
.dg-choose ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dg-choose li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 20px; align-items: center; margin: 0; padding: 14px 18px; background: #fff; border-radius: 8px; font-size: 15px; line-height: 1.7; }
.ch-who { color: #4A4742; }
.ch-pick { font-weight: 700; }
.ch-pick::before { content: "→ "; color: var(--graphite); font-weight: 400; }
@media (max-width: 560px) { .dg-choose li { grid-template-columns: 1fr; } }
.map-pt.is-left { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), 6px); }
@media (max-width: 560px) { .map-area { aspect-ratio: 4 / 5; } }

/* 本文の太字（画像に続く要点を、眺めるだけで拾えるように・2026-10-25） */
.body strong { font-weight: 700; }  /* 字体は 700 まで読み込む（media.mjs の FAMILIES） */
.body li strong:first-child { margin-right: .2em; }
/* 話した言葉の例（本文の > ）。プルクォート（.pq）とは分ける */
.body blockquote:not(.pq) { margin: 1.6em 0; padding: 14px 18px; border-left: 2px solid var(--hairline); background: #F6F3EE; }
.body blockquote:not(.pq) p { margin: 0; font-size: 15.5px; line-height: 1.85; }
.body > :first-child { margin-top: 0; }  /* 本文の最初の見出し・段落の上端を、目次の上端にそろえる */
.tbl-sn { height: 0; }  /* 表の脚注の置き場（右の余白に浮かせるだけ・本文の高さは取らない） */

/* カバー画像（2026-10-25 ユーザー指示: 白黒の落ち着きに、色の楽しさを足す。記事の内容とは関係のない、フィルムの光と粒子の絵） */
.art-cover { margin: 8px 0 32px; }
.art-cover img, .latest-cover img, .row-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }  /* 16:9（2026-10-25 ユーザー指示: 記事を開いたとき本文が見えるように） */
.latest.has-cover { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.latest.has-cover h1 { font-size: 32px; }
.row { grid-template-columns: 176px minmax(0, 1fr) auto; gap: 8px 28px; align-items: start; }
.row-meta { margin: 6px 0 0; font-family: var(--mono); font-size: 12px; color: var(--graphite); }
@media (max-width: 760px) {
  .latest.has-cover { grid-template-columns: 1fr; gap: 20px; }
  .latest.has-cover h1 { font-size: 26px; }
  .row { grid-template-columns: 112px minmax(0, 1fr); }
  .row > .tag { display: none; }
  .row-lead { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.row-thumb.is-empty { display: block; aspect-ratio: 16 / 9; border-radius: 6px; background: #ECE8E1; }  /* 見本の記事（カバーなし） */

/* 記事のカード（:::card slug・内部リンクの誘導） */
.acard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; margin: 2em 0 2.6em; padding: 14px; border: 1px solid #DDD7CC; border-radius: 10px; background: #fff; text-decoration: none !important; transition: border-color 150ms, box-shadow 150ms; }
.acard:hover { border-color: var(--graphite); }
.acard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.acard-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acard-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--graphite); }
.acard-title { font-size: 16.5px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.acard-lead { font-size: 13.5px; line-height: 1.7; color: var(--graphite); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .acard { grid-template-columns: 1fr; } }

/* 2026-10-25 ユーザー指示: 吹き出しのアイコンの下に書き手の名前。注は末尾に出典と同じ小さな字で。開発元が書いている旨は書き手の欄の下に小さく */
.memo-who .memo-av { flex: 0 0 auto; width: 32px; height: 32px; margin-top: 0; }
.memo-who { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.memo-name { font-size: 9.5px; line-height: 1.3; text-align: center; color: var(--graphite); letter-spacing: 0; }
.memo-inline .memo-b { margin-top: 2px; }
.by-rel { margin: -28px 0 40px; font-size: 12px; line-height: 1.7; color: var(--graphite); }
.refs-p { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--graphite); }
.refs.notes li { margin: 0; }
.refs.notes a { text-decoration: none; }
.sidenote, .tbl-sn { display: none !important; }

/* 言語の切り替え（フッター・2026-10-25 ユーザー指示: 一覧をプルダウンに）。上に開く */
.lang-menu { position: relative; display: inline-block; margin: 6px 0 0; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid #CFC9BE; border-radius: 999px; font-family: var(--sans); font-size: 12.5px; color: var(--ink); cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-135deg) translate(-2px, -2px); margin-left: 2px; }
.lang-menu ul { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; min-width: 240px; max-height: 60vh; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #DDD7CC; border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
.lang-menu li > * { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-radius: 6px; font-family: var(--sans); font-size: 13.5px; color: var(--ink); }
.lang-menu li b { font-weight: 700; }
.lang-menu li .off { color: #A9A49C; }
.lang-menu small { font-size: 11px; }

/* アラビア語（2026-10-26）: レイアウトの向きはそのまま、文章の向きだけ右から左に */
html.rtl .col, html.rtl .latest-text, html.rtl .row > div, html.rtl .acard-text, html.rtl .dg-choose, html.rtl .refs { direction: rtl; text-align: right; }
html.rtl .tbl table { direction: rtl; }
html.rtl .tbl th, html.rtl .tbl td { text-align: right; }
