﻿@charset "UTF-8";

/* 2_スタイル.css - UI分離・可読性補強版 (最終調整版) */
/* 200_スタイル.css - UI分離・可読性補強版 (210/220と重複する部分は削除済) */

/* --- 2. 演習幕 --- */
#演習幕 {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: #000;
    user-select: none;
    -webkit-user-select: none;
}

#舞台面 {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    background: #000;
}

#地図画面 {
    display: block;
    cursor: grab;
    box-shadow: 0 0 100px rgba(0, 0, 0, 1);
    background: #000;
}

#地図画面:active {
    cursor: grabbing;
}

/* --- 4. 真・戦闘HUD（センター凝縮・オーバーフロー版）/* 要望1: 地形情報HUD */
#地形情報HUD {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 150;
    background: rgba(0, 40, 100, 0.7);
    border: 2px solid #daa520;
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    pointer-events: none;
    min-width: 250px;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
    display: none;
    /* 初期は非表示。マウスオーバーで表示 */
}

#地形情報HUD .地形タイトル {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px #000;
}

#地形情報HUD .地形説明 {
    font-size: 0.9em;
    margin-bottom: 5px;
    opacity: 0.9;
}

#地形情報HUD .地形パラメータ {
    font-size: 1.1em;
    color: #ffd700;
    font-weight: bold;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding-top: 5px;
}

#戦闘HUD {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100vw;
    height: 220px;
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    z-index: 4000;
    pointer-events: none;
}

.必殺サブ窓 {
    font-size: 0.75rem;
    color: var(--金);
    opacity: 0.8;
    margin-top: 2px;
}

.ユニットカード {
    width: 320px;
    height: 160px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(40, 40, 40, 0.9) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: auto;
}

.ユニットカード.自軍側 {
    border-left: 4px solid var(--決定);
    border-radius: 10px 0 0 10px;
}

#演習背景層 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.8;
    z-index: 50;
    display: none;
    pointer-events: none;
}

.ユニットカード.敵軍側 {
    flex-direction: row-reverse;
    text-align: right;
    border-right: 4px solid var(--警告);
    border-radius: 0 10px 10px 0;
}

.HUD肖像容器 {
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: 0;
    pointer-events: none;
}

.自軍側 .HUD肖像容器 {
    left: -40px;
}

.敵軍側 .HUD肖像容器 {
    right: -40px;
}

.HUD肖像 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    transform: scale(1.4);
}

.HUD詳細 {
    flex: 1;
    z-index: 2;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.自軍側 .HUD詳細 {
    padding-left: 90px;
}

.敵軍側 .HUD詳細 {
    padding-right: 90px;
}

.HUD名 {
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Shippori Mincho';
    color: #fff;
    position: absolute;
    top: -5px;
    width: 100%;
}

.自軍側 .HUD名 {
    left: 90px;
    text-align: left;
}

.敵軍側 .HUD名 {
    right: 90px;
    text-align: right;
}

.HUD兵種 {
    color: var(--金);
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 35px;
}

.HUD体力線 {
    width: 100%;
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.HUD体力量 {
    height: 100%;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.HUD体力数値 {
    font-family: 'Outfit';
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 1);
}

.自軍側 .HUD体力数値 {
    text-align: left;
}

.敵軍側 .HUD体力数値 {
    text-align: right;
}

/* 中央の予測連結ブリッジ */
#HUD予測 {
    width: 340px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--金);
    z-index: 5;
    margin: 0 -10px;
    pointer-events: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.HUD取消ボタン {
    position: absolute;
    top: -45px;
    background: #444;
    color: #fff;
    border: 3px solid #fff;
    padding: 10px 20px;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 100;
    border-radius: 12px;
    transition: 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.HUD取消ボタン:hover {
    background: var(--警告);
    border-color: var(--警告);
}

.予測ブリッジ {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 0 10px;
}

.予測値グループ {
    text-align: center;
}

.予測大文字 {
    font-size: 1.8rem;
    font-family: 'Outfit';
    font-weight: bold;
    display: block;
}

.予測大文字.減少 {
    color: var(--警告);
    font-size: 2.2rem;
}

.予測大文字.命中,
.予測大文字.的中 {
    color: var(--金);
}

/* キャンセルボタン */
.解除ボタン {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.8rem;
}

.解除ボタン:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#戦況パネル {
    position: fixed;
    right: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    padding: 25px;
    box-sizing: border-box;
    z-index: 5000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#戦況パネル.左側 {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

#顔絵エリア {
    width: 100%;
    height: 280px;
    background: #111;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#肖像画 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#表示名 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

#兵種名 {
    color: var(--決定);
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* プレミアム肖像画フェードイン */
#肖像画 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: portraitFadeIn 0.3s ease-out;
}

@keyframes portraitFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* オキニ演出 */
.オキニ輝き {
    position: relative;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.2) !important;
}

