/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    /* PC独自の背景は真っ白 */
    background: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* オーバーレイは削除（単色背景のため不要） */



/* スマホサイズ固定コンテナ */
.mobile-container {
    width: 375px;
    max-width: 375px;
    height: 100vh;
    background: transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    z-index: 1; /* 背景の上に表示 */
}

/* PCとスマホで同じデザインを維持 - メディアクエリ無効化 */

/* 画面切り替え */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.screen.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;  /* スクロールを防ぐ */
    position: relative;
}

/* スタート画面（使用しない） */
/*
#startScreen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
}

.start-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
}
*/

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-title {
    text-align: center;
    margin-bottom: 40px;
}

.title-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.game-title h1 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 0.9rem;
}

.input-container {
    margin-bottom: 30px;
}

.input-container label {
    display: block;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

#playerName {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

#playerName:focus {
    outline: none;
    border-color: #4FC3F7;
    box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
}

.input-hint {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
}

.start-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.start-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(2, 136, 209, 0.3);
}

.start-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ゲーム画面 */
#gameScreen {
    background: transparent; /* 背景は.game-mainで設定 */
    position: relative;
}

/* ヘッダー（削除） */
/* .game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
} */



/* 撮影中のフラッシュエフェクト */
@keyframes cameraFlash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.camera-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
}

.camera-flash.active {
    animation: cameraFlash 0.5s ease-out;
}

/* 記録ボタン */
.memory-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: linear-gradient(135deg, #4FC3F7, #0288D1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* ボタンのテキストは常に非表示 */
.memory-btn span {
    display: none;
}

.memory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.memory-btn:active {
    transform: translateY(0);
}

.memory-btn i {
    font-size: 0.9rem;
}

/* ヘッダー統計表示 */
.header-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(243, 244, 246, 0.8);
    border-radius: 16px;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
}

.stat-item i {
    font-size: 0.9rem;
}

/* 日数カウント */
.stat-item:nth-child(1) {
    background: rgba(254, 243, 199, 0.5);
    color: #92400e;
}

.stat-item:nth-child(1) i {
    color: #f59e0b;
}

/* 餌カウント */
.stat-item:nth-child(2) {
    background: rgba(254, 226, 226, 0.5);
    color: #991b1b;
}

.stat-item:nth-child(2) i {
    color: #ef4444;
}

/* 掃除カウント */
.stat-item:nth-child(3) {
    background: rgba(209, 250, 229, 0.5);
    color: #14532d;
}

.stat-item:nth-child(3) i {
    color: #10b981;
}



