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

* {
            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%, #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, #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;
        }
        
        .header h1 {
            font-size: 3em;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
            color: #FFFFFF;  /* WCAG: 白文字でグラデーション背景との十分なコントラストを確保 */
        }
        
        .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, #fff5f5 0%, #ffe4e6 100%);
            border-radius: 15px;
            border-left: 6px solid #f5576c;
        }
        
        .intro h2 {
            color: #be123c;
            font-size: 2.2em;
            margin-bottom: 20px;
        }
        
        .intro-text {
            font-size: 1.2em;
            color: #881337;
            line-height: 1.8;
        }
        
        /* ABACとは何かセクション */
        .abac-overview {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #0284c7;
        }
        
        .abac-overview-title {
            color: #0c4a6e;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .abac-concept {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 30px;
        }
        
        .concept-card {
            background: white;
            padding: 35px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .concept-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }
        
        .concept-icon {
            font-size: 4em;
            text-align: center;
            margin-bottom: 20px;
        }
        
        .concept-card h3 {
            color: #0c4a6e;
            font-size: 1.8em;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .concept-description {
            background: #f0f9ff;
            padding: 20px;
            border-radius: 10px;
            color: #0c4a6e;
            line-height: 1.8;
            margin: 15px 0;
        }
        
        /* アナロジーセクション */
        .analogy-section {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #CA8A04;
        }
        
        .analogy-title {
            color: #92400e;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .analogy-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 30px;
        }
        
        .analogy-card {
            background: white;
            padding: 35px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .analogy-icon {
            font-size: 4em;
            text-align: center;
            margin-bottom: 20px;
        }
        
        .analogy-card h3 {
            color: #92400e;
            font-size: 1.6em;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .analogy-description {
            background: #fffbeb;
            padding: 20px;
            border-radius: 10px;
            color: #78350f;
            line-height: 1.8;
            margin: 15px 0;
            border-left: 4px solid #CA8A04;
        }
        
        /* 比較カード */
        .comparison-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin: 50px 0;
        }
        
        .tag-card {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .tag-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        }
        
        .principal-tag {
            border-top: 8px solid #047857;
            background: linear-gradient(to bottom, #f0fdf4 0%, white 100%);
        }
        
        .resource-tag {
            border-top: 8px solid #8b5cf6;
            background: linear-gradient(to bottom, #f5f3ff 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: 15px;
        }
        
        .principal-tag .card-title {
            color: #065f46;
        }
        
        .resource-tag .card-title {
            color: #5b21b6;
        }
        
        .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;
        }
        
        .principal-tag .feature-box {
            border-color: #047857;
            background: #f0fdf4;
        }
        
        .resource-tag .feature-box {
            border-color: #8b5cf6;
            background: #f5f3ff;
        }
        
        .feature-title {
            font-weight: bold;
            font-size: 1.1em;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .principal-tag .feature-title {
            color: #065f46;
        }
        
        .resource-tag .feature-title {
            color: #5b21b6;
        }
        
        .feature-content {
            color: #475569;
            line-height: 1.7;
        }
        
        /* 動作フロー図 */
        .flow-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);
        }
        
        .flow-title {
            text-align: center;
            font-size: 2.5em;
            color: #1e293b;
            margin-bottom: 40px;
            font-weight: bold;
        }
        
        .flow-diagram {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            margin: 40px 0;
        }
        
        .flow-box {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 25px 35px;
            border-radius: 15px;
            text-align: center;
            min-width: 180px;
            box-shadow: 0 8px 25px rgba(102,126,234,0.4);
        }
        
        .flow-box-icon {
            font-size: 2.5em;
            margin-bottom: 10px;
        }
        
        .flow-box-text {
            font-size: 1.1em;
            font-weight: bold;
        }
        
        .flow-arrow {
            font-size: 2.5em;
            color: #64748B;
        }
        
        .flow-check {
            background: linear-gradient(135deg, #047857, #059669);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(16,185,129,0.4);
        }
        
        /* 比較テーブル */
        .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;
        }
        
        .tag-principal {
            background: #d1fae5;
            color: #065f46;
            padding: 5px 12px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.9em;
        }
        
        .tag-resource {
            background: #A0A0A06fe;
            color: #5b21b6;
            padding: 5px 12px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.9em;
        }
        
        /* ポリシー例 */
        .policy-section {
            background: linear-gradient(135deg, #1e293b, #334155);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
        }
        
        .policy-title {
            text-align: center;
            font-size: 2em;
            color: white;
            margin-bottom: 40px;
            font-weight: bold;
        }
        
        .policy-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        
        .policy-card {
            background: #0f172a;
            border-radius: 15px;
            overflow: hidden;
        }
        
        .policy-header {
            padding: 20px;
            font-weight: bold;
            font-size: 1.2em;
        }
        
        .policy-header.principal {
            background: linear-gradient(135deg, #047857, #059669);
            color: white;
        }
        
        .policy-header.resource {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            color: white;
        }
        
        .policy-code {
            padding: 25px;
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
            line-height: 1.8;
            color: #e2e8f0;
            overflow-x: auto;
        }
        
        .code-keyword { color: #f472b6; }
        .code-string { color: #34d399; }
        .code-comment { color: #64748B; }
        .code-highlight { background: rgba(139, 92, 246, 0.3); padding: 2px 6px; border-radius: 4px; }
        .code-highlight-green { background: rgba(16, 185, 129, 0.3); padding: 2px 6px; border-radius: 4px; }
        
        /* ユースケース */
        .usecase-section {
            background: linear-gradient(135deg, #A0A0A06fe 0%, #c4b5fd 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #7c3aed;
        }
        
        .usecase-title {
            color: #5b21b6;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .usecase-grid {
            display: grid;
            grid-template-columns: repeat(3, 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(-8px);
            box-shadow: 0 15px 40px rgba(124, 58, 237, 0.3);
        }
        
        .usecase-icon {
            font-size: 3em;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .usecase-card h4 {
            color: #5b21b6;
            font-size: 1.3em;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .usecase-description {
            color: #475569;
            line-height: 1.7;
            margin: 15px 0;
        }
        
        .usecase-tags {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 15px;
        }
        
        /* 条件キー一覧 */
        .condition-keys {
            background: white;
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .condition-keys-title {
            text-align: center;
            font-size: 2em;
            color: #1e293b;
            margin-bottom: 35px;
            font-weight: bold;
        }
        
        .keys-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        
        .keys-card {
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .keys-card.principal-keys {
            background: linear-gradient(to bottom, #f0fdf4 0%, white 100%);
            border-top: 5px solid #047857;
        }
        
        .keys-card.resource-keys {
            background: linear-gradient(to bottom, #f5f3ff 0%, white 100%);
            border-top: 5px solid #8b5cf6;
        }
        
        .keys-card h4 {
            font-size: 1.4em;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .keys-card.principal-keys h4 {
            color: #065f46;
        }
        
        .keys-card.resource-keys h4 {
            color: #5b21b6;
        }
        
        .key-item {
            background: white;
            padding: 15px;
            border-radius: 10px;
            margin: 10px 0;
            font-family: 'Courier New', monospace;
            border-left: 4px solid;
        }
        
        .keys-card.principal-keys .key-item {
            border-color: #047857;
        }
        
        .keys-card.resource-keys .key-item {
            border-color: #8b5cf6;
        }
        
        .key-name {
            font-weight: bold;
            color: #1e293b;
            margin-bottom: 5px;
        }
        
        .key-desc {
            font-family: 'Segoe UI', sans-serif;
            color: #64748b;
            font-size: 0.9em;
        }
        
        /* Tips */
        .tip-box {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 35px;
            border-radius: 15px;
            margin: 40px 0;
            border-left: 6px solid #CA8A04;
        }
        
        .tip-title {
            font-size: 1.6em;
            font-weight: bold;
            color: #92400e;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .tip-content {
            color: #78350f;
            line-height: 1.9;
            font-size: 1.05em;
        }
        
        /* 注意点 */
        .warning-box {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            padding: 35px;
            border-radius: 15px;
            margin: 40px 0;
            border-left: 6px solid #ef4444;
        }
        
        .warning-title {
            font-size: 1.6em;
            font-weight: bold;
            color: #991b1b;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .warning-content {
            color: #7f1d1d;
            line-height: 1.9;
            font-size: 1.05em;
        }
        
        /* ベストプラクティス */
        .best-practices {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #047857;
        }
        
        .best-practices-title {
            color: #065f46;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .practice-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }
        
        .practice-item {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }
        
        .practice-number {
            display: inline-block;
            background: linear-gradient(135deg, #047857, #059669);
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            text-align: center;
            line-height: 35px;
            font-weight: bold;
            margin-right: 10px;
        }
        
        .practice-item h4 {
            color: #065f46;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }
        
        .practice-item p {
            color: #475569;
            line-height: 1.7;
            margin-left: 45px;
        }
        
        /* まとめ */
        .summary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #9333EA 100%);
            color: white;
            padding: 50px;
            border-radius: 20px;
            text-align: center;
        }
        
        .summary h2 {
            font-size: 2.5em;
            margin-bottom: 30px;
        }
        
        .summary-content {
            max-width: 1100px;
            margin: 0 auto;
        }
        
        .summary-box {
            background: rgba(255,255,255,0.15);
            padding: 35px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            margin-bottom: 30px;
        }
        
        .summary-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 30px 0;
        }
        
        .summary-item {
            background: rgba(255,255,255,0.15);
            padding: 25px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
        }
        
        .summary-item-icon {
            font-size: 2.5em;
            margin-bottom: 15px;
        }
        
        .summary-item strong {
            font-size: 1.3em;
        }
        
        .summary-formula {
            background: rgba(255,255,255,0.2);
            padding: 30px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
            font-size: 1.3em;
            line-height: 1.8;
        }
        
        @media (max-width: 1024px) {
            .comparison-section,
            .analogy-grid,
            .abac-concept,
            .policy-grid,
            .keys-grid,
            .practice-grid,
            .summary-grid {
                grid-template-columns: 1fr;
            }
            
            .usecase-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            .usecase-grid {
                grid-template-columns: 1fr;
            }
            
            .flow-diagram {
                flex-direction: column;
            }
            
            .flow-arrow {
                transform: rotate(90deg);
            }
            
            table {
                font-size: 0.85em;
            }
            
            th, td {
                padding: 12px;
            }
        }
    
        
        

        

        

        

        

        

        

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

        

        

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

        

        

        

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

            

            

            

            
        }