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

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
            background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
            min-height: 100vh;
            padding: 40px 20px;
            color: #e2e8f0;
            line-height: 1.8;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* ヘッダー */
        .header {
            text-align: center;
            padding: 50px 30px;
            background: linear-gradient(135deg, rgba(255,153,0,0.2) 0%, rgba(255,100,50,0.2) 100%);
            border-radius: 24px;
            border: 2px solid rgba(255,153,0,0.3);
            margin-bottom: 50px;
            position: relative;
            overflow: hidden;
        }
        
        .header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,153,0,0.1) 0%, transparent 60%);
            animation: pulse 4s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }
        
        .header h1 {
            font-size: 2.8em;
            background: linear-gradient(135deg, #dc7600 0%, #ffcc00 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
        }
        
        .header-subtitle {
            font-size: 1.3em;
            color: #64748B;
            position: relative;
            z-index: 1;
        }
        
        .header-icon {
            font-size: 4em;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }
        
        /* 結論ファースト */
        .conclusion-first {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            border-radius: 20px;
            padding: 40px;
            margin-bottom: 50px;
            box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
            position: relative;
            overflow: hidden;
        }
        
        .conclusion-first::before {
            content: '⚠️';
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 4em;
            opacity: 0.2;
        }
        
        .conclusion-title {
            font-size: 1.8em;
            font-weight: bold;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .conclusion-content {
            font-size: 1.4em;
            line-height: 1.8;
        }
        
        .highlight-box {
            background: rgba(255,255,255,0.15);
            border-radius: 12px;
            padding: 25px;
            margin-top: 25px;
            border-left: 5px solid #CA8A04;
        }
        
        .highlight-box strong {
            color: #CA8A04;
            font-size: 1.1em;
        }
        
        /* セクション */
        .section {
            background: rgba(255,255,255,0.05);
            border-radius: 24px;
            padding: 50px;
            margin-bottom: 40px;
            border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
        }
        
        .section-title {
            font-size: 2em;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 15px;
            color: #f8fafc;
        }
        
        .section-title-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #dc7600 0%, #ff6600 100%);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5em;
        }
        
        /* たとえ話セクション */
        .analogy-section {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
            border: 2px solid rgba(59, 130, 246, 0.3);
        }
        
        .analogy-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-top: 30px;
        }
        
        @media (max-width: 900px) {
            .analogy-container {
                grid-template-columns: 1fr;
            }
        }
        
        .analogy-card {
            background: rgba(255,255,255,0.08);
            border-radius: 20px;
            padding: 30px;
            border: 1px solid rgba(255,255,255,0.15);
            transition: all 0.3s ease;
        }
        
        .analogy-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
            border-color: rgba(255,153,0,0.5);
        }
        
        .analogy-icon {
            font-size: 3.5em;
            margin-bottom: 15px;
        }
        
        .analogy-title {
            font-size: 1.4em;
            color: #dc7600;
            margin-bottom: 15px;
            font-weight: bold;
        }
        
        .analogy-aws {
            color: #64748B;
            font-size: 0.95em;
            margin-bottom: 10px;
        }
        
        .analogy-real {
            color: #e2e8f0;
            line-height: 1.7;
        }
        
        /* Principal タイプ一覧 */
        .principal-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .principal-card {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
            border: 2px solid rgba(34, 197, 94, 0.3);
            border-radius: 16px;
            padding: 25px;
            transition: all 0.3s ease;
        }
        
        .principal-card:hover {
            transform: scale(1.02);
            border-color: #16A34A;
        }
        
        .principal-card.cannot-use {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
            border-color: rgba(239, 68, 68, 0.5);
        }
        
        .principal-card.cannot-use:hover {
            border-color: #ef4444;
        }
        
        .principal-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .principal-icon {
            font-size: 2.5em;
        }
        
        .principal-name {
            font-size: 1.3em;
            font-weight: bold;
        }
        
        .principal-status {
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: bold;
            margin-bottom: 15px;
        }
        
        .status-ok {
            background: rgba(34, 197, 94, 0.3);
            color: #4ade80;
        }
        
        .status-ng {
            background: rgba(239, 68, 68, 0.3);
            color: #f87171;
        }
        
        .principal-example {
            background: rgba(0,0,0,0.3);
            border-radius: 10px;
            padding: 15px;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.85em;
            color: #a5f3fc;
            overflow-x: auto;
            margin-top: 15px;
        }
        
        /* 図解セクション */
        .diagram-section {
            background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
            border-radius: 24px;
            padding: 50px;
            margin: 50px 0;
        }
        
        .diagram-title {
            text-align: center;
            font-size: 2em;
            margin-bottom: 40px;
            color: #c4b5fd;
        }
        
        /* 建物の図解 */
        .building-diagram {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 60px;
            flex-wrap: wrap;
            margin: 40px 0;
        }
        
        .building {
            background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
            border-radius: 20px 20px 0 0;
            padding: 30px;
            width: 350px;
            border: 3px solid #4b5563;
            position: relative;
        }
        
        .building-roof {
            position: absolute;
            top: -30px;
            left: -3px;
            right: -3px;
            height: 40px;
            background: linear-gradient(135deg, #dc7600 0%, #ff6600 100%);
            border-radius: 20px 20px 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
            font-size: 1.1em;
        }
        
        .security-gate {
            background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
            border-radius: 12px;
            padding: 20px;
            margin-top: 20px;
            text-align: center;
        }
        
        .gate-title {
            font-size: 1.2em;
            color: #93c5fd;
            margin-bottom: 15px;
        }
        
        .gate-list {
            background: rgba(0,0,0,0.3);
            border-radius: 8px;
            padding: 15px;
            text-align: left;
        }
        
        .gate-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .gate-item:last-child {
            border-bottom: none;
        }
        
        .gate-item.allowed {
            color: #4ade80;
        }
        
        .gate-item.denied {
            color: #f87171;
            text-decoration: line-through;
        }
        
        /* 人物アイコン群 */
        .people-section {
            margin-top: 40px;
        }
        
        .people-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
            margin: 20px 0;
        }
        
        .person {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px;
            background: rgba(255,255,255,0.05);
            border-radius: 12px;
            width: 100px;
            transition: all 0.3s ease;
        }
        
        .person:hover {
            background: rgba(255,255,255,0.1);
            transform: scale(1.05);
        }
        
        .person-icon {
            font-size: 2.5em;
            margin-bottom: 8px;
        }
        
        .person-label {
            font-size: 0.8em;
            text-align: center;
            color: #64748B;
        }
        
        .person.can-enter {
            border: 2px solid #16A34A;
        }
        
        .person.cannot-enter {
            border: 2px solid #ef4444;
            opacity: 0.6;
        }
        
        /* IAMグループの問題 */
        .problem-section {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(185, 28, 28, 0.1) 100%);
            border: 2px solid rgba(239, 68, 68, 0.3);
            border-radius: 24px;
            padding: 50px;
            margin: 50px 0;
        }
        
        .problem-flow {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
            margin: 40px 0;
        }
        
        .flow-item {
            text-align: center;
            padding: 25px;
            background: rgba(255,255,255,0.08);
            border-radius: 16px;
            min-width: 150px;
        }
        
        .flow-icon {
            font-size: 3em;
            margin-bottom: 10px;
        }
        
        .flow-label {
            font-size: 1.1em;
            color: #e2e8f0;
        }
        
        .flow-arrow {
            font-size: 2.5em;
            color: #dc7600;
        }
        
        .flow-x {
            font-size: 4em;
            color: #ef4444;
            font-weight: bold;
        }
        
        /* 解決策 */
        .solution-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .solution-card {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
            border: 2px solid rgba(34, 197, 94, 0.3);
            border-radius: 20px;
            padding: 30px;
            position: relative;
            overflow: hidden;
        }
        
        .solution-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(180deg, #16A34A 0%, #047857 100%);
        }
        
        .solution-number {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 3em;
            font-weight: bold;
            color: rgba(34, 197, 94, 0.2);
        }
        
        .solution-title {
            font-size: 1.4em;
            color: #4ade80;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .solution-desc {
            color: #e2e8f0;
            margin-bottom: 20px;
        }
        
        .solution-code {
            background: rgba(0,0,0,0.4);
            border-radius: 12px;
            padding: 20px;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.85em;
            color: #a5f3fc;
            overflow-x: auto;
        }
        
        /* コード例 */
        .code-section {
            margin: 40px 0;
        }
        
        .code-block {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            border-radius: 16px;
            overflow: hidden;
            margin-top: 20px;
        }
        
        .code-header {
            background: rgba(255,153,0,0.2);
            padding: 15px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .code-title {
            color: #dc7600;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .code-badge {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8em;
        }
        
        .badge-ok {
            background: rgba(34, 197, 94, 0.3);
            color: #4ade80;
        }
        
        .badge-ng {
            background: rgba(239, 68, 68, 0.3);
            color: #f87171;
        }
        
        .code-content {
            padding: 25px;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.9em;
            line-height: 1.8;
            color: #e2e8f0;
            overflow-x: auto;
        }
        
        .code-content .key {
            color: #f472b6;
        }
        
        .code-content .value {
            color: #a5f3fc;
        }
        
        .code-content .comment {
            color: #6b7280;
        }
        
        /* 比較表 */
        .comparison-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin: 30px 0;
            border-radius: 16px;
            overflow: hidden;
        }
        
        .comparison-table th {
            background: linear-gradient(135deg, #dc7600 0%, #ff6600 100%);
            color: white;
            padding: 18px;
            text-align: center;
            font-size: 1.1em;
        }
        
        .comparison-table td {
            padding: 18px;
            background: rgba(255,255,255,0.05);
            border-bottom: 1px solid rgba(255,255,255,0.1);
            text-align: center;
        }
        
        .comparison-table tr:hover td {
            background: rgba(255,255,255,0.1);
        }
        
        .table-check {
            color: #4ade80;
            font-size: 1.5em;
        }
        
        .table-x {
            color: #f87171;
            font-size: 1.5em;
        }
        
        /* ベストプラクティス */
        .best-practices {
            background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
            border: 2px solid rgba(168, 85, 247, 0.3);
            border-radius: 24px;
            padding: 50px;
            margin: 50px 0;
        }
        
        .practice-list {
            display: grid;
            gap: 25px;
            margin-top: 30px;
        }
        
        .practice-item {
            display: flex;
            gap: 20px;
            align-items: flex-start;
            padding: 25px;
            background: rgba(255,255,255,0.05);
            border-radius: 16px;
            border-left: 4px solid #a855f7;
            transition: all 0.3s ease;
        }
        
        .practice-item:hover {
            background: rgba(255,255,255,0.08);
            transform: translateX(10px);
        }
        
        .practice-icon {
            font-size: 2.5em;
            flex-shrink: 0;
        }
        
        .practice-content h4 {
            font-size: 1.2em;
            color: #c4b5fd;
            margin-bottom: 10px;
        }
        
        .practice-content p {
            color: #64748B;
        }
        
        /* よくある間違い */
        .mistakes-section {
            margin: 50px 0;
        }
        
        .mistake-card {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(185, 28, 28, 0.08) 100%);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 20px;
            position: relative;
        }
        
        .mistake-card::before {
            content: '❌';
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2em;
            opacity: 0.3;
        }
        
        .mistake-title {
            color: #f87171;
            font-size: 1.3em;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .correct-card {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
            border: 1px solid rgba(34, 197, 94, 0.3);
            border-radius: 16px;
            padding: 30px;
            margin-top: -5px;
            margin-left: 30px;
            position: relative;
        }
        
        .correct-card::before {
            content: '✅';
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2em;
            opacity: 0.3;
        }
        
        .correct-title {
            color: #4ade80;
            font-size: 1.3em;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* まとめ */
        .summary-section {
            background: linear-gradient(135deg, #dc7600 0%, #ff6600 100%);
            border-radius: 24px;
            padding: 50px;
            margin: 50px 0;
            color: white;
        }
        
        .summary-title {
            font-size: 2em;
            margin-bottom: 30px;
            text-align: center;
        }
        
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
        }
        
        .summary-item {
            background: rgba(255,255,255,0.15);
            border-radius: 16px;
            padding: 25px;
            text-align: center;
        }
        
        .summary-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }
        
        .summary-text {
            font-size: 1.1em;
            line-height: 1.6;
        }
        
        /* フッター */
        .footer {
            text-align: center;
            padding: 40px;
            color: #64748b;
            border-top: 1px solid rgba(255,255,255,0.1);
            margin-top: 50px;
        }
    
        
        

        

        

        

        

        

        

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

        

        

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

        

        

        

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

            

            

            

            
        }