/* ==========================================================================
   国民民主党 入門ガイド — About 3min Page
   ========================================================================== */

/* --- Hero --- */
.a3m-hero {
    background: linear-gradient(135deg, #003884 0%, #0052b4 60%, #1a6edb 100%);
    color: #fff;
    text-align: center;
    padding: 70px 20px 50px;
}

.a3m-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.a3m-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 16px;
}

.a3m-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Steps Navigation */
.a3m-steps-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.a3m-step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.a3m-step-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.a3m-step-link span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- Global Reset for SWELL theme interference --- */
.about3min-page h2,
.about3min-page h3,
.about3min-page p {
    margin: 0;
    padding: 0;
    border: none;
    letter-spacing: normal;
}

/* --- Sections --- */
.a3m-section {
    padding: 60px 20px;
}

.a3m-section-alt {
    background: #f8f9fb;
}

/* Step Header */
.about3min-page .a3m-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.about3min-page .a3m-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dpfp-blue, #003884);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.about3min-page .a3m-step-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #222;
    margin: 0;
}

.about3min-page .a3m-step-lead {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 30px;
    padding-left: 54px;
}

.about3min-page .a3m-step-body {
    margin-top: 24px;
}

/* --- Step 1: Identity Card --- */
.about3min-page .a3m-identity-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 32px;
    max-width: 600px;
}

.about3min-page .a3m-id-row {
    display: flex;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.about3min-page .a3m-id-row:last-child {
    border-bottom: none;
}

.about3min-page .a3m-id-label {
    flex: 0 0 120px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
}

.about3min-page .a3m-id-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* Concept Cards */
.about3min-page .a3m-concept-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.about3min-page .a3m-concept {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.about3min-page .a3m-concept-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef3fb;
    color: var(--dpfp-blue, #003884);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 14px;
}

.about3min-page .a3m-concept h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.about3min-page .a3m-concept p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Approach Cards (horizontal, compact) */
.about3min-page .a3m-approach-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.about3min-page .a3m-approach {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.about3min-page .a3m-approach-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef3fb;
    color: var(--dpfp-blue, #003884);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.about3min-page .a3m-approach-body {
    flex: 1;
    min-width: 0;
}

.about3min-page .a3m-approach-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 2px;
}

.about3min-page .a3m-approach-body p {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* --- Step 2: Achievements --- */
.about3min-page .a3m-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.about3min-page .a3m-achievement {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #10b981;
}

.about3min-page .a3m-achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #065f46;
    background: #d1fae5;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.about3min-page .a3m-achievement h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
    padding: 0;
    border: none;
    letter-spacing: normal;
}

.about3min-page .a3m-achievement p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.about3min-page .a3m-achievement p strong {
    color: #333;
    font-weight: 700;
}

/* --- Step 2: Policy Pillars --- */
.about3min-page .a3m-pillars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.about3min-page .a3m-pillar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.about3min-page .a3m-pillar-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--dpfp-blue, #003884);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 1;
}

.about3min-page .a3m-pillar-body {
    flex: 1;
    min-width: 0;
}

.about3min-page .a3m-pillar-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
    padding: 0;
    border: none;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about3min-page .a3m-pillar-body h3 i {
    color: var(--dpfp-blue, #003884);
    font-size: 1rem;
    flex-shrink: 0;
}

.about3min-page .a3m-pillar-body p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.about3min-page .a3m-policy-more {
    text-align: center;
}

/* --- Step 3: Comparison Table (legacy, kept for reference) --- */
.a3m-compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
}

.a3m-compare-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.a3m-compare-table th,
.a3m-compare-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.a3m-compare-table thead th {
    background: #f5f7fa;
    font-weight: 700;
    color: #555;
    font-size: 0.82rem;
}

.a3m-party-hl {
    background: #eef3fb !important;
    position: relative;
}

.a3m-compare-table thead th.a3m-party-hl {
    color: var(--dpfp-blue, #003884);
    font-weight: 800;
}

.a3m-topic {
    text-align: left !important;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.a3m-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.a3m-positive {
    background: #d1fae5;
    color: #065f46;
}

.a3m-neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.a3m-other {
    background: #e0f2fe;
    color: #0369a1;
}

.a3m-negative {
    background: #fee2e2;
    color: #991b1b;
}

.a3m-source {
    font-size: 0.78rem;
    color: #999;
    text-align: right;
}

/* --- Step 3: Member Grid (horizontal scroll) --- */
.about3min-page .a3m-member-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.about3min-page .a3m-member-grid::-webkit-scrollbar {
    height: 6px;
}

.about3min-page .a3m-member-grid::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 3px;
}

.about3min-page .a3m-member-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.about3min-page .a3m-member-grid::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.about3min-page .a3m-member-card {
    flex: 0 0 150px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    scroll-snap-align: start;
}

.a3m-member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.a3m-member-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: #e8ecf0;
}

.a3m-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.a3m-member-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #bbb;
}