/* レスポンシブ対応 - スマホ最適化（固定幅のため無効化） */
/* PCとスマホで同じデザインを維持 - メディアクエリ無効化
@media (max-width: 600px) {
    .menu-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
    
    .popup-menu-content {
        width: 95%;
        max-height: 90vh;
    }
    /* .room-background はlayout.cssで管理 */
    
    /* .action-controlsのスタイルはsimple-layout.cssで管理 */
    
    .control-btn {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .control-btn span {
        display: inline; /* 文字を表示 */
        margin-left: 4px;
    }
    
    .control-btn i {
        font-size: 1.2rem;
    }
    
    /* セリフ表示欄のモバイル調整 */
    .character-dialogue {
        margin: 8px 0 12px; /* 上8px、下12pxの余白 */
    }
    
    .status-panel {
        background: white !important;
        background-color: white !important;
        opacity: 0.95;
        padding: 10px;
        margin-top: 8px;
        width: calc(100% - 30px); /* 左右に15pxずつのマージン */
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box; /* paddingを幅に含める */
        max-width: 345px;
        min-height: 115px;
        max-height: 140px;
    }
    
    .status-panel h3 {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .status-bar {
        grid-template-columns: 45px 1fr 45px;
        gap: 6px;
    }
    
    .status-label {
        font-size: 0.75rem;
    }
    
    .progress-bar {
        height: 8px;
    }
    
    .status-value {
        font-size: 0.7rem;
    }
    
    .game-footer {
        padding: 10px 8px;
    }
    
    .feed-mode-toggle {
        margin-bottom: 8px;
        padding-bottom: 8px;
        gap: 8px;
    }
    
    .feed-mode-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        gap: 6px;
    }
    
    .action-btn {
        padding: 8px 4px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    
    .action-btn i {
        font-size: 1.2rem;
    }
    
    .action-btn span {
        font-size: 0.7rem;
    }
}
*/

/* メインゲームエリア */
.game-main {
    padding: 0; /* 背景を全画面に広げるためpaddingを削除 */
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto; /* 必要に応じてスクロール */
    overflow-x: hidden;
    /* カスタム背景画像用 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* .room-containerのスタイルはsimple-layout.cssで定義 */

/* .room-backgroundの基本スタイルはlayout.cssで定義 */

/* 窓の装飾 */
.window {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 100px;
    background: linear-gradient(to bottom, #87CEEB, #E0F6FF);
    border: 4px solid #8B4513;
    border-radius: 10px 10px 0 0;
}

.window-shine {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30%;
    height: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: skewX(-20deg);
}


/* キャラクター */
.character-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    left: 50%;
    bottom: 5px;  /* サイズが大きくなったので少し調整 */
    transform: translateX(-50%);
    /* transitionは動的に設定 */
    z-index: 10;
}

/* 移動中のトランジション */
.character-container.moving {
    transition: left 2s linear;
}

/* ジャンプ（＝「はてな」）中のクラス。
   ★2026-09-30 不具合修正（QAシートNo.189、ユーザー指摘「『はてな？』の疑問のアクションが、
   キャラクターが大きくなったり縮小したりしている」）：
   ここには以前 @keyframes jump-size-adjust（6秒で1.0→1.15→1.0倍にするサイズ補正）を
   当てていたが、jump で再生される絵は 3_hatena.gif（「はてな」）1種類しかなく
   （json.js:450 の CHARACTER_GIFS。同:363 のとおりジャンプ専用素材は提供されていない）、
   キャラクターを拡大縮小させる演出は要件・仕様の10資料のどこにも記載が無いため削除した。
   QAシートNo.166（そうじ）で同じCSSを外したときの取りこぼしにあたる。
   実測（430×932・変更前）：はてなの6秒間で画像の高さが 166px → 190.9px（+24.9px）になり、
   transform-origin: center bottom（下記 .character-gif）のため足元（下端415px）は動かず
   上へ24.9px伸びていた。
   ⚠️ 左向き用の -flipped も同時に削除している。animation が無くなったことで、
      jumping 中も .character-gif.flip-left の scaleX(-1) がそのまま効き、反転は保たれる。
   ⚠️ isJumping / jumping クラス自体は残している（clearJump() の目印・将来の演出用フック）。
   ⛔ .character-gif.flip-left の scaleX(-1) は反転であって拡大ではない（絶対値1）。消すと
      歩行時にキャラクターが進行方向と逆を向く。 */
.character-container.jumping {
    /* 位置・大きさともGIFアニメーションに任せる（CSS側では何もしない） */
}

.character {
    position: relative;
    cursor: pointer;
}

.character-gif {
    /* 実素材への差し替え後、部屋に対してキャラクターが小さく見えたため拡大
       （ユーザー指示、2026-08-14。120px→150px） */
    width: 150px;
    height: 150px;
    /* 影(.character-shadow)はDOM上でこのimgより後ろにあり、絶対配置のため既定ではimgの上に
       描画される。影を足元まで引き上げた結果キャラクターに被って黒ずむため、重ね順を明示して
       キャラクターを必ず影より前面にする（ユーザー指示、2026-08-14） */
    position: relative;
    z-index: 1;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    background: transparent;
    display: block;
    image-rendering: auto;
    transition: transform 0.3s ease;
    /* GIFの切り替えをスムーズに */
    will-change: transform;
    transform-origin: center bottom; /* 下部を基点にスケール */
}

/* 左移動時の左右反転 */
.character-gif.flip-left {
    transform: scaleX(-1);
}

.character-shadow {
    /* キャラクターgifの拡大（120px→150px）に合わせて影も同じ比率で拡大 */
    width: 150px;
    height: 38px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    position: absolute;
    /* 実素材のgifは足元が560pxキャンバスの約77%の位置にあり、150px表示だと画像の下端に
       約35pxの余白が入る。影を負の値で画像下端より下に置くと足元から30px以上離れてしまうため、
       影の中心が足元のすぐ下に来る位置まで引き上げる（ユーザー指示、2026-08-14。-15px→10px） */
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(8px);
    z-index: 0;  /* キャラクター(.character-gif: z-index 1)より必ず後ろに描画する */
}



/* ステータスパネル */




/* メニュートグルボタン */
.menu-toggle-btn {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 30px;
    background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
    border: none;
    border-radius: 15px 15px 0 0;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 -2px 10px rgba(2, 136, 209, 0.3);
    z-index: 101;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 -4px 15px rgba(2, 136, 209, 0.4);
}

.menu-toggle-btn.active {
    bottom: auto;
    top: auto;
    transform: translateX(-50%) translateY(0);
}

.menu-toggle-btn.active i {
    transform: rotate(180deg);
} */

/* キャラクターのセリフ表示欄 */
.character-dialogue {
    width: 100%; /* room-container内で100% */
    margin: 10px 0 15px; /* 上10px、下15pxの余白 */
    padding: 0;
    box-sizing: border-box;
}

.dialogue-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 45px;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.dialogue-content i {
    color: #0288D1;
    font-size: 1.2rem;
}

#dialogueText {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* .status-panelのスタイルはsimple-layout.cssで管理 */

.status-panel h3 {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.status-bar {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 10px;
}

.status-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.health-bar {
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

.exp-bar {
    background: linear-gradient(90deg, #fed7aa, #ffedd5);
}

.hunger-bar {
    background: linear-gradient(90deg, #ffd93d, #ffe66d);
}

.status-value {
    font-size: 0.7rem;
    color: #666;
    text-align: right;
    font-weight: 500;
}

/* .action-controlsのスタイルはsimple-layout.cssで管理 */

.control-btn {
    flex: 1;
    padding: 12px;
    background: var(--game-main);  /* ★2026-09-17 QAシートNo.172：グラデーション廃止＋テナント色（buttonColorSetting.color）追従 */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(2, 136, 209, 0.3);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.4);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.active {
    background: var(--game-main);  /* ★2026-09-17 QAシートNo.172：グラデーション廃止＋テナント色（buttonColorSetting.color）追従 */
}

.control-btn i {
    font-size: 1.1rem;
}

/* ポップアップメニューはsimple-layout.cssで管理 */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-menu-header h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
}

.close-menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-menu-btn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.menu-section {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.menu-btn {
    padding: 15px;
    background: var(--game-main);  /* ★2026-09-17 QAシートNo.172：グラデーション廃止＋テナント色（buttonColorSetting.color）追従 */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(2, 136, 209, 0.3);
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.4);
}

.menu-btn i {
    font-size: 1.5rem;
}

#menuToggle i {
    font-size: 1rem;
}

/* 餌モード切り替え */
.main-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto 15px;
    flex-wrap: nowrap;
    height: 60px;
    position: relative;
    width: 100%;
    max-width: 450px;
}

.feed-mode-btn, .clean-mode-btn {
    position: relative;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffd93d, #ffe66d);
    color: #333;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    min-width: 140px;
    width: 140px;
    height: 50px;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    vertical-align: middle;
    white-space: nowrap;
}

.clean-mode-btn {
    background: linear-gradient(135deg, #4ecdc4, #6ee7df);
}

.clean-mode-btn.active {
    background: linear-gradient(135deg, #3ab5ac, #4ecdc4);
    color: white;
    border-color: #3ab5ac;
}

.feed-mode-btn i, .clean-mode-btn i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feed-mode-btn span, .clean-mode-btn span {
    flex-shrink: 0;
    white-space: nowrap;
}

.feed-mode-btn:hover {
    border-color: #ffb700;
    background: linear-gradient(135deg, #ffb700, #ffd93d);
}

.clean-mode-btn:hover {
    border-color: #3ab5ac;
    background: linear-gradient(135deg, #3ab5ac, #4ecdc4);
}

.feed-mode-btn.active {
    background: linear-gradient(135deg, #ff8e3c, #ff6b6b);
    color: white;
    border-color: #ff6b6b;
}

.feed-mode-btn.active:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff8e3c);
    border-color: #ff5252;
}

.feed-mode-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #666;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.feed-mode-indicator.active {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 350px;
    margin: 0 auto;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 6px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    background: #f8f8f8;
    border-color: #4FC3F7;
    color: #0288D1;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    font-size: 1.3rem;
}

.action-btn span {
    font-size: 0.75rem;
}

/* レスポンシブ対応 */
/* 撮影モーダル専用スタイル */
.photo-modal-content {
    max-width: 700px;
    background: white;
}

.photo-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.photo-title {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-body {
    padding: 20px;
    background: #f9fafb;
}

.photo-preview {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    max-height: 60vh;
    overflow: auto;
}

.photo-preview canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    max-width: 100%;
}

.photo-info {
    text-align: center;
    margin-bottom: 20px;
}

.photo-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.photo-message {
    font-size: 1rem;
    color: #374151;
}

.photo-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.photo-download-btn, .photo-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.photo-download-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.photo-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.photo-share-btn {
    background: linear-gradient(135deg, #4FC3F7, #0277BD);
    color: white;
}

.photo-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* モバイル用ヘッダー調整 */
/* PCとスマホで同じデザインを維持 - メディアクエリ無効化
@media (max-width: 600px) {
    .memory-btn span {
        display: none;
    }
    
    .memory-btn {
        padding: 8px 10px;
    }
    
    .memory-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .memory-stat-item {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .memory-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .memory-stat-label {
        font-size: 0.8rem;
    }
    
    .memory-stat-value {
        font-size: 1.1rem;
    }
    
    .memory-stat-date {
        display: none;
    }
    
    .photo-modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .photo-actions {
        flex-direction: column;
    }
    
    .photo-download-btn, .photo-share-btn {
        width: 100%;
    }
}

/* PCとスマホで同じデザインを維持 - メディアクエリ無効化
@media (max-width: 480px) {
    .main-controls {
        gap: 15px;
    }
    
    .feed-mode-btn, .clean-mode-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 120px;
        width: 120px;
        height: 44px;
    }
    
    .feed-mode-btn i, .clean-mode-btn i {
        font-size: 1.1rem;
    }
    
    .start-container {
        padding: 30px 20px;
    }
    
    .game-title h1 {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-bar {
        grid-template-columns: 50px 1fr 50px;
    }
    
    /* モバイルでのメニュートグルボタン */
    #menuToggle {
        padding: 8px 16px;
        font-size: 0.8rem;
        bottom: 10px;
    }
    
    /* モバイルでのステータスパネル */
    .status-panel {
        background: white !important;
        background-color: white !important;
        opacity: 0.95;
        padding: 12px;
        min-height: 120px;
        max-height: 150px;
        width: calc(100% - 30px); /* 左右に15pxずつのマージン */
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box; /* paddingを幅に含める */
        max-width: 345px;
    }
    
    .status-panel h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .status-bars {
        gap: 10px;
    }
    
    .status-bar {
        grid-template-columns: 50px 1fr 50px;
    }
    
    .status-label {
        font-size: 0.8rem;
    }
    
    .status-value {
        font-size: 0.75rem;
    }
    
    /* .room-containerの高さはsimple-layout.cssで管理 */
}
*/

/* 移動中のキャラクター */
.character-container.moving {
    transition: left 2s linear, bottom 2s linear;
}

/* タップエフェクト */
.tap-effect {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(2, 136, 209, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: ripple 0.6s ease-out;
    z-index: 5;
}

@keyframes ripple {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* 餌 */
.food-item {
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 8;
    transform: translate(-50%, -50%);
    font-size: 24px;
    transition: transform 0.3s;
}

.food-item:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.food-item.eating {
    animation: disappear 0.5s forwards;
}

@keyframes disappear {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

/* 餌の落下アニメーション */
.food-item.falling {
    animation: fall 0.8s ease-in forwards;
    z-index: 9;
}

@keyframes fall {
    0% {
        transform: translate(-50%, -50%);
    }
    100% {
        transform: translate(-50%, -50%) translateY(var(--fall-distance));
    }
}

/* ダブルタップ可能な状態の表示 */
.food-item.unreachable {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 餌モード時のカーソル */
.room-background.feed-mode {
    cursor: cell;
}

/* 下部ステータスバー（削除済み） */

/* ポップアップメニュー（削除済み） */

/* ============================================
   ゴミシステム
   ============================================ */

/* ゴミアイテム */
.trash-item {
    position: absolute;
    font-size: 24px;
    cursor: pointer;
    z-index: 7;
    transform: translate(-50%, -50%);
    animation: trashAppear 0.5s ease-out;
    transition: transform 0.2s;
}

.trash-item:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* ゴミ出現アニメーション */
@keyframes trashAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }
}

/* ゴミ収集アニメーション */
.trash-item.collecting {
    animation: trashCollect 0.5s ease-in forwards;
}

@keyframes trashCollect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* ゴミインジケーター（削除済み） */
/*
.trash-indicator {
    position: absolute;
    top: 10px;
    right: 20px;
    background: rgba(255, 100, 100, 0.1);
    color: #ff6b6b;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(255, 100, 100, 0.2);
    z-index: 10;
}

.trash-indicator.warning {
    animation: pulseWarning 1s infinite;
    background: rgba(255, 100, 100, 0.2);
}

@keyframes pulseWarning {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(255, 100, 100, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 15px rgba(255, 100, 100, 0.4);
    }
}
*/

/* ゴミ清掃ボタン */
.clean-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 100, 100, 0.3);
}

.clean-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 100, 100, 0.4);
}

.clean-btn:active {
    transform: translateY(0);
}

/* ============================================
   家具システム
   ============================================ */

/* 家具コンテナ */
.furniture-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 家具アイテム共通 */
.furniture-item {
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 編集モード時の部屋 */
.room-background.edit-mode {
    border: 2px dashed rgba(255, 100, 100, 0.3);
    /* backgroundを上書きしないように、背景色のみ追加 */
    box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.05);
    /* 背景画像のサイズを維持 */
    background-size: cover !important;
    background-position: center !important;
}

/* 編集モード時の家具 */
.room-background.edit-mode .furniture-item {
    pointer-events: auto;
    cursor: move;
    transition: none;
}

.room-background.edit-mode .furniture-item:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.furniture-item.dragging {
    opacity: 0.7;
    z-index: 100;
    cursor: grabbing;
}

/* 思い出モーダル専用スタイル */
.memory-modal-content {
    max-width: 600px;
    background: linear-gradient(135deg, #fff5f7 0%, #fef3ff 100%);
}

.memory-header {
    background: linear-gradient(135deg, #4FC3F7, #0288D1);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
}

.memory-body {
    padding: 24px;
    background: transparent;
}

.memory-intro {
    text-align: center;
    margin-bottom: 24px;
    color: #4b5563;
    font-size: 0.95rem;
}

.character-name {
    color: #0288D1;
    font-weight: bold;
    font-size: 1.1rem;
}

.memory-stats {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.memory-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.memory-stat-item:hover {
    transform: translateX(4px);
}

.memory-stat-item.primary {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.memory-stat-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #4FC3F7, #0288D1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.memory-stat-icon.food {
    background: linear-gradient(135deg, #0288D1, #4FC3F7);
}

.memory-stat-icon.clean {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.memory-stat-icon.level {
    background: linear-gradient(135deg, #4FC3F7, #fed7aa);
}

.memory-stat-label {
    flex: 1;
    font-size: 0.9rem;
    color: #6b7280;
}

.memory-stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0288D1;
    margin-left: auto;
}

.memory-stat-date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: 8px;
}

.memory-message {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    border: 2px solid #fbbf24;
    margin-top: 20px;
}

.memory-message p {
    margin: 0;
    color: #0288D1;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 編集モードインジケーター（非表示） */
.edit-mode-indicator {
    display: none !important;
}

/* 配置モードオーバーレイ */
.edit-mode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 98;
    pointer-events: none;
}

/* 配置モードパネル */
.edit-mode-panel {
    position: absolute;
    top: calc(50% + 187.5px + 10px);  /* 部屋エリアの下に配置 */
    left: 50%;
    transform: translateX(-50%);
    width: 345px;  /* 部屋エリアと同じ幅 */
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99;
    box-sizing: border-box;
    animation: fadeInPanel 0.3s ease;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.edit-mode-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.edit-mode-message i {
    color: #0288D1;
    font-size: 1.1rem;
}

.edit-mode-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.edit-mode-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.furniture-select-btn {
    background: var(--game-main);  /* ★2026-09-17 QAシートNo.172：グラデーション廃止＋テナント色（buttonColorSetting.color）追従 */
    color: white;
}

.furniture-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.exit-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.exit-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.edit-mode-btn:active {
    transform: scale(0.98);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* 家具の位置指定はlayout.cssで管理 */

/* モーダル基本スタイル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* モーダルコンテンツ */
.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    height: 500px; /* 固定高さ */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* モーダルヘッダー */
.modal-header {
    padding: 0;
    height: 35px;
    background: white;
    position: relative;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 編集モードボタン（削除済み） */
/* .edit-mode-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.edit-mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.edit-mode-btn.active {
    background: rgba(255, 100, 100, 0.5);
    animation: pulse-bg 1.5s infinite;
} */

@keyframes pulse-bg {
    0%, 100% { background: rgba(255, 100, 100, 0.5); }
    50% { background: rgba(255, 150, 150, 0.5); }
}

/* 特別な獲得演出 */
@keyframes specialEffect {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
    }
}

/* 背景選択モーダル */
.background-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.background-item {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.background-item:hover {
    transform: scale(1.05);
}

.background-item.active {
    position: relative;
}

.background-item.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #0288D1;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.background-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid #e5e7eb;
}

.background-item.active .background-preview {
    border-color: #0288D1;
    box-shadow: 0 0 0 2px rgba(2, 136, 209, 0.2);
}

.background-item span {
    font-size: 0.85rem;
    color: #4b5563;
}

/* モーダルヘッダーのタイトル（削除済み） */
/* .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
} */

.modal-close {
    position: absolute;
    right: 10px;
    top: 5px;
    background: #f0f0f0;
    border: none;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.9rem;
    z-index: 10;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

/* モーダルボディ */
.modal-body {
    padding: 20px;
    background: white;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* カテゴリボタン */
/* スライダーコンテナ */
.furniture-slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    padding: 10px 0;
    width: 100%;
}

/* スライダー領域 */
.furniture-categories-slider {
    width: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 15px;
}

/* カテゴリコンテナ */
.furniture-categories {
    display: flex;
    transition: transform 0.3s ease;
    gap: 0;
    position: relative;
    left: 0;
    width: max-content;
}

.category-item {
    flex: 0 0 200px;
    min-width: 200px;
    width: 200px;
    padding: 12px 20px;
    color: #333;
    transition: all 0.3s;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
}

.category-item.active {
    color: #0288D1;
    font-weight: 700;
}

.category-btn:hover:not(.active) {
    background: rgba(2, 136, 209, 0.1);
    transform: scale(1.05);
}

/* スライダー矢印ボタン */
.slider-arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--game-main);  /* ★2026-09-17 QAシートNo.172：グラデーション廃止＋テナント色（buttonColorSetting.color）追従 */
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(2, 136, 209, 0.3);
}

.slider-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.4);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-arrow:disabled:hover {
    transform: scale(1);
}

/* 家具グリッド */
.furniture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

/* 家具カード */
.furniture-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.furniture-card:hover {
    border-color: #4FC3F7;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(2, 136, 209, 0.3);
}

.furniture-card.selected {
    background: var(--game-main);  /* ★2026-09-17 QAシートNo.172：グラデーション廃止＋テナント色（buttonColorSetting.color）追従 */
    color: white;
    border-color: transparent;
}

.furniture-preview {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.furniture-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* カスタム家具スタイル */

/* 実素材の画像で表示する家具（CSS図形の家具と混在する。2026-08-14、ソファの素材提供により追加）。
   個別のサイズは下のクラス（.sofa 等）で指定する */
.furniture-image {
    display: block;
    object-fit: contain;
}

/* ソファ（kagu_sofa01_400_400.png）。素材が正方形で上下に余白を含むため、
   見た目の幅が他の家具（テーブル100〜120px）と揃うようにサイズを決めている */
.sofa {
    width: 130px;
    height: 130px;
}

/* 家具（旧「テーブル」カテゴリ） */
.modern-table {
    width: 120px;
    height: 50px;
    background: linear-gradient(180deg, #f0f0f0 0%, #d0d0d0 100%);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.round-table {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #daa520 0%, #b8860b 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wood-table {
    width: 110px;
    height: 65px;
    background: repeating-linear-gradient(
        90deg,
        #8b4513,
        #8b4513 10px,
        #a0522d 10px,
        #a0522d 20px
    );
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* 植物 */
.small-plant {
    width: 40px;
    height: 60px;
    background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 50% 50% 0 0;
    position: relative;
}

.small-plant::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    background: #8b4513;
    border-radius: 5px;
}

.cactus {
    width: 30px;
    height: 70px;
    background: linear-gradient(180deg, #689F38 0%, #558B2F 100%);
    border-radius: 15px 15px 5px 5px;
    position: relative;
}

.cactus::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 15px;
    background: #d2691e;
    border-radius: 5px;
}

.flower-pot {
    width: 50px;
    height: 40px;
    position: relative;
}

.flower-pot::before {
    content: '🌸';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
}

.flower-pot::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 25px;
    background: linear-gradient(180deg, #cd853f 0%, #8b4513 100%);
    border-radius: 5px 5px 10px 10px;
}

.bonsai {
    width: 60px;
    height: 50px;
    position: relative;
}

.bonsai::before {
    content: '🌲';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 35px;
}

.bonsai::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: linear-gradient(180deg, #2c1810 0%, #1a0e08 100%);
    border-radius: 10px;
}

/* 窓のバリエーション */
.window.with-curtain {
    position: relative;
}

.window.with-curtain .curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(90deg, 
        rgba(255, 182, 193, 0.8) 0%, 
        rgba(255, 192, 203, 0.8) 50%, 
        rgba(255, 182, 193, 0.8) 100%);
    border-radius: 10px 10px 0 0;
}

.window.round-window {
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

.window.round-window .window-shine {
    border-radius: 50%;
}

.window.night-window {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.window.night-window .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent);
    background-size: 50px 50px;
}

/* 装飾 */
.wall-clock {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fff 0%, #f0f0f0 100%);
    border: 3px solid #333;
    border-radius: 50%;
    position: relative;
}

.wall-clock::before {
    content: '🕐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.wall-picture {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
    border: 5px solid #8b4513;
    border-radius: 5px;
    position: relative;
}

.wall-picture::before {
    content: '🎨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
}

.wall-shelf {
    width: 100px;
    height: 15px;
    background: linear-gradient(180deg, #8b4513 0%, #654321 100%);
    border-radius: 3px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.wall-shelf::before {
    content: '📚';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px;
}

.wall-lamp {
    width: 50px;
    height: 70px;
    position: relative;
}

.wall-lamp::before {
    content: '💡';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.5));
}

/* レスポンシブ対応（固定幅のため無効化） */
/* /* PCとスマホで同じデザインを維持 - メディアクエリ無効化
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .furniture-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .category-btn {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
} */

/* 背景設定ボタン（削除）
.background-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(2, 136, 209, 0.4);
    transition: all 0.3s;
    z-index: 100;
}

.background-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(2, 136, 209, 0.6);
}

/* 背景設定モーダル */
.background-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.background-modal.active {
    display: flex;
}

.background-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.background-section {
    margin-bottom: 30px;
}

.background-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-input-group {
    margin-bottom: 15px;
}

.image-input-label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.image-input-wrapper {
    display: flex;
    gap: 10px;
}

.image-url-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.image-url-input:focus {
    outline: none;
    border-color: #4FC3F7;
}

.apply-image-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.apply-image-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 136, 209, 0.4);
}

.preset-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.preset-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background-size: cover;
    background-position: center;
}

.preset-image:hover {
    border-color: #4FC3F7;
    transform: scale(1.05);
}

.preset-image.selected {
    border-color: #764ba2;
    box-shadow: 0 3px 10px rgba(118, 75, 162, 0.3);
}

.reset-btn {
    width: 100%;
    padding: 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: #da190b;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal-btn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
} */