.オキニ輝き::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--金);
    border-radius: inherit;
    pointer-events: none;
    animation: okiniGlow 2s infinite alternate;
}

@keyframes okiniGlow {
    from {
        opacity: 0.4;
        box-shadow: 0 0 10px var(--金);
    }

    to {
        opacity: 1;
        box-shadow: 0 0 25px var(--金), inset 0 0 10px var(--金);
    }
}

#能力一覧 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
}

.能力行 {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.能力ラベル {
    font-size: 0.75rem;
    color: #888;
}

.能力数値 {
    font-weight: bold;
    font-family: 'Outfit';
}

#指揮統制 {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#進軍状況報 {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

#設定切替群 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.小ボタン {
    font-size: 0.75rem;
    padding: 10px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    cursor: pointer;
}

#待機ボタン {
    height: 45px;
    background: var(--成功);
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

#終了ボタン {
    height: 45px;
    background: var(--決定);
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

#一括待機ボタン {
    position: fixed;
    bottom: 180px;
    /* HUDの上付近 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20000;
    background: rgba(41, 128, 185, 0.9);
    /* var(--決定) + 半透明 */
    color: #fff;
    border: 3px solid #fff;
    padding: 12px 30px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    display: none;
    pointer-events: auto;
    white-space: pre-wrap;
    line-height: 1.4;
    text-align: center;
}

.確認ダイアログ {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--金);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    z-index: 9500;
    min-width: 400px;
}

.確認ダイアログ p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.選択列 {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.確認ダイアログ button {
    padding: 12px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    background: #333;
    color: #fff;
    border: 1px solid var(--金);
    transition: 0.2s;
}

.確認ダイアログ button:hover:not(.無効) {
    background: var(--決定);
    transform: scale(1.05);
}

/* v0.4.207: セーブスロット管理CSS 廃止 (機能廃止に伴う) ─ 旧 .スロット項目/.スロット見出し/.スロットラベル/.スロット日付/.スロット詳細内容/.スロット章/.スロットターン/.スロット操作群/.スロットボタン 等は全削除 */

#中断ボタン {
    margin-top: 15px;
    font-size: 0.8rem;
    background: #551111;
    color: #fff;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.7;
}

#告知層 {
    /* v0.6.78 Lv10共通UI予約 (左上0-180px) を避けて上中央配置 */
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    display: none;
    z-index: 10000;
    pointer-events: none;
}

