/* ==========================================================================
   国民民主党 入門ガイド - Beginners Section
   ========================================================================== */

.dpfp-beginners-section {
    padding: 60px 20px;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
}

.dpfp-beginners-section .section-header {
    margin-bottom: 40px;
    text-align: center;
}

.dpfp-beginners-section .dpfp-section-title {
    font-size: 1.8rem;
    color: #004098;
    font-weight: bold;
}

.dpfp-beginners-section .dpfp-section-title i {
    color: #3cb371;
}

.dpfp-beginners-section .section-desc {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

/* Card Grid - CSS Grid for responsive */
.beginners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card */
.beginner-card {
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.beginner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.beginner-card:hover .beginner-card-arrow {
    background: var(--dpfp-blue, #004098);
    color: #fff;
}

/* Card Icon Area */
.beginner-card-icon {
    color: #fff;
    font-size: 2rem;
    padding: 25px;
    text-align: center;
}

.beginner-card-icon.policy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.beginner-card-icon.people {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.beginner-card-icon.stance {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
/* C案用 追加カラー */
.beginner-card-icon.about {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}
.beginner-card-icon.action {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.beginner-card-icon.simulator {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Card Content */
.beginner-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.beginner-card-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.beginner-card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* C案: Card Tags */
.beginner-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    justify-content: center;
}
.bc-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #004098;
    background: #eef3fb;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Card Arrow */
.beginner-card-arrow {
    background: #f0f4f8;
    color: #004098;
    padding: 12px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    transition: all 0.3s ease;
}

/* ==========================================================================
   B案: ストーリー型CTA
   ========================================================================== */

.dpfp-beginners-story {
    padding: 60px 20px;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
}

/* Main CTA Card */
.story-cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #003884 0%, #0052b4 60%, #1a6edb 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    min-height: 320px;
    box-shadow: 0 8px 32px rgba(0, 56, 132, 0.2);
}

/* Left: Timeline visual */
.story-cta-visual {
    flex: 0 0 280px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.story-timeline-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.story-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.story-step-line {
    width: 2px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    margin-left: 15px;
}

/* Right: Content */
.story-cta-content {
    flex: 1;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 14px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 16px;
}

.story-cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 14px;
}

.story-cta-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 24px;
}

.story-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #003884;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.story-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f0f4ff;
}

/* Quick Links (below CTA) */
.story-quick-links {
    max-width: 900px;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.story-quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.story-quick-link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #003884;
}

.story-quick-link i {
    font-size: 1.1rem;
    color: #003884;
    width: 20px;
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* SP only line break */
.sp-only { display: none; }

@media (max-width: 768px) {
    .sp-only { display: inline; }

    /* B案 responsive */
    .story-cta-card {
        flex-direction: column;
        min-height: auto;
    }

    .story-cta-visual {
        flex: none;
        padding: 24px 20px;
    }

    .story-timeline-steps {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .story-step-line {
        width: 20px;
        height: 2px;
        margin-left: 0;
    }

    .story-step {
        flex-direction: column;
        gap: 4px;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .story-cta-content {
        padding: 30px 24px;
    }

    .story-cta-title {
        font-size: 1.4rem;
    }

    .story-quick-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    /* C案 + 既存 responsive */
    .dpfp-beginners-section {
        padding: 40px 15px;
    }

    .dpfp-beginners-section .dpfp-section-title {
        font-size: 1.4rem;
    }

    .beginners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .beginner-card-icon {
        font-size: 1.5rem;
        padding: 20px;
    }

    .beginner-card-content {
        padding: 20px;
    }

    .beginner-card-content h3 {
        font-size: 1.1rem;
    }

    /* B案 responsive */
    .dpfp-beginners-story {
        padding: 40px 15px;
    }
}
