/* css/career-paths.css */

.career-paths-hero {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f0faf5 0%, #e3f7ec 100%);
    color: var(--text-main);
    text-align: center;
    border-bottom: 1px solid rgba(29, 158, 117, 0.15);
}

.career-paths-hero .hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.career-paths-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

.career-paths-hero .subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 25px;
}

.hero-message {
    display: inline-block;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(29, 158, 117, 0.2);
    border-radius: 16px;
    padding: 16px 24px;
    max-width: 600px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(29, 158, 117, 0.05);
}

.hero-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

/* フィルターセクション */
.filter-section {
    padding: 40px 0 20px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.filter-section .section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.filter-section h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px;
}

/* タブボタン */
.filter-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tab-btn {
    border: none;
    background: none;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* フィルターオプションの表示切り替え */
.filter-options {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.filter-options.active {
    display: flex;
}

.filter-chip {
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.filter-chip.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
}

/* 事例詳細リスト */
.stories-section {
    padding: 50px 0 80px;
    background: #f8fafc;
}

.stories-section .section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.career-story {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    animation: fadeIn 0.4s ease;
}

.story-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.story-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.story-badges .badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.story-badges .badge.path {
    background: #f5f3ff;
    color: #6d28d9;
}

.story-badges .badge.concern {
    background: #fff7ed;
    color: #c2410c;
}

.story-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

/* タイムライン */
.story-timeline {
    position: relative;
    padding-left: 20px;
    margin-bottom: 30px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(to bottom, #ef4444 0%, #8b5cf6 50%, #10b981 100%);
    z-index: 1;
}

.timeline-phase {
    position: relative;
    padding-left: 25px;
    margin-bottom: 35px;
}

.timeline-phase:last-child {
    margin-bottom: 0;
}

.timeline-phase::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #cbd5e1;
    z-index: 2;
    box-shadow: 0 0 0 4px #fff;
    transition: all 0.3s ease;
}
.timeline-phase:hover::before {
    transform: scale(1.35);
}
.timeline-phase:hover::before {
    transform: scale(1.35);
}
.timeline-phase:hover::before {
    transform: scale(1.35);
}

.timeline-phase:nth-child(2)::before {
    border-color: #8b5cf6;
}

.timeline-phase:nth-child(3)::before {
    border-color: #10b981;
}

.phase-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.phase-label .period {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
}

.phase-label .status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.timeline-phase:nth-child(2) .phase-label .status {
    background: #f5f3ff;
    color: #6d28d9;
}

.timeline-phase:nth-child(3) .phase-label .status {
    background: #ecfdf5;
    color: #047857;
}

.phase-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.phase-content:hover {
    transform: translateX(6px);
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.phase-content h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #334155;
    margin: 0 0 8px 0;
}

.phase-content p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 12px 0;
}

.highlight-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.highlight-box p {
    margin: 0 0 4px 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box p.label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.highlight-box p.note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.progress-list {
    margin: 0 0 16px;
    padding-left: 20px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.7;
}

.turning-point {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.turning-point p.label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #d97706;
    margin: 0 0 4px 0;
}

.turning-point p {
    margin: 0;
    font-size: 0.88rem;
    color: #b45309;
    font-weight: 700;
}

/* 本人・保護者の声 */
.voice {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
}

.voice.feeling {
    background: #fef2f2;
    border-left: 4px solid #f87171;
}

.voice.student {
    background: #f5f3ff;
    border-left: 4px solid #a78bfa;
}

.voice.parent {
    background: #f0fdf4;
    border-left: 4px solid #34d399;
}

.voice p.label {
    font-size: 0.75rem;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.voice.feeling p.label { color: #dc2626; }
.voice.student p.label { color: #6d28d9; }
.voice.parent p.label { color: #166534; }

.voice p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 600;
}

.voice.feeling p { color: #991b1b; }
.voice.student p { color: #4c1d95; }
.voice.parent p { color: #14532d; }

/* 事例内のCTA */
.story-cta {
    background: #faf5ff;
    border: 1px solid #f3e8ff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 30px;
}

.story-cta p {
    font-size: 0.9rem;
    font-weight: 700;
    color: #581c87;
    margin: 0 0 16px;
}

.story-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #8b5cf6;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    transition: all 0.2s ease;
}

.story-cta .btn-secondary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
}

.story-disclaimer {
    margin-top: 20px;
    text-align: center;
}

.story-disclaimer p {
    margin: 0;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* 診断へのCTA（ページ下部） */
.cta-braincraft {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0faf5 0%, #e3f7ec 100%);
    color: var(--text-main);
    text-align: center;
    border-top: 1px solid rgba(29, 158, 117, 0.15);
}

.cta-braincraft .cta-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-braincraft h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 16px 0;
}

.cta-braincraft p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.cta-braincraft .cta-primary {
    border: none;
    background: linear-gradient(135deg, #1D9E75 0%, #157A5A 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 16px 36px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(29, 158, 117, 0.3);
    transition: all 0.3s ease;
}

.cta-braincraft .cta-primary:hover {
    background: linear-gradient(135deg, #1aa379 0%, #137053 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(29, 158, 117, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .career-paths-hero h1 {
        font-size: 1.6rem;
    }
    .career-paths-hero .subtitle {
        font-size: 0.95rem;
    }
    .hero-message {
        padding: 12px 16px;
    }
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .career-story {
        padding: 24px 20px;
    }
    .story-title {
        font-size: 1.15rem;
    }
    .story-timeline {
        padding-left: 10px;
    }
    .timeline-phase {
        padding-left: 15px;
    }
    .timeline-phase::before {
        left: -16px;
    }
    .phase-label .period {
        font-size: 0.8rem;
    }
}

/* 進路内訳グラフセクション */
@media (max-width: 600px) {
    .career-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }
}
