/* 基本設定 */
html {
    background-image: url(img/background.png);
    background-size: cover;
}

body {
    height: 100%;
    margin: 0;
    color: #4a2c2a;
    font-family: 'M PLUS Rounded 1c', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 1920x1080のコンテナ */
.container {
    width: 1920px;
    height: 1080px;
    position: relative;
    overflow: hidden;
}

/* シーンの基本スタイル */
.scene {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.scene.active {
    display: flex;
}

/* タイトル画面 */
#title-scene .scene-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 60px;
    border-radius: 30px;
    text-align: center;
    border: 3px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 時刻表示の共通スタイル */
.current-time-display {
    background-color: white;
    padding: 15px 35px;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 2.2rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

#title-scene h1 {
    font-size: 5rem;
    color: #e67e22;
    margin-bottom: 40px;
    font-weight: 800;
    text-shadow: 3px 3px 0 #ffffff, 6px 6px 0 rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group > span {
    margin-right: 10px;
}

input[type="text"],
select,
input[type="number"] {
    font-size: 1.2rem;
    padding: 12px 15px;
    margin-left: 10px;
    border-radius: 15px;
    border: 2px solid #ddd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

input[type="number"] {
    width: 100px;
}

input[type="checkbox"] {
    position: relative;
    top: 2px;
    transform: scale(2);
    margin: 0;
    margin-left: 15px;
}

/* ポップなラジオボタン風ラベル */
.radio-buttons {
    margin-left: 15px;
}

.radio-buttons input[type="radio"] {
    display: none;
}

.radio-buttons label {
    display: inline-block;
    padding: 10px 25px;
    margin: 0 5px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f39c12;
    background-color: #fff;
    border: 2px solid #f39c12;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.radio-buttons input[type="radio"]:checked+label {
    background-color: #f39c12;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button {
    font-size: 1.8rem;
    font-weight: 700;
    padding: 15px 40px;
    cursor: pointer;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 50px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
}

button:hover {
    background-color: #f1c40f;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.error {
    color: #e74c3c;
    height: 20px;
    margin-top: 15px;
}

/* メイン画面 */
#main-scene {
    justify-content: space-between;
}

header,
footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ヘッダー内の要素にポップなスタイルを適用 */
header>div {
    background-color: white;
    padding: 15px 35px;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 2.2rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

/* タイトル画面の右上コンテナ */
.top-right-container {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 小さいボタン用のスタイル */
.small-button {
    font-size: 1.2rem;
    padding: 12px 25px;
}

#question-number {
    color: #e67e22;
}

#countdown-timer {
    color: #e74c3c;
    min-width: 200px;
    text-align: center;
}

footer {
    justify-content: center;
}

main {
    width: 100%;
}

#question-area {
    font-size: 3rem;
    text-align: center;
    font-weight: 700;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

#answer-area {
    width: 100%;
}

#multiple-choice-options {
    list-style-type: none;
    padding: 0;
    font-size: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

#multiple-choice-options li {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
    font-weight: 700;
    transition: all 0.2s ease;
}

.answer-guide {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    font-size: 2.5rem;
    text-align: center;
}

#result-area {
    font-size: 3rem;
    text-align: center;
    font-weight: 700;
    color: #4a2c2a;
    margin-top: 40px;
    padding: 25px 40px;
    min-height: 60px;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* 最終結果画面 */
.final-result-container {
    background-color: rgba(255, 255, 255, 0.9);
    margin: auto;
    padding: 40px 60px;
    border-radius: 30px;
    text-align: center;
    border: 3px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}

.final-result-container h2 {
    font-size: 5rem;
    color: #e67e22;
    margin-bottom: 40px;
    font-weight: 800;
    text-shadow: 3px 3px 0 #ffffff, 6px 6px 0 rgba(0, 0, 0, 0.1);
}

.final-result-list {
    list-style-type: none;
    padding: 0;
    font-size: 2.5rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.final-result-list li {
    background-color: #fff;
    padding: 15px 30px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

.no-winner-message {
    font-size: 2.5rem;
    font-weight: 700;
}

/* モーダルウィンドウ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    position: relative;
    font-size: 1.5rem;
    line-height: 1.8;
    max-height: 80vh;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content h2 {
    font-size: 2.5rem;
    color: #e67e22;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
}

.info-section a, .how-to-play-section a {
    text-decoration: none;
}

.info-section a:hover, .how-to-play-section a:hover {
    text-decoration: underline;
}

.info-section,
.how-to-play-section {
    margin-bottom: 20px;
}

.info-section h3,
.how-to-play-section h3 {
    font-size: 1.8rem;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.close-modal-button {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal-button:hover {
    color: #333;
}