.演出帯 {
    width: 960px; /* 600pxの1.6倍 */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 25px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.75; /* 25%透過 */
    animation: speedSlide 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.青軍 {
    background: linear-gradient(90deg, #2980b9 80%, transparent);
    border-left: 6px solid #fff;
}

.赤軍 {
    background: linear-gradient(90deg, #c0392b 80%, transparent);
    border-left: 6px solid #fff;
}

.黄軍 {
    background: linear-gradient(90deg, #f1c40f 80%, transparent);
    border-left: 6px solid #fff;
}

.告知メッセージ {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#道具窓 {
    position: absolute;
    bottom: 20px;
    right: 340px;
    width: 280px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--金);
    padding: 15px;
    z-index: 3000;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.道具題 {
    font-size: 0.8rem;
    color: var(--金);
    letter-spacing: 2px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
    padding-bottom: 5px;
}

.道具行 {
    display: flex;
    flex-direction: column;
    padding: 8px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: 0.2s;
}

.道具行:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--金);
}

.道具上段 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.道具名 {
    font-weight: bold;
    font-size: 1rem;
}

.道具数 {
    font-family: 'Outfit';
    font-size: 0.9rem;
    color: var(--金);
}

.道具解説 {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 3px;
    line-height: 1.2;
}

#セリフ窓 {
    position: fixed;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 1050px;
    height: 350px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-top: 5px solid var(--金);
    border-bottom: 5px solid var(--金);
    z-index: 9000;
    display: none;
    padding: 30px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* スキップボタン: プレミアム修正 */
#全スキップボタン,
.補助ボタン,
#章スキップ {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--金);
    border: 2px solid var(--金);
    padding: 12px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    z-index: 10005;
    display: block;
}

#全スキップボタン {
    top: -55px;
    right: 0;
    font-size: 1.1rem;
    padding: 8px 30px;
}

#全スキップボタン:hover,
.補助ボタン:hover,
#章スキップ:hover {
    background: var(--金);
    color: #000;
}

#チャプター背景 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 9000;
}

.語り部領域 {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 850px;
    color: #fff;
    text-shadow: 2px 2px 10px #000, 0 0 20px #000;
    z-index: 9002;
    font-family: 'Shippori Mincho', serif;
    font-size: 2.1rem;
    line-height: 1.6;
    pointer-events: none;
    text-align: left;
    padding: 50px;
    background: rgba(90, 90, 90, 0.4);
    border-radius: 24px;
}

.ストーリーテキスト {
    white-space: pre-wrap;
    font-weight: bold;
}

.次へ案内 {
    font-size: 1.45rem;
    color: var(--金);
    margin-top: -12px;
    margin-right: 36px;
    animation: blink 1.5s infinite;
    text-align: right;
}

.キャラ演出層 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9001;
    pointer-events: none;
    overflow: hidden;
}

.登場キャラ {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: auto;
    height: 77%;
    max-height: 95vh;
    margin-top: 320px;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    -webkit-mask-image: radial-gradient(ellipse at center 60%, black 50%, transparent 100%);
    mask-image: radial-gradient(ellipse at center 60%, black 50%, transparent 100%);
    object-fit: contain;
    transform: translate(calc(-50% + var(--dx, 0px)), 50px) scale(0.95);
    filter: brightness(0.5) blur(4px);
    z-index: 5;
}

.登場キャラ.有効 {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx, 0px)), 0) scale(1);
    filter: brightness(1) blur(0);
}

.登場キャラ.退場 {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px) + var(--exit-x, -50px)), 0) scale(1.05);
    filter: blur(5px);
    transition: all 0.6s ease-in;
}

.登場キャラ.左 {
    --dx: -380px;
    z-index: 12;
}

.登場キャラ.中 {
    --dx: 0px;
    margin-left: -400px;
    z-index: 11;
    transform: scaleX(-1);
}

.登場キャラ.右 {
    --dx: 320px;
    z-index: 10;
}

body.演出中 #能力一覧,
body.演出中 #告知層,
body.演出中 #操作パネル {
    opacity: 0;
    pointer-events: none;
    transition: 0.8s;
}

body.演出中 #舞台面 {
    pointer-events: none;
}

