/*
 * AWS SAP学習リソース - elasticache_infographic 専用CSS
 * ページ固有のレイアウト・セクション・コンポーネントスタイル
 *
 * 自動生成日: 2026-01-11 18:19:14
 */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #2c3e50;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        
            padding-top: 80px; /* 固定ヘッダー分のスペース確保 */
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            color: white;
            padding: 40px 20px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .header h1 {
            font-size: 2.8em;
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .header p {
            font-size: 1.3em;
            opacity: 0.9;
        }

        .aws-logo {
            width: 70px;
            height: 70px;
            background: #dc7600;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
            margin-bottom: 20px;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .feature-card {
            background: white;
            border-radius: 20px;
            padding: 35px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 30px 60px rgba(0,0,0,0.15);
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #DC2626, #4ecdc4, #45b7d1, #96ceb4);
        }

        .feature-header {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
        }

        .feature-icon {
            width: 70px;
            height: 70px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-right: 20px;
            color: white;
        }

        .multi-az { background: linear-gradient(45deg, #DC2626, #ff8e8e); }
        .failover { background: linear-gradient(45deg, #4ecdc4, #70d8d1); }
        .cluster { background: linear-gradient(45deg, #45b7d1, #6bc5e0); }
        .resharding { background: linear-gradient(45deg, #96ceb4, #a8d5c4); }

        .feature-title {
            font-size: 1.6em;
            font-weight: bold;
            color: #2c3e50;
        }

        .analogy {
            background: #f8f9fc;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            border-left: 5px solid #3498db;
        }

        .analogy-title {
            font-weight: bold;
            color: #3498db;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            font-size: 1.1em;
        }

        .analogy-title::before {
            content: "💡";
            margin-right: 8px;
        }

        .technical-details {
            background: #fff3cd;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            border-left: 5px solid #CA8A04;
        }

        .technical-title {
            font-weight: bold;
            color: #856404;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            font-size: 1.1em;
        }

        .technical-title::before {
            content: "⚙️";
            margin-right: 8px;
        }

        .implementation {
            background: #d1ecf1;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            border-left: 5px solid #17a2b8;
        }

        .implementation-title {
            font-weight: bold;
            color: #0c5460;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            font-size: 1.1em;
        }

        .implementation-title::before {
            content: "🛠️";
            margin-right: 8px;
        }

        .diagram {
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin: 25px 0;
            padding: 25px;
            background: #f8f9fc;
            border-radius: 15px;
            position: relative;
        }

        .node {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 12px;
            text-align: center;
            position: relative;
            animation: pulse 2s infinite;
            cursor: pointer;
        }

        .node.az-a { background: #e74c3c; }
        .node.az-b { background: #3498db; }
        .node.az-c { background: #15803D; }
        .node.primary { background: #CA8A04; }
        .node.replica { background: #9b59b6; }
        .node.cluster { background: #1abc9c; }
        .node.failed { background: #95a5a6; opacity: 0.5; }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .arrow {
            position: relative;
            height: 3px;
            background: #3498db;
            margin: 0 15px;
            flex: 1;
        }

        .arrow::after {
            content: '';
            position: absolute;
            right: -6px;
            top: -4px;
            border-left: 10px solid #3498db;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
        }

        .benefits {
            background: #e8f5e8;
            border-radius: 15px;
            padding: 25px;
            margin-top: 25px;
        }

        .benefits h4 {
            color: #15803D;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            font-size: 1.2em;
        }

        .benefits h4::before {
            content: "✅";
            margin-right: 10px;
        }

        .benefit-list {
            list-style: none;
        }

        .benefit-list li {
            padding: 10px 0;
            display: flex;
            align-items: flex-start;
            line-height: 1.5;
        }

        .benefit-list li::before {
            content: "▶";
            color: #15803D;
            margin-right: 12px;
            margin-top: 2px;
        }

        .metrics {
            background: #f8d7da;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            border-left: 5px solid #dc3545;
        }

        .metrics-title {
            font-weight: bold;
            color: #721c24;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            font-size: 1.1em;
        }

        .metrics-title::before {
            content: "📊";
            margin-right: 8px;
        }

        .comparison-table {
            background: white;
            border-radius: 20px;
            padding: 35px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            margin-top: 40px;
        }

        .comparison-table h3 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 2em;
        }

        .table-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 2px;
            background: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }

        .table-header {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            padding: 20px;
            text-align: center;
            font-weight: bold;
            font-size: 1.1em;
        }

        .table-cell {
            padding: 18px;
            text-align: center;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .highlight {
            background: linear-gradient(45deg, #DC262620, #4ecdc420);
        }

        .cluster-diagram {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 25px 0;
            padding: 25px;
            background: #f8f9fc;
            border-radius: 15px;
        }

        .shard {
            text-align: center;
            padding: 20px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .shard:hover {
            transform: translateY(-5px);
        }

        .shard-title {
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        .data-flow {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 25px 0;
            padding: 25px;
            background: linear-gradient(45deg, #667eea20, #764ba220);
            border-radius: 15px;
        }

        .flow-step {
            text-align: center;
            flex: 1;
            padding: 15px;
        }

        .flow-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #3498db;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 24px;
            transition: transform 0.3s ease;
        }

        .flow-icon:hover {
            transform: scale(1.1);
        }

        .architecture-section {
            background: white;
            border-radius: 20px;
            padding: 35px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            margin: 40px 0;
        }

        .architecture-title {
            font-size: 2em;
            color: #2c3e50;
            margin-bottom: 30px;
            text-align: center;
        }

        .scenario {
            background: #e7f3ff;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            border-left: 5px solid #007bff;
        }

        .scenario-title {
            font-weight: bold;
            color: #004085;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            font-size: 1.1em;
        }

        .scenario-title::before {
            content: "🎯";
            margin-right: 8px;
        }

        .cost-section {
            background: #fff8e1;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            border-left: 5px solid #ff8f00;
        }

        .cost-title {
            font-weight: bold;
            color: #e65100;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            font-size: 1.1em;
        }

        .cost-title::before {
            content: "💰";
            margin-right: 8px;
        }

        .best-practices {
            background: #f3e5f5;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            border-left: 5px solid #9c27b0;
        }

        .best-practices-title {
            font-weight: bold;
            color: #4a148c;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            font-size: 1.1em;
        }

        .best-practices-title::before {
            content: "🏆";
            margin-right: 8px;
        }

        .footer {
            text-align: center;
            margin-top: 40px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            color: white;
        }

        .tabs {
            display: flex;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            margin-bottom: 20px;
            overflow: hidden;
        }

        .tab {
            flex: 1;
            padding: 15px;
            text-align: center;
            color: white;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .tab.active {
            background: rgba(255, 255, 255, 0.2);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .code-block {
            background: #2d3748;
            color: #e2e8f0;
            padding: 20px;
            border-radius: 10px;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            overflow-x: auto;
            margin: 15px 0;
        }

        .performance-chart {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin: 20px 0;
        }

        .chart-item {
            text-align: center;
            padding: 15px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .chart-value {
            font-size: 2em;
            font-weight: bold;
            color: #3498db;
        }

        .chart-label {
            font-size: 0.9em;
            color: #7f8c8d;
            margin-top: 5px;
        }

        @media (max-width: 768px) {
            .feature-grid {
                grid-template-columns: 1fr;
            }
            
            .table-grid {
                grid-template-columns: 1fr;
            }
            
            .cluster-diagram {
                grid-template-columns: 1fr;
            }
            
            .data-flow {
                flex-direction: column;
            }
            
            .flow-step {
                margin-bottom: 20px;
            }

            .performance-chart {
                grid-template-columns: repeat(2, 1fr);
            }

            .tabs {
                flex-direction: column;
            }
        }
    
        

    
        
        

        

        

        

        

        

        @media (max-width: 768px) {
            
        }

    
        
        

        

        

        

        

        

        

        /* 読書進捗インジケーター */
        

        

        

        /* トップに戻るボタン */
        

        

        

        

        /* Mobile responsive */
        @media (max-width: 768px) {
            

            

            

            

            
        }