@charset "utf-8";

/* --------------------------------------------------
   クイズ全体ラッパー
-------------------------------------------------- */
.wp-make-quiz {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: #fafafa;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: normal !important;
}

/* --------------------------------------------------
   クイズタイトル
-------------------------------------------------- */
.wp-make-quiz-title p {
    font-size: 18px;
    font-weight: normal !important; /* ←太字を確実に解除 */
    margin-bottom: 15px;
    color: #333;
}

/* --------------------------------------------------
   選択肢リスト
-------------------------------------------------- */
.wp-make-quiz-question {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-make-quiz-question-list {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    color: #000; /* 初期文字色は黒 */
    font-weight: normal; /* ← ノーマル化 */
}

/* ホバー時の背景色 */
.wp-make-quiz-question-list:hover {
    background-color: #f0f0f0;
}

/* 選択時に色を反映 */
.wp-make-quiz-question-list.correct.selected {
    border-color: #4caf50; /* 緑色 */
    color: #008000;         /* 文字も緑 */
    font-weight: normal;    /* ← 太字解除 */
}

.wp-make-quiz-question-list.incorrect.selected {
    border-color: #f44336; /* 赤色 */
    color: #ff0000;        /* 文字も赤 */
    font-weight: normal;   /* ← 太字解除 */
}

/* 答え部分は初期非表示 */
.wp-make-quiz-answer {
    display: none;
}

/* --------------------------------------------------
   回答・結果表示
-------------------------------------------------- */
.wp-make-quiz-answer {
    display: none;
    margin-top: 15px;
}

.wp-make-quiz-result {
    font-size: 16px;
    font-weight: normal; /* ← 太字解除 */
    margin-bottom: 10px;
}

.wp-make-quiz-result.correct span {
    color: #4caf50;
}

.wp-make-quiz-result.incorrect span {
    color: #f44336;
}

.wp-make-quiz-result-text {
    font-size: 14px;
    color: #555;
}

/* 解説 */
.wp-make-quiz-commentary {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    padding: 10px;
    background-color: #eef7ff;
    border-left: 3px solid #2196f3;
    border-radius: 3px;
    font-weight: normal; /* ← 太字解除 */
}

/* 「問題に戻る」ボタン */
.wp-make-quiz-continue-wrap {
    margin-top: 10px;
}

.wp-make-quiz-continue {
    display: inline-block;
    cursor: pointer;
    color: #2196f3;
    text-decoration: underline;
    font-weight: normal; /* ← 太字解除 */
}

/* --------------------------------------------------
   Gutenbergブロック・集計ブロック
-------------------------------------------------- */
#child_quiz_score_block {
    font-size: 18px;
    background-color: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 20px;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
    font-weight: normal; /* ← 太字解除 */
}

#child_quiz_score_block_correct,
#child_quiz_score_block_total {
    font-size: 22px;
    color: #0073aa;
    font-weight: normal; /* ← 太字解除 */
}

#child_quiz_score_message {
    margin-top: 12px;
    color: #0073aa;
    font-size: 20px;
    font-weight: normal; /* ← 太字解除 */
}