/* 章画像（右側のステータスエリア用）: プレミアム背景仕様 */
#章肖像画,
.章肖像画 {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 380px;
    object-fit: cover;
    border-left: 4px solid var(--金);
    opacity: 1.0;
    z-index: 6000;
    display: none;
    pointer-events: none;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

#撤退肖像画 {
    position: absolute;
    bottom: 0;
    left: -40px;
    height: 480px;
    width: auto;
    z-index: 10;
    filter: drop-shadow(0 0 50px #000);
    pointer-events: none;
}

.撤退内容 {
    margin-left: 360px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
    position: relative;
}

.窓案内 {
    color: var(--金);
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--金);
    width: fit-content;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.窓本文 {
    font-size: 1.55rem;
    line-height: 1.6;
    font-family: 'Shippori Mincho';
    color: #fff;
    word-break: break-all;
    white-space: pre-wrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#レベルアップ窓 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    background: rgba(10, 10, 30, 0.98);
    border: 2px solid var(--金);
    border-radius: 8px;
    display: none;
    z-index: 60000;
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 80px rgba(0, 0, 0, 1);
}

.LV見出し {
    font-size: 2rem;
    font-weight: bold;
    color: var(--金);
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Outfit';
}

.LV表 {
    width: 100%;
    border-collapse: collapse;
}

.LV行 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.LV行 td {
    padding: 12px 5px;
    font-size: 1.2rem;
}

.LV項目 {
    color: #888;
    text-align: left;
    width: 100px;
}

.LV旧値 {
    text-align: center;
    color: #ccc;
}

.LV矢印 {
    text-align: center;
    color: var(--金);
    width: 40px;
}

.LV新値 {
    text-align: center;
    font-weight: bold;
    width: 60px;
}

.LV上昇 {
    color: var(--成功);
    font-weight: bold;
    text-align: right;
    font-family: 'Outfit';
}

.LV閉じる {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    background: var(--決定);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

@keyframes speedSlide {
    0% {
        transform: translateX(-110%);
    }

    20% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-110%);
    }
}

@keyframes screenShake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-10px, 8px);
    }

    40% {
        transform: translate(10px, -8px);
    }

    60% {
        transform: translate(-8px, 6px);
    }

    80% {
        transform: translate(8px, -6px);
    }
}

@media (max-width: 900px) {
    #演習幕 {
        flex-direction: column;
    }

    #舞台面 {
        flex: 1;
        width: 100vw;
        height: auto;
    }

    #戦況パネル {
        width: 100vw;
        height: 350px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
        overflow-y: auto;
    }

    #顔絵エリア {
        height: 120px;
        margin-bottom: 10px;
    }

    #戦闘HUD {
        bottom: 350px;
        transform: scale(0.85);
    }

    .ユニットカード {
        width: 250px;
        height: 120px;
    }

    #HUD予測 {
        width: 200px;
        height: 100px;
    }
}

#固定機能バー {
    position: fixed;
    top: 20px;
    right: 340px;
    display: flex;
    gap: 15px;
    z-index: 60000;
}


.機能アイコン:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#手引窓 {
    position: fixed;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 85vh;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(40px);
    border: 2px solid var(--金);
    border-radius: 12px;
    z-index: 50000;
    display: none;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 0 120px rgba(0, 0, 0, 1);
    color: #eee;
    overflow: hidden;
}

