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

* {
            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.8;
        }
        
        .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, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
            color: white;
            padding: 50px 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .header::before {
            content: '🚧';
            position: absolute;
            font-size: 15em;
            opacity: 0.15;
            top: -30px;
            right: -30px;
        }
        
        .header h1 {
            font-size: 2.8em;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }
        
        .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, #fff9e6 0%, #ffe4b5 100%);
            border-radius: 20px;
            border-left: 6px solid #f59e0b;
        }
        
        .intro h2 {
            color: #b45309;
            font-size: 2.2em;
            margin-bottom: 20px;
        }
        
        .intro-text {
            font-size: 1.2em;
            color: #78350f;
            line-height: 2;
        }
        
        /* たとえ話セクション */
        .analogy-section {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            border-radius: 20px;
            padding: 40px;
            margin: 40px 0;
        }
        
        .analogy-title {
            text-align: center;
            font-size: 2em;
            color: #0369a1;
            margin-bottom: 30px;
        }
        
        .analogy-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }
        
        .analogy-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        
        .analogy-card:hover {
            transform: translateY(-5px);
        }
        
        .analogy-icon {
            font-size: 4em;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .analogy-card h3 {
            color: #0369a1;
            font-size: 1.4em;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .analogy-card p {
            color: #334155;
            font-size: 1.05em;
            line-height: 1.8;
        }
        
        /* 図解セクション */
        .diagram-section {
            margin: 50px 0;
            padding: 40px;
            background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
            border-radius: 20px;
        }
        
        .diagram-title {
            text-align: center;
            font-size: 2em;
            color: #86198f;
            margin-bottom: 40px;
        }
        
        .venn-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 50px;
            flex-wrap: wrap;
        }
        
        .venn-diagram {
            position: relative;
            width: 400px;
            height: 300px;
        }
        
        .venn-circle {
            position: absolute;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            font-size: 0.9em;
            text-align: center;
            padding: 20px;
            color: white;
        }
        
        .venn-policy {
            background: rgba(59, 130, 246, 0.7);
            left: 30px;
            top: 50px;
        }
        
        .venn-boundary {
            background: rgba(249, 115, 22, 0.7);
            right: 30px;
            top: 50px;
        }
        
        .venn-intersection {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            padding: 15px 25px;
            border-radius: 10px;
            font-weight: bold;
            font-size: 1.1em;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            z-index: 10;
        }
        
        .venn-explanation {
            max-width: 400px;
        }
        
        .venn-explanation h3 {
            color: #86198f;
            font-size: 1.5em;
            margin-bottom: 20px;
        }
        
        .venn-explanation p {
            color: #475569;
            font-size: 1.1em;
            line-height: 1.8;
            margin-bottom: 15px;
        }
        
        .formula-box {
            background: linear-gradient(135deg, #1e293b, #334155);
            color: white;
            padding: 20px 30px;
            border-radius: 10px;
            font-size: 1.2em;
            text-align: center;
            margin-top: 20px;
        }
        
        /* フローチャート */
        .flow-section {
            margin: 50px 0;
        }
        
        .flow-title {
            text-align: center;
            font-size: 2em;
            color: #1e293b;
            margin-bottom: 40px;
        }
        
        .flow-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .flow-box {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            padding: 25px 30px;
            border-radius: 15px;
            text-align: center;
            min-width: 180px;
            box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
        }
        
        .flow-box.boundary {
            background: linear-gradient(135deg, #f97316, #ea580c);
            box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
        }
        
        .flow-box.result {
            background: linear-gradient(135deg, #10b981, #059669);
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
        }
        
        .flow-box.denied {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
        }
        
        .flow-icon {
            font-size: 2.5em;
            margin-bottom: 10px;
        }
        
        .flow-label {
            font-size: 1.1em;
            font-weight: bold;
        }
        
        .flow-arrow {
            font-size: 2em;
            color: #64748b;
        }
        
        /* ユースケース */
        .usecase-section {
            margin: 50px 0;
        }
        
        .usecase-title {
            text-align: center;
            font-size: 2em;
            color: #1e293b;
            margin-bottom: 40px;
        }
        
        .usecase-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }
        
        .usecase-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-top: 5px solid;
            transition: transform 0.3s ease;
        }
        
        .usecase-card:hover {
            transform: translateY(-5px);
        }
        
        .usecase-card:nth-child(1) { border-color: #3b82f6; }
        .usecase-card:nth-child(2) { border-color: #10b981; }
        .usecase-card:nth-child(3) { border-color: #f59e0b; }
        
        .usecase-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }
        
        .usecase-card h3 {
            color: #1e293b;
            font-size: 1.3em;
            margin-bottom: 15px;
        }
        
        .usecase-card p {
            color: #64748b;
            font-size: 1em;
            line-height: 1.7;
        }
        
        /* 実践例セクション */
        .example-section {
            margin: 50px 0;
            background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
            border-radius: 20px;
            padding: 40px;
        }
        
        .example-title {
            text-align: center;
            font-size: 2em;
            color: #065f46;
            margin-bottom: 30px;
        }
        
        .example-scenario {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
        }
        
        .scenario-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .scenario-icon {
            font-size: 2.5em;
        }
        
        .scenario-title {
            color: #065f46;
            font-size: 1.5em;
        }
        
        .scenario-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        
        .policy-box {
            background: #f8fafc;
            border-radius: 10px;
            padding: 20px;
        }
        
        .policy-box h4 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            font-size: 1.1em;
        }
        
        .policy-box.iam h4 { color: #3b82f6; }
        .policy-box.boundary h4 { color: #f97316; }
        
        .policy-list {
            list-style: none;
        }
        
        .policy-list li {
            padding: 8px 0;
            border-bottom: 1px dashed #e2e8f0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .policy-list li:last-child {
            border-bottom: none;
        }
        
        .result-box {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
        }
        
        .result-box h4 {
            font-size: 1.2em;
            margin-bottom: 15px;
        }
        
        .result-list {
            list-style: none;
            text-align: left;
        }
        
        .result-list li {
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* 比較表 */
        .comparison-section {
            margin: 50px 0;
        }
        
        .comparison-title {
            text-align: center;
            font-size: 2em;
            color: #1e293b;
            margin-bottom: 30px;
        }
        
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .comparison-table th {
            background: linear-gradient(135deg, #1e293b, #334155);
            color: white;
            padding: 20px;
            font-size: 1.1em;
            text-align: left;
        }
        
        .comparison-table td {
            padding: 18px 20px;
            border-bottom: 1px solid #e2e8f0;
            color: #475569;
        }
        
        .comparison-table tr:hover {
            background: #f8fafc;
        }
        
        .comparison-table tr:last-child td {
            border-bottom: none;
        }
        
        /* コードセクション */
        .code-section {
            margin: 50px 0;
            background: linear-gradient(135deg, #1e293b, #0f172a);
            border-radius: 20px;
            padding: 40px;
        }
        
        .code-title {
            text-align: center;
            font-size: 2em;
            color: #f8fafc;
            margin-bottom: 30px;
        }
        
        .code-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .code-tab {
            background: #334155;
            color: #94a3b8;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            font-size: 1em;
        }
        
        .code-tab:hover, .code-tab.active {
            background: #3b82f6;
            color: white;
        }
        
        .code-content {
            display: none;
        }
        
        .code-content.active {
            display: block;
        }
        
        .code-block {
            background: #0f172a;
            border-radius: 10px;
            padding: 25px;
            overflow-x: auto;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.95em;
            line-height: 1.6;
            color: #e2e8f0;
        }
        
        .code-filename {
            background: #475569;
            color: #f8fafc;
            padding: 10px 20px;
            border-radius: 8px 8px 0 0;
            font-size: 0.9em;
            display: inline-block;
        }
        
        .json-key { color: #7dd3fc; }
        .json-string { color: #86efac; }
        .json-value { color: #fcd34d; }
        .comment { color: #64748b; }
        
        /* ベストプラクティス */
        .best-practices {
            margin: 50px 0;
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-radius: 20px;
            padding: 40px;
        }
        
        .bp-title {
            text-align: center;
            font-size: 2em;
            color: #92400e;
            margin-bottom: 30px;
        }
        
        .bp-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }
        
        .bp-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .bp-card h4 {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #92400e;
            font-size: 1.2em;
            margin-bottom: 15px;
        }
        
        .bp-card p {
            color: #78350f;
            line-height: 1.7;
        }
        
        /* 注意事項 */
        .warning-section {
            margin: 50px 0;
            background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
            border-radius: 20px;
            padding: 40px;
            border-left: 6px solid #ef4444;
        }
        
        .warning-title {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.8em;
            color: #991b1b;
            margin-bottom: 25px;
        }
        
        .warning-list {
            list-style: none;
        }
        
        .warning-list li {
            padding: 15px 0;
            border-bottom: 1px dashed #fca5a5;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            color: #7f1d1d;
            font-size: 1.1em;
        }
        
        .warning-list li:last-child {
            border-bottom: none;
        }
        
        .warning-icon {
            font-size: 1.3em;
        }
        
        /* FAQ */
        .faq-section {
            margin: 50px 0;
        }
        
        .faq-title {
            text-align: center;
            font-size: 2em;
            color: #1e293b;
            margin-bottom: 30px;
        }
        
        .faq-item {
            background: white;
            border-radius: 15px;
            margin-bottom: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            overflow: hidden;
        }
        
        .faq-question {
            padding: 25px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f8fafc;
            transition: background 0.3s ease;
        }
        
        .faq-question:hover {
            background: #e2e8f0;
        }
        
        .faq-question h4 {
            color: #1e293b;
            font-size: 1.1em;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .faq-toggle {
            font-size: 1.5em;
            color: #64748b;
            transition: transform 0.3s ease;
        }
        
        .faq-answer {
            padding: 0 25px;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .faq-item.open .faq-answer {
            padding: 25px;
            max-height: 500px;
        }
        
        .faq-item.open .faq-toggle {
            transform: rotate(45deg);
        }
        
        .faq-answer p {
            color: #475569;
            line-height: 1.8;
        }
        
        /* フッター */
        .footer {
            background: linear-gradient(135deg, #1e293b, #0f172a);
            color: white;
            padding: 40px;
            text-align: center;
        }
        
        .footer p {
            opacity: 0.8;
            font-size: 1.1em;
        }
        
        /* レスポンシブ */
        @media (max-width: 1024px) {
            .analogy-grid,
            .scenario-content,
            .bp-grid {
                grid-template-columns: 1fr;
            }
            
            .usecase-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .venn-container {
                flex-direction: column;
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            .usecase-grid {
                grid-template-columns: 1fr;
            }
            
            .flow-container {
                flex-direction: column;
            }
            
            .flow-arrow {
                transform: rotate(90deg);
            }
            
            .venn-diagram {
                width: 300px;
                height: 250px;
            }
            
            .venn-circle {
                width: 150px;
                height: 150px;
                font-size: 0.8em;
            }
        }
    
        
        

        

        

        

        

        

        

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

        

        

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

        

        

        

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

            

            

            

            
        }

    
        
        

        

        

        

        

        

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