/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* ゲームコンテナ */
.game-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 900px;
    width: 100%;
}

/* ゲームヘッダー */
.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 2rem;
}

.game-info {
    display: flex;
    justify-content: space-around;
    background: #f7fafc;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    color: #2d3748;
}

.game-info span {
    font-size: 1.1rem;
}

/* ゲームエリア */
.game-area {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#gameCanvas {
    border: 3px solid #4a5568;
    border-radius: 10px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ゲーム開始画面 */
.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.start-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.start-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #f7fafc;
}

.start-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e2e8f0;
}

.start-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ゲームオーバー画面 */
.game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.game-over-content {
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.game-over-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fc8181;
}

.game-over-content p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.restart-button {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ゲームコントロール */
.game-controls {
    text-align: center;
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    color: #4a5568;
    font-weight: bold;
}

/* ユーティリティクラス */
.hidden {
    display: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .game-container {
        margin: 10px;
        padding: 15px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
        max-width: 400px;
    }
    
    .game-header h1 {
        font-size: 1.5rem;
    }
    
    .start-content h2,
    .game-over-content h2 {
        font-size: 2rem;
    }
} 