/* ============================================
   POC学習ループセクション - 完全強化版
   - 中央に大きな3段階色分けリング
   - 左：赤いBeforeカード（縦並び）
   - 右：青いAfterカード（縦並び）
   - 細い矢印で接続
   - 背景ピクトグラム + パララックス
============================================ */

/* ===== セクション基本設定 ===== */
.poc-loop-enhanced-section {
    position: relative;
    padding: 120px 20px;
    background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 50%, #EFF6FF 100%);
    overflow: hidden;
}

/* 背景ピクトグラム（極薄、ライン描画） */
.poc-loop-enhanced-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M20 50 L40 50 M40 40 L40 60 M50 30 L50 70 M60 40 L60 60 M70 50 L80 50' stroke='%2393C5FD' stroke-width='1' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* ===== ヘッダー ===== */
.poc-loop-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.poc-loop-title {
    font-size: 44px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.3;
}

.poc-loop-subtitle {
    font-size: 18px;
    color: #475569;
    font-weight: 500;
    line-height: 1.6;
}

/* ===== メインコンテナ（3列レイアウト） ===== */
.poc-loop-main-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    z-index: 1;
}

/* ===== 左列：Beforeカード（赤系） ===== */
.poc-before-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.poc-before-heading {
    font-size: 24px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.poc-before-heading i {
    font-size: 28px;
}

.poc-before-card {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    border: 3px solid #fee2e2;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.12);
    position: relative;
    transition: all 0.3s ease;
}

.poc-before-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.18);
}

.poc-before-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.poc-before-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.poc-before-card-number {
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
    background: #fee2e2;
    padding: 4px 12px;
    border-radius: 20px;
}

.poc-before-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.poc-before-card-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* 赤い矢印（Before → Loop） */
.poc-before-column::after {
    content: '→';
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #ef4444;
    opacity: 0.6;
    animation: arrow-pulse-red 2s infinite;
}

@keyframes arrow-pulse-red {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.8; transform: translateY(-50%) translateX(4px); }
}

/* ===== 中央列：学習ループ ===== */
.poc-loop-center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
}

/* 学習ループコンテナ */
.poc-learning-loop-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG 3段階リング */
.poc-loop-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* 12時方向スタート */
}

.poc-loop-segment {
    fill: none;
    stroke-width: 28;
    stroke-linecap: round;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.15));
}

.poc-loop-segment:hover {
    stroke-width: 32;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.25));
}

/* 各段階の色 */
.poc-loop-segment-failure {
    stroke: url(#gradient-red);
}

.poc-loop-segment-analysis {
    stroke: url(#gradient-blue);
}

.poc-loop-segment-redesign {
    stroke: url(#gradient-green);
}

/* 中央バッジ */
.poc-loop-center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 8px rgba(59, 130, 246, 0.1),
        0 0 0 16px rgba(59, 130, 246, 0.05),
        0 8px 32px rgba(59, 130, 246, 0.3);
    text-align: center;
    padding: 20px;
}

.poc-loop-center-badge-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    margin-bottom: 4px;
}

.poc-loop-center-badge-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ループ外側のアイコン（3段階） */
.poc-loop-stage-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    animation: icon-float 3s ease-in-out infinite;
}

.poc-loop-stage-icon.stage-failure {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.poc-loop-stage-icon.stage-analysis {
    bottom: 20%;
    left: 10%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.poc-loop-stage-icon.stage-redesign {
    bottom: 20%;
    right: 10%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

@keyframes icon-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.poc-loop-stage-icon.stage-analysis,
.poc-loop-stage-icon.stage-redesign {
    animation: icon-float-side 3s ease-in-out infinite;
}

@keyframes icon-float-side {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ループタイトル・説明 */
.poc-loop-center-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.4;
}

.poc-loop-center-description {
    font-size: 15px;
    color: #475569;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
}

/* ===== 右列：Afterカード（青系） ===== */
.poc-after-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.poc-after-heading {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.poc-after-heading i {
    font-size: 28px;
}

.poc-after-card {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 3px solid #dbeafe;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
    position: relative;
    transition: all 0.3s ease;
}

.poc-after-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.18);
}

.poc-after-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.poc-after-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.poc-after-card-number {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    background: #dbeafe;
    padding: 4px 12px;
    border-radius: 20px;
}

.poc-after-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.poc-after-card-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* 青い矢印（Loop → After） */
.poc-after-column::before {
    content: '→';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #3b82f6;
    opacity: 0.6;
    animation: arrow-pulse-blue 2s infinite 0.5s;
}

@keyframes arrow-pulse-blue {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.8; transform: translateY(-50%) translateX(-4px); }
}

/* ===== 結論バナー ===== */
.poc-loop-conclusion {
    margin-top: 80px;
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    border: 2px solid #dbeafe;
}

.poc-loop-conclusion-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.poc-loop-conclusion-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.poc-loop-conclusion-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 0;
}

.poc-loop-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.poc-loop-cta-primary,
.poc-loop-cta-secondary {
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.poc-loop-cta-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.poc-loop-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
}

.poc-loop-cta-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #3b82f6;
}

.poc-loop-cta-secondary:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

/* ===== レスポンシブ（タブレット） ===== */
@media (max-width: 1200px) {
    .poc-loop-main-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .poc-before-column::after,
    .poc-after-column::before {
        display: none;
    }
    
    .poc-loop-title {
        font-size: 36px;
    }
    
    .poc-loop-center-badge {
        width: 160px;
        height: 160px;
    }
    
    .poc-loop-center-badge-title {
        font-size: 14px;
    }
    
    .poc-loop-stage-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ===== レスポンシブ（スマホ） ===== */
@media (max-width: 768px) {
    .poc-loop-enhanced-section {
        padding: 60px 16px;
    }
    
    .poc-loop-header {
        margin-bottom: 48px;
    }
    
    .poc-loop-title {
        font-size: 28px;
    }
    
    .poc-loop-subtitle {
        font-size: 15px;
    }
    
    .poc-loop-main-container {
        gap: 40px;
    }
    
    .poc-before-heading,
    .poc-after-heading {
        font-size: 20px;
    }
    
    .poc-learning-loop-container {
        max-width: 320px;
    }
    
    .poc-loop-center-badge {
        width: 120px;
        height: 120px;
    }
    
    .poc-loop-center-badge-title {
        font-size: 12px;
    }
    
    .poc-loop-center-badge-subtitle {
        font-size: 10px;
    }
    
    .poc-loop-stage-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .poc-loop-center-title {
        font-size: 20px;
    }
    
    .poc-loop-center-description {
        font-size: 14px;
    }
    
    .poc-loop-conclusion {
        padding: 32px 20px;
        margin-top: 48px;
    }
    
    .poc-loop-conclusion-title {
        font-size: 24px;
    }
    
    .poc-loop-conclusion-text {
        font-size: 14px;
    }
}
