:root {
    --primary-color: #d14d72;
    /* 桜色（濃） */
    --secondary-color: #609966;
    /* 抹茶色 */
    --accent-color: #fce4ad;
    /* おぼろ月色 */
    --bg-color: #f9f5eb;
    /* 和紙の色 */
    --text-color: #2c3333;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.02) 1px, transparent 0);
    background-size: 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    width: 100%;
}

.screen {
    display: none;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 4px double #e0c097;
    position: relative;
    overflow: hidden;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/handmade-paper.png');
    opacity: 0.3;
    pointer-events: none;
}

.screen.active {
    display: block;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #a03c58;
    margin: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #a03c58;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #a03c58;
}

.btn.next {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 0 #4a7a4f;
}

.btn.next:hover {
    box-shadow: 0 6px 0 #4a7a4f;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #555;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.question-box {
    background: #fffcf5;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 1.6rem;
    color: #333;
    border-left: 10px solid var(--primary-color);
}

.choices-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.choice-btn {
    padding: 20px;
    font-size: 1.4rem;
    background: white;
    border: 2px solid #e0c097;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.choice-btn:hover {
    background: #fffcf0;
    border-color: var(--primary-color);
}

.choice-btn.correct {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.choice-btn.incorrect {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.feedback-area {
    margin-top: 30px;
    padding: 25px;
    border-radius: 10px;
    background: #fdf6e3;
    text-align: left;
    border: 1px solid #eee8d5;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #eee;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s;
}

footer {
    text-align: center;
    padding: 20px;
    color: #999;
}