@charset "UTF-8";

body {
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    line-height: 1.8;
    margin: 0;
    background: #f8fafc;
}

img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

h1, h2, h3 {
    margin-top: 0;
    color: #1e293b;
}

/* Header */
.doc-header {
    background: #1e293b;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.doc-header .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-header h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 500;
}

.tag {
    background: #fbbf24;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Layout */
.doc-container {
    display: flex;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.toc {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.toc h3 {
    font-size: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
    padding: 5px 0;
}

.toc a:hover {
    color: #2563eb;
}

.content {
    flex: 1;
    background: #fff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
    margin-bottom: 80px;
}

section h2 {
    font-size: 28px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.alert {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 20px;
    border-radius: 4px;
    margin: 30px 0;
}

.alert strong {
    display: block;
    color: #2563eb;
    margin-bottom: 10px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.step-card {
    background: #fff;
    margin-bottom: 40px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-card h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: #2563eb;
    margin-right: 12px;
    border-radius: 2px;
}

.img-box {
    margin: 20px 0;
    text-align: center;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
}

/* NG事例用のスタイル */
.img-box.bad {
    background: #fef2f2;
    border: 2px dashed #ef4444;
    position: relative;
}

.img-box.bad::before {
    content: 'NG! ここは間違い';
    position: absolute;
    top: -12px;
    left: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 20px;
}

.check-list {
    background: #f8fafc;
    padding: 20px 30px;
    border-radius: 8px;
    list-style: none;
}

.check-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.note {
    font-size: 14px;
    color: #64748b;
    margin-top: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .doc-container {
        flex-direction: column;
        padding: 0 15px;
    }
    .sidebar {
        width: 100%;
    }
    .toc {
        position: static;
    }
    .content {
        padding: 30px 20px;
    }
}
