/* Zenn / Qiita-like Article Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    color: #333;
    line-height: 1.8;
}

.content {
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
    color: #2c3e50;
}

.content h2 {
    font-size: 1.6rem;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e2e8f0;
}

.content h3 {
    font-size: 1.3rem;
    padding-left: 0.5em;
    border-left: 4px solid #3498db;
}

.content p {
    margin-bottom: 1.5em;
}

.content blockquote {
    padding: 1em 1.5em;
    margin: 1.5em 0;
    color: #666;
    background-color: #f8f9fa;
    border-left: 5px solid #cbd5e1;
    border-radius: 4px;
}

.content blockquote p:last-child {
    margin-bottom: 0;
}

.content pre {
    background-color: #1e1e1e !important;
    border-radius: 8px;
    padding: 1.2em;
    margin: 1.5em 0;
    overflow-x: auto;
}

.content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    background-color: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.content a {
    color: #3498db;
    text-decoration: underline;
    text-decoration-color: #a3c9e6;
    text-underline-offset: 4px;
    transition: all 0.2s;
}

.content a:hover {
    color: #2980b9;
    text-decoration-color: #2980b9;
}

.content table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
}

.content th, .content td {
    padding: 0.75em 1em;
    border: 1px solid #e2e8f0;
}

.content th {
    background-color: #f8fafc;
    font-weight: 600;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 2em auto;
    display: block;
}

.content ul, .content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.content li {
    margin-bottom: 0.5em;
}
