/* lp2-blog.css — Field Notes (SubPro blog) index + article typography.
   Builds on /css/lp2.css tokens (--ground, --ground-2, --ink, --muted, --faint, --rule, --rule-soft, ...).
   Scope: public/blog/index.html, public/blog/index-ja.html, public/blog/*.html article pages only. */

/* ── Index: entry list ──────────────────────────────── */
.entries-list { width: 100%; max-width: 840px; display: grid; text-align: left; }
.entry { display: grid; grid-template-columns: 84px 1fr; gap: 28px; padding: clamp(28px, 4vw, 40px) 0; border-bottom: 1px solid var(--rule-soft); align-items: start; text-decoration: none; color: inherit; }
.entry:first-child { padding-top: 0; }
.entry .no { font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; color: var(--rule); font-variant-numeric: tabular-nums; line-height: 1; transition: color 0.2s var(--ease); }
a.entry:hover .no { color: var(--ink); }
.entry .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.entry h2 { font-size: clamp(19px, 2.4vw, 25px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; max-width: 620px; }
html:lang(ja) .entry h2 { max-width: 620px; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.5; word-break: normal; }
a.entry h2 { text-underline-offset: 4px; }
a.entry:hover h2 { text-decoration: underline; }
.entry p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 10px; max-width: 560px; }
.entry .go { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.entry.soon { opacity: 0.55; }
.tag-soon { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--rule); border-radius: 980px; padding: 4px 12px; }
@media (max-width: 560px) {
  .entry { grid-template-columns: 1fr; gap: 8px; }
  .entry .no { font-size: 26px; }
}

/* ── Article: masthead ──────────────────────────────── */
.ahead { width: 100%; max-width: 780px; display: grid; gap: 20px; text-align: left; }
.ahead .eyebrow { text-decoration: none; }
.ahead h1 { max-width: none; font-size: clamp(32px, 5vw, 52px); }
html:lang(ja) .ahead h1 { max-width: none; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.35; }
.ahead .meta { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ahead .meta b, .ahead .meta strong { color: var(--ink); font-weight: 600; }

/* ── Article: prose (long-form, ~680px measure) ─────── */
.prose { width: 100%; max-width: 680px; text-align: left; }
.prose .lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.6; color: var(--ink); font-weight: 500; }
.prose p { color: var(--muted); font-size: 17px; line-height: 1.75; margin-top: 24px; }
html:lang(ja) .prose p { line-height: 1.9; }
.prose h2 {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: clamp(48px, 6vw, 72px);
  max-width: none;
  font-size: clamp(23px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
  color: var(--ink);
}
html:lang(ja) .prose h2 { max-width: none; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.4; }
.prose h2 span.n, .prose h2 > span:first-child { font-size: 0.5em; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul { margin-top: 22px; display: grid; }
.prose ul li { color: var(--muted); font-size: 17px; line-height: 1.6; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--rule-soft); position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 9px; height: 1px; background: var(--faint); }
.prose ul li:last-child { border-bottom: 0; }
.prose blockquote { border-left: 2px solid var(--rule); padding: 4px 0 4px 22px; margin: 22px 0; color: var(--ink); font-size: 18px; font-style: italic; }
.prose p.cost { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--ground-2); font-size: 14px; line-height: 1.6; color: var(--muted); }
.prose p.cost strong { color: var(--ink); }
html:lang(ja) .prose p.cost { line-height: 1.85; }

/* pull quote */
.pull { max-width: 680px; margin: clamp(40px, 6vw, 56px) auto; padding: 8px 0 8px 26px; border-left: 3px solid var(--ink); text-align: left; }
.pull p { margin: 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
html:lang(ja) .pull p { line-height: 1.55; }

/* comparison table — reuses .cmp / .cmp-wrap from lp2.css, adds yes/no cues */
.prose .cmp-wrap { margin-top: 34px; }
.prose .cmp { min-width: 760px; }
.cmp .yes { color: var(--ink); font-weight: 600; }
.cmp .no { color: var(--faint); }
.cap { margin-top: 12px; font-size: 12px; color: var(--faint); line-height: 1.6; }

/* CTA card */
.cta {
  max-width: 680px; margin-top: clamp(56px, 7vw, 80px);
  padding: clamp(26px, 4vw, 38px); border-radius: 20px; background: var(--ground-2);
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
  text-align: left;
}
.cta h3 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 600; letter-spacing: -0.015em; }
.cta p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 440px; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

.backlink { display: inline-flex; gap: 6px; margin-top: clamp(40px, 6vw, 56px); font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.backlink:hover { color: var(--ink); }

@media (max-width: 480px) {
  .prose p, .prose ul li { font-size: 16px; }
}

/* 開発ブログ (devlog-ja): X 記事から写した本文の画像・前後リンク */
.prose .dl-fig { margin: 32px 0 0; }
.prose .dl-fig img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule-soft); }
.prose .dl-x { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule-soft); font-size: 15px; }
.prose .dl-x a, .prose .dl-pager a { color: var(--ink); }
.dl-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.dl-pager a, .dl-pager .soon { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--rule-soft); border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 600; }
.dl-pager a span, .dl-pager .soon { font-size: 12px; font-weight: 500; color: var(--faint); }
.dl-pager .next, .dl-pager .soon { text-align: right; }
.dl-pager a:hover { background: var(--ground-2); }
