* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #333;
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

header nav a { color: #666; font-size: 0.95rem; }

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #111;
}

h1 { font-size: 1.8rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

time { color: #666; font-size: 0.9rem; margin-left: 0.5rem; }

.post-list { list-style: none; }
.post-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #f0f0f0; }
.post-item > a { font-size: 1.1rem; font-weight: 600; }
.summary { color: #555; font-size: 0.95rem; margin-top: 0.3rem; }

.tags { display: inline-flex; gap: 0.4rem; margin-left: 0.5rem; flex-wrap: wrap; }
.tag {
    background: #f0f0f0;
    color: #555;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}
.tag:hover { background: #e0e0e0; text-decoration: none; }

article header { margin-bottom: 2rem; }
article time { display: block; margin: 0.3rem 0; }
article .tags { margin: 0.5rem 0; display: flex; gap: 0.4rem; }

.content { margin: 2rem 0; }
.content p { margin-bottom: 1rem; }
.content h2, .content h3 { margin-top: 2rem; }
.content pre { background: #f5f5f5; padding: 1rem; border-radius: 4px; overflow-x: auto; margin-bottom: 1rem; }
.content code { font-family: 'SF Mono', Consolas, monospace; font-size: 0.9rem; }
.content pre code { background: none; padding: 0; }
.content code:not(pre code) { background: #f0f0f0; padding: 0.1rem 0.3rem; border-radius: 3px; }
.content ul, .content ol { margin: 0 0 1rem 1.5rem; }
.content li { margin-bottom: 0.3rem; }
.content blockquote { border-left: 3px solid #ddd; padding-left: 1rem; color: #666; margin: 1rem 0; }
.content table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.content th, .content td { border: 1px solid #ddd; padding: 0.5rem 0.75rem; }
.content th { background: #f5f5f5; font-weight: 600; }
.content img { max-width: 100%; height: auto; }

article footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #eee; }

/* 検索 */
.search-form { display: flex; gap: 0.5rem; margin: 1.5rem 0; }
.search-form input { flex: 1; padding: 0.55rem 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; font-family: inherit; }
.search-form input:focus { outline: none; border-color: #0066cc; }
.search-form button { padding: 0.55rem 1.25rem; background: #0066cc; color: #fff; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; }
.search-form button:hover { background: #0052a3; }
.search-form button:disabled { opacity: 0.5; cursor: not-allowed; }
#search-status { color: #666; font-size: 0.9rem; min-height: 1.4em; }
.search-count { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
.search-empty { color: #666; margin-top: 1rem; }

footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}
