/* DG7-2 基本スタイル。舞台は 1280×720 固定で窓に合わせて拡大縮小（000_基盤.js 舞台合わせ）。黒獅子の黒と金。 */
:root { --金: #d8b04a; --金淡: #f4d77a; --紙: #f2ead8; --墨: #121214; --赤: #e0604a; --字: calc(1px * var(--lv10-文字倍率, 1)); }
html, body { margin: 0; height: 100%; background: #050506; overflow: hidden; user-select: none; }
body { font-family: "Yu Gothic UI", "Meiryo", sans-serif; color: var(--紙); }
#外枠 { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#舞台 { position: relative; width: 1280px; height: 720px; flex: none; transform-origin: center center; overflow: hidden; background: #0b0b0d; }
button { font-family: inherit; }
.釦 { background: linear-gradient(#2a2620, #16130f); color: var(--紙); border: 1px solid #6a5a36; border-radius: 6px; padding: 8px 18px; font-size: calc(17 * var(--字)); cursor: pointer; transition: background .12s, border-color .12s, transform .08s; }
.釦:hover, .釦.lv10-フォーカス, .釦:focus-visible { border-color: var(--金淡); background: linear-gradient(#3a3224, #1e1a12); outline: none; }
.釦:active { transform: translateY(1px); }
.釦:disabled { opacity: .4; cursor: default; }
.釦.赤 { border-color: #8a3a2a; }
.釦.進む { background: linear-gradient(#5a4316, #2a1e08); border-color: var(--金); color: var(--金淡); font-weight: bold; padding: 10px 28px; }
.釦.印あり::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--金淡); margin-left: 6px; vertical-align: middle; box-shadow: 0 0 6px var(--金淡); }
.lv10-フォーカス { outline: 2px solid var(--金淡) !important; outline-offset: 1px; }

/* ---- タイトル ---- */
#タイトルUI { position: absolute; inset: 0; background: url("../img/背景/タイトル.webp") center/cover; }
#タイトルUI::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.15) 60%, rgba(0,0,0,.4)); }
.題字 { position: absolute; left: 90px; top: 170px; animation: 浮く 1.6s ease-out both; }
.題_主 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 76px; letter-spacing: 6px; color: var(--金淡); text-shadow: 0 0 24px rgba(216,176,74,.55), 0 4px 6px #000; }
.題_副 { font-family: "Yu Mincho", serif; font-size: 26px; letter-spacing: 10px; margin-top: 6px; color: #e8dcc0; text-shadow: 0 2px 4px #000; }
.題釦 { position: absolute; left: 96px; top: 400px; display: flex; flex-direction: column; gap: 12px; width: 260px; animation: 浮く 1.6s .4s ease-out both; }
.題釦 .釦 { font-size: 20px; padding: 12px; background: rgba(10,8,6,.7); }
.題版 { position: absolute; right: 64px; bottom: 12px; font-size: 13px; color: #b8ab88; text-shadow: 0 1px 2px #000; }
@keyframes 浮く { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- 本営 ---- */
#本営UI { position: absolute; inset: 0; }
#地図 { position: absolute; inset: 0; cursor: pointer; }
#上帯 { position: absolute; right: 10px; top: 8px; width: 340px; padding: 8px 12px; background: rgba(8,8,10,.82); border: 1px solid #5a4a2a; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.6); }
#上帯 .月 { font-family: "Yu Mincho", serif; font-size: calc(22 * var(--字)); color: var(--金淡); display: flex; align-items: center; gap: 10px; }
.最後札 { font-size: 13px; color: #fff; background: #8a2a1a; border-radius: 4px; padding: 1px 8px; animation: 明滅 1.4s infinite; }
@keyframes 明滅 { 50% { opacity: .55; } }
#上帯 .資源 { display: flex; justify-content: space-between; font-size: calc(15 * var(--字)); margin-top: 4px; }
#上帯 .資源 b { color: #a8977a; font-weight: normal; margin-right: 5px; font-size: 13px; }
#上帯 .資源 .注 { color: #f0c060; } #上帯 .資源 .危 { color: #ff7a60; font-weight: bold; }
#戦線札 { position: absolute; right: 10px; top: 110px; width: 340px; display: flex; flex-direction: column; gap: 5px; max-height: 490px; overflow: hidden; }
.戦線 { display: flex; gap: 10px; align-items: center; text-align: left; background: rgba(10,9,8,.85); border: 1px solid #4a3e26; border-radius: 8px; padding: 6px 9px; color: var(--紙); cursor: pointer; position: relative; transition: border-color .12s, transform .12s; }
.戦線:hover, .戦線.lv10-フォーカス { border-color: var(--金淡); transform: translateX(-3px); }
.戦線.空き { opacity: .7; border-style: dashed; }
.戦線中 { flex: 1; min-width: 0; }
.戦線名 { font-size: calc(16 * var(--字)); font-weight: bold; display: flex; align-items: center; gap: 6px; }
.戦線名 .番 { font-size: 11px; color: #a8977a; font-weight: normal; }
.戦線目標 { font-size: 13px; color: #d8ccb0; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.戦線数 { font-size: 12px; color: #c8bca0; display: flex; justify-content: space-between; margin-top: 2px; }
.棒 { height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.棒 i { display: block; height: 100%; background: linear-gradient(90deg, #a07a20, var(--金淡)); transition: width .5s; }
.結果 { position: absolute; right: 8px; top: 6px; font-size: 13px; font-weight: bold; padding: 0 7px; border-radius: 4px; animation: 押印 .4s ease-out; }
.結果_勝 { background: #7a5a10; color: #fff2c0; } .結果_負 { background: #7a1a1a; color: #ffd0c8; } .結果_休 { background: #333; color: #aaa; }
@keyframes 押印 { from { transform: scale(2.2); opacity: 0; } to { transform: none; opacity: 1; } }
.顔 { width: 54px; height: 72px; flex: none; border-radius: 5px; background: #222 center top/cover no-repeat; border: 1px solid #6a5a36; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--金淡); font-family: "Yu Mincho", serif; }
.顔.小 { width: 42px; height: 56px; font-size: 18px; }
.顔.極小 { width: 26px; height: 34px; font-size: 13px; }
.性格 { font-size: 11px; border: 1px solid; border-radius: 3px; padding: 0 4px; font-weight: normal; }
.国印 { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(255,255,255,.5); }
#命令 { position: absolute; right: 10px; bottom: 10px; width: 340px; box-sizing: border-box; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; background: rgba(8,8,10,.82); border: 1px solid #4a3e26; border-radius: 10px; }
#命令 .釦 { padding: 7px 0; font-size: calc(15 * var(--字)); }
#命令 .釦.進む { grid-column: 1 / -1; padding: 9px 0; font-size: calc(18 * var(--字)); }
#地図札 { position: absolute; width: 200px; padding: 7px 10px; background: rgba(6,6,8,.92); border: 1px solid #6a5a36; border-radius: 6px; font-size: 13px; pointer-events: none; z-index: 50; }
#地図札 .札題 { font-weight: bold; color: var(--金淡); font-size: 15px; }
#本営UI.進行中 #命令, #本営UI.進行中 #戦線札 { pointer-events: none; opacity: .75; }

/* ---- 窓 ---- */
.窓幕 { position: absolute; inset: 0; padding: 62px 0 10px; box-sizing: border-box; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; animation: 幕 .15s ease-out; }
@keyframes 幕 { from { opacity: 0; } }
.窓 { background: linear-gradient(#17140f, #0e0c09); border: 1px solid #8a7240; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,220,140,.08); max-height: 640px; display: flex; flex-direction: column; animation: 窓入 .18s ease-out; }
@keyframes 窓入 { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.窓題 { font-family: "Yu Mincho", serif; font-size: calc(22 * var(--字)); color: var(--金淡); padding: 12px 18px 8px; border-bottom: 1px solid #3a3020; }
.窓中 { padding: 12px 18px; overflow-y: auto; font-size: calc(15 * var(--字)); }
.窓釦 { display: flex; gap: 10px; justify-content: flex-end; padding: 10px 18px 14px; }
.窓中::-webkit-scrollbar { width: 6px; } .窓中::-webkit-scrollbar-thumb { background: #6a5a36; border-radius: 3px; }
.欄題 { color: #b8a478; font-size: 13px; margin: 10px 0 6px; border-left: 3px solid var(--金); padding-left: 7px; }
.欄題:first-child { margin-top: 0; }
.選び欄 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.目標欄 { grid-template-columns: repeat(3, 1fr); }
.選び { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; text-align: left; background: #1a1712; border: 1px solid #3a3020; border-radius: 6px; padding: 6px 8px; color: var(--紙); cursor: pointer; position: relative; }
.選び:hover, .選び.lv10-フォーカス { border-color: var(--金淡); }
.選び.選択中 { border-color: var(--金); background: #2e2614; box-shadow: inset 0 0 0 1px var(--金); }
.選び名 { font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.選び数 { font-size: 12px; color: #c0b498; width: 100%; }
.選び .顔.小 + .選び名 { width: calc(100% - 54px); }
.選び印 { position: absolute; right: 5px; top: 4px; font-size: 11px; color: #000; background: var(--金); border-radius: 3px; padding: 0 4px; }
.選び印.赤 { background: #c04030; color: #fff; }
.隊員列 { display: flex; gap: 10px; flex-wrap: wrap; }
.隊員 { text-align: center; font-size: 13px; width: 66px; display: flex; flex-direction: column; align-items: center; }
.小字 { font-size: 11px; color: #a8977a; }
.方針列 { display: flex; gap: 8px; }
.方針 { flex: 1; padding: 12px 0; font-size: 17px; background: #1a1712; border: 1px solid #3a3020; border-radius: 6px; color: var(--紙); cursor: pointer; }
.方針:hover, .方針.lv10-フォーカス { border-color: var(--金淡); }
.方針.選択中 { border-color: var(--金); background: #3a2e12; color: var(--金淡); font-weight: bold; }
.見込み { display: flex; gap: 18px; margin-top: 12px; padding: 8px 10px; background: rgba(255,255,255,.04); border-radius: 6px; flex-wrap: wrap; }
.見込み b, .文明資源 b, .情報行 b { color: #a8977a; font-weight: normal; margin-right: 6px; font-size: 13px; }
.文明資源 { display: flex; gap: 20px; margin-bottom: 8px; font-size: 16px; }
.文明列 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.文明系 { display: flex; flex-direction: column; gap: 6px; }
.文明 { text-align: left; background: #14120e; border: 1px solid #2e2618; border-radius: 6px; padding: 7px 9px; color: #8a8070; cursor: pointer; position: relative; }
.文明名 { font-weight: bold; font-size: 15px; } .文明効 { font-size: 12px; } .文明費 { font-size: 12px; margin-top: 2px; } .文明前 { position: absolute; right: 6px; top: 6px; font-size: 10px; color: #8a6a4a; }
.文明.買える { color: var(--紙); border-color: #8a7240; box-shadow: 0 0 10px rgba(216,176,74,.25); animation: 光る 2s infinite; }
@keyframes 光る { 50% { box-shadow: 0 0 16px rgba(216,176,74,.5); } }
.文明.取得 { color: var(--金淡); border-color: var(--金); background: #2a220f; }
.文明.足りない { color: #b0a690; }
.文明:hover, .文明.lv10-フォーカス { border-color: var(--金淡); }
.人材表 { display: flex; flex-direction: column; font-size: 13px; }
.人行 { display: grid; grid-template-columns: 34px 1.8fr .7fr .5fr .45fr .45fr .45fr .45fr .9fr .6fr; align-items: center; gap: 6px; padding: 3px 4px; border-bottom: 1px solid #221d14; }
.人行.頭 { color: #a8977a; position: sticky; top: -12px; background: #120f0b; z-index: 1; }
.人行 > span:nth-child(2) { display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.人行.負傷 { opacity: .55; }
.人行.lv10-フォーカス { background: #2a2214; }
.化け印 { font-style: normal; font-size: 10px; background: linear-gradient(#f4d77a, #b88a20); color: #2a1a00; border-radius: 3px; padding: 0 3px; font-weight: bold; }
.記録窓 { display: flex; flex-direction: column; gap: 2px; }
.記録行, .原因行 { display: flex; gap: 10px; font-size: 13px; padding: 3px 0; border-bottom: 1px solid #1e1a12; flex-wrap: wrap; }
.記月 { color: #8a7a5a; width: 110px; flex: none; }
.記因 { color: #e0a080; font-size: 12px; width: 100%; padding-left: 120px; }
.記_反乱 .記文, .記_寝返り .記文, .記_裏切り .記文, .記_失陥 .記文, .記_協力 .記文 { color: #ff9a80; }
.記_化け .記文, .記_勧誘 .記文 { color: var(--金淡); }
.情報表 { display: flex; flex-direction: column; gap: 4px; }
.情報行 { display: flex; justify-content: space-between; border-bottom: 1px solid #221d14; padding: 3px 0; }
.国頭 { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.国名 { font-family: "Yu Mincho", serif; font-size: 22px; color: var(--金淡); } .国種 { font-size: 13px; color: #a8977a; margin-left: auto; }
.頭札 { display: flex; gap: 12px; margin-bottom: 10px; }
.札顔 { border-width: 2px; font-size: 30px; }
.頭名 { font-weight: bold; font-size: 16px; display: flex; gap: 6px; align-items: center; }
.言い分 p { margin: 6px 0 0; font-family: "Yu Mincho", serif; font-size: 15px; color: #e8dcc0; }
.報告 { display: flex; flex-direction: column; gap: 4px; }
.報行 { display: flex; gap: 8px; align-items: center; font-size: 15px; padding: 4px 6px; border-radius: 4px; background: rgba(255,255,255,.03); animation: 浮く .3s ease-out both; }
.報行:nth-child(2) { animation-delay: .05s; } .報行:nth-child(3) { animation-delay: .1s; } .報行:nth-child(4) { animation-delay: .15s; } .報行:nth-child(5) { animation-delay: .2s; } .報行:nth-child(n+6) { animation-delay: .25s; }
.報印 { width: 22px; height: 22px; flex: none; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; background: #333; }
.報_勝 .報印 { background: #7a5a10; color: #fff2c0; } .報_負 .報印 { background: #7a1a1a; } .報_事件 .報印, .報_最後 .報印 { background: #c04030; color: #fff; } .報_事件 { color: #ffb0a0; }
.報_化け .報印 { background: linear-gradient(#f4d77a, #b88a20); color: #2a1a00; } .報_化け { color: var(--金淡); }

/* ---- 通知 ---- */
#通知 { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 400; pointer-events: none; }
#通知 .札 { background: rgba(10,8,6,.9); border: 1px solid #6a5a36; border-radius: 6px; padding: 6px 16px; font-size: 15px; animation: 浮く .25s ease-out; transition: opacity .5s; }
#通知 .札.金 { border-color: var(--金); color: var(--金淡); box-shadow: 0 0 14px rgba(216,176,74,.4); }
#通知 .札.赤 { border-color: #c04030; color: #ffb0a0; }
#通知 .札.消える { opacity: 0; }

/* ---- 戦場 ---- */
#戦場幕 { position: absolute; inset: 0; z-index: 300; background: #000; animation: 幕 .25s ease-out; cursor: pointer; }
#戦場 { position: absolute; inset: 0; }

/* ---- 会話（DG1式 上下フキダシ。画像 lv10api/img/005_f_*.png 1280×360） ---- */
#会話幕 { position: absolute; inset: 0; z-index: 350; cursor: pointer; }
.会話背景 { position: absolute; inset: 0; background: center/cover no-repeat; filter: brightness(.32); animation: ゆっくり 18s linear infinite alternate; }
@keyframes ゆっくり { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-20px); } }
.吹出 { position: absolute; left: 0; width: 1280px; height: 360px; background: center/100% 100% no-repeat; }
.吹出.入る { animation: 吹出入 .2s ease-out; }
@keyframes 吹出入 { from { opacity: 0; transform: translateY(var(--入, 8px)); } }
.吹出_上 { top: 0; background-image: url("../lv10api/img/005_f_top.png"); --入: -10px; }
.吹出_下 { top: 360px; background-image: url("../lv10api/img/005_f_down.png"); }
.吹出顔 { position: absolute; width: 132px; height: 176px; background: #1a1a1a center top/cover no-repeat; border: 2px solid #8a7240; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; font-size: 54px; color: var(--金淡); font-family: "Yu Mincho", serif; }
.吹出_上 .吹出顔 { left: 22px; top: 112px; } .吹出_下 .吹出顔 { right: 22px; top: 132px; }
.吹出名 { position: absolute; font-size: calc(18 * var(--字)); font-weight: bold; color: var(--金淡); text-shadow: 0 2px 3px #000; }
.吹出_上 .吹出名 { left: 200px; top: 128px; } .吹出_下 .吹出名 { right: 220px; top: 148px; }
.吹出文 { position: absolute; font-size: calc(23 * var(--字)); line-height: 1.6; color: #fff; text-shadow: 2px 2px 4px #000; white-space: pre-wrap; }
.吹出_上 .吹出文 { left: 200px; right: 110px; top: 160px; } .吹出_下 .吹出文 { left: 110px; right: 220px; top: 180px; }
.会話システム { position: absolute; left: 160px; right: 160px; top: 290px; padding: 26px 36px; background: rgba(40,40,40,.72); border: 1px solid rgba(200,190,160,.4); border-radius: 8px; font-size: calc(22 * var(--字)); text-align: center; line-height: 1.6; text-shadow: 2px 2px 4px #000; font-family: "Yu Mincho", serif; }

/* ---- 終わり ---- */
#終わりUI { position: absolute; inset: 0; background: url("../img/背景/王都.webp") center/cover; padding: 74px 80px 40px; box-sizing: border-box; }
#終わりUI::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.7)); }
#終わりUI > * { position: relative; }
.終題 { font-family: "Yu Mincho", serif; font-size: 64px; color: var(--金淡); text-shadow: 0 0 30px rgba(216,176,74,.6); animation: 浮く 1.2s ease-out both; }
.終文 { font-family: "Yu Mincho", serif; font-size: 22px; margin-top: 8px; animation: 浮く 1.2s .3s ease-out both; }
.終数 { font-size: 14px; color: #c8bca0; margin-top: 14px; }
.評価列 { display: flex; gap: 18px; margin-top: 22px; }
.評価 { width: 120px; text-align: center; background: rgba(20,16,10,.8); border: 1px solid #6a5a36; border-radius: 8px; padding: 8px; animation: 押印 .5s ease-out both; }
.評価名 { font-size: 14px; color: #a8977a; } .評価段 { font-family: "Yu Mincho", serif; font-size: 44px; }
.段_S { color: #ffe08a; text-shadow: 0 0 16px #ffcc55; } .段_A { color: #f4d77a; } .段_B { color: #d8ccb0; } .段_C { color: #a8977a; } .段_D { color: #a07060; }
.原因 { margin-top: 18px; max-width: 900px; }
#終わりUI > .終釦 { position: absolute; right: 40px; bottom: 30px; }
/* 場面ヘルプの ⓘ（lv10api）。右下は命令の帯なので、上の帯の左へ */
#舞台 .lv10-ⓘ { position: absolute; right: 378px; top: 12px; bottom: auto; left: auto; z-index: 260; }
/* ---- DLC ---- */
.DLC窓 { display: flex; flex-direction: column; gap: 8px; }
.DLC注 { color: #f0b080; font-size: 14px; }
.DLC行 { background: #16130e; border: 1px solid #3a3020; border-radius: 8px; padding: 9px 12px; }
.DLC行.所有 { border-color: var(--金); background: #241d0e; }
.DLC頭 { display: flex; align-items: center; gap: 10px; }
.DLC種 { font-size: 11px; border: 1px solid #8a7240; color: #d8c08a; border-radius: 3px; padding: 0 5px; }
.DLC名 { font-weight: bold; font-size: 16px; flex: 1; }
.DLC値 { color: var(--金淡); font-size: 16px; }
.DLC済 { font-size: 13px; color: #2a1a00; background: var(--金); border-radius: 4px; padding: 2px 10px; }
.DLC説明 { font-size: 13px; color: #c8bca0; margin-top: 4px; }
.DLC行 .釦.進む { padding: 5px 16px; font-size: 14px; }
