/* ──────────────────────────────────────────────────────────────
   写真の世界観（となりのAI / SEIJAKU）プリミティブ（共有）
   ampl-modern.css の上で使う。白エディトリアル枠＋温かい写真＋
   グレーパネル＋極太タイポ。写真はデッキ側で background-image / img に指定。
   ────────────────────────────────────────────────────────────── */
/* 文字サイズの底上げ（このファイルを読むのは stock-ampl / stock-clinical だけ。
   ampl-modern.css の :root より後に読まれるので、stock系2デッキのみ本文・小書きを
   一段大きくする。となりのAI等は ampl-photo.css 不読込のため不変＝無回帰保証）。 */
:root {
  --text-base: 1.4rem;    /* 文字基準v3の本文17pt。旧1.05remはv3確定前の暫定値で、下限14ptを割っていた */
  --text-sm:   .88rem;    /* .82 → キャプション・補足 */
  --text-xs:   .72rem;    /* .68 → 最小ラベル */
}

.ph { position: relative; background-size: cover; background-position: center; }
/* 16:9ロック復元 ── .ph がスライドに付くと engine の .slide{position:absolute;inset:0}
   を打ち消して内容高さに潰れ、フルブリード写真が下まで届かずグレー空白が出る。
   スライド要素のときだけ絶対配置・全面に固定し直す（scrim/inner の基準も維持）。 */
.slide.ph { position: absolute; inset: 0; }
.ph .scrim { position: absolute; inset: 0; }
.ph .scrim.center { background: linear-gradient(rgba(8,8,8,.34), rgba(8,8,8,.60)); }
.ph .scrim.left   { background: linear-gradient(90deg, rgba(8,8,8,.78) 0%, rgba(8,8,8,.50) 55%, rgba(8,8,8,.24) 100%); }
.ph .scrim.bottom { background: linear-gradient(rgba(8,8,8,.06) 40%, rgba(8,8,8,.72)); }
.ph .inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.ph .foot, .ph .headbar .mark, .ph .headbar .sec { color: rgba(255,255,255,.7); }
.ph .headbar .sep { background: rgba(255,255,255,.5); }

/* 写真表紙（中央ロックアップ） */
.ph-cover .inner { align-items: center; justify-content: center; text-align: center; gap: .55rem; padding: 3rem 4rem; }
.ph-cover .ey { font-family: "Inter"; font-size: .85rem; letter-spacing: .22em; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: .5rem; }
.ph-cover h1 { font-size: 3rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.22; color: #fff; }
.ph-cover .sub { font-size: 1.3rem; color: rgba(255,255,255,.92); font-weight: 500; margin-top: .4rem; }
.ph-cover .by { font-family: "Inter"; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.7); margin-top: 2.2rem; }

/* 写真ステートメント（左寄せ） */
.ph-state .inner { justify-content: center; padding: 0 5rem; max-width: 880px; }
.ph-state .ey { font-family: "Inter"; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); font-weight: 600; margin-bottom: 1rem; }
.ph-state h2 { font-size: 2.6rem; font-weight: 900; line-height: 1.28; color: #fff; margin-bottom: 1.1rem; }
.ph-state p { font-size: 1.25rem; line-height: 1.75; color: rgba(255,255,255,.9); }
.ph-state .quote { font-size: 1.2rem; line-height: 1.7; color: #fff; padding-left: 0; border-top: 1px solid rgba(255,255,255,.45); padding-top: 1rem; margin-top: 1.1rem; }

/* 写真セクション扉（下端ラベル） */
.ph-divider .inner { justify-content: flex-end; padding: 0 0 var(--sp-xl) 80px; }
.ph-divider .num { font-family: "Inter"; font-weight: 800; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: .5rem; }
.ph-divider h2 { font-size: 2.6rem; font-weight: 900; color: #fff; line-height: 1.16; }

/* 写真＋データ（写真＋グレーパネル特大数字） */
.ph-data .body { justify-content: flex-start; gap: 20px; }
.ph-data h2 { font-size: 2.4rem; font-weight: 900; line-height: 1.15; }
.ph-data .row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; flex: 1; min-height: 0; }
.ph-data .shot { position: relative; border-radius: 16px; overflow: hidden; min-height: 0; }
.ph-data .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-data .shot .cap { position: absolute; left: 20px; bottom: 18px; font-size: .98rem; color: #fff; background: rgba(17,17,17,.5); backdrop-filter: blur(6px); padding: 9px 15px; border-radius: 9px; font-weight: 600; }
.ph-data .stat { background: var(--color-panel); border-radius: 16px; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 34px 36px; }
.ph-data .stat .lb { font-family: "Inter"; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-faint); font-weight: 700; }
.ph-data .stat .n { font-size: 7rem; font-weight: 900; line-height: .82; color: var(--color-fg); letter-spacing: -.05em; }
.ph-data .stat .n small { font-size: 2.4rem; font-weight: 700; }
.ph-data .stat p { font-size: 1.2rem; color: #333; line-height: 1.55; margin-top: .8rem; }

/* 写真2枚対比（写真＋数字を左右） */
/* 写真2枚組は中の .row が伸縮して収まる型なので、共通層の「縮めない .body」を上書きして縮められるようにする（2026-09-22）。
   写真が主役で下の文字は1行なので、地の安全帯も少し詰める（56px）。 */
.deck .slide.slide-content.ph-twoup { padding-bottom: 48px; }
.deck .slide.slide-content.ph-twoup > .body { justify-content: flex-start; gap: 20px; flex: 1 1 auto; min-height: 0; }
.ph-twoup h2 { font-size: 2.4rem; font-weight: 900; line-height: 1.15; }
.ph-twoup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex: 1; min-height: 0; }
.ph-twoup .col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.ph-twoup .shot { flex: 1; border-radius: 16px; overflow: hidden; min-height: 0; }
.ph-twoup .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-twoup .lead-num { display: flex; align-items: baseline; gap: 16px; }
.ph-twoup .lead-num .n { font-size: 3.6rem; font-weight: 900; color: var(--color-fg); line-height: 1; letter-spacing: -.03em; flex-shrink: 0; }
.ph-twoup .lead-num .n small { font-size: 1.5rem; font-weight: 700; }
.ph-twoup .lead-num .lb { font-family: "Inter"; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-faint); font-weight: 700; margin-bottom: .25rem; }
.ph-twoup .lead-num p { font-size: 1.17rem; color: #444; line-height: 1.45; }

/* 図解スライドの見出し共通 */
.fig-slide .body > h2 { font-size: 2.3rem; font-weight: 900; line-height: 1.18; }
.fig-slide .lead p { color: var(--color-muted); font-size: var(--text-base); line-height: 1.8; }
