body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #252525;
    color: #333;
    overflow-x: hidden;
}

/* 背景のノイズ演出 */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, #000000 4px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 9999;
}

/* 上部の流れる文字 */
.marquee {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}
.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0 #000;
}
@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* クイズ正解・不正解アニメーション */
.correct-anim {
    animation: pulse-green 0.5s ease-in-out;
    background-color: #d1fae5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}
.incorrect-anim {
    animation: shake-red 0.5s ease-in-out;
    background-color: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}

@keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes shake-red {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* タイトル画面のフェードイン */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

/* 点滅演出 */
.blink {
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
    50% { opacity: 0; }
}

/* 進捗バーのパルスエフェクト */
.bg-blue-500 {
    animation: progress-pulse 2s ease-in-out infinite;
}
@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
/* ボタンのフォーカススタイルを無効化 */
button:focus {
    outline: none !important;
    box-shadow: none !important;
}
button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* モバイルのタップハイライトを無効化 */
button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}
button:active {
    background-color: white !important;
    border-color: rgb(209, 213, 219) !important;
    outline: none !important;
}
