/* ブログ用の追加スタイル(style.cssを補完) */

/* フッター・免責事項(index.htmlと同じスタイル。style.cssには無いのでここに定義) */
.disclaimer {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.disclaimer a {
    color: #555;
    text-decoration: underline;
}
.disclaimer a:hover {
    color: #000;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.post-list li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed #eee;
}
.post-list-date {
    font-family: monospace;
    color: #666;
    margin-right: 1rem;
}

.post-back {
    margin-bottom: 1.5rem;
}
.post-back a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}
.post-back a:hover {
    text-decoration: underline;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

.blog-post {
    line-height: 1.8;
}
.blog-post h2 {
    border-left: 4px solid #333;
    padding-left: 10px;
}
.blog-post pre {
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
}
.blog-post code {
    font-family: 'Courier New', monospace;
}
.blog-post img {
    max-width: 100%;
    border-radius: 6px;
}
.blog-post .katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
}

/* タグ */
.tag-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 8px;
    margin: 0 6px 6px 0;
    text-decoration: none;
}
.tag-badge:hover {
    background: #ddd;
}
.post-tags {
    text-align: left;
    margin-bottom: 1.5rem;
}
.post-list-tags {
    display: block;
    text-align: left;
    margin-top: 0.3rem;
}
.tag-count {
    color: #888;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}
.tag-list {
    list-style: none;
    padding: 0;
}
.tag-list li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #eee;
}

/* ページャー(1,2,4,8...のように指数的に飛べるAtCoder風) */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 2rem 0 1rem;
}
.pager-link {
    display: inline-block;
    min-width: 1.6rem;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 3px 8px;
    text-decoration: none;
}
.pager-link:hover {
    background: #ddd;
}
.pager-current {
    background: #333;
    border-color: #333;
    color: #fff;
    font-weight: bold;
}
.pager-gap {
    color: #999;
    padding: 0 2px;
}
.pager-prev,
.pager-next,
.pager-first,
.pager-last {
    font-weight: bold;
}
