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

* {
            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: 18em;
            opacity: 0.1;
            top: -40px;
            right: -40px;
        }
        
        .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;
        }
        
        /* 結論ファースト */
        .conclusion-first {
            background: linear-gradient(135deg, #232f3e 0%, #0f3460 100%);
            color: white;
            padding: 40px;
            border-radius: 20px;
            margin-bottom: 50px;
        }
        
        .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(-8px);
            background: rgba(255,255,255,0.2);
        }
        
        .summary-icon {
            font-size: 3.5em;
            margin-bottom: 15px;
        }
        
        .summary-title {
            font-size: 1.3em;
            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, #e0f2fe 0%, #bae6fd 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #0284c7;
        }
        
        .analogy-title {
            color: #0c4a6e;
            font-size: 2.2em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .building-diagram {
            max-width: 1000px;
            margin: 0 auto;
        }
        
        .building-exterior {
            background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        }
        
        .building-title {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            text-align: center;
            padding: 15px;
            border-radius: 10px 10px 0 0;
            font-size: 1.3em;
            font-weight: bold;
        }
        
        .visitor-flow {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin: 30px 0;
            flex-wrap: wrap;
        }
        
        .flow-item {
            text-align: center;
            max-width: 200px;
        }
        
        .flow-box {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            margin-bottom: 10px;
            transition: all 0.3s ease;
        }
        
        .flow-box:hover {
            transform: scale(1.05);
        }
        
        .flow-icon {
            font-size: 3em;
            margin-bottom: 10px;
        }
        
        .flow-label {
            font-weight: bold;
            color: #1e293b;
            font-size: 1.1em;
        }
        
        .flow-sublabel {
            font-size: 0.85em;
            color: #64748b;
            margin-top: 5px;
        }
        
        .flow-arrow {
            font-size: 2.5em;
            color: #3b82f6;
        }
        
        .certificate-badge {
            display: inline-block;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: bold;
            margin-top: 10px;
        }
        
        .badge-acm {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
        }
        
        .badge-self {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
        }
        
        /* アーキテクチャ図 */
        .architecture-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);
        }
        
        .section-title {
            text-align: center;
            font-size: 2.2em;
            color: #1e293b;
            margin-bottom: 40px;
            font-weight: bold;
        }
        
        .architecture-flow {
            display: flex;
            justify-content: center;
            align-items: stretch;
            gap: 15px;
            flex-wrap: wrap;
            margin: 40px 0;
        }
        
        .arch-component {
            background: white;
            border-radius: 15px;
            padding: 25px;
            min-width: 180px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            border-top: 5px solid;
            transition: all 0.3s ease;
        }
        
        .arch-component:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        }
        
        .arch-client { border-color: #64748b; }
        .arch-alb { border-color: #3b82f6; }
        .arch-ec2 { border-color: #f59e0b; }
        .arch-acm { border-color: #10b981; }
        
        .arch-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }
        
        .arch-name {
            font-size: 1.2em;
            font-weight: bold;
            color: #1e293b;
            margin-bottom: 10px;
        }
        
        .arch-desc {
            font-size: 0.9em;
            color: #64748b;
        }
        
        .arch-arrow {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        
        .arrow-line {
            font-size: 2em;
            color: #3b82f6;
        }
        
        .arrow-label {
            font-size: 0.8em;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 10px;
        }
        
        .label-https-acm {
            background: #d1fae5;
            color: #065f46;
        }
        
        .label-https-self {
            background: #fef3c7;
            color: #92400e;
        }
        
        /* 暗号化フロー詳細 */
        .encryption-detail {
            background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
            padding: 40px;
            border-radius: 15px;
            margin: 40px 0;
            border: 3px solid #10b981;
        }
        
        .encryption-title {
            text-align: center;
            color: #065f46;
            font-size: 1.5em;
            margin-bottom: 25px;
            font-weight: bold;
        }
        
        .encryption-layers {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            flex-wrap: wrap;
        }
        
        .layer-box {
            background: white;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            min-width: 280px;
        }
        
        .layer-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .layer-icon {
            font-size: 2em;
        }
        
        .layer-name {
            font-size: 1.2em;
            font-weight: bold;
            color: #1e293b;
        }
        
        .layer-content {
            background: #f8fafc;
            padding: 20px;
            border-radius: 10px;
            margin: 15px 0;
        }
        
        .layer-content p {
            color: #475569;
            margin: 8px 0;
        }
        
        .layer-badge {
            display: inline-block;
            padding: 10px 20px;
            border-radius: 25px;
            font-weight: bold;
            margin-top: 10px;
        }
        
        .badge-green {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
        }
        
        .badge-orange {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
        }
        
        /* 比較表 */
        .comparison-section {
            background: white;
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th {
            background: linear-gradient(135deg, #232f3e 0%, #0f3460 100%);
            color: white;
            padding: 20px;
            text-align: center;
            font-size: 1.1em;
        }
        
        th:first-child {
            border-radius: 10px 0 0 0;
            text-align: left;
        }
        
        th:last-child {
            border-radius: 0 10px 0 0;
        }
        
        td {
            padding: 20px;
            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; }
        
        /* 設定手順 */
        .setup-section {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #f59e0b;
        }
        
        .setup-title {
            color: #92400e;
            font-size: 2.2em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .setup-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        
        .setup-column {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .column-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 3px solid;
        }
        
        .column-header.acm { border-color: #10b981; }
        .column-header.ec2 { border-color: #f59e0b; }
        
        .column-icon {
            font-size: 2.5em;
        }
        
        .column-title {
            font-size: 1.4em;
            font-weight: bold;
            color: #1e293b;
        }
        
        .setup-step {
            display: flex;
            gap: 15px;
            margin: 20px 0;
            padding: 15px;
            background: #f8fafc;
            border-radius: 10px;
            transition: all 0.3s ease;
        }
        
        .setup-step:hover {
            background: #f1f5f9;
            transform: translateX(5px);
        }
        
        .step-number {
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            flex-shrink: 0;
        }
        
        .step-content {
            flex: 1;
        }
        
        .step-title {
            font-weight: bold;
            color: #1e293b;
            margin-bottom: 5px;
        }
        
        .step-desc {
            font-size: 0.9em;
            color: #64748b;
        }
        
        /* コード例 */
        .code-section {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            padding: 40px;
            border-radius: 20px;
            margin: 50px 0;
        }
        
        .code-title {
            color: #60a5fa;
            font-size: 1.5em;
            margin-bottom: 25px;
            text-align: center;
            font-weight: bold;
        }
        
        .code-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .code-tab {
            padding: 10px 20px;
            background: rgba(255,255,255,0.1);
            color: white;
            border-radius: 10px 10px 0 0;
            font-weight: bold;
            cursor: pointer;
        }
        
        .code-tab.active {
            background: #334155;
        }
        
        .code-block {
            background: #334155;
            padding: 25px;
            border-radius: 0 10px 10px 10px;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            line-height: 1.8;
        }
        
        .code-comment { color: #94a3b8; }
        .code-keyword { color: #f472b6; }
        .code-string { color: #34d399; }
        .code-command { color: #60a5fa; }
        
        /* なぜこの構成？ */
        .why-section {
            background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            border-left: 8px solid #7c3aed;
        }
        
        .why-title {
            color: #5b21b6;
            font-size: 2.2em;
            margin-bottom: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .why-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }
        
        .why-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        .why-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .why-icon {
            font-size: 2.5em;
        }
        
        .why-card-title {
            font-size: 1.3em;
            font-weight: bold;
            color: #5b21b6;
        }
        
        .why-content {
            color: #475569;
            line-height: 1.8;
        }
        
        .why-content li {
            margin: 10px 0;
            padding-left: 25px;
            position: relative;
        }
        
        .why-content li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #10b981;
            font-weight: bold;
        }
        
        /* ベストプラクティス */
        .best-practices {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            padding: 40px;
            border-radius: 15px;
            margin: 50px 0;
            border: 3px solid #10b981;
        }
        
        .bp-title {
            color: #065f46;
            font-size: 1.8em;
            margin-bottom: 25px;
            text-align: center;
            font-weight: bold;
        }
        
        .bp-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        
        .bp-item {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .bp-icon {
            font-size: 2.5em;
            margin-bottom: 15px;
        }
        
        .bp-item-title {
            font-weight: bold;
            color: #065f46;
            margin-bottom: 10px;
        }
        
        .bp-item-desc {
            font-size: 0.9em;
            color: #475569;
        }
        
        /* FAQ */
        .faq-section {
            background: white;
            padding: 50px;
            border-radius: 20px;
            margin: 50px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .faq-item {
            background: #f8fafc;
            border-radius: 15px;
            margin: 20px 0;
            overflow: hidden;
        }
        
        .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-section {
            background: linear-gradient(135deg, #232f3e 0%, #dc7600 100%);
            color: white;
            padding: 50px;
            border-radius: 20px;
            text-align: center;
        }
        
        .summary-section h2 {
            font-size: 2.5em;
            margin-bottom: 30px;
        }
        
        .summary-flow {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin: 30px 0;
            flex-wrap: wrap;
        }
        
        .summary-box {
            background: rgba(255,255,255,0.15);
            padding: 25px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            min-width: 150px;
        }
        
        .summary-box-icon {
            font-size: 2.5em;
            margin-bottom: 10px;
        }
        
        .summary-box-label {
            font-weight: bold;
        }
        
        .summary-arrow {
            font-size: 2em;
        }
        
        .final-message {
            background: rgba(255,255,255,0.2);
            padding: 30px;
            border-radius: 15px;
            margin-top: 30px;
            font-size: 1.1em;
            line-height: 1.8;
        }
        
        @media (max-width: 1024px) {
            .conclusion-summary,
            .setup-grid,
            .why-grid,
            .bp-grid {
                grid-template-columns: 1fr;
            }
            
            .architecture-flow,
            .encryption-layers {
                flex-direction: column;
            }
            
            .arch-arrow {
                transform: rotate(90deg);
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            .visitor-flow {
                flex-direction: column;
            }
            
            .flow-arrow {
                transform: rotate(90deg);
            }
            
            table {
                font-size: 0.85em;
            }
            
            th, td {
                padding: 12px;
            }
        }