/* 体験版(お試し問題)専用CSS。
   本物のyokaro-ibuki(exam-addon-dev/assets/css/quiz.css)から、問題の見た目に
   関わるクラス(.ead-question-text/.ead-choices/.ead-choice-btn等)をそのまま
   移植している(2026-08-11新規)。ロジック(Ajax・タイマー・音声等)は持たず、
   見た目だけを本物と揃えるのが目的。クラス名もあえて本物と同じにしてある。 */

.pl-taiken {
    max-width: 720px;
    margin: 2em auto;
}

.pl-taiken-intro {
    text-align: center;
    margin-bottom: 24px;
}

.pl-taiken-mascot {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

/* 解答・正解数は最後にまとめて表示するので、通常の静的な箱でよい
   (2026-08-11、上部のsticky表示から末尾表示に変更)。 */
.pl-taiken-score {
    background: #2f2a20;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    margin: 24px 0;
}

.pl-taiken-timer-row {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #c9a24b;
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.pl-taiken-timer {
    color: #2f2a20;
    font-weight: bold;
    font-size: 0.9em;
}

.ead-tick-toggle {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1;
    opacity: 0.5;
    filter: grayscale(1);
}

.ead-tick-toggle.is-active {
    opacity: 1;
    filter: none;
    border-color: #2f2a20;
    background: #fff6e8;
}

.ead-quiz-box {
    position: relative;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.ead-question-number-badge {
    display: inline-block;
    font-size: 0.8em;
    color: #898781;
    margin-bottom: 8px;
}

.ead-question-text {
    font-weight: bold;
    font-size: 1.1em;
    white-space: pre-wrap;
    margin-bottom: 14px;
}

.ead-choices {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #e3e6ea;
    padding-top: 16px;
}

.ead-choice-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: block;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    text-align: center;
    line-height: 44px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 1.4em;
    font-weight: bold;
    font-family: inherit;
}

.ead-choice-btn:hover:not(:disabled) {
    background: #f2f6ff;
    border-color: #7aa5ff;
}

.ead-choice-btn:disabled {
    cursor: default;
}

.ead-choice-btn.is-correct {
    background: #2eaa5c;
    border-color: #2eaa5c;
    color: #fff;
}

.ead-choice-btn.is-wrong {
    background: #d9534f;
    border-color: #d9534f;
    color: #fff;
}

.ead-explanation {
    margin-top: 14px;
    border-top: 1px solid #e3e6ea;
    padding-top: 14px;
    display: none;
}

.ead-explanation-toggle {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: #5c5c5c;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    font-family: inherit;
    text-align: left;
    color: #fff;
}

.ead-explanation-toggle:hover {
    background: #6a6a6a;
}

.ead-explanation-arrow {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.15s;
}

.ead-explanation.is-open .ead-explanation-arrow {
    transform: rotate(90deg);
}

.ead-explanation-body {
    padding: 10px 0 0;
    display: none;
}

.ead-explanation.is-open .ead-explanation-body {
    display: block;
}

.ead-explanation-text {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-all;
}

.ead-explanation-text img {
    max-width: 100%;
    height: auto;
}

.pl-taiken-cta {
    text-align: center;
    margin-top: 32px;
    padding: 20px 24px;
    background: #f5f3ed;
    border-radius: 12px;
}

.pl-taiken-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: left;
    width: fit-content;
    margin: 14px auto;
}

.pl-taiken-cta-mascot {
    width: 88px;
    height: auto;
    flex-shrink: 0;
}

.pl-taiken-cta p {
    margin: 0;
    line-height: 1.5;
}

.pl-taiken-cta-list {
    margin: 0;
    padding: 0 0 0 20px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

/* .pl-page-content li(サイト共通CSS)がmargin-bottom:10pxを持っており、
   このリストにも効いて行間が間延びしていた。ここだけ詰め直す(2026-08-11)。 */
.pl-taiken-cta-list li {
    margin: 0 0 4px;
}
.pl-taiken-cta-list li:last-child {
    margin-bottom: 0;
}
