/**
 * 小浜島日記 個別記事 (Issue #153 PR4)
 *
 * - 読み物レイアウト: 本文は max-width: var(--measure) の一段組
 * - 日記本文は明朝体（--font-serif）で「読む」体験に寄せる
 * - 前後ナビは kk-btn / kk-btn--ghost
 * - 色はすべてトークン＝ライト/ダーク自動追従（旧ダークブロックは削除）
 */

.diary-single-container {
    padding-top: var(--space-2);
    padding-bottom: var(--space-4);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   パンくず
   ================================ */

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb a {
    color: var(--link);
}

.breadcrumb a:hover {
    color: var(--link-hover);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ================================
   ヘッダー（中央寄せ・ミンサー下線）
   ================================ */

.diary-header {
    margin-bottom: var(--space-4);
}

.diary-header .diary-title {
    margin: 0 0 var(--space-2);
    line-height: 1.4;
}

.diary-meta {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-2);
}

/* ================================
   本文（読み物一段組）
   ================================ */

.diary-article {
    max-width: var(--measure);
    margin: 0 auto;
}

.featured-image {
    margin: 0 0 var(--space-3);
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.image-caption {
    margin-top: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-content {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    line-height: 2;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.8em;
    color: inherit;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--heading);
    margin: 2.2em 0 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--border-mid);
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading);
    margin: 1.8em 0 0.7em;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.8em;
    padding-left: 2em;
}

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

.article-content blockquote {
    margin: 2em 0;
    padding: 1.2em 1.5em;
    background: var(--bg-inset);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5em 0;
}

.article-content a {
    color: var(--link);
    border-bottom: 1px solid var(--border-strong);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.article-content a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

/* ================================
   タグ
   ================================ */

.article-tags {
    margin-top: var(--space-4);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-soft);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-inset);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-pill);
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tag-item:hover {
    background: var(--bg-inset-strong);
    border-color: var(--accent);
    color: var(--accent-strong);
}

/* ================================
   前後ナビゲーション
   ================================ */

.post-navigation {
    max-width: var(--measure);
    margin: var(--space-4) auto 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-2);
    align-items: center;
}

.nav-previous {
    justify-self: start;
}

.nav-center {
    justify-self: center;
}

.nav-next {
    justify-self: end;
}

/* ================================
   レスポンシブ
   ================================ */

@media (max-width: 768px) {
    .article-content {
        font-size: 1.02rem;
        line-height: 1.9;
    }

    .post-navigation {
        grid-template-columns: 1fr 1fr;
    }

    .nav-center {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* ================================
   印刷・アクセシビリティ
   ================================ */

@media print {
    .breadcrumb,
    .post-navigation {
        display: none;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .diary-single-container {
        animation: none;
    }
}
