/* ====================================================
   KLA Works — blog.css
   ブログ一覧・記事ページ用スタイル
   （style.css の変数・トーンをそのまま利用）
   ==================================================== */

/* ---------- 共通: ページ上部の余白 ---------- */
.blog-page {
    padding-top: var(--nav-h);
}

.blog-head {
    padding: 80px 0 40px;
}

.blog-head .section-title {
    margin-bottom: 12px;
}

.blog-head p {
    color: var(--text-2);
    font-size: 0.9375rem;
}

/* ====================================================
   記事一覧
   ==================================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 120px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--pop-shadow);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.post-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--ink);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.post-tag {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: var(--accent-4);
    border: 2px solid var(--ink);
    padding: 3px 12px;
    border-radius: 100px;
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-3);
    letter-spacing: 0.02em;
}

.post-card h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 10px;
}

.post-card p {
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.post-card .post-more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.2s, color 0.2s;
}

.post-card:hover .post-more {
    color: var(--accent-2);
}

/* 記事がまだ無いとき */
.post-empty {
    color: var(--text-2);
    padding-bottom: 120px;
}

/* ====================================================
   記事ページ本文
   ==================================================== */
.article {
    padding-top: var(--nav-h);
}

.article-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 24px 120px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-2);
    margin-bottom: 32px;
    transition: color 0.2s;
}
.article-back:hover { color: var(--text); }

.article-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* 本文タイポグラフィ */
.article-body {
    font-size: 1rem;
    line-height: 1.9;
    color: #33415c;
}

.article-body > * + * {
    margin-top: 1.4em;
}

.article-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-top: 2.4em;
    padding-top: 0.2em;
}

.article-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2em;
}

.article-body a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.article-body a:hover { color: var(--accent); }

.article-body ul,
.article-body ol {
    padding-left: 1.4em;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: 0.5em; }

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 20px;
    color: var(--text-2);
    font-style: italic;
}

.article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}

.article-body img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 1.8em 0;
}

.article-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.4em 0;
}

/* 記事末尾のCTA / 戻り導線 */
.article-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 120px;
}

.article-cta {
    background: var(--bg-card);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--pop-shadow);
    padding: 32px;
    text-align: center;
}

.article-cta h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.article-cta p {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 24px;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 720px) {
    .post-grid { grid-template-columns: 1fr; }
}