.手引ヘッダー {
    padding: 25px 35px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.手引題 {
    color: var(--金);
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.手引タブ欄 {
    display: flex;
    gap: 5px;
}

.確認ダイアログ {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--金);
    padding: 30px;
    text-align: center;
    color: #fff;
    z-index: 9010;
    box-shadow: 0 0 40px rgba(0, 0, 0, 1);
    border-radius: 8px;
    min-width: 300px;
}

.選択列 {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.選択列 button {
    background: var(--成功);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.選択列 button:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.無効 {
    opacity: 0.3;
    filter: grayscale(1);
    pointer-events: none;
    cursor: default;
}

.次ボタン {
    background: none;
    border: 1px solid #aaa;
    color: #aaa;
    margin-top: 10px;
    cursor: pointer;
}

.手引タブ {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    border-radius: 4px 4px 0 0;
}

.手引タブ:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.手引タブ.活性 {
    background: var(--金);
    color: #000;
    font-weight: bold;
    border-color: var(--金);
}

.手引本体 {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
}

.手引タブ内容 {
    display: none;
    animation: fadeIn 0.4s ease;
}

.手引タブ内容.活性 {
    display: block;
}

.手引節 {
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--金);
}

.手引節 h3 {
    color: var(--金);
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
    padding-bottom: 8px;
}

.手引節 h3 {
    color: var(--金);
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
    padding-bottom: 8px;
}

.手引強調 {
    color: var(--金);
    font-weight: bold;
}

.手引小見出し {
    font-weight: bold;
    display: block;
    margin: 15px 0 5px;
    color: #fff;
    font-size: 1.05rem;
}

.手引閉じる {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.手引閉じる:hover {
    background: var(--警告);
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 2. 攻略準備画面 (PREPARATION) --- */
#準備画面 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0c 0%, #1a1a1f 100%);
    padding: 60px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    color: #fff;
    z-index: 3000;
}

#準備ヘッダー {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(241, 196, 15, 0.3);
    padding-bottom: 20px;
}

#準備タイトル {
    font-size: 3rem;
    font-weight: normal;
    letter-spacing: 0.2rem;
    margin: 0;
    color: var(--金);
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
}

#ソート項目群 {
    display: flex;
    gap: 20px;
}

.ソートボタン {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
    padding: 8px 25px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.ソートボタン:hover,
.ソートボタン.アクティブ {
    border-color: var(--金);
    color: var(--金);
    background: rgba(241, 196, 15, 0.1);
}

#出撃操作群 {
    display: flex;
    align-items: center;
    gap: 30px;
}

#出撃数表示 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--金);
    font-family: 'Outfit';
}

.完了ボタン {
    background: linear-gradient(to bottom, #f1c40f, #d4af37);
    border: none;
    color: #000;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.3rem;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.3);
    transition: 0.3s;
}

.完了ボタン:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(241, 196, 15, 0.5);
}

#準備メイン {
    display: grid;
    grid-template-columns: 450px 1fr;
    grid-template-rows: 1fr;
    /* 行の高さをコンテナ内に収める */
    gap: 50px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    /* FlexBox内での無限拡大を防止 */
}

#キャラ選択リスト {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
    /* grid内でのスクロールを有効化 */
}

#キャラ選択リスト::-webkit-scrollbar {
    width: 6px;
}

#キャラ選択リスト::-webkit-scrollbar-thumb {
    background: var(--金);
    border-radius: 3px;
}

.リスト項目 {
    display: flex;
    align-items: center;
    padding: 18px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.リスト項目:hover,
.リスト項目.選択中 {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--金);
}

.リスト項目.出撃中 {
    /* v0.6.88 ユーザー指示「強制出撃の黄色太線→通常の黄色枠」 太線・帯削除 */
    background: rgba(241, 196, 15, 0.05);
    border-color: var(--金);
}

.リスト顔アイコン {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    margin-right: 25px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.リスト名前群 {
    display: flex;
    flex-direction: column;
}

.リスト名 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.リストサブ情報 {
    font-size: 0.9rem;
    opacity: 0.6;
}

#キャラ詳細パネル {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 0;
    /* grid内でのスクロールを有効化 */
}

#詳細背景イラスト {
    position: absolute;
    right: -10%;
    bottom: -5%;
    height: 110%;
    width: 70%;
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 20px #000);
}

/* --- 新・編成詳細レイアウト --- */
.詳細行 {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

#詳細戦力 {
    margin-left: auto;
    margin-bottom: -2px;
    /* 3pxズレ修正 */
}

#詳細経験値 {
    margin-bottom: -4px;
}

.数値強調 {
    font-size: 2.2rem;
    /* +20px (1.2rem -> 2.2rem程度) */
    font-family: 'Outfit';
    color: var(--金);
}

