/* Guide Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
}

.guide-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header */
header {
    background: #5d4037;
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.back-to-tool {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.back-to-tool:hover {
    background: rgba(255,255,255,0.3);
}

/* Table of Contents */
.toc {
    background: #f5f5f5;
    padding: 30px 40px;
    border-bottom: 1px solid #ddd;
}

.toc h2 {
    color: #5d4037;
    margin-bottom: 15px;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: #6d4c41;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s;
}

.toc a:hover {
    background: #e0e0e0;
    padding-left: 20px;
}

/* Main Content */
main {
    padding: 40px;
}

.guide-section {
    margin-bottom: 60px;
    scroll-margin-top: 20px;
}

.guide-section h2 {
    color: #5d4037;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8d6e63;
}

.guide-section h3 {
    color: #6d4c41;
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.guide-section h4 {
    color: #795548;
    font-size: 1.2rem;
    margin: 20px 0 10px;
}

.guide-section p {
    margin-bottom: 15px;
}

.guide-section ul,
.guide-section ol {
    margin: 15px 0 15px 30px;
}

.guide-section li {
    margin-bottom: 8px;
}

/* Info Boxes */
.info-box,
.example-box {
    background: #fff3e0;
    border-left: 4px solid #ff6f00;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box strong,
.example-box strong {
    display: block;
    color: #e65100;
    margin-bottom: 10px;
}

.code-box {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.code-box pre {
    margin: 0;
    white-space: pre-wrap;
}

/* Layout Types */
.layout-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.layout-type {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.layout-type h4 {
    color: #8d6e63;
    margin-bottom: 10px;
}

/* Theme List */
.theme-list ul {
    list-style: none;
    margin: 0;
}

.theme-list li {
    background: #f5f5f5;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Troubleshooting */
.troubleshooting {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.troubleshooting h4 {
    color: #d32f2f;
    margin-bottom: 5px;
}

.troubleshooting p {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #5d4037;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .toc {
        padding: 20px;
    }
    
    main {
        padding: 20px;
    }
    
    .guide-section h2 {
        font-size: 1.6rem;
    }
    
    .layout-types {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .toc,
    .back-to-tool,
    footer {
        display: none;
    }
    
    header {
        background: none;
        color: #333;
        border-bottom: 2px solid #333;
    }
    
    .info-box,
    .example-box {
        border: 1px solid #ccc;
        background: none;
    }
}