/* ══════════════════════════════════════════════════════════════
   SkyCode 先生向けブログ（/blog/）

   色・字・余白の土台は lp-2.css から借りる（変数もそちらにある）。
   ここには記事と一覧に固有のものだけを書く。
   読むのは先生。子ども向けの LP より行を詰め、ふりがなは付けない。
   ══════════════════════════════════════════════════════════════ */

.post { padding: clamp(28px, 5vw, 56px) 0 80px; }

/* パンくず */
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }

.post h1 {
  font-size: clamp(24px, 4vw, 32px); font-weight: 800;
  line-height: 1.45; letter-spacing: -.01em; margin: 0 0 16px; text-wrap: balance;
}

.post-lead { font-size: 16px; color: var(--ink-2); line-height: 1.95; margin: 0 0 26px; }
.post-lead strong { color: var(--ink); }

/* 対象・時間・更新。横に並べる */
.post-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin: 0 0 24px; font-size: 14px; color: var(--ink-2);
}
.post-meta dt { display: inline; color: var(--ink-3); margin-right: 6px; }
.post-meta dd { display: inline; margin: 0; }
.post-meta dt::after { content: ""; }

/* CTA。緑は1ページに1色。上と下で同じボタン */
.post-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin: 0 0 36px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.post-cta small { font-size: 13px; color: var(--ink-3); }
.post-cta p { margin: 0; color: var(--ink-2); }
.post-cta--end { margin-top: 44px; }

/* 本文。規約ページ（.legal）と同じ読み物向けの詰め方 */
.post-body h2 {
  font-size: 20px; font-weight: 800; text-align: left;
  margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand);
  letter-spacing: 0; line-height: 1.5;
}
.post-body h3 { font-size: 17px; font-weight: 800; margin: 28px 0 10px; }
.post-body p { line-height: 1.95; color: var(--ink-2); margin: 0 0 14px; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 24px; }
.post-body li { line-height: 1.9; color: var(--ink-2); margin-bottom: 6px; }
.post-body blockquote {
  margin: 0 0 18px; padding: 12px 18px;
  background: var(--brand-bg); border-left: 4px solid var(--brand); border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink-2);
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code {
  font-family: var(--mono); font-size: 14px;
  background: var(--surface-2); padding: 1px 6px; border-radius: 5px;
}
.post-body pre {
  overflow-x: auto; padding: 14px 18px; margin: 0 0 18px;
  background: var(--dark); color: var(--dark-ink); border-radius: var(--r); font-size: 14px;
}
.post-body pre code { background: none; padding: 0; color: inherit; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* 表。45分の流れなど */
.post-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 20px;
  font-size: 15px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.post-body th, .post-body td {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.post-body th { background: var(--surface-2); font-weight: 700; color: var(--ink); white-space: nowrap; }
.post-body tr:last-child td { border-bottom: none; }
.post-body td { color: var(--ink-2); line-height: 1.7; }

/* 図。実画面のスクショと、その説明。.shot（枠と影）は lp-2.css */
.post-body figure { margin: 22px 0 28px; }
.post-body figure .shot {
  background: var(--surface);
  /* 画像の幅に合わせる。伸ばすと画像の右に白い余白が出る（1440px で確認） */
  width: fit-content; max-width: 100%;
}
.post-body figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; line-height: 1.7; }
.post-body img { max-width: 100%; height: auto; display: block; }

/* 講師に渡すメモ。アルバイトの講師がここだけ読めば回るように、本文と分けて囲む */
.post-teacher-memo {
  margin: 40px 0 8px; padding: 6px 22px 16px;
  background: var(--surface); border: 2px solid var(--brand); border-radius: var(--r);
}
.post-teacher-memo > h2 { border-left: none; padding-left: 0; margin-top: 16px; }
.post-teacher-memo > h2::before { content: "✂ "; color: var(--brand); }
.post-teacher-memo p, .post-teacher-memo li { color: var(--ink); }

/* 前後の回 */
.post-nav:empty { display: none; }  /* 前も次も無い（記事が1本のとき）は枠ごと消す */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 36px 0 20px; padding-top: 24px; border-top: 1px solid var(--line);
}
.post-nav a, .post-nav span {
  display: block; padding: 14px 16px; border-radius: var(--r);
  font-size: 15px; font-weight: 700; line-height: 1.6; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
}
.post-nav a:hover { border-color: var(--brand); }
.post-nav small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.post-nav .post-nav-next { text-align: right; }
.post-nav .post-nav-soon { color: var(--ink-3); font-weight: 500; background: transparent; }
.post-nav .post-nav-none { border: none; background: transparent; }
@media (max-width: 520px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .post-nav-next { text-align: left; }
  .post-nav .post-nav-none { display: none; }
}

.post-back { font-size: 15px; }

/* ─────────────── 一覧（/blog/） ─────────────── */

.post h2 {
  font-size: 20px; font-weight: 800; text-align: left;
  margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand);
  letter-spacing: 0; line-height: 1.5;
}

.lesson-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.lesson-list li > a, .lesson-list li.soon {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: baseline;
  padding: 14px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.lesson-list li > a:hover { border-color: var(--brand); }
.lesson-list b { font-size: 13px; font-weight: 800; color: var(--brand); white-space: nowrap; }
.lesson-list span { font-size: 17px; font-weight: 700; line-height: 1.5; }
.lesson-list small { grid-column: 2; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.lesson-list li.soon { color: var(--ink-3); background: transparent; border-style: dashed; }
.lesson-list li.soon b { color: var(--ink-3); }
.lesson-list li.soon small { color: var(--ink-3); }

.post-updated, .post-soon { font-size: 14px; color: var(--ink-3); }

.post-checks { margin: 0 0 18px; padding-left: 22px; }
.post-checks li { line-height: 1.9; color: var(--ink-2); margin-bottom: 6px; }

/* ─────────────── 一覧: 開いて10分で起きること ───────────────
   読者が教材を入れる決め方の第1段階は「自分の PC で開く」。その前に実画面を3枚見せる */
.ten-min { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 22px; }
.ten-min figure { margin: 0; }
.ten-min .shot { background: var(--surface); aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.ten-min .shot img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ten-min figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.ten-min figcaption b { color: var(--brand); margin-right: 6px; }
@media (max-width: 640px) { .ten-min { grid-template-columns: 1fr; } }

/* 4本の線への答え。太字の先頭だけ読めば分かるように */
.post-lines { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.post-lines li { padding-left: 0; }
.post-lines b { color: var(--ink); }

/* 段の見出し（体験会／段1〜3） */
.lesson-stage {
  font-size: 15px; font-weight: 800; color: var(--brand);
  margin: 26px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
}
.lesson-stage small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
