/* odash.jp の記事（/blog/）。色・書体は style.css のトークンを使う */
.top { gap: 16px; }
.topnav { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.topnav a { color: var(--ink); text-decoration: none; }
.topnav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

.blog { padding: 8px 0 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.blog-title { margin: 8px 0 6px; font-size: clamp(26px, 4vw, 34px); color: var(--navy); line-height: 1.4; }
.blog-lead { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.blog-empty { color: var(--muted); padding: 40px 0; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s ease, border-color 0.25s ease; }
.post-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.post-card__img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--line); }
.post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.post-card time { font-size: 12px; color: var(--muted); font-family: Inter, sans-serif; }
.post-card__title { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.post-card__excerpt { font-size: 13px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 記事 */
.post { max-width: 760px; margin: 0 auto; }
.post-draft { margin: 0 0 18px; padding: 8px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 600; }
.post-head h1 { margin: 6px 0 12px; font-size: clamp(24px, 4.2vw, 34px); line-height: 1.5; color: var(--navy); overflow-wrap: anywhere; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 28px; font-size: 13px; color: var(--muted); }
.post-eyecatch { margin: 0 0 32px; }
.post-eyecatch img { display: block; width: 100%; height: auto; border-radius: 16px; }

.post-body { font-size: 16px; line-height: 2; color: var(--ink); overflow-wrap: anywhere; }
.post-body > * { margin: 0 0 1.4em; }
.post-body h2 { margin: 2.6em 0 1em; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: clamp(20px, 3vw, 24px); line-height: 1.55; color: var(--navy); scroll-margin-top: 16px; }
.post-body h3 { margin: 2em 0 0.8em; font-size: 18px; line-height: 1.6; color: var(--navy); scroll-margin-top: 16px; }
.post-body h4 { margin: 1.6em 0 0.6em; font-size: 16px; color: var(--navy); }
.post-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body strong { color: var(--navy); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin: 0.3em 0; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.post-body figure { margin: 2em 0; }
.post-body figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.post-body blockquote { margin: 1.8em 0; padding: 16px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.post-body blockquote p { margin: 0.4em 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.post-body pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.post-body pre code { padding: 0; border: 0; background: none; }

/* 表（mdconv の .mb-table） */
.post-body .mb-table, .post-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.8em 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.post-body .mb-table--wide table { min-width: 640px; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th { color: var(--navy); background: var(--surface); font-weight: 700; white-space: nowrap; }

/* 冒頭の「対象／目的／結論」の囲み（mdconv が style を直書きするので上書きする） */
.post-body .mb-summary { margin: 24px 0 36px !important; padding: 16px 22px !important; border-radius: 14px; background: color-mix(in srgb, #1f8fc4 10%, var(--surface)) !important; border: 1px solid color-mix(in srgb, #1f8fc4 22%, var(--line)); }
.post-body .mb-summary strong { color: color-mix(in srgb, #1f8fc4 70%, var(--navy)) !important; }

/* 相談の導線（mdconv の .mb-cta） */
.post-body .mb-cta { margin: 2.4em 0; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.post-body .mb-cta p { margin: 0.4em 0; }
.post-body .mb-cta__title { font-weight: 700; color: var(--navy); font-size: 17px; }
.post-body .mb-cta__sub, .post-body .mb-cta__note { color: var(--muted); font-size: 14px; }
.post-body .mb-cta__button { display: inline-block; margin-top: 8px; padding: 10px 24px; border-radius: 999px; background: var(--navy); color: var(--bg) !important; text-decoration: none !important; font-weight: 700; font-size: 14px; }

/* 出典 */
.post-body .mb-sources, .post-body .o-article__sources { margin-top: 3em; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.8; }
.post-body .mb-sources a, .post-body .o-article__sources a { color: var(--muted); }
.post-body .mb-sources__label { font-weight: 700; color: var(--navy); }

.post-author { margin: 48px 0 0; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.post-author p { margin: 0; }
.post-author__name { font-weight: 700; color: var(--navy); margin-bottom: 6px !important; }
.post-author__name span { margin-left: 10px; font-weight: 400; font-size: 12px; color: var(--muted); }

/* 記事の最後のサービス導線（.svc は style.css） */
.blog-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; margin: 64px auto 0; }
.blog-cta .svc h2 { font-size: 17px; }

@media (max-width: 600px) {
  .post-body { font-size: 15px; }
  .post-body blockquote, .post-body .mb-summary { padding: 14px 16px !important; }
}
