/* ============================================
   listening.allfrom0.top 共通スタイル
   eisaku.allfrom0.top と同系統(2000年代Yahoo!風・機能美)の配色に統一。
   ============================================ */

:root {
    --accent: #2c4a7c;
    --accent-border: #1e3a5f;
    --accent-bg: #e7edf5;
    --accent-bg-border: #a9c0da;
    --text-primary: #000000;
    --text-secondary: #666666;
    --success: #2e7d32;
    --success-bg: #eef6ec;
    --error: #c0392b;
    --error-bg: #fdeeee;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'MS PGothic', Arial, sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 15px;
}

a { color: #0000ee; text-decoration: none; }
a:visited { color: #551a8b; }
a:hover { text-decoration: underline; }

.container { max-width: 720px; margin: 0 auto; padding: 0 12px; }

/* ヘッダー・ナビ（eisakuと同じ構造） */
.ysite-header {
    width: 100%;
    border-collapse: collapse;
    background: var(--accent);
}
.ysite-header td { padding: 6px 10px; }
.ysite-logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    font-family: Arial, sans-serif;
}
.ysite-logo span { color: #ffcc00; }

.ysite-nav {
    width: 100%;
    border-collapse: collapse;
    background: var(--accent-bg);
    border-bottom: 1px solid var(--accent-bg-border);
    margin-bottom: 14px;
}
.ysite-nav td { padding: 6px 10px; font-size: 14px; }
.ysite-nav a.current { color: var(--accent); font-weight: bold; }

/* カード */
.card {
    background: #fff;
    border: 1px solid #ccc;
    padding: 14px;
    margin-bottom: 12px;
}
.card-head {
    font-weight: bold;
    color: #fff;
    background: var(--accent);
    padding: 5px 10px;
    margin: -14px -14px 12px;
    font-size: 14px;
}

/* ボタン */
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    padding: 7px 16px;
    border: 1px solid var(--accent-border);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
.btn:hover { background: var(--accent-border); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-outline {
    background: #fafafa;
    color: #333;
    border: 1px solid #999;
}
.btn-outline:hover { background: #eee; }

/* 選択肢 */
.choice-list { list-style: none; margin: 0; padding: 0; }
.choice-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}
.choice-item:hover { background: var(--accent-bg); border-color: var(--accent-bg-border); }
.choice-item.selected { border-color: var(--accent); background: var(--accent-bg); }
.choice-item.correct { border-color: var(--success); background: var(--success-bg); }
.choice-item.incorrect { border-color: var(--error); background: var(--error-bg); }
.choice-item:disabled { cursor: default; }

/* レベルタグ */
.level-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 2px;
    color: #fff;
}
.level-easy { background: #4a8f3c; }
.level-standard { background: #2c4a7c; }
.level-hard { background: #a3401f; }

/* 音声プレイヤー行 */
.audio-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.audio-row audio { flex: 1; min-width: 0; }

.result-box {
    padding: 12px;
    margin-top: 12px;
    border: 1px solid #ccc;
}
.result-box.correct { background: var(--success-bg); border-color: var(--success); }
.result-box.incorrect { background: var(--error-bg); border-color: var(--error); }

.footer {
    border-top: 1px solid #ccc;
    padding: 8px 10px;
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 20px;
}

.problem-list-item {
    display: block;
    padding: 10px 12px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    background: #fff;
}
.problem-list-item:hover { background: var(--accent-bg); text-decoration: none; }

label.field-label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 4px; }
input[type=text], input[type=number], textarea, select {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    padding: 6px 8px;
    border: 1px solid #999;
    margin-bottom: 10px;
}
