/* ==========================================
   スマート倉庫全体像カード - 背景インフォグラフィック統合版
   各カードにゾーンごとのインフォグラフィック背景を追加
   ========================================== */

/* 5つのカード共通スタイル強化 */
.overview-card-with-bg {
    position: relative;
    text-align: center;
    padding: 32px 20px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* カード背景画像（淡く表示） */
.overview-card-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    transition: all 0.4s ease;
    z-index: 0;
    filter: blur(0px);
}

/* ホバー時：背景を少しズームして鮮明に */
.overview-card-with-bg:hover::before {
    opacity: 0.25;
    transform: scale(1.05);
    filter: blur(0px);
}

/* 可読性確保のための白グラデーションオーバーレイ */
.overview-card-with-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.75) 40%,
        rgba(255, 255, 255, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* カード内コンテンツを前面に */
.overview-card-with-bg > * {
    position: relative;
    z-index: 2;
}

/* 各カードの背景画像指定 */
.overview-card-manufacturing::before {
    background-image: url('../images/zone-manufacturing.png');
}

.overview-card-receiving::before {
    background-image: url('../images/zone-receiving-storage.png');
}

.overview-card-picking::before {
    background-image: url('../images/zone-picking.png');
}

.overview-card-sorting::before {
    background-image: url('../images/zone-sorting.png');
}

.overview-card-shipping::before {
    background-image: url('../images/zone-shipping.png');
}

/* カードホバーエフェクト強化 */
.overview-card-with-bg:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* アイコンバッジ */
.overview-card-with-bg .neo-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.overview-card-with-bg:hover .neo-icon-badge {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* プラットフォームブロック */
.overview-card-with-bg .neo-platform-blocks {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.overview-card-with-bg .neo-block {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    animation: blockPulse 2s ease-in-out infinite;
}

.overview-card-with-bg .neo-block:nth-child(2) {
    animation-delay: 0.2s;
}

.overview-card-with-bg .neo-block:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blockPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* カードタイトル */
.overview-card-with-bg h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 3;
    color: #1e293b;
}

/* カードサブタイトル */
.overview-card-with-bg p {
    font-size: 13px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 3;
    color: #64748b;
}

/* カラーバリエーション - アイコンバッジ */
.neo-badge-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.neo-badge-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.neo-badge-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

/* カラーバリエーション - ブロック */
.neo-block-1 {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.neo-block-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
}

.neo-block-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .overview-card-with-bg {
        min-height: 280px;
        padding: 28px 16px;
    }
    
    .overview-card-with-bg .neo-icon-badge {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .overview-card-with-bg h4 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .overview-card-with-bg {
        min-height: 260px;
        padding: 24px 16px;
    }
    
    /* スマホでは背景をさらに薄く */
    .overview-card-with-bg::before {
        opacity: 0.1;
    }
    
    .overview-card-with-bg:hover::before {
        opacity: 0.15;
    }
    
    /* 白オーバーレイを強化して可読性確保 */
    .overview-card-with-bg::after {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.85) 40%,
            rgba(255, 255, 255, 0.8) 100%
        );
    }
    
    .overview-card-with-bg .neo-icon-badge {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .overview-card-with-bg h4 {
        font-size: 16px;
    }
    
    .overview-card-with-bg p {
        font-size: 12px;
    }
}

/* 5カラムグリッドレイアウト（既存のスタイルを上書き） */
.overview-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 1200px) {
    .overview-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .overview-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
