/* ノベルゲーム風UI専用スタイル */

/* ノベルゲーム風テキストボックス */
.novel-textbox {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    min-height: 150px;
}

/* 文字送りエフェクト用 */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(50, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* ノベルゲーム風選択肢 */
.novel-choices {
    position: absolute;
    bottom: 220px;
    right: 50px;
    max-width: 300px;
}

.novel-choice {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #666;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.novel-choice:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #999;
}

/* キャラクター名表示 */
.character-name {
    position: absolute;
    bottom: 210px;
    left: 50px;
    background: rgba(0, 0, 0, 0.9);
    padding: 8px 15px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ユーザーメッセージスタイル */
.user-message {
    background: rgba(52, 152, 219, 0.2);
    border-left: 4px solid #3498db;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #ffffff;
}

/* キャラクターメッセージスタイル */
.character-message {
    background: rgba(46, 204, 113, 0.2);
    border-left: 4px solid #2ecc71;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.6;
}

/* 入力コンテナスタイル */
.novel-input-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ロケーションキャラクタースタイル - 透過処理とサイズ調整改善版 */
.location-character {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease;
    /* キャラクター画像のサイズと位置調整 - 中央寄りに大きく表示 */
    max-width: 900px;
    max-height: 1200px;
    width: auto;
    height: auto;
    position: absolute;
    right: 0px; /* 中央寄りに移動 */
    bottom: 50px;
    z-index: 1;
    /* 透過PNG対応 - 強化版 */
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
    /* 黒い背景を完全に除去 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.location-character:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* 透過PNG画像の背景色問題対策 - 強化版 */
.character-image {
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
    /* 黒い背景を完全に除去 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* キャラクター画像のサイズ制御 - 大きく表示 */
.character-image img {
    width: auto;
    height: auto;
    max-width: 900px;
    max-height: 1200px;
    /* 透過PNG対応 */
    background: transparent !important;
    background-color: transparent !important;
    /* 黒い背景問題の根本解決 */
    object-fit: contain;
    object-position: center;
}

/* 画像コンテナの背景色を確実に透明にする */
.location-character-container {
    background: transparent !important;
    background-color: transparent !important;
}

/* 透過PNGの黒背景問題を解決するCSS */
.location-character img[src$=".png"],
.character-image img[src$=".png"] {
    background: transparent !important;
    background-color: transparent !important;
    /* PNGアルファチャンネルを正しく処理 */
    image-rendering: auto;
    -webkit-image-rendering: auto;
    -moz-image-rendering: auto;
    -o-image-rendering: auto;
} 