.a3m-member-info {
    padding: 12px 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.a3m-member-role {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dpfp-blue, #003884);
    background: #eef3fb;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
}

.a3m-member-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.a3m-member-district {
    font-size: 0.75rem;
    color: #999;
}

.about3min-page .a3m-member-more {
    text-align: center;
}

/* --- Step 4: Next Grid --- */
.about3min-page .a3m-next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.about3min-page .a3m-next-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about3min-page .a3m-next-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.about3min-page .a3m-next-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef3fb;
    color: var(--dpfp-blue, #003884);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.about3min-page .a3m-next-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
}

.about3min-page .a3m-next-card p {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* --- Link Button --- */
.about3min-page .a3m-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dpfp-blue, #003884);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s;
}

.about3min-page .a3m-link-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff;
}

.about3min-page .a3m-link-btn-white {
    background: #fff;
    color: var(--dpfp-blue, #003884);
}

.about3min-page .a3m-link-btn-white:hover {
    background: #f0f4ff;
    color: var(--dpfp-blue, #003884);
}

/* --- Bottom CTA --- */
.about3min-page .a3m-bottom-cta {
    background: var(--dpfp-blue, #003884);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.about3min-page .a3m-bottom-cta p {
    font-size: 1rem;
    margin: 0 0 16px;
    opacity: 0.9;
}

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

@media (max-width: 768px) {
    .about3min-page .a3m-hero {
        padding: 50px 16px 40px;
    }

    .about3min-page .a3m-hero-title {
        font-size: 1.6rem;
    }

    .about3min-page .a3m-steps-nav {
        gap: 6px;
    }

    .about3min-page .a3m-step-link {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .about3min-page .a3m-section {
        padding: 40px 16px;
    }

    .about3min-page .a3m-step-header h2 {
        font-size: 1.3rem;
    }

    .about3min-page .a3m-step-lead {
        padding-left: 0;
    }

    .about3min-page .a3m-identity-card {
        max-width: 100%;
    }

    .about3min-page .a3m-id-row {
        flex-direction: column;
        gap: 2px;
    }

    .about3min-page .a3m-id-label {
        flex: none;
    }

    .about3min-page .a3m-concept-cards {
        grid-template-columns: 1fr;
    }

    .about3min-page .a3m-achievements {
        grid-template-columns: 1fr;
    }

    .about3min-page .a3m-pillar {
        padding: 18px;
        gap: 12px;
    }

    .about3min-page .a3m-pillar-num {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .about3min-page .a3m-member-card {
        flex: 0 0 130px;
    }

    .about3min-page .a3m-member-name {
        font-size: 0.85rem;
    }

    .about3min-page .a3m-member-role {
        font-size: 0.65rem;
    }

    .about3min-page .a3m-next-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .about3min-page .a3m-achievement {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .about3min-page .a3m-member-card {
        flex: 0 0 120px;
    }

    .about3min-page .a3m-next-grid {
        grid-template-columns: 1fr;
    }

    .about3min-page .a3m-steps-nav {
        flex-direction: column;
        align-items: center;
    }
}
