:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.ad {
    margin: 0px;
    padding: 5px;
    width: 100%;
    text-align: center;
}

body {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding-top: 50px;
    color: #2d3748;
}

.main-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
}

.quiz-card {
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-header-custom {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 30px;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e2e8f0;
    margin-top: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.choice-btn {
    width: 100%;
    text-align: left;
    padding: 16px 24px;
    margin-bottom: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: white;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.choice-btn:hover:not(:disabled) {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.choice-btn.selected {
    border-color: #667eea;
    background-color: #ebf4ff;
    color: #5a67d8;
}

.choice-btn.correct {
    border-color: #48bb78;
    background-color: #f0fff4;
    color: #2f855a;
}

.choice-btn.incorrect {
    border-color: #f56565;
    background-color: #fff5f5;
    color: #c53030;
}

.feedback-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    border-left: 5px solid #667eea;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.feedback-section.correct {
    border-left-color: #48bb78;
    background-color: #f0fff4;
}

.feedback-section.incorrect {
    border-left-color: #f56565;
    background-color: #fff5f5;
}

.hint-box {
    font-size: 0.9rem;
    color: #718096;
    background: #edf2f7;
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
    display: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#667eea var(--score-percent), #e2e8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
}

.score-circle::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: white;
}

.score-text {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
}

footer {
    background-color: #2d3748;
    padding: 20px 0;
    margin-top: 40px;
}

footer small {
    color: #cbd5e0;
}

.footer-category-title {
    color: #cbd5e0;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-divider {
    border-color: #4a5568;
}

.navbar-brand {
    color: #4a5568 !important;
}

.start-screen-title {
    color: #4a5568;
}

.score-display {
    color: #667eea;
    font-weight: bold;
}

.mission-icon-container {
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.mission-icon-container:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mission-text {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.mission-icon-inactive {
    color: #cbd5e0 !important;
}

/* カテゴリカードスタイル */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    border-color: #667eea;
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.25);
}

.category-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: white;
}

.category-card-icon.english {
    background: linear-gradient(135deg, #48bb78, #276749);
}

.category-card h3 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.category-card p {
    color: #718096;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.category-card-badge {
    display: inline-block;
    background: #ebf4ff;
    color: #5a67d8;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.category-card-badge.green {
    background: #f0fff4;
    color: #276749;
}

.sub-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.sub-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.sub-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.sub-card-icon.purple {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.sub-card-icon.green {
    background: linear-gradient(135deg, #48bb78, #276749);
}

.sub-card-icon.blue {
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
}

.sub-card-icon.orange {
    background: linear-gradient(135deg, #ed8936, #c05621);
}

.sub-card-body h5 {
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.sub-card-body p {
    font-size: 0.82rem;
    color: #718096;
    margin: 0;
}

.back-btn {
    background: none;
    border: none;
    color: #718096;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #4a5568;
}

/* ========== LP セクション ========== */

.lp-section {
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
}

.lp-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* 特徴カード */
.lp-feature-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.lp-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.lp-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.lp-feature-card p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* おすすめ対象 */
.lp-recommend-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    font-size: 0.88rem;
    color: #4a5568;
    display: flex;
    align-items: center;
}

/* 使い方ステップ */
.lp-step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.lp-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.4rem;
}

/* デイリーミッション */
.lp-mission-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    color: white;
}

.lp-mission-section .lp-section-title {
    color: white;
}

.lp-mission-section p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.7;
}

.lp-mission-icon {
    font-size: 2rem;
    color: #fcd34d;
}

/* カットインアニメーション */
#cutin-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    cursor: default;
    pointer-events: none;
    display: none;
    align-items: center;
    justify-content: center;
}

#cutin-inner {
    width: 100%;
    position: relative;
    transform: translateX(100vw);
    transition: transform 0.2s ease-out;
}

#cutin-inner.centered {
    transform: translateX(0);
}

#cutin-container #cutin1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

#cutin-container #cutin2 {
    display: block;
    width: 100%;
    height: auto;
    visibility: hidden;
}