* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: black;
}

.container {
    background: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    color: black;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 700;
}

.subtitle {
    color: #4a90e2;
    margin-bottom: 30px;
    font-size: 1.2em;
    line-height: 1.6;
}

.video-container {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
}

blockquote {
    width: 100%;
    max-width: 605px;
    min-height: 400px;
    margin: 0 auto;
}

.start-btn, .choice-btn, .next-btn {
    background: black;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.start-btn:hover, .choice-btn:hover, .next-btn:hover {
    background: #333;
}

.choice-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px 20px;
    text-align: left;
    font-size: 1em;
}

.choice-btn.selected {
    background: #ddd;
    color: black;
}

.game-instructions {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #ddd;
}

.game-instructions h3 {
    color: black;
    margin-bottom: 15px;
}

.game-instructions ul {
    color: #4a90e2;
    line-height: 1.8;
    padding-left: 20px;
}

.game-phase {
    display: none;
}

.game-phase.active {
    display: block;
}

.question {
    margin: 30px 0;
    text-align: left;
}

.question h3 {
    color: black;
    margin-bottom: 15px;
    font-size: 1.3em;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: left;
    border: 1px solid #ddd;
}

.result-item h4 {
    color: black;
    margin-bottom: 8px;
}

.result-item .user-answer {
    color: #4a90e2;
    font-weight: 500;
}

.result-item .correct-answer {
    color: black;
    font-weight: 700;
}

.result-item.correct {
    border-left: 4px solid black;
    background: #f8f9fa;
}

.result-item.incorrect {
    border-left: 4px solid #ddd;
    background: #fafafa;
}

.score {
    font-size: 1.5em;
    font-weight: 700;
    color: black;
    margin: 20px 0;
}

.hidden {
    display: none;
}

#video-phase {
    height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#video-phase.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
}

#video-phase .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: none;
    border: none;
    box-shadow: none;
}

#video-phase .video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

#video-phase video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    margin: 20px 0 10px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4a90e2;
    width: 20%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #4a90e2;
    font-weight: 600;
    font-size: 1.1em;
}

.question-card {
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.question-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.question-card h3 {
    color: black;
    font-size: 1.5em;
    margin-bottom: 25px;
    background: none;
    padding: 0;
    border: none;
}

.choices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.game-choice {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    text-align: left;
    min-height: 60px;
}

.game-choice:hover {
    border-color: #4a90e2;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.game-choice.selected {
    border-color: #4a90e2;
    background: #4a90e2;
    color: white;
    transform: scale(1.02);
}

.game-choice.selected .choice-text {
    color: white;
}

.choice-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: black;
    font-weight: 700;
    margin-right: 15px;
    font-size: 0.9em;
}

.game-choice.selected .choice-letter {
    background: white;
    color: #4a90e2;
}

.choice-text {
    flex: 1;
    font-weight: 500;
    color: black;
}

.game-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    width: 100%;
}

.next-question-btn {
    background: #4a90e2;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.next-question-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    blockquote {
        min-height: 300px;
    }
    
    .start-btn, .choice-btn, .next-btn, .next-question-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
    
    .choices-grid {
        grid-template-columns: 1fr;
    }
    
    .game-choice {
        min-height: 50px;
        padding: 12px 15px;
    }
    
    .choice-letter {
        width: 25px;
        height: 25px;
        font-size: 0.8em;
        margin-right: 10px;
    }
    
    .question-icon {
        font-size: 2.5em;
    }
}