body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h1, h2 {
    text-align: center;
    color: #2c3e50;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: block;
    padding: 14px;
    background-color: #3498db;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}
.btn-secondary:hover {
    background-color: #7f8c8d;
}

.random-option {
    margin: 15px 0;
    padding: 10px;
    background: #edf2f7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

/* クイズ表示画面のスタイル */
.quiz-box { display: none; }
.question-text { font-size: 1.1rem; font-weight: bold; margin-bottom: 20px; }
.option-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
}
.option-btn:hover { background: #edf2f7; }
.correct { background-color: #c6f6d5 !important; border-color: #38a169 !important; }
.incorrect { background-color: #fed7d7 !important; border-color: #e53e3e !important; }

#result-box {
    display: none;
    text-align: center;
}
.rationale-text {
    margin-top: 15px;
    padding: 12px;
    background: #fffaf0;
    border-left: 4px solid #dd6b20;
    display: none;
}

.guide-footer {
    text-align: center;
    padding: 50px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
    clear: both;
    display: block !important;
}

/* 運営テキスト */
.footer-copy {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* リンクを囲むディブ */
.footer-link-item {
    margin-bottom: 10px;
}

/* 🔗 フッターのリンク単体の設定（ここから動きをつけます） */
.footer-link {
    color: #888888;
    font-size: 0.8rem;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
    
    /* 文字色がフワッと変わる時間設定 */
    transition: color 0.25s ease;
}

/* ✨ リンクの下線をアニメーションさせるための下準備（透明な線を作っておく） */
.footer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0); /* 最初は幅をゼロにして隠す */
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #333333; /* ホバー時に出る線の色 */
    transform-origin: bottom right;
    /* 線が伸びる滑らかさの設定 */
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 🚀 カーソルを合わせた（ホバー）時の動き */
.footer-link:hover {
    color: #333333; /* 文字色を濃くしてアクティブ感を出す */
}

.footer-link:hover::after {
    transform: scaleX(1); /* 線を左から右へシャキッと100%伸ばす */
    transform-origin: bottom left;
}

.back-button-container {
    text-align: center;
    margin-top: 50px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background 0.2s;
}
