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

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #dc7600 0%, #232f3e 25%, #1a365d 50%, #7c3aed 75%, #ec4899 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, #dc7600 0%, #232f3e 50%, #1a365d 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%, #1a365d 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;
        }
        
        .conclusion-summary {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            margin-top: 30px;
        }
        
        .summary-card {
            background: rgba(255,255,255,0.1);
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        
        .summary-card:hover {
            transform: translateY(-5px);
            background: rgba(255,255,255,0.2);
        }
        
        .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;
            line-height: 1.7;
        }
        
        /* たとえ話セクション */
        .analogy-section {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #f59e0b;
        }
        
        .analogy-title {
            color: #92400e;
            font-size: 2em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .analogy-flow {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            margin: 40px 0;
        }
        
        .analogy-box {
            background: white;
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            min-width: 180px;
        }
        
        .analogy-box-icon {
            font-size: 3em;
            margin-bottom: 10px;
        }
        
        .analogy-box-label {
            font-weight: bold;
            color: #92400e;
            margin-bottom: 5px;
        }
        
        .analogy-box-desc {
            font-size: 0.85em;
            color: #78350f;
        }
        
        .analogy-arrow {
            font-size: 2em;
            color: #f59e0b;
        }
        
        .analogy-highlight {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            border: 4px solid #059669;
        }
        
        .analogy-highlight .analogy-box-label,
        .analogy-highlight .analogy-box-desc {
            color: white;
        }
        
        /* トリガーポイント図解 */
        .trigger-diagram {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border: 3px solid #0284c7;
        }
        
        .trigger-flow {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            margin: 40px 0;
        }
        
        .trigger-node {
            background: white;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            min-width: 140px;
            border: 3px solid #94a3b8;
        }
        
        .trigger-node.active {
            border-color: #dc7600;
            background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
        }
        
        .trigger-node.highlight {
            border-color: #10b981;
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            transform: scale(1.1);
        }
        
        .trigger-icon {
            font-size: 2.5em;
            margin-bottom: 10px;
        }
        
        .trigger-label {
            font-weight: bold;
            color: #1e293b;
            font-size: 0.95em;
        }
        
        .trigger-sublabel {
            font-size: 0.8em;
            color: #64748b;
            margin-top: 5px;
        }
        
        .trigger-arrow {
            font-size: 1.8em;
            color: #0284c7;
        }
        
        .lambda-badge {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }
        
        .lambda-icon {
            font-size: 2em;
            background: linear-gradient(135deg, #dc7600 0%, #ec7211 100%);
            padding: 10px;
            border-radius: 10px;
        }
        
        .lambda-label {
            font-size: 0.75em;
            color: #1e293b;
            font-weight: bold;
        }
        
        /* ヘッダー追加の仕組み */
        .header-flow {
            background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border: 3px solid #10b981;
        }
        
        .response-transform {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            margin: 40px 0;
            flex-wrap: wrap;
        }
        
        .response-box {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            min-width: 280px;
        }
        
        .response-title {
            font-weight: bold;
            font-size: 1.1em;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .response-before .response-title {
            color: #dc2626;
        }
        
        .response-after .response-title {
            color: #059669;
        }
        
        .response-content {
            background: #1e293b;
            color: #e2e8f0;
            padding: 15px;
            border-radius: 10px;
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
            line-height: 1.6;
        }
        
        .header-new {
            color: #4ade80;
            font-weight: bold;
        }
        
        .transform-arrow {
            font-size: 3em;
            color: #10b981;
        }
        
        /* X-Frame-Options オプション */
        .options-section {
            background: white;
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .options-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            margin-top: 30px;
        }
        
        .option-card {
            border-radius: 15px;
            padding: 30px;
            border-top: 6px solid;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
        }
        
        .option-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }
        
        .option-deny {
            background: linear-gradient(to bottom, #fef2f2 0%, white 100%);
            border-color: #ef4444;
        }
        
        .option-sameorigin {
            background: linear-gradient(to bottom, #f0fdf4 0%, white 100%);
            border-color: #10b981;
        }
        
        .option-allowfrom {
            background: linear-gradient(to bottom, #fefce8 0%, white 100%);
            border-color: #eab308;
        }
        
        .option-icon {
            font-size: 3em;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .option-name {
            font-size: 1.4em;
            font-weight: bold;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .option-deny .option-name { color: #dc2626; }
        .option-sameorigin .option-name { color: #059669; }
        .option-allowfrom .option-name { color: #ca8a04; }
        
        .option-desc {
            color: #475569;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .option-example {
            background: #f8fafc;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
        }
        
        .option-example-title {
            font-weight: bold;
            color: #334155;
            margin-bottom: 8px;
            font-size: 0.9em;
        }
        
        .option-example-value {
            font-family: 'Courier New', monospace;
            background: #1e293b;
            color: #e2e8f0;
            padding: 10px;
            border-radius: 6px;
            font-size: 0.85em;
        }
        
        .option-badge {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8em;
            font-weight: bold;
            margin-top: 10px;
        }
        
        .badge-recommended {
            background: #d1fae5;
            color: #065f46;
        }
        
        .badge-strict {
            background: #fee2e2;
            color: #991b1b;
        }
        
        .badge-deprecated {
            background: #fef3c7;
            color: #92400e;
        }
        
        /* クリックジャッキング攻撃図解 */
        .attack-section {
            background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border: 3px solid #ef4444;
        }
        
        .attack-title {
            color: #991b1b;
            font-size: 2em;
            margin-bottom: 30px;
            text-align: center;
        }
        
        .attack-diagram {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin: 40px 0;
            flex-wrap: wrap;
        }
        
        .attack-scenario {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            max-width: 400px;
        }
        
        .scenario-title {
            font-size: 1.3em;
            font-weight: bold;
            margin-bottom: 20px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .scenario-bad .scenario-title {
            color: #dc2626;
        }
        
        .scenario-good .scenario-title {
            color: #059669;
        }
        
        .browser-frame {
            background: #f1f5f9;
            border: 3px solid #94a3b8;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .browser-bar {
            background: #64748b;
            padding: 8px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .browser-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }
        
        .browser-dot.red { background: #ef4444; }
        .browser-dot.yellow { background: #eab308; }
        .browser-dot.green { background: #22c55e; }
        
        .browser-content {
            padding: 20px;
            position: relative;
            min-height: 150px;
        }
        
        .evil-site {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            color: white;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
        }
        
        .evil-label {
            color: #ef4444;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .iframe-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(255,255,255,0.9);
            border: 3px dashed #ef4444;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
        }
        
        .iframe-blocked {
            background: rgba(16, 185, 129, 0.9);
            border: 3px solid #059669;
            color: white;
        }
        
        .scenario-result {
            margin-top: 15px;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            font-weight: bold;
        }
        
        .result-danger {
            background: #fee2e2;
            color: #991b1b;
        }
        
        .result-safe {
            background: #d1fae5;
            color: #065f46;
        }
        
        /* コード例 */
        .code-section {
            background: #1e293b;
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        .code-title {
            color: #dc7600;
            font-size: 1.5em;
            font-weight: bold;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .code-block {
            background: #0f172a;
            border-radius: 15px;
            padding: 25px;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            line-height: 1.8;
        }
        
        .code-comment { color: #64748b; }
        .code-keyword { color: #c084fc; }
        .code-string { color: #4ade80; }
        .code-property { color: #60a5fa; }
        .code-function { color: #fbbf24; }
        .code-variable { color: #f472b6; }
        .code-number { color: #fb923c; }
        
        /* 設定手順 */
        .setup-section {
            background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border: 3px solid #7c3aed;
        }
        
        .setup-title {
            color: #5b21b6;
            font-size: 2em;
            margin-bottom: 30px;
            text-align: center;
        }
        
        .setup-steps {
            display: flex;
            flex-direction: column;
            gap: 20px;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .setup-step {
            background: white;
            border-radius: 15px;
            padding: 25px;
            display: flex;
            align-items: flex-start;
            gap: 20px;
            box-shadow: 0 8px 25px 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-title {
            font-size: 1.2em;
            font-weight: bold;
            color: #5b21b6;
            margin-bottom: 8px;
        }
        
        .step-desc {
            color: #475569;
            line-height: 1.7;
        }
        
        .step-note {
            background: #fef3c7;
            padding: 10px 15px;
            border-radius: 8px;
            margin-top: 10px;
            font-size: 0.9em;
            color: #92400e;
        }
        
        /* 比較表 */
        .comparison-table {
            background: white;
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            overflow-x: auto;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th {
            background: linear-gradient(135deg, #232f3e 0%, #1a365d 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;
        }
        
        .cell-icon {
            font-size: 1.5em;
        }
        
        /* 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;
        }
        
        /* Tip Box */
        .tip-box {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 30px;
            border-radius: 15px;
            margin: 30px 0;
            border-left: 6px solid #f59e0b;
        }
        
        .tip-title {
            font-size: 1.3em;
            font-weight: bold;
            color: #92400e;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .tip-content {
            color: #78350f;
            line-height: 1.8;
        }
        
        /* まとめ */
        .summary {
            background: linear-gradient(135deg, #dc7600 0%, #232f3e 50%, #1a365d 100%);
            color: white;
            padding: 50px;
            border-radius: 20px;
            text-align: center;
        }
        
        .summary h2 {
            font-size: 2.5em;
            margin-bottom: 30px;
        }
        
        .summary-points {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin: 30px 0;
        }
        
        .summary-point {
            background: rgba(255,255,255,0.15);
            padding: 25px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }
        
        .summary-point-icon {
            font-size: 2.5em;
            margin-bottom: 15px;
        }
        
        .summary-point-title {
            font-size: 1.1em;
            font-weight: bold;
            color: #dc7600;
            margin-bottom: 8px;
        }
        
        .summary-point-desc {
            font-size: 0.9em;
            opacity: 0.9;
        }
        
        .final-message {
            background: rgba(255,255,255,0.2);
            padding: 30px;
            border-radius: 15px;
            margin-top: 30px;
            font-size: 1.15em;
            line-height: 1.8;
        }
        
        @media (max-width: 1024px) {
            .conclusion-summary,
            .options-grid,
            .summary-points {
                grid-template-columns: 1fr;
            }
            
            .trigger-flow,
            .analogy-flow,
            .response-transform,
            .attack-diagram {
                flex-direction: column;
                align-items: center;
            }
            
            .trigger-arrow,
            .analogy-arrow,
            .transform-arrow {
                transform: rotate(90deg);
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            table {
                font-size: 0.85em;
            }
            
            th, td {
                padding: 12px 8px;
            }
            
            .summary-points {
                grid-template-columns: 1fr 1fr;
            }
        }