/* ==========================================
   導入プロセスセクション - インフォグラフィック背景版
   ========================================== */

/* セクション全体 */
.process-section-with-infographic {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #E8F3FF 0%, #F5FAFF 100%);
}

/* 背景インフォグラフィック層 */
.process-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.process-background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('../images/intro-process-infographic.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
    filter: blur(8px);
}

.process-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(232, 243, 255, 0.6) 0%, 
        rgba(245, 250, 255, 0.4) 100%);
}

/* コンテンツ層 */
.process-content-layer {
    position: relative;
    z-index: 1;
}

/* ヘッダー */
.process-infographic-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-infographic-title {
    font-size: 42px;
    font-weight: 700;
    color: #07193B;
    margin-bottom: 16px;
    line-height: 1.3;
}

.process-infographic-subtitle {
    font-size: 18px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.8;
}

/* フローライン（装飾） */
.process-flow-line {
    width: 85%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    border-radius: 2px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
}

.process-flow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    animation: processFlowAnimation 3s ease-in-out infinite;
}

@keyframes processFlowAnimation {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* 4ステップカードグリッド */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ステップカード */
.process-step-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5FAFF 100%);
    border: 1px solid #D7E6FF;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 12px 30px rgba(16, 56, 120, 0.12);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* カード上部カラーライン */
.process-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--step-color-start), var(--step-color-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-step-card:hover::before {
    opacity: 1;
}

.process-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 16px 40px rgba(16, 56, 120, 0.18),
        0 0 0 1px var(--step-color-start);
}

/* アイコンバッジ */
.process-icon-badge {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--step-color-start), var(--step-color-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.process-step-card:hover .process-icon-badge {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.process-icon-badge i {
    font-size: 36px;
    color: #FFFFFF;
}

/* ステップラベル */
.process-step-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--step-color-start);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

/* ステップタイトル */
.process-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #07193B;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ステップ説明文 */
.process-step-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ステップ別カラー定義 */
.process-step-card[data-step="1"] {
    --step-color-start: #3b82f6;
    --step-color-end: #60a5fa;
}

.process-step-card[data-step="2"] {
    --step-color-start: #06b6d4;
    --step-color-end: #22d3ee;
}

.process-step-card[data-step="3"] {
    --step-color-start: #f59e0b;
    --step-color-end: #fbbf24;
}

.process-step-card[data-step="4"] {
    --step-color-start: #10b981;
    --step-color-end: #34d399;
}

/* カード番号バッジ（オプション） */
.process-card-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--step-color-start);
    border: 2px solid var(--step-color-start);
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .process-background-image {
        opacity: 0.22;
        filter: blur(10px);
    }
}

@media (max-width: 768px) {
    .process-section-with-infographic {
        padding: 60px 0;
    }
    
    .process-infographic-title {
        font-size: 32px;
    }
    
    .process-infographic-subtitle {
        font-size: 16px;
    }
    
    .process-steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-background-image {
        opacity: 0.18;
        filter: blur(12px);
    }
    
    .process-step-card {
        padding: 28px 20px;
    }
    
    .process-icon-badge {
        width: 64px;
        height: 64px;
    }
    
    .process-icon-badge i {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .process-infographic-title {
        font-size: 28px;
    }
    
    .process-step-title {
        font-size: 18px;
    }
    
    .process-step-description {
        font-size: 13px;
    }
    
    .process-flow-line {
        width: 90%;
    }
}

/* ローディングアニメーション */
.process-step-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.process-step-card[data-step="1"] {
    animation-delay: 0.1s;
}

.process-step-card[data-step="2"] {
    animation-delay: 0.2s;
}

.process-step-card[data-step="3"] {
    animation-delay: 0.3s;
}

.process-step-card[data-step="4"] {
    animation-delay: 0.4s;
}

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

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    .process-step-card,
    .process-flow-line::after {
        animation: none;
    }
    
    .process-step-card:hover,
    .process-step-card:hover .process-icon-badge {
        transform: none;
    }
}
