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

* {
            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 25%, #f093fb 50%, #4facfe 75%, #43e97b 100%);
            padding: 20px;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 25px 70px rgba(0,0,0,0.4);
            overflow: hidden;
        }
        
        .header {
            background: linear-gradient(135deg, #dc7600 0%, #232f3e 50%, #146eb4 100%);
            color: white;
            padding: 50px 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .header::before {
            content: '🔄';
            position: absolute;
            font-size: 20em;
            opacity: 0.1;
            top: -50px;
            right: -50px;
        }
        
        .header h1 {
            font-size: 2.8em;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
        }
        
        .header p {
            font-size: 1.3em;
            opacity: 0.95;
            position: relative;
            z-index: 1;
        }
        
        .content {
            padding: 50px;
        }
        
        /* 結論ファースト */
        .conclusion-first {
            background: linear-gradient(135deg, #232f3e 0%, #146eb4 100%);
            color: white;
            padding: 40px;
            border-radius: 20px;
            margin-bottom: 50px;
        }
        
        .conclusion-first h2 {
            font-size: 2em;
            margin-bottom: 25px;
            color: #dc7600;
            text-align: center;
        }
        
        .conclusion-box {
            background: rgba(255,255,255,0.1);
            padding: 30px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            text-align: center;
            margin-bottom: 30px;
        }
        
        .conclusion-box p {
            font-size: 1.3em;
            line-height: 1.8;
        }
        
        .key-points {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 30px;
        }
        
        .key-point {
            background: rgba(255,255,255,0.15);
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .key-point:hover {
            transform: translateY(-5px);
            background: rgba(255,255,255,0.25);
        }
        
        .key-point-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }
        
        .key-point-title {
            font-size: 1.2em;
            font-weight: bold;
            color: #dc7600;
            margin-bottom: 10px;
        }
        
        .key-point-desc {
            font-size: 0.95em;
            opacity: 0.9;
        }
        
        /* セクションタイトル */
        .section-title {
            text-align: center;
            font-size: 2.2em;
            color: #1e293b;
            margin: 50px 0 30px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }
        
        /* バス会社のたとえ話 */
        .analogy-section {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #0284c7;
        }
        
        .analogy-title {
            color: #0c4a6e;
            font-size: 2em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .analogy-intro {
            background: white;
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 30px;
            text-align: center;
        }
        
        .analogy-intro p {
            font-size: 1.2em;
            color: #0c4a6e;
            line-height: 1.8;
        }
        
        .bus-fleet-diagram {
            background: white;
            padding: 40px;
            border-radius: 20px;
            margin: 30px 0;
        }
        
        .fleet-title {
            text-align: center;
            font-size: 1.5em;
            color: #0c4a6e;
            margin-bottom: 30px;
            font-weight: bold;
        }
        
        .fleet-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            flex-wrap: wrap;
        }
        
        .bus-group {
            text-align: center;
        }
        
        .bus-group-title {
            font-weight: bold;
            margin-bottom: 15px;
            padding: 10px 20px;
            border-radius: 10px;
        }
        
        .old-buses .bus-group-title {
            background: #fee2e2;
            color: #991b1b;
        }
        
        .new-buses .bus-group-title {
            background: #d1fae5;
            color: #065f46;
        }
        
        .buses {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .bus {
            font-size: 3em;
            transition: all 0.3s ease;
        }
        
        .bus:hover {
            transform: scale(1.2);
        }
        
        .bus.old {
            filter: sepia(100%) hue-rotate(-30deg);
        }
        
        .bus.new {
            filter: hue-rotate(100deg) saturate(1.5);
        }
        
        .refresh-arrow {
            font-size: 4em;
            color: #0284c7;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        
        /* マッピング表 */
        .mapping-section {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #f59e0b;
        }
        
        .mapping-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .mapping-card {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 20px;
            transition: all 0.3s ease;
        }
        
        .mapping-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }
        
        .mapping-icon {
            font-size: 3em;
            flex-shrink: 0;
        }
        
        .mapping-content h4 {
            color: #92400e;
            font-size: 1.2em;
            margin-bottom: 8px;
        }
        
        .mapping-content p {
            color: #78350f;
            font-size: 0.95em;
        }
        
        .mapping-arrow {
            color: #f59e0b;
            font-weight: bold;
        }
        
        /* プロセスフロー */
        .process-section {
            background: linear-gradient(to bottom, #f8fafc 0%, white 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .process-flow {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 20px;
            flex-wrap: wrap;
            margin: 40px 0;
        }
        
        .process-step {
            background: white;
            border-radius: 20px;
            padding: 30px;
            width: 220px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-top: 5px solid;
            transition: all 0.3s ease;
        }
        
        .process-step:hover {
            transform: translateY(-10px);
        }
        
        .process-step:nth-child(1) { border-color: #ef4444; }
        .process-step:nth-child(3) { border-color: #f59e0b; }
        .process-step:nth-child(5) { border-color: #10b981; }
        .process-step:nth-child(7) { border-color: #3b82f6; }
        .process-step:nth-child(9) { border-color: #8b5cf6; }
        
        .step-number {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5em;
            font-weight: bold;
            margin: 0 auto 15px;
        }
        
        .step-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }
        
        .step-title {
            font-size: 1.1em;
            font-weight: bold;
            color: #1e293b;
            margin-bottom: 10px;
        }
        
        .step-desc {
            color: #64748b;
            font-size: 0.9em;
            line-height: 1.6;
        }
        
        .process-arrow {
            font-size: 2.5em;
            color: #94a3b8;
            display: flex;
            align-items: center;
            padding-top: 60px;
        }
        
        /* パラメータ解説 */
        .params-section {
            background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #10b981;
        }
        
        .params-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        
        .param-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-left: 5px solid #10b981;
        }
        
        .param-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .param-icon {
            font-size: 2.5em;
        }
        
        .param-name {
            font-family: 'Courier New', monospace;
            background: #ecfdf5;
            padding: 8px 15px;
            border-radius: 8px;
            color: #065f46;
            font-weight: bold;
        }
        
        .param-desc {
            color: #475569;
            line-height: 1.8;
            margin-bottom: 20px;
        }
        
        .param-example {
            background: #f0fdf4;
            padding: 20px;
            border-radius: 10px;
        }
        
        .param-example-title {
            font-weight: bold;
            color: #065f46;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .param-example-content {
            color: #047857;
            font-size: 0.95em;
        }
        
        /* ローリング更新の図解 */
        .rolling-update-section {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #3b82f6;
        }
        
        .rolling-stages {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-top: 40px;
        }
        
        .rolling-stage {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .stage-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .stage-badge {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: bold;
        }
        
        .stage-title {
            font-size: 1.3em;
            color: #1e40af;
            font-weight: bold;
        }
        
        .instance-visual {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            padding: 20px;
            background: #f8fafc;
            border-radius: 15px;
        }
        
        .instance-box {
            width: 80px;
            height: 80px;
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .instance-box:hover {
            transform: scale(1.1);
        }
        
        .instance-old {
            background: linear-gradient(135deg, #fee2e2, #fecaca);
            border: 3px solid #ef4444;
            color: #991b1b;
        }
        
        .instance-new {
            background: linear-gradient(135deg, #d1fae5, #a7f3d0);
            border: 3px solid #10b981;
            color: #065f46;
        }
        
        .instance-terminating {
            background: linear-gradient(135deg, #fef3c7, #fde68a);
            border: 3px solid #f59e0b;
            color: #92400e;
            animation: blink 1s infinite;
        }
        
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        .instance-launching {
            background: linear-gradient(135deg, #dbeafe, #bfdbfe);
            border: 3px solid #3b82f6;
            color: #1e40af;
            animation: pulse 1.5s infinite;
        }
        
        .instance-icon {
            font-size: 1.8em;
        }
        
        .instance-label {
            font-size: 0.7em;
            margin-top: 5px;
        }
        
        .stage-legend {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9em;
            color: #475569;
        }
        
        .legend-dot {
            width: 20px;
            height: 20px;
            border-radius: 5px;
        }
        
        .legend-dot.old { background: #fee2e2; border: 2px solid #ef4444; }
        .legend-dot.new { background: #d1fae5; border: 2px solid #10b981; }
        .legend-dot.terminating { background: #fef3c7; border: 2px solid #f59e0b; }
        .legend-dot.launching { background: #dbeafe; border: 2px solid #3b82f6; }
        
        /* チェックポイント */
        .checkpoint-section {
            background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #8b5cf6;
        }
        
        .checkpoint-flow {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            margin: 40px 0;
            flex-wrap: wrap;
        }
        
        .checkpoint-box {
            background: white;
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            max-width: 250px;
        }
        
        .checkpoint-icon {
            font-size: 4em;
            margin-bottom: 15px;
        }
        
        .checkpoint-title {
            font-size: 1.2em;
            font-weight: bold;
            color: #5b21b6;
            margin-bottom: 10px;
        }
        
        .checkpoint-desc {
            color: #64748b;
            font-size: 0.95em;
        }
        
        .checkpoint-arrow {
            font-size: 3em;
            color: #8b5cf6;
        }
        
        .checkpoint-decision {
            background: linear-gradient(135deg, #8b5cf6, #6d28d9);
            color: white;
            border-radius: 20px;
            padding: 30px;
            text-align: center;
        }
        
        .decision-paths {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 30px;
        }
        
        .decision-path {
            text-align: center;
        }
        
        .decision-arrow {
            font-size: 2em;
            margin-bottom: 10px;
        }
        
        .decision-result {
            padding: 15px 25px;
            border-radius: 15px;
            font-weight: bold;
        }
        
        .result-continue {
            background: #d1fae5;
            color: #065f46;
            border: 3px solid #10b981;
        }
        
        .result-rollback {
            background: #fee2e2;
            color: #991b1b;
            border: 3px solid #ef4444;
        }
        
        /* 比較表 */
        .comparison-table {
            background: white;
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .table-title {
            text-align: center;
            font-size: 2em;
            color: #1e293b;
            margin-bottom: 35px;
            font-weight: bold;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th {
            background: linear-gradient(135deg, #dc7600 0%, #232f3e 100%);
            color: white;
            padding: 20px;
            text-align: left;
            font-size: 1.05em;
        }
        
        th:first-child {
            border-radius: 10px 0 0 0;
        }
        
        th:last-child {
            border-radius: 0 10px 0 0;
        }
        
        td {
            padding: 20px;
            border-bottom: 2px solid #f1f5f9;
        }
        
        tr:hover {
            background: #f8fafc;
        }
        
        .check {
            color: #10b981;
            font-weight: bold;
            font-size: 1.3em;
        }
        
        .cross {
            color: #ef4444;
            font-weight: bold;
            font-size: 1.3em;
        }
        
        /* ユースケース */
        .usecase-section {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #f59e0b;
        }
        
        .usecase-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .usecase-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .usecase-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        
        .usecase-icon {
            font-size: 3em;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .usecase-title {
            font-size: 1.3em;
            font-weight: bold;
            color: #92400e;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .usecase-desc {
            color: #78350f;
            line-height: 1.7;
            margin-bottom: 15px;
        }
        
        .usecase-example {
            background: #fffbeb;
            padding: 15px;
            border-radius: 10px;
            font-size: 0.9em;
            color: #92400e;
        }
        
        /* Tips */
        .tip-box {
            background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
            padding: 35px;
            border-radius: 15px;
            margin: 40px 0;
            border-left: 6px solid #7c3aed;
        }
        
        .tip-title {
            font-size: 1.6em;
            font-weight: bold;
            color: #5b21b6;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .tip-content {
            color: #5b21b6;
            line-height: 1.9;
            font-size: 1.05em;
        }
        
        /* コード例 */
        .code-section {
            background: #1e293b;
            padding: 30px;
            border-radius: 15px;
            margin: 30px 0;
            overflow-x: auto;
        }
        
        .code-title {
            color: #60a5fa;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 1.1em;
        }
        
        .code-block {
            font-family: 'Courier New', monospace;
            color: #e2e8f0;
            font-size: 0.9em;
            line-height: 1.8;
            white-space: pre-wrap;
        }
        
        .code-comment { color: #94a3b8; }
        .code-keyword { color: #f472b6; }
        .code-string { color: #34d399; }
        .code-number { color: #fbbf24; }
        
        /* FAQ */
        .faq-section {
            background: linear-gradient(to bottom, #f8fafc 0%, white 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .faq-item {
            background: white;
            border-radius: 15px;
            margin: 20px 0;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .faq-question {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            padding: 20px 25px;
            font-weight: bold;
            color: #0c4a6e;
            font-size: 1.1em;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .faq-answer {
            padding: 25px;
            color: #475569;
            line-height: 1.8;
        }
        
        /* まとめ */
        .summary {
            background: linear-gradient(135deg, #dc7600 0%, #232f3e 50%, #146eb4 100%);
            color: white;
            padding: 50px;
            border-radius: 20px;
            text-align: center;
        }
        
        .summary h2 {
            font-size: 2.5em;
            margin-bottom: 30px;
        }
        
        .summary-box {
            background: rgba(255,255,255,0.15);
            padding: 35px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            margin-bottom: 30px;
        }
        
        .summary-box h3 {
            font-size: 1.8em;
            margin-bottom: 15px;
            color: #dc7600;
        }
        
        .summary-box p {
            font-size: 1.15em;
            line-height: 2;
        }
        
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin: 30px 0;
        }
        
        .summary-item {
            background: rgba(255,255,255,0.15);
            padding: 25px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }
        
        .summary-icon {
            font-size: 2.5em;
            margin-bottom: 10px;
        }
        
        .summary-title {
            font-size: 1.1em;
            font-weight: bold;
            color: #dc7600;
            margin-bottom: 8px;
        }
        
        .summary-desc {
            font-size: 0.9em;
            opacity: 0.9;
        }
        
        .final-message {
            background: rgba(255,255,255,0.2);
            padding: 30px;
            border-radius: 15px;
            margin-top: 30px;
            font-size: 1.2em;
            line-height: 1.8;
        }
        
        /* レスポンシブ */
        @media (max-width: 1024px) {
            .key-points,
            .summary-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .process-flow {
                flex-direction: column;
                align-items: center;
            }
            
            .process-arrow {
                transform: rotate(90deg);
                padding: 0;
            }
            
            .checkpoint-flow {
                flex-direction: column;
            }
            
            .checkpoint-arrow {
                transform: rotate(90deg);
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            .key-points,
            .summary-grid {
                grid-template-columns: 1fr;
            }
            
            table {
                font-size: 0.85em;
            }
            
            th, td {
                padding: 12px 10px;
            }
            
            .decision-paths {
                flex-direction: column;
                gap: 20px;
            }
        }