/* むらPの名刺の見た目（2026-11-29 神谷さんが D 案「黒の地に経済誌の表紙」に決定）。
   もとは A ブラックカードの外側 × C 経済誌の表紙の内側を機械で合わせたもの（作り方は patterns/variants-2026-11/）。
   いまはこのファイルを直接直す。style.css の上に重ねる。 */

/* --- A: ページの変数と地 --- */
body.th { --field: #0D0D0F;
  --pin: #141417;
  --on-field: #ECE7DE;
  --card: #151517;
  --photo-bg: #1B1B1E;
  --stock: #131315;
  --text: #ECE7DE;
  --muted: #A09A90;
  --main: #D9CFBC;
  --main-ink: #E6DDCB;
  --accent: #E6DDCB;
  --on-accent: #111113;
  --stripe: #C8201E;
  --rule: #2A2A2E;
  --board: #151517;
  --board-ink: #CBBFA8;
  --plat: linear-gradient(100deg, #8F846F 0%, #E9E1D0 22%, #A79B84 40%, #FFF8EA 55%, #B3A78F 72%, #EFE7D6 88%, #93887A 100%);
  --f-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-num: "Cormorant Garamond", "Times New Roman", serif;
  --shadow-card: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 48px rgba(0,0,0,.55);
  --tilt-x: 8; --tilt-y: 6;
  background-image: repeating-linear-gradient(90deg, var(--field) 0 26px, var(--pin) 26px 27px); }
body.th { font-variant-numeric: lining-nums; }
body.th { --r-card: 10px; --r-btn: 4px; }
body.th { --f-en: "Cormorant Garamond", "IBM Plex Sans JP", serif; }
body.th { --muted: #CFC8BC; }
body.th { --f-en: "IBM Plex Sans JP", "Hiragino Sans", sans-serif; }

/* --- C: カードの中の変数（カードの箱の中だけ） --- */
body.th .card { --field: #F3EFE7; --pin: #F3EFE7; --on-field: #161514; --card: #FBF9F4; --photo-bg: #D8D0C2; --stock: #EEE7DA; --text: #161514; --muted: #5F5A52; --main: #161514; --main-ink: #161514; --accent: #B3191A; --on-accent: #FFFFFF; --stripe: #B3191A; --rule: #CFC7BA; --board: #161514; --board-ink: #E9E3D6; --f-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; --f-num: "Bodoni Moda", "Didot", "Times New Roman", serif; --shadow-card: 0 1px 2px rgba(0, 0, 0, .12), 0 18px 40px rgba(40, 30, 10, .22); }

/* --- A: 外側（最初の画面の字・ボタン・下の章） --- */
.th ::selection { background: #3A352C; }
.th .hello { color: var(--board-ink); letter-spacing: .08em; }
.th .target { font-family: var(--f-mincho); font-weight: 700; font-size: 24px; line-height: 1.5; letter-spacing: .04em; }
.th .target .jt-pt { font-size: .74em; }
.th .lead { color: var(--muted); }
.th .flip { border: 1px solid #5A5447; color: var(--board-ink); letter-spacing: .1em; font-weight: 600; }
.th .cta { background: var(--plat); background-size: 220% 100%; background-position: 30% 50%; color: var(--on-accent); letter-spacing: .12em; border-radius: 4px; }
.th .cta-bar { background: rgba(13, 13, 15, .94); border-top: 1px solid #26262A; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.th .cta-note { color: var(--muted); }
.th .flip:focus-visible, .th .cta:focus-visible { outline-color: var(--main); box-shadow: none; }
.th .sec-h { font-family: var(--f-mincho); font-weight: 700; letter-spacing: .06em; }
.th .sec-lead, .th .sec-note { color: var(--muted); }
.th .board { border: 1px solid #2A2A2E; box-shadow: none; }
.th .b-cell + .b-cell { border-top-color: #2A2A2E; }
.th .b-label { color: var(--board-ink); font-weight: 400; letter-spacing: .06em; }
.th .b-num { font-family: var(--f-num); font-weight: 600; font-size: 72px; color: #F3EDE2; }
.th .b-u { font-family: var(--f-mincho); }
.th .b-note { color: var(--muted); }
.th .b-book { border-top-color: #2A2A2E; font-family: var(--f-mincho); color: #E9E2D4; }
.th .pcard { background: var(--card); border: 1px solid #26262A; box-shadow: none; }
.th .pc-photo { background: #1B1B1E; }
.th .pc-photo img { filter: grayscale(1) contrast(1.04) brightness(1.06); }
.th .pc-no { color: var(--board-ink); }
.th .pc-when { color: var(--muted); }
.th .pc-always { color: var(--main-ink); }
.th .pc-plate { background: none; border-top: 1px solid #3A3730; border-bottom: 1px solid #3A3730; padding: 10px 0; color: var(--text); }
.th .pc-name { font-family: var(--f-mincho); font-weight: 700; letter-spacing: .06em; }
.th .pc-pos { color: var(--board-ink); letter-spacing: .06em; }
.th .li-note { color: var(--muted); }
.th .reel { box-shadow: none; border: 1px solid #26262A; }
.th .reel-body { background: #121214; }
.th .reel-v { font-family: var(--f-num); font-weight: 600; color: var(--main-ink); }
.th .wcard { background: var(--card); border: 1px solid #26262A; box-shadow: none; color: var(--text); }
.th .wcard-num { font-family: var(--f-num); font-weight: 600; color: var(--main-ink); }
.th .wcard-client, .th .wcard-rnote, .th .wcard-period { color: var(--muted); }
.th .more-btn { border: 1px solid #5A5447; color: var(--board-ink); }
.th .tabs button { background: transparent; color: var(--muted); border-color: #3A3730; }
.th .tabs button[aria-selected="true"] { background: var(--main); color: #111; border-color: var(--main); }
.th .col { border-color: #2A2A2E; }
.th .col-ours { background: var(--card); }
.th .col-yours { background: #17150F; }
.th .col-h { font-family: var(--f-mincho); }
.th .split li::before { background: var(--main); border-radius: 0; width: 5px; height: 5px; }
.th .last-h { font-family: var(--f-mincho); letter-spacing: .06em; }
.th .last-lead { color: var(--muted); }
@media (min-width: 900px) {
  .th .target { font-size: 38px; }
}
.th .cta { border-radius: var(--r-btn); }
.th .pc-photo img { filter: none; }
.th .b-num, .th .reel-v, .th .wcard-num { font-weight: 700; }
.th .target, .th .sec-h, .th .last-h, .th .pc-name, .th .col-h { letter-spacing: .02em; }
.th .lead, .th .sec-lead, .th .last-lead { color: #CFC8BC; font-size: 17px; }
.th .wcard { background: #F3EDE2; border-color: #F3EDE2; color: #151517; }
.th .wcard-num { color: #151517; }
.th .wcard-client, .th .wcard-rnote, .th .wcard-period, .th .wcard-rlabel { color: #5E584E; }
.th .col { border: 0; }
.th .col-ours { background: #F3EDE2; color: #151517; }
.th .col-yours { background: #E6DDCB; color: #151517; }
.th .col .li-note { color: #5E584E; }
.th .split li::before { background: #151517; }
.th .pc-no { font-family: var(--f-num); font-size: 16px; }
.th .target, .th .sec-h, .th .last-h, .th .col-h { letter-spacing: 0; font-feature-settings: "palt"; }

/* --- C: カードの中（表紙と目次） --- */
.th .card-area { perspective: 1400px; }
.th .card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out; }
.th .face { border-radius: 2px; position: relative; }
.th .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 9;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.28) 46%, rgba(255,255,255,0) 60%);
  background-size: 260% 100%; background-position: var(--mx, 20%) 50%;
  mix-blend-mode: soft-light; }
.th .front { padding: 0; background: var(--photo-bg); position: relative; }
.th .front-photo { height: 430px; background: linear-gradient(180deg, #D8D0C2 0%, #CFC6B6 100%); }
.th .stripe { display: none; }
.th .mast { position: absolute; left: 0; right: 0; top: 10px; z-index: 0; margin: 0; text-align: center;
  font-family: var(--f-num); font-weight: 900; font-size: 92px; line-height: .9; letter-spacing: -.02em; color: var(--accent); }
.th .issue { position: absolute; left: 14px; right: 14px; top: 98px; z-index: 0; margin: 0;
  display: flex; justify-content: space-between;
  font-family: var(--f-en); font-weight: 600; font-size: 10px; letter-spacing: .18em; color: #3A3732; }
.th .front-head { display: none; }
.th .chara { z-index: 1; }
.th .is-photo .chara { right: -18px; bottom: -14%; height: 104%; }
.th .bubble { top: 128px; left: 14px; max-width: 120px; z-index: 3;
  background: none; border: 0; padding: 0; border-radius: 0;
  font-family: var(--f-mincho); font-weight: 800; font-size: 17px; line-height: 1.5; color: var(--text); }
.th .bubble::before { content: "「"; margin-left: -.5em; }
.th .bubble::after { content: "」"; position: static; width: auto; height: auto; margin: 0; background: none; border: 0; transform: none; }
.th .plate { left: 14px; bottom: 18px; background: var(--accent); padding: 8px 12px 9px; }
.th .name { font-family: var(--f-mincho); font-weight: 800; font-size: 26px; letter-spacing: .06em; }
.th .pos { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.th .front-stat { background: var(--card); padding: 16px 16px 14px; border-top: 3px solid var(--text); }
.th .stat-label { font-family: var(--f-mincho); font-weight: 800; font-size: 18px; }
.th .stat-num { font-family: var(--f-num); font-weight: 800; font-size: 108px; color: var(--text); letter-spacing: -.03em; line-height: .92; }
.th .stat-num .jt-u { font-family: var(--f-mincho); font-weight: 800; font-size: 30px; color: var(--accent); }
.th .is-photo .sign { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); bottom: calc(100% - 430px + 10px); }
.th .stat-src { color: var(--muted); }
.th .back { background: var(--card); padding: 18px 18px; }
.th .back-head { border-bottom: 3px solid var(--text); }
.th .back-name { font-family: var(--f-mincho); font-weight: 800; }
.th .back .no { font-family: var(--f-num); font-weight: 700; color: var(--accent); }
.th .sn { font-family: var(--f-num); font-weight: 800; font-size: 34px; color: var(--text); }
.th .back-lead { font-family: var(--f-mincho); font-weight: 800; }
@media (min-width: 900px) {
  .th .front-photo { height: 560px; }
  .th .mast { font-size: 132px; top: 14px; }
  .th .issue { top: 140px; left: 20px; right: 20px; font-size: 11px; }
  .th .bubble { top: 176px; left: 20px; max-width: 140px; font-size: 19px; }
  .th .is-photo .chara { right: -10px; bottom: -16%; height: 106%; }
  .th .is-photo .sign { bottom: calc(100% - 560px + 14px); }
  .th .stat-num { font-size: 128px; }
}
.th .mast { white-space: nowrap; font-size: min(74px, 19.5vw); top: 14px; }
.th .issue { top: calc(14px + min(74px, 19.5vw) * .92); }
@media (min-width: 900px) {
  .th .mast { font-size: 104px; top: 16px; }
  .th .issue { top: 118px; }
}
.th .issue { font-size: 12px; letter-spacing: .1em; }
@media (min-width: 900px) {
  .th .issue { font-size: 12px; }
}
.th .front-photo { height: 330px; }
.th .is-photo .sign { bottom: calc(100% - 330px + 10px); }
.th .is-photo .chara { bottom: -18%; height: 112%; }
.th .stat-num { font-size: 120px; }
.th .plate { background: var(--text); }
.th .back .no { color: var(--text); }
.th .name { font-size: var(--s3); }
.th .pos { font-size: var(--s5); }
.th .stat-num .jt-u { font-size: var(--s2); }
.th .stat-label { font-size: var(--s3); }
.th .bubble { font-size: var(--s4); }
.th .sn { font-size: var(--s2); }
.th .mast { font-weight: 800; }
.th .bubble { white-space: nowrap; max-width: none; }
.th .mast { top: 30px; }
.th .issue { top: 10px; justify-content: flex-start; gap: 14px; }
@media (min-width: 900px) {
  .th .front-photo { height: 520px; }
  .th .is-photo .sign { bottom: calc(100% - 520px + 14px); }
  .th .stat-num { font-size: var(--s1); }
  .th .mast { top: 34px; }
  .th .issue { top: 12px; }
  .th .bubble { top: 170px; }
}
.th .front-photo { height: 296px; }
.th .is-photo .sign { bottom: calc(100% - 296px + 10px); }
@media (min-width: 900px) {
  .th .front-photo { height: 520px; }
  .th .is-photo .sign { bottom: calc(100% - 520px + 14px); }
}
.th .mast { font-size: 58px; text-align: left; left: 12px; right: auto; top: 28px; }
.th .issue { left: 16px; right: 16px; }
.th .bubble { left: 16px; }
.th .bubble::before { margin-left: 0; }
.th .plate { left: 16px; }
@media (min-width: 900px) {
  .th .mast { font-size: 90px; left: 12px; top: 32px; }
  .th .issue, .th .bubble, .th .plate { left: 16px; }
}
.th .is-photo .sign { right: auto; left: 16px; bottom: calc(100% - 296px + 82px); color: var(--text); text-shadow: none; }
.th .issue { font-family: var(--f-jp); }
@media (min-width: 900px) {
  .th .is-photo .sign { bottom: calc(100% - 520px + 92px); }
}

/* --- D だけの直し（build/theme-d.own.css） --- */
/* D だけの直し（A の黒い地に、C の生成りの表紙を置く） */
/* 傾きは表紙（C）の控えめな量 */
body.th { --tilt-x: 4; --tilt-y: 3; }
/* 黒い地の上なので、表紙の影は深く（ラウンジの卓に置いた雑誌） */
body.th .card { --shadow-card: 0 1px 0 rgba(255, 255, 255, .05), 0 28px 56px rgba(0, 0, 0, .6); }
/* 表紙の中は C の字の色に戻す（A の body の色を継がない） */
body.th .card { color: var(--text); }
/* 390 で「めくって」ボタンが固定ボタンに隠れた（A の字の組みは C より 50px 高い）→ スマホだけ表紙の写真の面を 40px 低く、800 を少し小さく */
@media (max-width: 899px) {
  .th .front-photo { height: 256px; }
  .th .bubble { top: 98px; }
  .th .is-photo .chara { bottom: -16%; height: 114%; }
  .th .is-photo .sign { bottom: calc(100% - 256px + 82px); }
  .th .stat-num { font-size: 108px; }
  .th .front-stat { padding-bottom: 10px; }
}

/* ===== 採点1回目（81.5点）の直し 2026-11-29 ===== */
/* 1. 下の章の明るい面は、表紙と同じ紙（#FBF9F4）・同じ四角い角にそろえて「誌面の切り抜き」に。紙の色は4つ→2つ（表紙の写真の地と紙）
      （黒い地に戻す案は取らない: A の採点で「暗い地の本文は読みにくい」として明るい面に移した経緯がある） */
body.th { --r-card: 2px; }
.th .wcard, .th .col-ours, .th .col-yours { background: #FBF9F4; border-color: #FBF9F4; }
/* 2. 角は 2px（紙と板）と 4px（ボタン）の2つ。黒い板の枠線は外し、地の明るさの差だけで組を見せる */
.th .board, .th .reel, .th .pcard { border: 0; }
/* 3. リールの再生数を段階3に（章見出しと同じ強さにしない） */
.th .reel-v { font-size: var(--s3); }
/* 4. PC の最初の画面: 左の列を表紙の上下の真ん中へ、見出しを大きく */
@media (min-width: 900px) {
  .th .fv-text { align-self: center; padding-top: 0; }
  .th .target { font-size: 44px; }
}
/* 5. 360 で「めくって」が固定ボタンに隠れる: 説明を2行に、目次（裏）の字の間を詰めて表と同じ高さに */
@media (max-width: 379px) {
  .th .lead { font-size: 15px; }
  .th .back { padding: 14px 16px; }
  .th .back-lead { font-size: 18px; margin-top: 10px; }
  .th .team li { line-height: 1.4; }
  .th .back-note { margin-top: 8px; }
}

/* 最後の採点（84.5点）の明らかな事故だけ直す */
/* 1. 表紙の引用が顔にかかる → 2行に折って、表紙の左 45% に収める */
.th .bubble { white-space: normal; max-width: 10.5em; }
/* 2. 役割分担の2つ目の箱の上の線（1回目の直しで足した）を外した。上端のずれもこれで消える */

/* ===== 神谷さんの指摘 2026-11-29 ===== */
/* 1. 「この黒さ、背景素材使えよ。オシャレなやつ」→ 縞をやめ、しわのある黒い布の写真を1枚（Unsplash W_5Eakb1598。assets/bg/出どころ.txt）
      ラウンジの卓に掛けた黒い布の上に、表紙の雑誌を置いた見え方。iOS で fixed の背景が効かないので、固定した ::before に敷く */
body.th { background-image: none; background-color: #0B0B0C; }
body.th::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(assets/bg/cloth-black.webp) center / cover no-repeat;
}
/* 2. 「ふざけてるけど、中身は／むらPの写真とかぶってるよ」→ 題字・引用・名前の札・サインを、人物の切り抜きに1画素も重ねない
      人物は右へ寄せて少し小さく、題字は「頭の左端まで」の幅から大きさを決める（Bodoni の MURA-P は字の大きさの約 4.1 倍の幅） */
@media (max-width: 899px) {
  .th .is-photo .chara { right: -34px; bottom: -14%; height: 108%; }
  .th .mast { font-size: min(58px, calc((min(100vw - 40px, 400px) - 150px) / 4.1)); top: 30px; }
}
@media (min-width: 900px) {
  .th .is-photo .chara { right: -70px; bottom: -12%; height: 100%; }
  .th .mast { font-size: 64px; top: 34px; }
  .th .bubble { top: 130px; }
}

/* ===== D に決まったあとの仕上げ（採点2回目 84.5点で残した指摘）2026-11-29 ===== */
/* 1. 黒い地の字の色は2つだけ: 本文・見出し・数字＝--text（#ECE7DE）／札・注記＝--muted。白金は「むらPに一言送る」のボタンだけ */
body.th { --board-ink: var(--muted); --main-ink: var(--text); }
.th .b-num, .th .b-book { color: var(--text); }
/* 2. めくるボタンと「ほかの作品も見る」が押せないように見えた → 線と字を本文の明るさに上げ、地をわずかに明るく */
.th .flip, .th .more-btn { border-color: rgba(236, 231, 222, .6); color: var(--text); background: rgba(255, 255, 255, .04); }
.th .flip:hover, .th .more-btn:hover { background: rgba(255, 255, 255, .09); }
/* 3. 大きくする所を減らす: スマホの章見出しを 32 → 28px（作品の先頭の数字・成績の数字より下げる） */
@media (max-width: 899px) {
  .th .sec-h, .th .last-h { font-size: 28px; }
}
/* 4. 注記は 13px にそろえる（PC だけ 14px だった） */
@media (min-width: 900px) { :root { --s5: 13px; } }
/* 5. 最後の章は左寄せでそろえる（見出し・一言・注記。ボタンは幅いっぱい） */
.th .last-cta .cta-note { text-align: left; }
/* 6. 行頭のかぎかっこを左の線にそろえる（jp-typeset.js がかっこを半分に詰めているので、出すのは 1/4 字） */
.th .last-lead { text-indent: -.25em; }
.th .last-lead .ib { text-indent: 0; }  /* 中のまとまり（inline-block）には効かせない。-.5em だと 2つ目のまとまりが前の字に重なった */
/* 3b. PC も同じ考えで、章見出しを 40 → 36px（大きな強調は 題字・最初の見出し・800・成績の3つの数字に絞る） */
@media (min-width: 900px) {
  .th .sec-h, .th .last-h { font-size: 36px; }
}

/* ===== 決定後の採点（83.2点）の直し 2026-11-29 ===== */
/* 1. PC の最後の章も左寄せ（スマホと同じ。ページの左の線にそろえる。ボタンは幅400px のまま左へ） */
@media (min-width: 900px) {
  .th .last { text-align: left; max-width: 1040px; }  /* ほかの章（.wrap-wide）と同じ列。左の線 x=220 にそろう */
  .th .last-cta { margin-left: 0; margin-right: 0; }
}
/* 2. 赤い題字が 800 より先に目に入る → 題字を一段小さく（PC 64→48px、スマホは 44px まで）。空いたぶん、むらPを大きく */
@media (max-width: 899px) {
  .th .mast { font-size: min(44px, calc((min(100vw - 40px, 400px) - 150px) / 4.1)); }
  .th .is-photo .chara { right: -30px; bottom: -16%; height: 116%; }
}
@media (min-width: 900px) {
  .th .mast { font-size: 48px; }
  .th .issue { top: 14px; }
  .th .is-photo .chara { right: -54px; bottom: -14%; height: 110%; }
  .th .bubble { top: 112px; }
}
/* 2b. 大きくしたら名前の札が腕にかかった（360 で 601 画素・PC で 1,552 画素）→ 人物をもう少し右へ。値は重なりが 0 になるところを測って決めた */
@media (max-width: 379px) { .th .is-photo .chara { right: -44px; bottom: -16%; height: 114%; } }
@media (min-width: 900px) { .th .is-photo .chara { right: -80px; bottom: -14%; height: 110%; } }
/* 最後の採点（89.0点・合格）の明らかな崩れだけ直す: 最後の章の見出しと一言の間が 8px しかなかった → 16px */
.th .last-lead { margin-top: 16px; }
