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

* {
            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%, #00f2fe 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, #4facfe 0%, #00f2fe 50%, #43e97b 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;
        }
        
        .intro {
            text-align: center;
            margin-bottom: 50px;
            padding: 40px;
            background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
            border-radius: 15px;
            border-left: 6px solid #00bcd4;
        }
        
        .intro h2 {
            color: #006064;
            font-size: 2.2em;
            margin-bottom: 20px;
        }
        
        .intro-text {
            font-size: 1.2em;
            color: #00695c;
            line-height: 1.8;
        }
        
        /* マンションの例え図解 */
        .analogy-section {
            background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #ff9800;
        }
        
        .analogy-title {
            color: #e65100;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .mansion-diagram {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            margin: 40px 0;
            flex-wrap: wrap;
        }
        
        .mansion-building {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            max-width: 500px;
            position: relative;
        }
        
        .building-title {
            text-align: center;
            font-size: 1.5em;
            font-weight: bold;
            color: #1e293b;
            margin-bottom: 20px;
            padding: 15px;
            background: linear-gradient(135deg, #e3f2fd, #bbdefb);
            border-radius: 10px;
        }
        
        .floor {
            background: #f5f5f5;
            border: 3px dashed #9e9e9e;
            border-radius: 15px;
            padding: 20px;
            margin: 15px 0;
            position: relative;
        }
        
        .floor-label {
            position: absolute;
            top: -12px;
            left: 20px;
            background: #ff9800;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.9em;
        }
        
        .rooms {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 15px;
        }
        
        .room {
            background: white;
            border: 3px solid #4caf50;
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            min-width: 80px;
            position: relative;
        }
        
        .room-icon {
            font-size: 2em;
            margin-bottom: 5px;
        }
        
        .room-label {
            font-size: 0.8em;
            color: #666;
        }
        
        .room-lock {
            position: absolute;
            top: -10px;
            right: -10px;
            background: #4caf50;
            color: white;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8em;
        }
        
        .entrance-gate {
            background: linear-gradient(135deg, #e3f2fd, #90caf9);
            border: 4px solid #2196f3;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            margin-top: 20px;
        }
        
        .gate-icon {
            font-size: 3em;
            margin-bottom: 10px;
        }
        
        .gate-label {
            font-weight: bold;
            color: #1565c0;
        }
        
        .analogy-explanation {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 40px;
        }
        
        .analogy-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .analogy-card h3 {
            font-size: 1.5em;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .analogy-card.sg h3 {
            color: #2e7d32;
        }
        
        .analogy-card.nacl h3 {
            color: #1565c0;
        }
        
        .analogy-card p {
            color: #475569;
            line-height: 1.8;
        }
        
        /* 比較カード */
        .comparison-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin: 50px 0;
        }
        
        .feature-card {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        }
        
        .sg-card {
            border-top: 8px solid #4caf50;
            background: linear-gradient(to bottom, #e8f5e9 0%, white 100%);
        }
        
        .nacl-card {
            border-top: 8px solid #2196f3;
            background: linear-gradient(to bottom, #e3f2fd 0%, white 100%);
        }
        
        .card-icon {
            font-size: 4em;
            text-align: center;
            margin-bottom: 20px;
        }
        
        .card-title {
            font-size: 2em;
            font-weight: bold;
            text-align: center;
            margin-bottom: 10px;
        }
        
        .sg-card .card-title {
            color: #2e7d32;
        }
        
        .nacl-card .card-title {
            color: #1565c0;
        }
        
        .card-subtitle {
            text-align: center;
            font-size: 1.1em;
            color: #64748b;
            margin-bottom: 30px;
            font-weight: 600;
        }
        
        .feature-box {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin: 15px 0;
            border-left: 4px solid;
        }
        
        .sg-card .feature-box {
            border-color: #4caf50;
            background: #f1f8e9;
        }
        
        .nacl-card .feature-box {
            border-color: #2196f3;
            background: #e3f2fd;
        }
        
        .feature-title {
            font-weight: bold;
            font-size: 1.1em;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .sg-card .feature-title {
            color: #2e7d32;
        }
        
        .nacl-card .feature-title {
            color: #1565c0;
        }
        
        .feature-content {
            color: #475569;
            line-height: 1.7;
        }
        
        /* 比較表 */
        .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;
            background: white;
        }
        
        th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            text-align: left;
            font-size: 1.1em;
        }
        
        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;
        }
        
        .highlight-green {
            color: #2e7d32;
            font-weight: bold;
        }
        
        .highlight-blue {
            color: #1565c0;
            font-weight: bold;
        }
        
        /* ステートフル vs ステートレス */
        .state-section {
            background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #e91e63;
        }
        
        .state-title {
            color: #880e4f;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .state-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 30px;
        }
        
        .state-card {
            background: white;
            padding: 35px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .state-card h3 {
            font-size: 1.8em;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .state-card.stateful h3 {
            color: #2e7d32;
        }
        
        .state-card.stateless h3 {
            color: #1565c0;
        }
        
        .state-diagram {
            background: #f5f5f5;
            padding: 25px;
            border-radius: 10px;
            margin: 20px 0;
        }
        
        .traffic-flow {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 15px 0;
            padding: 15px;
            background: white;
            border-radius: 8px;
        }
        
        .traffic-arrow {
            font-size: 1.5em;
            color: #4caf50;
        }
        
        .traffic-arrow.blocked {
            color: #f44336;
        }
        
        .traffic-label {
            font-size: 0.9em;
            color: #666;
        }
        
        .state-explanation {
            background: #fff9c4;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
            border-left: 4px solid #ffc107;
        }
        
        /* ルール評価順序 */
        .rule-section {
            background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #3f51b5;
        }
        
        .rule-title {
            color: #1a237e;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .rule-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 30px;
        }
        
        .rule-card {
            background: white;
            padding: 35px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .rule-card h3 {
            font-size: 1.5em;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .rule-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            margin: 10px 0;
            border-radius: 8px;
            background: #f5f5f5;
        }
        
        .rule-number {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        .rule-content {
            flex: 1;
        }
        
        .rule-result {
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.85em;
        }
        
        .rule-allow {
            background: #c8e6c9;
            color: #2e7d32;
        }
        
        .rule-deny {
            background: #ffcdd2;
            color: #c62828;
        }
        
        /* ユースケース */
        .usecase-section {
            background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #009688;
        }
        
        .usecase-title {
            color: #004d40;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .usecase-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .usecase-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .usecase-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 150, 136, 0.3);
        }
        
        .usecase-icon {
            font-size: 3em;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .usecase-card h4 {
            color: #004d40;
            font-size: 1.3em;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .usecase-description {
            color: #475569;
            line-height: 1.7;
            margin: 15px 0;
        }
        
        .usecase-recommendation {
            background: #e0f2f1;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
        }
        
        .usecase-recommendation strong {
            color: #00695c;
        }
        
        /* Tips */
        .tip-box {
            background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
            padding: 35px;
            border-radius: 15px;
            margin: 40px 0;
            border-left: 6px solid #ffc107;
        }
        
        .tip-title {
            font-size: 1.6em;
            font-weight: bold;
            color: #f57f17;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .tip-content {
            color: #795548;
            line-height: 1.9;
            font-size: 1.05em;
        }
        
        /* ベストプラクティス */
        .best-practice {
            background: white;
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .best-practice-title {
            text-align: center;
            font-size: 2em;
            color: #1e293b;
            margin-bottom: 35px;
            font-weight: bold;
        }
        
        .practice-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }
        
        .practice-card {
            background: linear-gradient(to bottom, #f8fafc 0%, white 100%);
            padding: 25px;
            border-radius: 15px;
            border-top: 5px solid;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .practice-card:nth-child(1) { border-color: #4caf50; }
        .practice-card:nth-child(2) { border-color: #2196f3; }
        .practice-card:nth-child(3) { border-color: #ff9800; }
        .practice-card:nth-child(4) { border-color: #9c27b0; }
        
        .practice-icon {
            font-size: 2.5em;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .practice-card h4 {
            color: #1e293b;
            font-size: 1.2em;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .practice-card p {
            color: #475569;
            line-height: 1.7;
        }
        
        /* レスポンシブ */
        @media (max-width: 1024px) {
            .comparison-section,
            .analogy-explanation,
            .state-grid,
            .rule-grid {
                grid-template-columns: 1fr;
            }
            
            .mansion-diagram {
                flex-direction: column;
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            table {
                font-size: 0.85em;
            }
            
            th, td {
                padding: 12px 8px;
            }
        }
    
        
        

        

        

        

        

        

        

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

        

        

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

        

        

        

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

            

            

            

            
        }