/*
 * AWS SAP学習リソース - cloudfront-security-headers-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;
            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, #232f3e 0%, #dc7600 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;
        }
        
        .section-title {
            text-align: center;
            font-size: 2.2em;
            color: #1e293b;
            margin: 50px 0 30px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }
        
        /* ========== 結論ファースト ========== */
        .conclusion-first {
            background: linear-gradient(135deg, #232f3e 0%, #0f3460 100%);
            color: white;
            padding: 40px;
            border-radius: 20px;
            margin: 40px 0;
        }
        
        .conclusion-first h2 {
            font-size: 2em;
            margin-bottom: 25px;
            color: #dc7600;
            text-align: center;
        }
        
        .three-methods {
            display: flex;
            justify-content: center;
            align-items: stretch;
            gap: 25px;
            margin-top: 30px;
            flex-wrap: wrap;
        }
        
        .method-card {
            flex: 1;
            min-width: 280px;
            max-width: 350px;
            background: rgba(255,255,255,0.1);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            position: relative;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        
        .method-card:hover {
            transform: translateY(-10px);
            background: rgba(255,255,255,0.2);
        }
        
        .method-icon {
            font-size: 4em;
            margin-bottom: 15px;
        }
        
        .method-title {
            font-size: 1.3em;
            font-weight: bold;
            color: #dc7600;
            margin-bottom: 15px;
        }
        
        .method-desc {
            font-size: 0.95em;
            opacity: 0.9;
            line-height: 1.8;
        }
        
        .method-badge {
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            background: #dc7600;
            color: #232f3e;
            padding: 5px 20px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.85em;
        }
        
        .recommend-badge {
            background: #10b981;
            color: white;
        }
        
        /* ========== ホテル比喩セクション ========== */
        .hotel-analogy {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #0284c7;
        }
        
        .hotel-title {
            color: #0c4a6e;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .hotel-visual {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            margin: 40px 0;
            flex-wrap: wrap;
        }
        
        .hotel-building {
            background: linear-gradient(to bottom, #64748b 0%, #475569 100%);
            border-radius: 15px 15px 0 0;
            padding: 20px;
            min-width: 300px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        }
        
        .hotel-roof {
            background: #334155;
            padding: 15px;
            border-radius: 10px 10px 0 0;
            text-align: center;
            color: white;
            font-weight: bold;
            font-size: 1.2em;
        }
        
        .hotel-entrance {
            background: white;
            margin: 15px;
            padding: 25px;
            border-radius: 10px;
            text-align: center;
        }
        
        .doorman {
            font-size: 4em;
            margin-bottom: 10px;
        }
        
        .doorman-label {
            color: #1e293b;
            font-weight: bold;
            font-size: 1.1em;
        }
        
        .security-checks {
            background: #f8fafc;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
        }
        
        .check-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 8px 0;
            font-size: 0.9em;
            color: #475569;
        }
        
        .visitor-flow {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }
        
        .visitor {
            background: white;
            padding: 20px 30px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .visitor-icon {
            font-size: 3em;
            margin-bottom: 10px;
        }
        
        .flow-arrow {
            font-size: 2em;
            color: #0284c7;
        }
        
        .analogy-explanation {
            background: white;
            padding: 30px;
            border-radius: 15px;
            margin-top: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .analogy-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 20px;
        }
        
        .analogy-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: #f0f9ff;
            border-radius: 10px;
        }
        
        .analogy-item-icon {
            font-size: 2em;
        }
        
        .analogy-item-text {
            flex: 1;
        }
        
        .analogy-item-text strong {
            color: #0369a1;
            display: block;
            margin-bottom: 5px;
        }
        
        /* ========== セキュリティヘッダー種類 ========== */
        .headers-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);
        }
        
        .headers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .header-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            border-top: 5px solid;
            transition: all 0.3s ease;
        }
        
        .header-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }
        
        .header-card:nth-child(1) { border-color: #ef4444; }
        .header-card:nth-child(2) { border-color: #f59e0b; }
        .header-card:nth-child(3) { border-color: #10b981; }
        .header-card:nth-child(4) { border-color: #3b82f6; }
        .header-card:nth-child(5) { border-color: #8b5cf6; }
        .header-card:nth-child(6) { border-color: #ec4899; }
        
        .header-card-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }
        
        .header-card-name {
            font-size: 1.2em;
            font-weight: bold;
            color: #1e293b;
            margin-bottom: 10px;
            font-family: 'Courier New', monospace;
            background: #f1f5f9;
            padding: 8px 12px;
            border-radius: 6px;
            display: inline-block;
        }
        
        .header-card-title {
            font-size: 1.1em;
            font-weight: bold;
            color: #64748b;
            margin-bottom: 15px;
        }
        
        .header-card-desc {
            color: #475569;
            line-height: 1.7;
            margin-bottom: 15px;
        }
        
        .header-card-analogy {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 15px;
            border-radius: 10px;
            border-left: 4px solid #f59e0b;
        }
        
        .header-card-analogy strong {
            color: #92400e;
            display: block;
            margin-bottom: 5px;
        }
        
        .header-card-analogy p {
            color: #78350f;
            font-size: 0.95em;
        }
        
        /* ========== 3つの方法詳細 ========== */
        .methods-detail {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #f59e0b;
        }
        
        .methods-title {
            color: #92400e;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .method-detail-card {
            background: white;
            border-radius: 15px;
            padding: 35px;
            margin: 25px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .method-detail-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f1f5f9;
        }
        
        .method-detail-icon {
            font-size: 3.5em;
        }
        
        .method-detail-info {
            flex: 1;
        }
        
        .method-detail-name {
            font-size: 1.6em;
            font-weight: bold;
            color: #1e293b;
            margin-bottom: 5px;
        }
        
        .method-detail-subtitle {
            color: #64748b;
            font-size: 1.1em;
        }
        
        .method-badge-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .detail-badge {
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: bold;
        }
        
        .badge-recommend {
            background: #d1fae5;
            color: #065f46;
        }
        
        .badge-easy {
            background: #dbeafe;
            color: #1e40af;
        }
        
        .badge-flexible {
            background: #fef3c7;
            color: #92400e;
        }
        
        .badge-advanced {
            background: #ede9fe;
            color: #5b21b6;
        }
        
        .method-features {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 25px 0;
        }
        
        .feature-box {
            background: #f8fafc;
            padding: 20px;
            border-radius: 12px;
        }
        
        .feature-box h4 {
            color: #1e293b;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .feature-box ul {
            list-style: none;
            padding: 0;
        }
        
        .feature-box li {
            padding: 6px 0;
            color: #475569;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .code-example {
            background: #1e293b;
            color: #f1f5f9;
            padding: 25px;
            border-radius: 12px;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            line-height: 1.6;
            margin-top: 20px;
        }
        
        .code-title {
            color: #60a5fa;
            font-weight: bold;
            margin-bottom: 15px;
        }
        
        .code-comment { color: #94a3b8; }
        .code-keyword { color: #f472b6; }
        .code-string { color: #34d399; }
        .code-property { color: #fbbf24; }
        
        /* ========== フロー図 ========== */
        .flow-diagram {
            background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border: 3px solid #10b981;
        }
        
        .flow-title {
            color: #065f46;
            font-size: 2em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .request-flow {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            margin: 30px 0;
        }
        
        .flow-node {
            background: white;
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            min-width: 150px;
        }
        
        .flow-node-icon {
            font-size: 3em;
            margin-bottom: 10px;
        }
        
        .flow-node-label {
            font-weight: bold;
            color: #1e293b;
        }
        
        .flow-connector {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }
        
        .connector-arrow {
            font-size: 2em;
            color: #10b981;
        }
        
        .connector-label {
            font-size: 0.8em;
            color: #065f46;
            font-weight: bold;
            background: white;
            padding: 5px 10px;
            border-radius: 5px;
        }
        
        .header-injection {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
            position: relative;
        }
        
        .header-injection::before {
            content: '✨';
            position: absolute;
            top: -10px;
            right: -10px;
            font-size: 1.5em;
        }
        
        .injection-icon {
            font-size: 3em;
            margin-bottom: 10px;
        }
        
        .injection-title {
            font-size: 1.2em;
            font-weight: bold;
        }
        
        .injection-desc {
            font-size: 0.9em;
            opacity: 0.9;
            margin-top: 5px;
        }
        
        /* ========== 比較表 ========== */
        .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;
        }
        
        th {
            background: linear-gradient(135deg, #232f3e 0%, #0f3460 100%);
            color: white;
            padding: 18px;
            text-align: center;
            font-size: 1em;
        }
        
        th:first-child {
            border-radius: 10px 0 0 0;
            text-align: left;
        }
        
        th:last-child {
            border-radius: 0 10px 0 0;
        }
        
        td {
            padding: 18px;
            border-bottom: 2px solid #f1f5f9;
            text-align: center;
        }
        
        td:first-child {
            text-align: left;
            font-weight: bold;
            color: #1e293b;
        }
        
        tr:hover {
            background: #f8fafc;
        }
        
        .check { color: #10b981; font-size: 1.3em; }
        .cross { color: #ef4444; font-size: 1.3em; }
        .partial { color: #f59e0b; font-size: 1.3em; }
        
        /* ========== 設定手順 ========== */
        .setup-steps {
            background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #7c3aed;
        }
        
        .setup-title {
            color: #5b21b6;
            font-size: 2.5em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .step-cards {
            display: flex;
            flex-direction: column;
            gap: 20px;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .step-card {
            background: white;
            border-radius: 15px;
            padding: 25px 30px;
            display: flex;
            align-items: flex-start;
            gap: 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .step-number {
            background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5em;
            font-weight: bold;
            flex-shrink: 0;
        }
        
        .step-content {
            flex: 1;
        }
        
        .step-content h4 {
            color: #5b21b6;
            font-size: 1.2em;
            margin-bottom: 8px;
        }
        
        .step-content p {
            color: #64748b;
            line-height: 1.6;
        }
        
        .step-arrow {
            text-align: center;
            font-size: 2em;
            color: #7c3aed;
        }
        
        /* ========== ベストプラクティス ========== */
        .best-practices {
            background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #ef4444;
        }
        
        .practices-title {
            color: #991b1b;
            font-size: 2em;
            margin-bottom: 25px;
            text-align: center;
            font-weight: bold;
        }
        
        .practices-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .practice-card {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .practice-card h4 {
            color: #991b1b;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .practice-card p {
            color: #475569;
            line-height: 1.6;
        }
        
        /* ========== FAQ ========== */
        .faq-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);
        }
        
        .faq-item {
            background: white;
            border-radius: 15px;
            margin: 20px 0;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .faq-question {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            padding: 20px 25px;
            font-weight: bold;
            color: #0c4a6e;
            font-size: 1.1em;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .faq-answer {
            padding: 25px;
            color: #475569;
            line-height: 1.8;
        }
        
        /* ========== まとめ ========== */
        .summary {
            background: linear-gradient(135deg, #232f3e 0%, #dc7600 100%);
            color: white;
            padding: 50px;
            border-radius: 20px;
            text-align: center;
        }
        
        .summary h2 {
            font-size: 2.5em;
            margin-bottom: 30px;
        }
        
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin: 30px 0;
        }
        
        .summary-item {
            background: rgba(255,255,255,0.15);
            padding: 25px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }
        
        .summary-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }
        
        .summary-title {
            font-size: 1.2em;
            font-weight: bold;
            color: #dc7600;
            margin-bottom: 10px;
        }
        
        .summary-desc {
            font-size: 0.95em;
            opacity: 0.9;
        }
        
        .final-message {
            background: rgba(255,255,255,0.2);
            padding: 30px;
            border-radius: 15px;
            margin-top: 30px;
            font-size: 1.2em;
            line-height: 1.8;
        }
        
        @media (max-width: 1024px) {
            .three-methods,
            .analogy-grid,
            .method-features,
            .summary-grid {
                grid-template-columns: 1fr;
            }
            
            .request-flow {
                flex-direction: column;
            }
            
            .connector-arrow {
                transform: rotate(90deg);
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            .hotel-visual {
                flex-direction: column;
            }
            
            table {
                font-size: 0.85em;
            }
            
            th, td {
                padding: 12px 8px;
            }
        }