/* トップ以外のページ（料金・プライバシーポリシー・ブログ一覧と記事・404）の部品。
   home.css（色・上のメニュー・ボタン・見出し・相談の帯・一番下の帯）の後に読む。style.css は読まない。
   作りの元：scripts/codex_illust/examples/kaname_seminar/codex_answer_pages.txt（2026-11-16） */

/* 中身が短いページでも、一番下の帯を画面の下にそろえる */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* 今いるページのメニュー */
.hd-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }

.wrap-narrow { max-width: 760px; }

/* ---------- パンくず（セミナーページ v4 と同じ） ---------- */
.crumb { border-bottom: 1px solid var(--line); }
.crumb ol { display: flex; flex-wrap: wrap; margin-block: 0; padding: 12px 0; list-style: none; font-size: 13px; line-height: 1.5; }
.crumb li + li::before { content: "＞"; margin: 0 8px; color: var(--muted); }
.crumb li[aria-current] { color: var(--muted); }

/* ---------- ページの頭（ページ名。トップの最上部と同じ淡い青の地） ---------- */
.page-head { background: var(--blue-pale); }
.page-head .wrap { padding: 40px 0; }
.page-title { color: var(--blue); font-size: 32px; line-height: 1.4; }
.page-lead { margin-top: 12px; font-size: 16px; }
.page-date { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }

/* 白地のページ本体 */
.page-body { padding: 48px 0 64px; }
.page-body > .wrap > :first-child { margin-top: 0; }

/* 小見出し（左に青い縦の棒） */
.sub-h {
  margin-top: 40px;
  padding-left: 12px;
  border-left: 5px solid var(--blue);
  color: var(--blue);
  font-size: 20px; line-height: 1.5;
}

/* 四角い小さな点の箇条書き */
.dots { padding: 0; list-style: none; }
.dots li { position: relative; padding-left: 18px; }
.dots li + li { margin-top: 6px; }
.dots li::before {
  content: ""; position: absolute; left: 2px; top: 0.72em;
  width: 7px; height: 7px; background: var(--blue);
}

.back { margin-top: 40px; }

/* ================================================================ 料金 */

