@media (max-width: 768px) {
    .cheat-container {
        text-align: center; /* スマホでは中央寄せに */
    }
    .cheat-button {
        width: 90%; /* 横幅を広げてタップしやすく */
        font-size: 18px; /* 少し文字を大きく */
    }
}

.cheat-button {
    background: linear-gradient(145deg, #dcdcdc, #c0c0c0); /* ライトシルバー */
    color: #333;
    border: none;
    padding: 12px 30px;
    margin: 20px 0;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
    transition: all 0.3s ease;
}

.cheat-button:hover {
    background: linear-gradient(145deg, #c0c0c0, #dcdcdc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.4);
}

.cheat-container {
    text-align: right; /* 右寄せ配置 */
}

/* GTP追加変更 */
.quiz-video {
    position: relative !important;
}

/* クイズ用スタイル */
.quiz-question {
    font-size: 15px;/* 18px →15px */
    font-weight: bold;
    margin: 15px 0;
    color: #333;
    padding: 15px;
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    border-left: 5px solid #2196f3;
    line-height: 1.6;
}

.quiz-option {
    margin: 12px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.quiz-option.correct {
    background: #d4edda;
    border-color: #c3e6cb;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
}

.quiz-option.incorrect {
    background: #f8d7da;
    border-color: #f5c6cb;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

.option-content {
    flex-grow: 1;
    margin-right: 15px;
}

.option-text-container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.option-text {
    flex-grow: 1;
    font-size: 15px;/* 14px →15px */
    font-weight: 500;
    line-height: 1.5;
    min-width: 0; /* 長文折り返し用 */
}

.option-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
/*    border: 2px solid #ddd; */
/*    border-radius: 6px; */
    background: white;
    flex-shrink: 0;
}

.aqua-button {
    background: linear-gradient(145deg, #6ad2ff, #1e90ff);
    border: none;
    border-radius: 20px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 80px;
    flex-shrink: 0;
    margin-top: 5px;
}

.aqua-button:hover {
    background: linear-gradient(145deg, #1e90ff, #6ad2ff);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
    transform: translateY(-2px);
}

#quiz-result {
    margin-top: 30px;
    text-align: center;
    padding: 25px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.result-message {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
}

.result-correct {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.result-incorrect {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* 256px x 256px サイズ設定 - 背景白 */
.quiz-video {
    width: 256px;
    height: 256px;
    max-width: 100%;
    margin: 15px 0;
 /*   border-radius: 10px; */
/*    box-shadow: 0 4px 15px rgba(0,0,0,0.2); */
    background: white;
    border: 2px solid #ddd;
}
// ビデオ・コントロール
.video-controls {
//   margin: 15px 0; deepseek
//  GTP変更　
    margin-bottom: 35px;
}

.control-button {
    background: linear-gradient(145deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 8px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.control-button:hover {
    background: linear-gradient(145deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.stats-button {
    background: linear-gradient(145deg, #ff6b6b, #ff8787);
    color: white;
    border: none;
    padding: 12px 30px;
    margin: 20px 0;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.stats-button:hover {
    background: linear-gradient(145deg, #ff8787, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.stats-container {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-item {
    margin: 15px 0;
}

.stat-bar {
    background: #e9ecef;
    width: 100%;
    max-width: 400px;
    height: 20px;
    border-radius: 10px;
    margin: 5px auto;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.stat-fill {
    height: 100%;
    border-radius: 10px;
    background: transparent;
    background-image: url('https://jidoshaseibishi.com/js/navy.gif');
    transition: width 1s ease;
}

.stat-info {
    font-size: 16px;
    margin-bottom: 3px;
    font-weight: bold;
    color: #495057;
}

/* サムネイルと動画を同じコンテナで完全一致 */
.video-container {
    position: relative;
    width: 256px;
    height: 256px;
    margin: 0 auto; /* 中央寄せ */
    overflow: hidden; /* はみ出し防止 */
}
/*        copilot              */
.video-thumbnail,
.quiz-video {
    width: 256px;
    height: 256px;
    border: none;        /* 枠線を消す */
    outline: none;       /* フォーカス時の枠を消す */
    margin: 0;           /* 余白を消す */
    padding: 0;          /* 内側余白を消す */
    background: transparent; /* 背景を透明に */
}



.video-thumbnail { z-index: 2; }
.quiz-video { z-index: 1; display: none; }

.video-playing .video-thumbnail { display: none; }
.video-playing .quiz-video { display: block; }



/* コントロールボタンはコンテナの下に */
.video-controls {
    margin-top: 20px; /* 間隔調整 */
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .option-text-container {
        flex-direction: column;
    }
    
    .option-image {
        align-self: center;
    }
    
    .quiz-option {
        flex-direction: column;
        align-items: stretch;
    }
    
    .aqua-button {
        align-self: flex-end;
        margin-top: 10px;
    }
}