.編成画面名前拡大 {
    font-size: 2.3rem;
    color: var(--金);
    font-weight: bold;
}

.詳細行 span {
    font-size: 1rem;
}

.詳細行 span::after {
    margin-right: 5px;
}

.詳細エリアリスト {
    margin-top: 15px;
}

.エリア見出し {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.リスト内包 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.補助ボタン小 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ccc;
    padding: 5px 15px;
    font-size: 0.9rem;
    width: 220px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.補助ボタン小:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.能力項目 {
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--金);
    padding: 12px 20px;
    border-radius: 0 5px 5px 0;
}

.能力称 {
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 0.1rem;
}

.能力値 {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Outfit';
}

#詳細スキルエリア {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.スキル項目 {
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--警告);
    padding: 15px 25px;
    border-radius: 0 5px 5px 0;
    max-width: 500px;
}

.スキル名 {
    color: var(--金);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.スキル説明 {
    font-size: 0.95rem;
    opacity: 0.8;
}

.オキニハート {
    color: #e74c3c;
    margin-left: 5px;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
    animation: pulse 2s infinite;
}

.詳細オキニ.有効 {
    color: #e74c3c;
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.6));
}

/* --- 2.5 補助幕（インターミッション） --- */
#補助幕 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a1a1a 0%, #050505 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2000;
    font-family: 'Shippori Mincho', serif;
}

#補助ヘッダー {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid #c9a063;
    padding-bottom: 20px;
}

#補助見出し {
    font-size: 3rem;
    color: #c9a063;
    text-shadow: 0 0 15px rgba(201, 160, 99, 0.5);
    font-family: 'Outfit';
}

#現在の進行状況 {
    font-size: 1.2rem;
    opacity: 0.8;
}

#補助メニュー {
    display: flex;
    gap: 30px;
}

.補助項 {
    width: 300px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 160, 99, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
}

.補助項:hover {
    background: rgba(201, 160, 99, 0.15);
    border-color: #c9a063;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.補助項.進行 {
    background: rgba(201, 160, 99, 0.1);
    border-color: #c9a063;
}

.補助項.進行:hover {
    background: rgba(201, 160, 99, 0.3);
}

.項目見出し {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.項目説明 {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.6;
}

/* モーダル窓 */
.モーダル {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.モーダル中身 {
    background: #111;
    border: 2px solid #c9a063;
    padding: 40px;
    width: 80%;
    max-width: 900px;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

.閉じるボタン {
    margin-top: 30px;
    background: transparent;
    border: 1px solid #c9a063;
    color: #c9a063;
    padding: 10px 40px;
    cursor: pointer;
    transition: 0.3s;
}

.閉じるボタン:hover {
    background: #c9a063;
    color: #000;
}

.詳細オキニ:hover {
    transform: scale(1.2);
    color: var(--警告);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* --- 勝利条件・デバッグ用のタイルハイライト --- */
.ハザードストライプ {
    background: repeating-linear-gradient(45deg,
            #f1c40f,
            #f1c40f 10px,
            #000 10px,
            #000 20px);
    opacity: 0.8;
    animation: hazard-move 2s linear infinite;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--金);
}

@keyframes hazard-move {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 0;
    }
}

.攻撃範囲タイル {
    background: rgba(231, 76, 60, 0.4);
    box-shadow: inset 0 0 15px rgba(255, 0, 0, 0.5);
}

/* --- 試作UI素材適用 --- */
.試作ステータス枠 {
    position: relative;
    border: 30px solid transparent;
    /* 枠の太さ */
    border-image: url('./img/s03ui_ステータス外枠.png') 100 stretch;
    /* 新しい枠素材を適用 */
    background: rgba(0, 0, 0, 0.85);
    /* 中身を暗くして文字の視認性を確保 */
    background-clip: padding-box;
    /* 背景が枠の外まで漏れないように調整 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    padding: 20px;
}
