@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* コラム（講座づくりの話）共通CSS
   色は :root の変数を直せば全ページに反映されます */
:root {
  --blue: #2569a6;
  --pink: #e4577f;
  --pink-light: #f277a2;
  --pink-pale: #fdeaf1;
  --pink-line: #e3a7bd;
  --scallop: #f9a9c4;
  --red: #c94047;
  --alert: #d8232f;
  --cream: #fffece;
  --bg: #f7f4ed;
  --marker: #fff59e;
  --line: #c9bfa8;
  --text: #222;
  --heading-color: #3a3a3a; /* 見出し・タイトルの色（真っ黒より少しだけグレー） */
  --heading-weight: 700; /* 見出しの太さ */
  --title-weight: 500;   /* 「講座づくりの話」の大タイトルの太さ */
  --font-body: Verdana, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans CJK JP", sans-serif;
  --font-heading: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans CJK JP", sans-serif;
  --sub: #666;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.95;
}

a { color: var(--blue); }
a:hover { color: var(--pink); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ---------- シリーズタイトルの帯（全ページの頭） ---------- */
.series-banner { background: #fff; border-top: 4px solid var(--pink); border-bottom: 1px solid #e6dfd0; padding: 26px 0 22px; text-align: center; }
.series-name { display: block; margin: 0; color: var(--heading-color); text-decoration: none; line-height: 1.3; }
.series-name:hover { color: var(--heading-color); }
.series-name .pk { display: block; margin-bottom: 6px; font-size: 18px; font-weight: var(--title-weight); letter-spacing: .06em; color: var(--pink); }
.series-name .mk { display: inline-block; font-size: 40px; font-weight: var(--title-weight); line-height: 1.35; background: linear-gradient(transparent 64%, #fbd3e2 64%); }
.series-lead { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--sub); }

/* ---------- 本文まわり ---------- */
.breadcrumb { margin: 20px 0 22px; font-size: 12px; color: var(--sub); line-height: 1.6; }

.layout { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 56px; }
.main { flex: 999 1 520px; min-width: 0; }
.side { flex: 1 1 280px; max-width: 320px; min-width: 0; }

.kicker { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--pink); }
h1 { margin: 0 0 10px; font-size: 30px; font-weight: var(--heading-weight); line-height: 1.5; color: var(--heading-color); }
.byline { margin: 0 0 26px; font-size: 13px; color: var(--sub); line-height: 1.7; }

.mk { background: linear-gradient(transparent 58%, var(--marker) 58%); }

.summary {
  background: #fff; border: 2px dotted var(--pink-light); border-radius: 10px;
  padding: 18px 22px; margin: 0 0 40px;
}
.summary-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--pink); line-height: 1.6; }
.main .summary ul { margin: 0; padding-left: 1.3em; line-height: 1.9; }
.summary li:last-child { margin-bottom: 0; }

h2 {
  margin: 48px 0 16px; padding-bottom: 8px; font-size: 22px; font-weight: var(--heading-weight);
  line-height: 1.5; color: var(--heading-color); border-bottom: 2px dotted var(--pink);
}
.summary + h2 { margin-top: 0; }
h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 700; color: var(--pink); line-height: 1.7; }

.main p { margin: 0 0 16px; }
.main ol, .main ul { margin: 0 0 20px; padding-left: 1.5em; }
.main li { margin-bottom: 6px; }

