/* 全体のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* タイトル画面 */
#title-screen {
    text-align: center;
    margin-top: 30px;
}

#title-screen img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#start-button {
    font-size: 2rem;
    padding: 20px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: bold;
    min-width: 200px;
}

#start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

#start-button:active {
    transform: translateY(-1px);
}

/* ゲーム画面 */
#game-screen {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#intro-text, #room-label {
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
    color: #555;
    line-height: 1.6;
}

/* 画像コンテナ */
#image-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

#room-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#floor-plan {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

/* ボタン群 */
#buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.button {
    font-size: 1.2rem;
    padding: 18px 25px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.button:active {
    transform: translateY(0);
}

/* インベントリ */
#inventory {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
}

#inventory h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

#inventory-list {
    list-style-type: none;
    padding: 0;
}

#inventory-list li {
    padding: 10px 15px;
    margin: 5px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #555;
}

/* スマホ対応 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    #game-screen {
        padding: 20px;
    }
    
    #buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .button {
        font-size: 1.1rem;
        padding: 20px 20px;
        min-height: 70px;
    }
    
    #start-button {
        font-size: 1.8rem;
        padding: 25px 40px;
        min-width: 180px;
    }
    
    #intro-text, #room-label {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    #image-container {
        margin-bottom: 30px;
    }
    
    #room-image {
        max-width: 100%;
    }
    
    #floor-plan {
        width: 100px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    #game-screen {
        padding: 15px;
    }
    
    .button {
        font-size: 1rem;
        padding: 18px 15px;
        min-height: 65px;
    }
    
    #start-button {
        font-size: 1.6rem;
        padding: 22px 35px;
        min-width: 160px;
    }
}
