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

* {
            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%, #9333EA 50%, #0369A1 75%, #43e97b 100%);
            padding: 20px;
            padding-top: 80px; /* 固定ヘッダー分のスペース確保 */
            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, #667eea 0%, #764ba2 50%, #9333EA 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;
            animation: rotate 20s linear infinite;
        }
        
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .header h1 {
            font-size: 3em;
            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;
        }
        
        .intro {
            text-align: center;
            margin-bottom: 50px;
            padding: 40px;
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-radius: 15px;
            border-left: 6px solid #CA8A04;
        }
        
        .intro h2 {
            color: #92400e;
            font-size: 2.2em;
            margin-bottom: 20px;
        }
        
        .intro-text {
            font-size: 1.2em;
            color: #78350f;
            line-height: 1.8;
        }
        
        .lifecycle-overview {
            background: linear-gradient(to bottom, #f8fafc 0%, white 100%);
            padding: 50px 30px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .overview-title {
            text-align: center;
            font-size: 2.5em;
            color: #1e293b;
            margin-bottom: 40px;
            font-weight: bold;
        }
        
        .vertical-timeline {
            max-width: 1000px;
            margin: 0 auto;
            position: relative;
            padding: 40px 0;
        }
        
        .vertical-timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 100%;
            background: linear-gradient(to bottom, #667eea, #764ba2, #9333EA, #CA8A04, #ef4444, #64748b);
        }
        
        .timeline-item {
            margin-bottom: 60px;
            position: relative;
        }
        
        .timeline-item:nth-child(odd) {
            padding-right: calc(50% + 50px);
        }
        
        .timeline-item:nth-child(even) {
            padding-left: calc(50% + 50px);
        }
        
        .timeline-marker {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: white;
            border: 5px solid;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2em;
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
            z-index: 2;
        }
        
        .timeline-item:nth-child(1) .timeline-marker { border-color: #667eea; }
        .timeline-item:nth-child(2) .timeline-marker { border-color: #CA8A04; animation: pulse 2s infinite; }
        .timeline-item:nth-child(3) .timeline-marker { border-color: #047857; }
        .timeline-item:nth-child(4) .timeline-marker { border-color: #3b82f6; }
        .timeline-item:nth-child(5) .timeline-marker { border-color: #ef4444; animation: pulse 2s infinite; }
        .timeline-item:nth-child(6) .timeline-marker { border-color: #64748b; }
        
        @keyframes pulse {
            0%, 100% { transform: translateX(-50%) scale(1); }
            50% { transform: translateX(-50%) scale(1.1); }
        }
        
        .timeline-content {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-left: 6px solid;
            transition: all 0.3s ease;
        }
        
        .timeline-item:nth-child(1) .timeline-content { border-color: #667eea; }
        .timeline-item:nth-child(2) .timeline-content { border-color: #CA8A04; }
        .timeline-item:nth-child(3) .timeline-content { border-color: #047857; }
        .timeline-item:nth-child(4) .timeline-content { border-color: #3b82f6; }
        .timeline-item:nth-child(5) .timeline-content { border-color: #ef4444; }
        .timeline-item:nth-child(6) .timeline-content { border-color: #64748b; }
        
        .timeline-content:hover {
            transform: scale(1.03);
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        }
        
        .state-number {
            display: inline-block;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.9em;
            margin-bottom: 10px;
        }
        
        .state-name {
            font-size: 1.8em;
            font-weight: bold;
            color: #1e293b;
            margin-bottom: 10px;
        }
        
        .state-code {
            font-family: 'Courier New', monospace;
            background: #f1f5f9;
            padding: 8px 12px;
            border-radius: 6px;
            display: inline-block;
            color: #475569;
            font-size: 0.9em;
            margin-bottom: 15px;
        }
        
        .badge {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.85em;
            font-weight: bold;
            margin: 5px 5px 15px 0;
        }
        
        .badge-when {
            background: #dbeafe;
            color: #1e40af;
        }
        
        .badge-what {
            background: #d1fae5;
            color: #065f46;
        }
        
        .badge-hook {
            background: #fef3c7;
            color: #92400e;
        }
        
        .desc-section {
            margin: 15px 0;
            padding: 15px;
            border-radius: 10px;
            background: #f8fafc;
        }
        
        .desc-title {
            font-weight: bold;
            color: #334155;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.05em;
        }
        
        .desc-content {
            color: #475569;
            line-height: 1.7;
        }
        
        .example-box {
            background: linear-gradient(to right, #e0f2fe 0%, #bae6fd 100%);
            padding: 20px;
            border-radius: 10px;
            margin-top: 15px;
            border-left: 4px solid #0284c7;
        }
        
        .example-title {
            font-weight: bold;
            color: #0c4a6e;
            margin-bottom: 10px;
            font-size: 1.1em;
        }
        
        .example-content {
            color: #075985;
            line-height: 1.6;
        }
        
        .hook-detail-section {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 50px 40px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #CA8A04;
        }
        
        .hook-detail-title {
            color: #92400e;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .hook-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        
        .hook-card {
            background: white;
            padding: 35px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
        }
        
        .hook-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.25);
        }
        
        .hook-card-title {
            font-size: 2em;
            color: #92400e;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .hook-card-content {
            color: #78350f;
            line-height: 1.8;
        }
        
        .use-case-section {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #2563eb;
        }
        
        .use-case-title {
            color: #1e40af;
            font-size: 2em;
            margin-bottom: 25px;
            text-align: center;
        }
        
        .use-case-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-top: 25px;
        }
        
        .use-case-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .use-case-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
        }
        
        .use-case-icon {
            font-size: 3em;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .use-case-card h4 {
            color: #1e40af;
            font-size: 1.4em;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .code-example {
            background: #1e293b;
            color: #f1f5f9;
            padding: 30px;
            border-radius: 15px;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            line-height: 1.8;
            margin: 30px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        .code-title {
            color: #2563EB;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 1.1em;
        }
        
        .code-comment { color: #64748B; }
        .code-keyword { color: #f472b6; }
        .code-string { color: #34d399; }
        .code-function { color: #CA8A04; }
        
        .tip-box {
            background: linear-gradient(135deg, #A0A0A06fe 0%, #c4b5fd 100%);
            padding: 30px;
            border-radius: 15px;
            margin: 30px 0;
            border-left: 6px solid #8b5cf6;
        }
        
        .tip-title {
            font-size: 1.4em;
            font-weight: bold;
            color: #5b21b6;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .tip-content {
            color: #6b21a8;
            line-height: 1.8;
        }
        
        .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: 30px;
            font-weight: bold;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        
        th {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 15px;
            text-align: left;
            font-size: 1.1em;
        }
        
        td {
            padding: 15px;
            border-bottom: 1px solid #e2e8f0;
        }
        
        tr:hover {
            background: #f8fafc;
        }
        
        .status-dot {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }
        
        .dot-pending { background: #CA8A04; }
        .dot-active { background: #047857; }
        .dot-terminating { background: #ef4444; }
        .dot-terminated { background: #64748b; }
        
        @media (max-width: 1024px) {
            .vertical-timeline::before {
                left: 40px;
            }
            
            .timeline-item:nth-child(odd),
            .timeline-item:nth-child(even) {
                padding-left: 100px;
                padding-right: 0;
            }
            
            .timeline-marker {
                left: 40px;
            }
            
            .hook-cards {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            .timeline-marker {
                width: 60px;
                height: 60px;
                font-size: 1.5em;
            }
        }
    
        
        

        

        

        

        

        

        

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

        

        

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

        

        

        

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

            

            

            

            
        }