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

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            min-height: 100vh;
            padding: 40px 20px;
            line-height: 1.8;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* ========== ヘッダー ========== */
        .header {
            background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
            border-radius: 30px;
            padding: 50px;
            margin-bottom: 40px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            position: relative;
            overflow: hidden;
        }
        
        .header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: shimmer 3s infinite;
        }
        
        @keyframes shimmer {
            0%, 100% { transform: rotate(0deg); }
            50% { transform: rotate(180deg); }
        }
        
        .header h1 {
            color: white;
            font-size: 2.8em;
            margin-bottom: 20px;
            position: relative;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .header-subtitle {
            color: #a8d8ff;
            font-size: 1.3em;
            position: relative;
        }
        
        .header-icons {
            font-size: 3em;
            margin-top: 20px;
            position: relative;
        }
        
        /* ========== 結論ファースト ========== */
        .conclusion-first {
            background: linear-gradient(135deg, #fff9c4 0%, #ffecb3 100%);
            border-radius: 25px;
            padding: 40px;
            margin-bottom: 40px;
            border: 4px solid #ff9800;
            box-shadow: 0 15px 40px rgba(255,152,0,0.3);
        }
        
        .conclusion-title {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.8em;
            color: #e65100;
            margin-bottom: 25px;
        }
        
        .conclusion-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }
        
        .conclusion-item {
            background: white;
            border-radius: 15px;
            padding: 20px;
            border-left: 5px solid #ff9800;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .conclusion-item-title {
            font-size: 1.2em;
            color: #e65100;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .conclusion-item-desc {
            color: #5d4037;
        }
        
        /* ========== たとえ話セクション ========== */
        .analogy-section {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 3px solid #4caf50;
        }
        
        .section-title {
            text-align: center;
            font-size: 2em;
            color: #2e7d32;
            margin-bottom: 40px;
        }
        
        .analogy-diagram {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .analogy-title {
            text-align: center;
            font-size: 1.5em;
            color: #1565c0;
            margin-bottom: 30px;
            padding: 15px;
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            border-radius: 15px;
        }
        
        .analogy-flow {
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .analogy-item {
            text-align: center;
            padding: 25px;
            border-radius: 20px;
            min-width: 180px;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .analogy-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        }
        
        .analogy-icon {
            font-size: 4em;
            margin-bottom: 15px;
        }
        
        .analogy-label {
            font-weight: bold;
            font-size: 1.2em;
            margin-bottom: 8px;
        }
        
        .analogy-aws {
            font-size: 0.9em;
            color: #666;
            background: #f5f5f5;
            padding: 5px 12px;
            border-radius: 20px;
        }
        
        .arrow-connector {
            font-size: 2.5em;
            color: #ff5722;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.1); }
        }
        
        .bank-vault { background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%); }
        .secret-tunnel { background: linear-gradient(135deg, #c5e1a5 0%, #aed581 100%); }
        .permit-badge { background: linear-gradient(135deg, #b3e5fc 0%, #81d4fa 100%); }
        .guard { background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%); }
        
        /* ========== 対比図 ========== */
        .comparison-section {
            background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 3px solid #e91e63;
        }
        
        .comparison-title {
            text-align: center;
            font-size: 2em;
            color: #c2185b;
            margin-bottom: 40px;
        }
        
        .comparison-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        
        @media (max-width: 768px) {
            .comparison-grid {
                grid-template-columns: 1fr;
            }
        }
        
        .comparison-box {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .comparison-box.danger {
            border: 4px solid #f44336;
        }
        
        .comparison-box.safe {
            border: 4px solid #4caf50;
        }
        
        .comparison-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px dashed #ddd;
        }
        
        .comparison-icon {
            font-size: 3em;
        }
        
        .comparison-label {
            font-size: 1.4em;
            font-weight: bold;
        }
        
        .comparison-box.danger .comparison-label { color: #d32f2f; }
        .comparison-box.safe .comparison-label { color: #388e3c; }
        
        .route-diagram {
            background: #f5f5f5;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
        }
        
        .route-flow {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 1.1em;
        }
        
        .route-item {
            padding: 10px 18px;
            border-radius: 25px;
            font-weight: bold;
        }
        
        .route-ec2 { background: #ffe0b2; color: #e65100; }
        .route-internet { background: #ffcdd2; color: #c62828; }
        .route-vpce { background: #c8e6c9; color: #2e7d32; }
        .route-s3 { background: #bbdefb; color: #1565c0; }
        .route-arrow { font-size: 1.3em; }
        
        .comparison-points {
            list-style: none;
        }
        
        .comparison-points li {
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        
        .comparison-points li:last-child {
            border-bottom: none;
        }
        
        /* ========== エンドポイント種類 ========== */
        .endpoint-types {
            background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 3px solid #03a9f4;
        }
        
        .endpoint-title {
            text-align: center;
            font-size: 2em;
            color: #0277bd;
            margin-bottom: 40px;
        }
        
        .endpoint-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }
        
        .endpoint-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .endpoint-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        }
        
        .endpoint-card.gateway {
            border-top: 6px solid #ff9800;
        }
        
        .endpoint-card.interface {
            border-top: 6px solid #9c27b0;
        }
        
        .endpoint-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .endpoint-icon {
            font-size: 2.5em;
        }
        
        .endpoint-name {
            font-size: 1.5em;
            font-weight: bold;
        }
        
        .endpoint-card.gateway .endpoint-name { color: #f57c00; }
        .endpoint-card.interface .endpoint-name { color: #7b1fa2; }
        
        .endpoint-subtitle {
            color: #666;
            font-size: 0.95em;
            margin-bottom: 20px;
            padding: 10px 15px;
            background: #f5f5f5;
            border-radius: 10px;
        }
        
        .endpoint-features {
            list-style: none;
        }
        
        .endpoint-features li {
            padding: 12px 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        
        .endpoint-features li:last-child {
            border-bottom: none;
        }
        
        .feature-icon {
            font-size: 1.3em;
        }
        
        /* ========== 条件キー解説 ========== */
        .condition-keys {
            background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 3px solid #ff9800;
        }
        
        .condition-title {
            text-align: center;
            font-size: 2em;
            color: #e65100;
            margin-bottom: 40px;
        }
        
        .condition-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 25px;
        }
        
        .condition-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .condition-card:hover {
            transform: scale(1.02);
        }
        
        .condition-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }
        
        .condition-emoji {
            font-size: 2.5em;
        }
        
        .condition-key-name {
            font-family: 'Courier New', monospace;
            font-size: 1.1em;
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            padding: 8px 15px;
            border-radius: 8px;
            color: #1565c0;
        }
        
        .condition-desc {
            color: #555;
            margin-bottom: 15px;
            padding: 15px;
            background: #fafafa;
            border-radius: 10px;
            border-left: 4px solid #ff9800;
        }
        
        .condition-analogy {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 15px;
        }
        
        .condition-analogy-label {
            font-weight: bold;
            color: #2e7d32;
            margin-bottom: 5px;
        }
        
        .condition-example {
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
            background: #263238;
            color: #80cbc4;
            padding: 12px 15px;
            border-radius: 8px;
            overflow-x: auto;
        }
        
        /* ========== ポリシー解説 ========== */
        .policy-section {
            background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 3px solid #3f51b5;
        }
        
        .policy-title {
            text-align: center;
            font-size: 2em;
            color: #283593;
            margin-bottom: 40px;
        }
        
        .policy-pattern {
            background: white;
            border-radius: 20px;
            padding: 35px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .policy-pattern-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 3px solid #3f51b5;
        }
        
        .policy-pattern-icon {
            font-size: 2.5em;
        }
        
        .policy-pattern-title {
            font-size: 1.5em;
            color: #283593;
        }
        
        .policy-pattern-subtitle {
            color: #666;
            font-size: 0.95em;
        }
        
        .policy-explanation {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 25px;
        }
        
        @media (max-width: 768px) {
            .policy-explanation {
                grid-template-columns: 1fr;
            }
        }
        
        .policy-concept {
            background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
            padding: 20px;
            border-radius: 15px;
            border: 2px solid #ffc107;
        }
        
        .policy-concept-title {
            font-weight: bold;
            color: #ff8f00;
            margin-bottom: 10px;
            font-size: 1.1em;
        }
        
        .code-block {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 15px;
            padding: 25px;
            overflow-x: auto;
            margin-top: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        .code-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #333;
        }
        
        .code-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }
        
        .code-dot.red { background: #ff5f56; }
        .code-dot.yellow { background: #ffbd2e; }
        .code-dot.green { background: #27ca40; }
        
        .code-title {
            color: #888;
            font-size: 0.9em;
            margin-left: 10px;
        }
        
        pre {
            margin: 0;
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
            line-height: 1.6;
        }
        
        .code-comment { color: #6a9955; }
        .code-key { color: #9cdcfe; }
        .code-string { color: #ce9178; }
        .code-keyword { color: #569cd6; }
        .code-important { color: #ffd700; background: rgba(255,215,0,0.1); padding: 2px 5px; border-radius: 3px; }
        
        /* ========== ステップバイステップ ========== */
        .steps-section {
            background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 3px solid #9c27b0;
        }
        
        .steps-title {
            text-align: center;
            font-size: 2em;
            color: #7b1fa2;
            margin-bottom: 40px;
        }
        
        .steps-container {
            position: relative;
        }
        
        .step-item {
            display: flex;
            gap: 25px;
            margin-bottom: 30px;
            position: relative;
        }
        
        .step-number {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5em;
            font-weight: bold;
            flex-shrink: 0;
            box-shadow: 0 5px 15px rgba(156,39,176,0.4);
        }
        
        .step-content {
            background: white;
            border-radius: 15px;
            padding: 25px;
            flex: 1;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .step-title {
            font-size: 1.3em;
            color: #7b1fa2;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .step-desc {
            color: #555;
            margin-bottom: 15px;
        }
        
        .step-command {
            background: #263238;
            color: #80cbc4;
            padding: 15px;
            border-radius: 10px;
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
            overflow-x: auto;
        }
        
        /* ========== 注意点 ========== */
        .caution-section {
            background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 3px solid #f44336;
        }
        
        .caution-title {
            text-align: center;
            font-size: 2em;
            color: #c62828;
            margin-bottom: 40px;
        }
        
        .caution-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .caution-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            border-left: 5px solid #f44336;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .caution-card-title {
            font-size: 1.2em;
            color: #c62828;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .caution-card-desc {
            color: #555;
        }
        
        .caution-solution {
            background: #e8f5e9;
            padding: 12px 15px;
            border-radius: 8px;
            margin-top: 15px;
            border-left: 4px solid #4caf50;
        }
        
        .caution-solution-label {
            font-weight: bold;
            color: #2e7d32;
            margin-bottom: 5px;
        }
        
        /* ========== ユースケース ========== */
        .usecase-section {
            background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 3px solid #00bcd4;
        }
        
        .usecase-title {
            text-align: center;
            font-size: 2em;
            color: #00838f;
            margin-bottom: 40px;
        }
        
        .usecase-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
        }
        
        .usecase-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .usecase-card:hover {
            transform: translateY(-5px);
        }
        
        .usecase-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .usecase-icon {
            font-size: 2.5em;
        }
        
        .usecase-name {
            font-size: 1.3em;
            font-weight: bold;
            color: #00838f;
        }
        
        .usecase-desc {
            color: #555;
            margin-bottom: 20px;
            padding: 15px;
            background: #f5f5f5;
            border-radius: 10px;
        }
        
        .usecase-policy {
            font-family: 'Courier New', monospace;
            font-size: 0.8em;
            background: #263238;
            color: #a5d6a7;
            padding: 15px;
            border-radius: 10px;
            overflow-x: auto;
        }
        
        /* ========== FAQ ========== */
        .faq-section {
            background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
            border-radius: 25px;
            padding: 50px;
            margin-bottom: 40px;
            border: 3px solid #9e9e9e;
        }
        
        .faq-title {
            text-align: center;
            font-size: 2em;
            color: #424242;
            margin-bottom: 40px;
        }
        
        .faq-item {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            border-left: 5px solid #2196f3;
        }
        
        .faq-question {
            font-size: 1.2em;
            color: #1565c0;
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        
        .faq-answer {
            color: #555;
            padding-left: 35px;
            line-height: 1.8;
        }
        
        /* ========== まとめ ========== */
        .summary {
            background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
            border-radius: 25px;
            padding: 50px;
            color: white;
            text-align: center;
        }
        
        .summary h2 {
            font-size: 2em;
            margin-bottom: 40px;
        }
        
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }
        
        .summary-card {
            background: rgba(255,255,255,0.15);
            border-radius: 15px;
            padding: 25px;
            backdrop-filter: blur(10px);
        }
        
        .summary-icon {
            font-size: 2.5em;
            margin-bottom: 15px;
        }
        
        .summary-card-title {
            font-size: 1.2em;
            margin-bottom: 10px;
        }
        
        .summary-card-desc {
            color: #a8d8ff;
            font-size: 0.95em;
        }
        
        .final-message {
            background: rgba(255,255,255,0.1);
            padding: 30px;
            border-radius: 15px;
            font-size: 1.2em;
            line-height: 1.8;
        }