/* ==========================================
   POC学習ループ - イラスト×カード融合型
   視覚中心のインフォグラフィックデザイン
   ========================================== */

/* セクション全体 */
.section-poc-visual {
    padding: 100px 0;
    background: linear-gradient(180deg, #EFF6FF 0%, #F0F9FF 50%, #E0F2FE 100%);
    position: relative;
    overflow: hidden;
}

/* 背景グリッド */
.poc-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(0deg, #3b82f6 0px, transparent 1px, transparent 50px),
        repeating-linear-gradient(90deg, #3b82f6 0px, transparent 1px, transparent 50px);
}

/* ヘッダー */
.poc-visual-header {
    text-align: center;
    margin-bottom: 80px;
}

.poc-visual-title {
    font-size: 48px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.poc-visual-subtitle {
    font-size: 20px;
    color: #64748b;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto;
}

/* メインビジュアルコンテナ：左(Before) - 中央(Loop) - 右(After) */
.poc-visual-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 500px 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

/* ========== 左側：Before + 課題カード ========== */
.poc-before-section {
    position: relative;
}

.poc-scene-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s ease;
}

.poc-scene-image:hover {
    transform: scale(1.02);
}

/* Before画像の上にラベル */
.poc-scene-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

.poc-scene-label.success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* 課題カード（既存のカードを左イラスト下に配置） */
.poc-problems-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.poc-problem-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12);
    border-left: 4px solid #ef4444;
    transition: all 0.3s ease;
}

.poc-problem-card:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
    transform: translateY(-4px);
}

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

.poc-problem-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.poc-problem-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.poc-problem-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ========== 中央：学習ループ図 ========== */
.poc-loop-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.poc-loop-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.poc-loop-image {
    width: 100%;
    height: auto;
    animation: floatLoop 4s ease-in-out infinite;
}

@keyframes floatLoop {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 回転アニメーション（オプション） */
.poc-loop-image.rotating {
    animation: rotateLoop 20s linear infinite;
}

@keyframes rotateLoop {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ループ図の周囲にグロー効果 */
.poc-loop-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* ========== 右側：After + 改善カード ========== */
.poc-after-section {
    position: relative;
}

/* 改善カード（既存のカードを右イラスト下に配置） */
.poc-improvements-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.poc-improvement-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.poc-improvement-card:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

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

.poc-improvement-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.poc-improvement-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.poc-improvement-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* 接続線（Before → Loop → After） */
.poc-connection-line {
    position: absolute;
    top: 50%;
    height: 4px;
    background: linear-gradient(90deg, #ef4444 0%, #3b82f6 50%, #10b981 100%);
    opacity: 0.3;
    z-index: 0;
}

.poc-connection-line.left {
    left: 0;
    width: calc(50% - 250px);
}

.poc-connection-line.right {
    right: 0;
    width: calc(50% - 250px);
}

/* 接続ノード（アニメーション付き） */
.poc-connection-node {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    animation: moveNode 4s ease-in-out infinite;
}

.poc-connection-node.left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0s;
}

.poc-connection-node.right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 2s;
}

@keyframes moveNode {
    0%, 100% {
        opacity: 0;
        transform: translateX(0) translateY(-50%);
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateX(100%) translateY(-50%);
    }
}

/* 結論バナー */
.poc-visual-conclusion {
    max-width: 1400px;
    margin: 80px auto 0;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 32px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 12px 48px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
}

.poc-visual-conclusion::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.poc-conclusion-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    backdrop-filter: blur(10px);
}

.poc-conclusion-icon i {
    font-size: 40px;
    color: white;
}

.poc-conclusion-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.poc-conclusion-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0 0 32px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

.poc-cta-btn-primary {
    background: white;
    color: #1e40af;
    padding: 16px 40px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.poc-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.poc-cta-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 40px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 2px solid white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.poc-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 1400px) {
    .poc-visual-container {
        grid-template-columns: 1fr 400px 1fr;
    }
}

@media (max-width: 1200px) {
    .poc-visual-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .poc-loop-section {
        order: 1;
    }

    .poc-before-section {
        order: 2;
    }

    .poc-after-section {
        order: 3;
    }

    .poc-connection-line {
        display: none;
    }

    .poc-connection-node {
        display: none;
    }
}

@media (max-width: 768px) {
    .poc-visual-title {
        font-size: 32px;
    }

    .poc-visual-subtitle {
        font-size: 16px;
    }

    .poc-problems-cards,
    .poc-improvements-cards {
        grid-template-columns: 1fr;
    }

    .poc-visual-conclusion {
        padding: 40px 30px;
    }

    .poc-conclusion-title {
        font-size: 24px;
    }

    .poc-conclusion-text {
        font-size: 16px;
    }

    .poc-conclusion-cta {
        flex-direction: column;
        width: 100%;
    }

    .poc-cta-btn-primary,
    .poc-cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
