/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ヘッダー */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 3px solid #667eea;
}

header h1 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

header h2 {
    font-size: 1.2em;
    color: #666;
    font-weight: normal;
}

/* ゲーム情報表示 */
.game-info {
    text-align: center;
    margin-bottom: 30px;
}

.score-display {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #667eea;
    display: inline-block;
    font-size: 1.2em;
}

.score-label {
    color: #666;
    margin-right: 10px;
}

.score-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    margin: 0 5px;
}

.score-target {
    color: #999;
}

/* 問題表示エリア */
.question-area {
    text-align: center;
    margin-bottom: 30px;
}

.word-display {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.word-label {
    display: block;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
}

.word {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.1em;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 選択肢エリア */
.choices-area {
    margin-bottom: 30px;
}

.choices-instruction {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.choices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.choice-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.choice-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.choice-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.choice-btn.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.choice-btn.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.choice-label {
    font-weight: bold;
    margin-right: 15px;
    color: #667eea;
    font-size: 1.1em;
    flex-shrink: 0;
}

.choice-text {
    flex: 1;
}

/* 結果表示エリア */
.result-area {
    text-align: center;
    margin-bottom: 30px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-message {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 15px 30px;
    border-radius: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-message.correct {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.result-message.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.result-message.clear {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
    font-size: 1.5em;
}

/* ボタン共通スタイル */
.next-btn, .start-btn, .restart-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.next-btn:hover, .start-btn:hover, .restart-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.control-area {
    text-align: center;
    margin-bottom: 20px;
}

.restart-btn {
    background: #6c757d;
}

.restart-btn:hover {
    background: #5a6268;
}

/* フッター */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #e9ecef;
    color: #666;
    font-size: 1.1em;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .word {
        font-size: 2.2em;
    }
    
    .choice-btn {
        padding: 15px;
        font-size: 0.95em;
    }
    
    .score-display {
        font-size: 1em;
        padding: 12px 15px;
    }
}
