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

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            padding-top: 80px; /* 固定ヘッダー分のスペース確保 */
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .header {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
            padding: 40px;
            text-align: center;
            position: relative;
        }
        
        .header::before {
            content: '🗄️';
            position: absolute;
            top: 20px;
            left: 30px;
            font-size: 3em;
            opacity: 0.3;
        }
        
        .header h1 {
            font-size: 2.8em;
            margin-bottom: 15px;
        }
        
        .header p {
            font-size: 1.3em;
            opacity: 0.9;
        }
        
        .content {
            padding: 50px;
        }
        
        .comparison-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            margin: 50px 0;
        }
        
        .mode-section {
            background: #f8f9fa;
            border-radius: 25px;
            padding: 40px;
            position: relative;
            overflow: hidden;
            border: 4px solid transparent;
            transition: all 0.3s ease;
        }
        
        .mode-section:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        .disabled-section {
            border-color: #3498db;
        }
        
        .enabled-section {
            border-color: #e74c3c;
        }
        
        .mode-title {
            font-size: 2.2em;
            text-align: center;
            margin-bottom: 30px;
            color: #2c3e50;
        }
        
        .disabled-title {
            color: #3498db;
        }
        
        .enabled-title {
            color: #e74c3c;
        }
        
        /* 図書館のたとえ話 */
        .library-container {
            margin: 40px 0;
            text-align: center;
        }
        
        .single-library {
            width: 250px;
            height: 200px;
            background: linear-gradient(145deg, #3498db, #2980b9);
            border-radius: 15px;
            margin: 20px auto;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }
        
        .single-library::before {
            content: '🏛️';
            font-size: 4em;
            margin-bottom: 10px;
        }
        
        .library-label {
            font-size: 1.2em;
            font-weight: bold;
        }
        
        .multiple-libraries {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin: 20px 0;
        }
        
        .library-branch {
            width: 70px;
            height: 70px;
            background: linear-gradient(145deg, #e74c3c, #c0392b);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5em;
            color: white;
            position: relative;
            animation: pulse 2s infinite alternate;
        }
        
        .library-branch:nth-child(1) { animation-delay: 0s; }
        .library-branch:nth-child(2) { animation-delay: 0.3s; }
        .library-branch:nth-child(3) { animation-delay: 0.6s; }
        .library-branch:nth-child(4) { animation-delay: 0.9s; }
        .library-branch:nth-child(5) { animation-delay: 1.2s; }
        .library-branch:nth-child(6) { animation-delay: 1.5s; }
        
        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 0 0 rgba(231, 76, 60, 0.7); }
            100% { transform: scale(1.05); box-shadow: 0 0 20px rgba(231, 76, 60, 0.7); }
        }
        
        .library-branch::before {
            content: '🏪';
        }
        
        /* データ配置の視覚化 */
        .data-visualization {
            margin: 40px 0;
            background: #2c3e50;
            padding: 30px;
            border-radius: 15px;
            color: white;
        }
        
        .data-blocks {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin: 20px 0;
        }
        
        .data-block {
            width: 40px;
            height: 40px;
            background: linear-gradient(45deg, #CA8A04, #e67e22);
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 0.9em;
            animation: data-glow 2s infinite alternate;
        }
        
        @keyframes data-glow {
            0% { box-shadow: 0 0 5px rgba(243, 156, 18, 0.5); }
            100% { box-shadow: 0 0 15px rgba(243, 156, 18, 1); }
        }
        
        .single-node-data .data-block {
            background: linear-gradient(45deg, #3498db, #2980b9);
        }
        
        .multi-node-data {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        
        .shard-container {
            background: rgba(231, 76, 60, 0.1);
            padding: 15px;
            border-radius: 10px;
            border: 2px dashed #e74c3c;
        }
        
        .shard-label {
            text-align: center;
            font-size: 0.9em;
            margin-bottom: 10px;
            color: #e74c3c;
            font-weight: bold;
        }
        
        /* トラフィック流れの視覚化 */
        .traffic-flow {
            margin: 40px 0;
            position: relative;
        }
        
        .client-icons {
            display: flex;
            justify-content: space-around;
            margin-bottom: 30px;
        }
        
        .client-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #15803D, #15803D);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5em;
            color: white;
        }
        
        .traffic-line {
            height: 4px;
            background: linear-gradient(90deg, #15803D, #e74c3c);
            margin: 20px 0;
            border-radius: 2px;
            position: relative;
            animation: traffic-flow 2s infinite;
        }
        
        @keyframes traffic-flow {
            0% { background-position: 0% 50%; }
            100% { background-position: 100% 50%; }
        }
        
        .traffic-line::before {
            content: '📊';
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 1.5s infinite;
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-10px); }
        }
        
        /* 障害時の影響範囲 */
        .failure-scenario {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
            padding: 30px;
            border-radius: 20px;
            margin: 40px 0;
            position: relative;
        }
        
        .failure-scenario::before {
            content: '⚠️';
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 2em;
            animation: warning-blink 1.5s infinite;
        }
        
        @keyframes warning-blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }
        
        .failure-title {
            font-size: 1.8em;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .failure-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 20px;
        }
        
        .failure-case {
            background: rgba(255,255,255,0.1);
            padding: 20px;
            border-radius: 15px;
        }
        
        .failure-icon {
            font-size: 3em;
            text-align: center;
            margin-bottom: 15px;
        }
        
        /* スケーリング比較 */
        .scaling-demo {
            margin: 50px 0;
        }
        
        .scaling-title {
            font-size: 2.2em;
            text-align: center;
            color: #2c3e50;
            margin-bottom: 40px;
        }
        
        .scaling-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
        }
        
        .scaling-scenario {
            text-align: center;
        }
        
        .capacity-bar {
            width: 100%;
            height: 40px;
            background: #ecf0f1;
            border-radius: 20px;
            position: relative;
            margin: 20px 0;
            overflow: hidden;
        }
        
        .capacity-fill {
            height: 100%;
            border-radius: 20px;
            position: relative;
            animation: fill-up 3s ease-out;
        }
        
        .disabled-fill {
            width: 60%;
            background: linear-gradient(90deg, #3498db, #2980b9);
        }
        
        .enabled-fill {
            width: 95%;
            background: linear-gradient(90deg, #e74c3c, #c0392b);
        }
        
        @keyframes fill-up {
            from { width: 0%; }
        }
        
        .capacity-label {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-weight: bold;
        }
        
        /* 特徴比較表 */
        .features-comparison {
            background: #f8f9fa;
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
        }
        
        .features-title {
            font-size: 2.2em;
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px;
            margin-top: 30px;
        }
        
        .feature-header {
            background: linear-gradient(135deg, #34495e, #2c3e50);
            color: white;
            padding: 20px;
            text-align: center;
            font-weight: bold;
            border-radius: 10px;
        }
        
        .feature-item {
            background: white;
            padding: 20px;
            text-align: center;
            border-radius: 10px;
            border: 2px solid #ecf0f1;
            transition: all 0.3s ease;
        }
        
        .feature-item:hover {
            border-color: #3498db;
            transform: translateY(-5px);
        }
        
        .feature-icon {
            font-size: 2em;
            margin-bottom: 10px;
        }
        
        .good { color: #15803D; }
        .bad { color: #e74c3c; }
        .neutral { color: #CA8A04; }
        
        /* 最終結論 */
        .conclusion {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            margin: 50px 0;
            position: relative;
        }
        
        .conclusion::before {
            content: '🎯';
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 3em;
            opacity: 0.3;
        }
        
        .conclusion h3 {
            font-size: 2em;
            margin-bottom: 20px;
        }
        
        .conclusion p {
            font-size: 1.2em;
            line-height: 1.6;
        }
        
        /* シャード説明セクションのスタイル */
        .shard-explanation {
            margin: 60px 0;
        }
        
        .hash-flow {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin: 40px 0;
            flex-wrap: wrap;
        }
        
        .hash-step {
            text-align: center;
        }
        
        .hash-box {
            width: 120px;
            height: 120px;
            background: linear-gradient(135deg, #3498db, #2980b9);
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            transition: transform 0.3s ease;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .hash-box:hover {
            transform: scale(1.1);
        }
        
        .final-shard {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            animation: final-glow 2s infinite alternate;
        }
        
        @keyframes final-glow {
            0% { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
            100% { box-shadow: 0 10px 30px rgba(231, 76, 60, 0.5); }
        }
        
        .hash-icon {
            font-size: 2em;
            margin-bottom: 5px;
        }
        
        .hash-label {
            font-size: 0.9em;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .hash-value {
            font-size: 0.8em;
            opacity: 0.9;
        }
        
        .hash-arrow {
            font-size: 2em;
            color: #e74c3c;
            animation: arrow-pulse 1.5s infinite;
        }
        
        @keyframes arrow-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }
        
        .analogy-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin: 40px 0;
        }
        
        .analogy-side {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 20px;
        }
        
        .single-library-big {
            text-align: center;
            padding: 20px;
            background: white;
            border-radius: 15px;
            border: 3px solid #e74c3c;
        }
        
        .library-icon {
            font-size: 4em;
            margin-bottom: 15px;
        }
        
        .books-container {
            margin: 20px 0;
        }
        
        .book-shelf {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .book {
            background: linear-gradient(90deg, #CA8A04, #e67e22);
            color: white;
            padding: 10px;
            border-radius: 8px;
            font-size: 0.9em;
        }
        
        .distributed-libraries {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }
        
        .library-branch-detailed {
            background: white;
            padding: 15px;
            border-radius: 12px;
            text-align: center;
            border: 2px solid #15803D;
        }
        
        .branch-icon {
            font-size: 2em;
            margin-bottom: 8px;
        }
        
        .branch-label {
            font-weight: bold;
            margin-bottom: 8px;
            color: #2c3e50;
            font-size: 0.9em;
        }
        
        .book-category {
            background: linear-gradient(90deg, #15803D, #15803D);
            color: white;
            padding: 8px;
            border-radius: 6px;
            font-size: 0.8em;
        }
        
        .pros-cons-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin: 40px 0;
        }
        
        .pros-section,
        .cons-section {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 20px;
        }
        
        .pros-section {
            border-left: 5px solid #15803D;
        }
        
        .cons-section {
            border-left: 5px solid #e74c3c;
        }
        
        .benefit-item,
        .drawback-item {
            display: flex;
            align-items: center;
            margin: 20px 0;
            padding: 15px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .benefit-icon,
        .drawback-icon {
            font-size: 2em;
            margin-right: 15px;
            width: 60px;
            text-align: center;
        }
        
        .benefit-content strong,
        .drawback-content strong {
            display: block;
            color: #2c3e50;
            margin-bottom: 5px;
        }
        
        .benefit-content p,
        .drawback-content p {
            color: #7f8c8d;
            font-size: 0.9em;
            margin: 0;
        }
        
        .criteria-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin: 40px 0;
        }
        
        .criteria-side {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 20px;
        }
        
        .use-shard {
            border-left: 5px solid #15803D;
        }
        
        .avoid-shard {
            border-left: 5px solid #e74c3c;
        }
        
        .criteria-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .criteria-item {
            display: flex;
            align-items: center;
            padding: 15px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .criteria-icon {
            font-size: 1.5em;
            margin-right: 15px;
            width: 40px;
            text-align: center;
        }
        
        /* レスポンシブ対応 */
        @media (max-width: 768px) {
            .comparison-container,
            .scaling-comparison,
            .failure-comparison,
            .features-grid,
            .analogy-comparison,
            .pros-cons-grid,
            .criteria-comparison {
                grid-template-columns: 1fr;
            }
            
            .multiple-libraries,
            .distributed-libraries {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .multi-node-data {
                grid-template-columns: 1fr;
            }
            
            .hash-flow {
                flex-direction: column;
            }
            
            .hash-arrow {
                transform: rotate(90deg);
            }
            
            .header h1 {
                font-size: 2.2em;
            }
            
            .content {
                padding: 30px;
            }
        }
    
        
        

        

        

        

        

        

        

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

        

        

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

        

        

        

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

            

            

            

            
        }