blockquote {
  margin: 0 0 20px; padding: 14px 20px; background: #fff; border: 1px dotted var(--line);
  border-radius: 8px; font-weight: 700;
}

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
table { width: 100%; min-width: 500px; border-collapse: collapse; background: #fff; font-size: 14px; line-height: 1.7; }
th, td { padding: 10px 12px; border: 1px solid var(--pink-line); vertical-align: top; text-align: left; }
thead th { background: var(--pink); color: #fff; font-weight: 700; }
thead th.corner { background: var(--bg); }
tbody th { background: var(--pink-pale); font-weight: 700; width: 16%; }
.todo { color: var(--alert); }

/* ---------- よくある質問 ---------- */
.faq-q { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: var(--pink); line-height: 1.7; }
.faq-a { margin: 0 0 20px; }

.nextlink { margin: 40px 0 0; padding-top: 16px; border-top: 1px dotted var(--line); text-align: right; line-height: 1.7; }

/* ---------- 一覧ページ ---------- */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { margin: 0; border-bottom: 1px dotted var(--line); }
.article-list a {
  display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline;
  padding: 16px 6px; text-decoration: none; color: var(--text);
}
.article-list .no { flex: none; width: 52px; font-size: 22px; font-weight: 700; color: var(--pink); line-height: 1.5; }
.article-list .body { flex: 1 1 300px; min-width: 0; }
.article-list .title { display: block; font-size: 17px; font-weight: 700; color: var(--blue); text-decoration: underline; line-height: 1.65; }
.article-list .desc { display: block; font-size: 14px; line-height: 1.8; margin-top: 2px; }

.badge-new {
  display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 3px;
  background: #ff7a1a; color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; vertical-align: middle;
}

/* ---------- 右カラム ---------- */
.side-box { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.15); margin-bottom: 28px; }
.side-title { margin: 0; padding: 11px 16px; font-size: 16px; font-weight: var(--heading-weight); line-height: 1.5; color: #fff; background: var(--pink); border: 0; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { margin: 0; border-bottom: 1px dotted var(--pink-line); }
.side-list a { display: flex; gap: 10px; align-items: baseline; padding: 11px 14px; font-size: 14px; line-height: 1.65; text-decoration: none; }
.side-list .no { flex: none; font-size: 12px; font-weight: 700; color: var(--pink); }
.side-list a.is-current { background: var(--pink-pale); color: var(--heading-color); font-weight: 700; }
.side-list a.is-current .no::before { content: "▸ "; }
.side-more { margin: 0; padding: 10px 14px; font-size: 13px; text-align: right; }

.side-cta { border-radius: 10px; overflow: hidden; text-align: center; background: var(--pink-light); }
.side-cta-body { padding: 18px 14px 14px; }
.side-cta p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: #fff; font-weight: 700; }
.side-cta a { display: block; }
.side-cta img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* ---------- ページ下部のピンク帯 ---------- */
.cta-band { background: var(--pink-light); text-align: center; padding: 34px 24px 28px; }
.cta-band p { margin: 0 0 12px; font-size: 18px; color: #fff; font-weight: 700; line-height: 1.7; }
.cta-band a { display: block; max-width: 619px; margin: 0 auto; }
.cta-band img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.cta-band .note { margin: 14px 0 0; font-size: 12px; font-weight: 400; }
.scallop { height: 26px; background: radial-gradient(circle at 24px 0, var(--pink-light) 23px, transparent 24px) 0 0 / 48px 26px repeat-x, var(--scallop); }
.side-cta .scallop { height: 22px; background: radial-gradient(circle at 20px 0, var(--pink-light) 19px, transparent 20px) 0 0 / 40px 22px repeat-x, var(--scallop); }

.site-footer { background: var(--bg); border-top: 3px solid var(--red); padding: 26px 24px; font-size: 12px; color: var(--sub); text-align: center; line-height: 1.7; }

/* ---------- 見出し系のフォント ---------- */
h1, h2, h3, .series-name, .side-title, .summary-title, .kicker, .faq-q { font-family: var(--font-heading); }

/* ---------- スマホ ---------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 24px; }
  .series-banner { padding: 20px 0 16px; }
  .series-name .pk { font-size: 15px; }
  .series-name .mk { font-size: 28px; }
  h2 { font-size: 19px; margin-top: 40px; }
  .summary { padding: 14px 16px; }
  .cta-band p { font-size: 15px; }
  .layout { gap: 28px; }
  .main { flex-basis: 100%; }
  .side { max-width: none; flex-basis: 100%; }
}

/* ---------- ページ上部へ戻るボタン ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 2px 8px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  opacity: .92; transition: opacity .2s, transform .2s;
}
.to-top:hover { background: var(--pink-light); opacity: 1; }
.to-top span { display: block; width: 12px; height: 12px; margin-top: 5px; border-top: 3px solid #fff; border-left: 3px solid #fff; transform: rotate(45deg); }
.to-top.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
@media (max-width: 640px) { .to-top { right: 12px; bottom: 12px; width: 44px; height: 44px; } }

/* 2列の表は、左の見出し列を広めに */
.table-2col tbody th { width: 40%; }
@media (max-width: 640px) { .table-2col tbody th { width: 42%; } }

/* 追加の一覧（目立たせない・フラット） */
h3.plain { margin: 28px 0 8px; font-size: 16px; font-weight: 700; color: var(--heading-color); }
.list-head { margin: 14px 0 2px; }

/* 関連講座・関連記事 */
.related { margin: 48px 0 0; padding-top: 8px; border-top: 1px dotted var(--line); }
.related h3.plain { margin-top: 22px; }
.related ul { margin-bottom: 8px; }