/* AI研修（一般）：左に時間と金額、右に内容 */
.gen {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: center;
  margin-top: 16px;
  border: 1px solid var(--line);
}
.gen-price { padding: 20px 24px; background: var(--blue-soft); }
.price-duration { font-weight: 700; }
.price-amount { margin-top: 2px !important; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.price-amount .num { font-size: 40px; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.price-amount .yen { margin-left: 2px; font-size: 20px; }
.price-amount .tax { margin-left: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.gen .dots { padding: 20px 24px; font-size: 17px; }

/* AI導入研修（貴社専用）：条件の箇条書き → 半日・1日・2日の比較表 */
.custom-notes { margin-top: 16px; font-size: 17px; }
.plan-table { width: 100%; margin-top: 20px; table-layout: fixed; border: 1px solid var(--line); }
.plan-table .col-item { width: 38%; }
.plan-table th, .plan-table td {
  padding: 16px 20px;
  border: 1px solid var(--line);
  vertical-align: middle; line-height: 1.6;
}
.plan-table thead th {
  background: var(--blue); color: var(--white);
  font-size: 19px; text-align: center; line-height: 1.4;
}
.plan-table thead th small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; }
.plan-table thead .plan-corner { background: var(--white); border-top-color: var(--white); border-left-color: var(--white); }
.plan-table tbody th { background: var(--gray); text-align: left; font-size: 16px; }
.plan-table td { text-align: center; }
.row-price th, .row-price td { background: var(--blue-soft); }
.row-price td { font-size: 26px; font-weight: 700; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-price .yen { margin-left: 1px; font-size: 16px; }
.mark-yes, .mark-no { display: inline-block; vertical-align: middle; font-size: 0; line-height: 0; }
/* ○は文字だと線が細いので、文字は残したまま（読み上げ用）太い丸を描く */
.mark-yes { width: 22px; height: 22px; border: 3px solid var(--blue); border-radius: 50%; }
.mark-no { width: 16px; height: 0; border-top: 2px solid #666666; }

.price-commons { font-size: 17px; }

/* 相談の帯の文（home.css の .band に足す） */
.band-text-sm { font-size: 19px; }

/* ================================================================ プライバシーポリシー */
.doc { font-size: 16px; line-height: 1.9; }
.doc p + p { margin-top: 16px; }
.doc ul { margin-top: 12px; padding-left: 1.4em; }
.doc li + li { margin-top: 6px; }
/* 目次（今の9つの見出しへのページ内リンク。PCは2列） */
.toc { margin-top: 28px; padding: 20px 24px; background: var(--gray); }
.toc ol {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto); grid-template-columns: 1fr 1fr;
  gap: 6px 32px; margin: 0; padding: 0; list-style: none; line-height: 1.6;
}
.toc li { margin: 0 !important; }
.toc a { font-weight: 700; }
.doc h2 {
  margin-top: 44px; margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--blue);
  color: var(--blue);
  font-size: 20px; line-height: 1.5;
}
.doc-contact { padding: 16px 20px; background: var(--gray); }
.doc-meta { margin-top: 40px !important; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ================================================================ ブログ一覧 */
.post-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.post-list time { color: var(--muted); font-size: 14px; line-height: 2.1; font-variant-numeric: tabular-nums; }
.post-list h2 { font-size: 20px; line-height: 1.6; }
.post-list h2 a:hover { text-decoration: none; }
.post-list p { margin-top: 8px; }
.empty { color: var(--muted); }

/* ================================================================ ブログ記事（md から生成した本文） */
.prose { font-size: 16px; line-height: 1.9; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-top: 20px; }
.prose h2 {
  margin-top: 52px; margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--blue);
  color: var(--blue);
  font-size: 24px; line-height: 1.5;
}
.prose h3 { margin-top: 36px; color: var(--blue); font-size: 20px; line-height: 1.5; }
.prose h4 { margin-top: 28px; font-size: 17px; line-height: 1.6; }
.prose h2 + p, .prose h3 + p, .prose h4 + p { margin-top: 12px; }
.prose ul, .prose ol { margin-top: 16px; padding-left: 1.5em; }
.prose li + li { margin-top: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose blockquote { margin: 20px 0 0; padding: 16px 20px; background: var(--gray); border-left: 3px solid var(--blue); }
.prose blockquote > :first-child { margin-top: 0; }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.prose img { margin-top: 20px; }
.prose code { padding: 1px 5px; background: var(--gray); font-size: 0.92em; }
.prose pre { margin: 20px 0 0; padding: 16px 20px; overflow-x: auto; background: var(--gray); line-height: 1.6; }
.prose pre code { padding: 0; background: none; }
.prose .table-wrap { margin-top: 20px; overflow-x: auto; }
.prose table { width: 100%; border: 1px solid var(--line); }
.prose th, .prose td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.prose thead th { background: var(--blue); color: var(--white); }
.post-foot { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- タブレット ---------- */
@media (max-width: 1023px) {
  .plan-table th, .plan-table td { padding: 14px 10px; }
  .plan-table tbody th { padding-inline: 14px; }
  .row-price td { font-size: 22px; }
  .row-price .yen { font-size: 14px; }
}

/* ---------- スマホ（767px以下） ---------- */
@media (max-width: 767px) {
  .crumb ol { padding: 10px 0; }
  .page-head .wrap { padding: 28px 0; }
  .page-title { font-size: 26px; }
  .page-body { padding: 32px 0 48px; }
  .sub-h { margin-top: 32px; font-size: 18px; }

  .gen { grid-template-columns: 1fr; }
  .gen-price { padding: 16px; }
  .price-amount .num { font-size: 36px; }
  .gen .dots { padding: 16px; font-size: 16px; }
  .custom-notes { font-size: 16px; }

  /* 比較表：項目名を1行使い、その下に半日・1日・2日を3つ並べる（横スクロールにしない） */
  .plan-table, .plan-table thead, .plan-table tbody { display: block; }
  .plan-table colgroup { display: none; }
  .plan-table { border: 0; }
  .plan-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-table th, .plan-table td { padding: 10px 6px; border-width: 0 0 1px 1px; }
  .plan-table tr > :last-child { border-right-width: 1px; }
  .plan-table thead .plan-corner { display: none; }
  .plan-table thead th { padding: 10px 4px; font-size: 17px; border-color: var(--blue); }
  .plan-table thead th + th { border-left-color: rgba(255, 255, 255, 0.4); }
  .plan-table thead th small { font-size: 13px; }
  .plan-table tbody th {
    grid-column: 1 / -1;
    padding: 8px 12px;
    border-right-width: 1px;
    font-size: 15px; line-height: 1.5;
  }
  .plan-table td { padding: 12px 4px; }
  .row-price td { padding-inline: 2px; font-size: min(20px, 5vw); letter-spacing: 0; }
  .row-price .yen { font-size: 12px; }
  .plan-table tbody td { padding-block: 9px; }
  .mark-yes { width: 20px; height: 20px; }
  .price-commons { font-size: 16px; }
  .band-text-sm { font-size: 17px; }

  .toc { padding: 16px; }
  .toc ol { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; }
  .doc h2 { margin-top: 36px; font-size: 19px; }
  .doc-contact { padding: 14px 16px; }

  .post-list li { grid-template-columns: 1fr; padding: 22px 0; }
  .post-list time { line-height: 1.5; }
  .post-list h2 { margin-top: 4px; font-size: 18px; }

  .prose h2 { margin-top: 44px; font-size: 21px; }
  .prose h3 { margin-top: 32px; font-size: 18px; }
  .post-foot { margin-top: 40px; padding-top: 24px; }
}
