.quiz-app {
    max-width: 500px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* ヘッダー・進捗バー */
.quiz-header { padding: 20px; background: #fff; }
.progress-container {
    height: 8px; background: #eee; border-radius: 4px; margin: 10px 0;
}
.progress-bar {
    width: 0%; height: 100%; background: #27ae60; border-radius: 4px; transition: 0.3s;
}

/* クイズカード */
.quiz-main { flex: 1; padding: 20px; display: flex; align-items: center; }
.quiz-card {
    background: #fff; width: 100%; padding: 30px; border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); min-height: 300px;
    position: relative; text-align: center;
}
.category-tag {
    display: inline-block; padding: 4px 12px; background: #eef2f7;
    border-radius: 20px; font-size: 0.8rem; margin-bottom: 20px;
}
.question-text { font-size: 1.2rem; font-weight: bold; line-height: 1.6; }

/* ◯×ボタン */
.quiz-footer {
    display: flex; gap: 20px; padding: 20px; background: #fff;
}
.choice-btn {
    flex: 1; height: 100px; font-size: 2.5rem; border: none;
    border-radius: 15px; color: white; cursor: pointer;
}
.btn-yes { background: #3498db; box-shadow: 0 6px 0 #2980b9; }
.btn-no { background: #e74c3c; box-shadow: 0 6px 0 #c0392b; }
.choice-btn:active { transform: translateY(4px); box-shadow: none; }

.hidden { display: none; }

.menu-grid {
    display: grid;
    grid-template-columns: 1fr; /* スマホなら1列、PCなら2列にしてもOK */
    gap: 15px;
    padding: 20px;
}

.menu-grid button {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: #f0f0f0;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 0 #ccc;
}

.menu-grid button:active {
    transform: translateY(3px);
    box-shadow: none;
}

.hidden { display: none !important; }

/* style.css に追記 */
.hidden {
    display: none !important;
}

/* ヘッダーの中身も最初は隠す場合 */
#question-number, .progress-container {
    visibility: hidden; /* クイズ開始前は見えないようにする */
}

/* クイズ開始後に visibility を visible に戻す処理を JS に追加してもOK */

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0 10px;
}

.footer-links span {
    color: #bbb;
    font-size: 0.75rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* クイズ中はフッターリンクを消したい場合（集中モード） */
body.quiz-active .site-footer {
    display: none;
}

/* style.css の一番下に追加 */
.legal-footer-simple {
    text-align: center;
    padding: 20px 0;
    font-size: 11px; /* かなり小さく */
    letter-spacing: 0.05em; /* 文字の間隔を少し広げて読みやすく */
}

.legal-footer-simple a {
    color: #999; /* 薄いグレー */
    text-decoration: none;
    margin-right: 15px;
}

.legal-footer-simple span {
    color: #ccc; /* さらに薄いグレー */
}

/* クイズ中は文字を完全に消す（集中モード） */
.quiz-active .legal-footer-simple {
    display: none;
}

/* ==========================================
   フッターエリアの装飾とリッチな動き
   ========================================== */
.guide-footer {
    text-align: center;
    padding: 50px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

/* 運営テキスト */
.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;
}