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

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

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

.intro-process-background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(8px);
}

/* コンテンツ層（前面） */
.intro-process-content {
    position: relative;
    z-index: 10;
}

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

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

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

/* フローライン（ステップ間の接続） */
.intro-flow-line {
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 25%, #f59e0b 50%, #10b981 75%, #10b981 100%);
    border-radius: 2px;
    margin: 0 auto 60px;
    position: relative;
    opacity: 0.6;
}

.intro-flow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(6, 182, 212, 0.8) 25%, 
        rgba(245, 158, 11, 0.8) 50%, 
        rgba(16, 185, 129, 0.8) 75%,
        rgba(16, 185, 129, 0.8) 100%
    );
    border-radius: 2px;
    animation: flowPulse 3s ease-in-out infinite;
}

@keyframes flowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

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

/* ステップカード */
.intro-step-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFF 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;
}

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

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

.intro-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);
}

/* アイコンバッジ */
.intro-icon-badge {
    width: 64px;
    height: 64px;
    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 20px;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    position: relative;
}

.intro-icon-badge::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--step-color-start);
    opacity: 0;
    animation: iconGlow 2.5s ease-in-out infinite;
}

.intro-step-card:hover .intro-icon-badge::after {
    opacity: 0.5;
}

@keyframes iconGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.12);
    }
}

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

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

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

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

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

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

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

/* 下部メッセージバナー */
.intro-footer-banner {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 32px 40px;
    background: linear-gradient(135deg, #F0F7FF 0%, #E8F3FF 100%);
    border: 2px solid #B8D4FF;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    display: flex;
    align-items: center;
    gap: 20px;
}

.intro-footer-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.intro-footer-text {
    font-size: 17px;
    font-weight: 600;
    color: #07193B;
    line-height: 1.6;
    margin: 0;
}

.intro-footer-text strong {
    color: #2563eb;
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */

@media (max-width: 1200px) {
    .intro-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .intro-process-redesign {
        padding: 60px 0;
    }
    
    .intro-process-title {
        font-size: 32px;
    }
    
    .intro-process-subtitle {
        font-size: 16px;
    }
    
    .intro-steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .intro-flow-line {
        width: 90%;
        margin-bottom: 40px;
    }
    
    .intro-footer-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    
    .intro-footer-text {
        font-size: 16px;
    }
    
    /* モバイルでは背景ぼかしを強めに */
    .intro-process-background-image {
        opacity: 0.22;
        filter: blur(10px);
    }
}

@media (max-width: 480px) {
    .intro-process-title {
        font-size: 28px;
    }
    
    .intro-step-title {
        font-size: 17px;
    }
    
    .intro-step-description {
        font-size: 13px;
    }
    
    .intro-step-card {
        padding: 28px 20px;
    }
}

/* ==========================================
   アクセシビリティ対応
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .intro-flow-line::after,
    .intro-icon-badge::after,
    .intro-step-card {
        animation: none;
        transition: none;
    }
}

/* ==========================================
   印刷スタイル
   ========================================== */

@media print {
    .intro-process-background-image {
        display: none;
    }
    
    .intro-step-card {
        break-inside: avoid;
    }
}
