/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, rgb(240, 248, 255), rgb(230, 240, 250));
    color: rgb(20, 30, 48);
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgb(255, 255, 255);
    border: 3px solid rgb(41, 98, 255);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(25, 60, 180), rgb(41, 98, 255));
    color: rgb(255, 255, 255);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 4px solid rgb(20, 50, 150);
}

header h1 {
    font-size: 2.8em;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.disclaimer {
    font-size: 1.1em;
    font-weight: 700;
    font-style: italic;
    margin-top: 10px;
    background: rgb(255, 235, 59);
    color: rgb(20, 30, 48);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.print-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 900;
    background: rgb(76, 175, 80);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(56, 142, 60);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background: rgb(56, 142, 60);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.navigation {
    background: rgb(245, 250, 255);
    padding: 30px;
    border-bottom: 3px solid rgb(41, 98, 255);
}

.navigation h2 {
    font-size: 1.8em;
    font-weight: 900;
    color: rgb(25, 60, 180);
    margin-bottom: 20px;
    text-align: center;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nav-buttons button {
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 900;
    background: rgb(41, 98, 255);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(25, 60, 180);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.nav-buttons button:hover {
    background: rgb(25, 60, 180);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* Content Section Styles */
.content-section {
    padding: 40px 30px;
    border-bottom: 2px solid rgb(220, 230, 240);
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section h2 {
    font-size: 2em;
    font-weight: 900;
    color: rgb(25, 60, 180);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgb(41, 98, 255);
}

.content-section h3 {
    font-size: 1.5em;
    font-weight: 900;
    color: rgb(41, 98, 255);
    margin-top: 20px;
    margin-bottom: 15px;
}

.content-section h4 {
    font-size: 1.3em;
    font-weight: 900;
    color: rgb(60, 120, 200);
    margin-top: 15px;
    margin-bottom: 10px;
}

.content-section p {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgb(30, 40, 60);
}

.content-section ul,
.content-section ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-section li {
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgb(30, 40, 60);
    line-height: 1.8;
}

.section-content {
    background: rgb(248, 252, 255);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid rgb(200, 220, 240);
}

strong {
    font-weight: 900;
    color: rgb(20, 50, 150);
}

/* Notice Box Styles */
.notice-box {
    background: linear-gradient(135deg, rgb(255, 250, 240), rgb(255, 245, 230));
    border: 3px solid rgb(255, 152, 0);
    border-left: 8px solid rgb(255, 152, 0);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.notice-box h3 {
    font-size: 1.4em;
    font-weight: 900;
    color: rgb(230, 81, 0);
    margin-bottom: 12px;
}

.notice-box p {
    font-weight: 700;
    color: rgb(60, 40, 20);
}

/* Mind Map Styles */
.mindmap-container {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 8px;
    border: 3px solid rgb(41, 98, 255);
    overflow: auto;
}

.mindmap-central {
    fill: rgb(25, 60, 180);
    stroke: rgb(20, 50, 150);
    stroke-width: 3;
}

.mindmap-node {
    fill: rgb(100, 150, 255);
    stroke: rgb(41, 98, 255);
    stroke-width: 3;
}

.mindmap-line {
    stroke: rgb(41, 98, 255);
    stroke-width: 3;
    fill: none;
}

.mindmap-arrow {
    fill: rgb(41, 98, 255);
}

.mindmap-text-central {
    font-size: 18px;
    font-weight: 900;
    fill: rgb(255, 255, 255);
    text-anchor: middle;
}

.mindmap-text {
    font-size: 16px;
    font-weight: 900;
    fill: rgb(255, 255, 255);
    text-anchor: middle;
}

.mindmap-text-small {
    font-size: 12px;
    font-weight: 700;
    fill: rgb(255, 255, 255);
    text-anchor: middle;
}

/* Flowchart Styles */
.flowchart-container {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 8px;
    border: 3px solid rgb(76, 175, 80);
    overflow: auto;
}

.flow-start {
    fill: rgb(76, 175, 80);
    stroke: rgb(56, 142, 60);
    stroke-width: 3;
}

.flow-end {
    fill: rgb(244, 67, 54);
    stroke: rgb(198, 40, 40);
    stroke-width: 3;
}

.flow-process {
    fill: rgb(100, 150, 255);
    stroke: rgb(41, 98, 255);
    stroke-width: 3;
}

.flow-decision {
    fill: rgb(255, 235, 59);
    stroke: rgb(251, 192, 45);
    stroke-width: 3;
}

.flow-line {
    stroke: rgb(60, 60, 60);
    stroke-width: 3;
    fill: none;
}

.flow-arrow {
    fill: rgb(60, 60, 60);
}

.flow-text {
    font-size: 16px;
    font-weight: 900;
    fill: rgb(255, 255, 255);
    text-anchor: middle;
}

.flow-text-bold {
    font-size: 16px;
    font-weight: 900;
    fill: rgb(20, 30, 48);
    text-anchor: middle;
}

.flow-text-small {
    font-size: 14px;
    font-weight: 700;
    fill: rgb(255, 255, 255);
    text-anchor: middle;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, rgb(240, 240, 245), rgb(230, 235, 245));
    color: rgb(30, 40, 60);
    padding: 30px;
    text-align: center;
    border-top: 3px solid rgb(41, 98, 255);
    font-weight: 700;
}

footer p {
    margin-bottom: 10px;
    font-weight: 700;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        border: none;
        box-shadow: none;
    }

    .print-btn {
        display: none;
    }

    .navigation {
        display: none;
    }

    .content-section {
        page-break-inside: avoid;
    }

    .mindmap-container,
    .flowchart-container {
        page-break-inside: avoid;
        page-break-before: always;
    }

    header {
        background: rgb(25, 60, 180);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .notice-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    svg {
        max-width: 100%;
        height: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .nav-buttons {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px 15px;
    }

    .content-section h2 {
        font-size: 1.6em;
    }

    .mindmap-container,
    .flowchart-container {
        overflow-x: scroll;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional Visual Enhancements */
.content-section:nth-child(even) {
    background: rgb(250, 252, 255);
}

.content-section:nth-child(odd) {
    background: rgb(255, 255, 255);
}