body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    background-color: #e0f7fa;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-align: center;
}

.hidden { display: none !important; }
h1 { color: #00796b; font-size: 28px; }
h2 { color: #424242; font-size: 22px; margin-bottom: 20px; line-height: 1.5; }

/* ボタン類 */
.main-btn {
    background-color: #ff9800; color: white; font-size: 22px; font-weight: bold;
    border: none; padding: 15px 40px; border-radius: 30px; cursor: pointer;
    box-shadow: 0 5px 0 #e65100; transition: 0.1s; margin-top: 20px;
}
.main-btn:active { transform: translateY(5px); box-shadow: none; }

/* プログレスバー */
.progress-container { margin-bottom: 20px; font-weight: bold; color: #00796b; font-size: 18px; }
.progress-bar-bg { width: 100%; height: 15px; background: #eee; border-radius: 10px; margin-top: 10px; overflow: hidden; }
#progress-bar { height: 100%; background: #4caf50; width: 0%; transition: width 0.3s ease; }

/* 選択肢 */
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.option-btn {
    background-color: #fff; border: 3px solid #2196f3; color: #1976d2; font-size: 20px; font-weight: bold;
    padding: 15px; border-radius: 12px; cursor: pointer; transition: 0.2s;
}
.option-btn:hover { background-color: #e3f2fd; }
.option-btn:active { background-color: #bbdefb; }
.option-btn.correct-anim { background-color: #4caf50 !important; color: white !important; border-color: #2e7d32 !important; }
.option-btn.wrong-anim { background-color: #f44336 !important; color: white !important; border-color: #c62828 !important; }

/* ヒント */
.hint-btn { background: #ffe082; border: none; padding: 10px 20px; border-radius: 20px; font-weight: bold; font-size: 16px; cursor: pointer; margin-bottom: 10px; }
.hint-btn:hover { background: #ffca28; }
.hint-box { background: #fffde7; border: 2px dashed #fbc02d; padding: 15px; border-radius: 10px; font-size: 18px; font-weight: bold; color: #f57f17; margin-bottom: 20px; animation: fadeIn 0.3s; }

/* 結果画面 */
.score-box { background: #e8f5e9; border-radius: 15px; padding: 20px; margin: 20px 0; border: 3px solid #4caf50; }
.score-text { font-size: 40px; color: #2e7d32; margin: 10px 0; }
.feedback-box { text-align: left; background: #f5f5f5; padding: 20px; border-radius: 15px; margin-bottom: 20px; }
.category-list { list-style: none; padding: 0; font-size: 18px; line-height: 2; font-weight: bold; }
.advice-box { background: #e3f2fd; padding: 15px; border-radius: 10px; margin-top: 15px; border-left: 5px solid #2196f3; font-weight: bold; line-height: 1.6; }

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

/* スマホ対応 */
@media (max-width: 600px) {
    .options-grid { grid-template-columns: 1fr; }
}