/* ==========================================================================
   札幌AI勉強会（/study 配下）共有CSS
   文脈: SITE（generalist-site 内のサブブランド）。2026-09-26 新規／2026-09-27 全面改訂。
   2026-09-27 原さん「黒基調じゃなくて、もう少し親しみのあるサイトに」→「晴れた日の大通公園」のトーンへ。
   - 面は白と淡いクリームの交互（2026-09-27 挿絵素材の採用に合わせ、空色からクリームへ）。黒の面は使わない
   - 文字は真っ黒でなく濃紺。本文はそれより少し薄い濃紺（どちらも AA 以上を実測）
   - アクセントは雪の青1色（明るい面の文字・ボタン=暗色 #2c66b8、装飾=原色 #3a7bd5）
   - 角丸は大きめ（カード18px・ボタンは丸め）、カードに柔らかい影。※本体サイトの btn4/card6 とは別（サブブランド）
   - 書体は本体と同じ Noto Sans JP のみ
   - LPだけの演出（ヒーロー・sticky・タイムライン・Bento）は study/index.html に内包
   ========================================================================== */

:root {
  /* 面 */
  --white: #ffffff;
  --cream: #fff8ed;         /* 淡いクリーム（交互の2段目。挿絵の背景色に合わせた） */
  --cream-2: #f8eedd;
  --hero-cream: #fefbf0;    /* ヒーローのイラストの背景色（絵の外側をこの色で埋めて継ぎ目を消す） */       /* クリームより一段濃い塗り（バッジ・状態表示の下地） */
  /* 文字 */
  --ink: #1f2d3d;           /* 濃紺。白 13.99 / クリーム 13.26 */
  --ink-sub: #4a5a6b;       /* 本文。白 7.08 / クリーム 6.71 / cream-2 6.16 */
  /* 線 */
  --line: #e7ddcc;
  /* アクセント（雪の青） */
  --snow: #3a7bd5;          /* 装飾（線・図形・進捗バー・フォーカスリング） */
  --snow-text: #2c66b8;     /* 明るい面の文字 白5.68 / クリーム5.38 / cream-2 4.94 / 白文字を乗せる塗り 5.68 */
  --snow-deep: #22559c;     /* ボタンの hover・押下 */
  --snow-tint: #e6effb;     /* 淡い塗り */
  /* 半透明・影 */
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-line: rgba(31, 45, 61, 0.08);
  --chip-bg: rgba(255, 255, 255, 0.88);   /* 画像の上の小さなキャプションの下地 */
  --cue-line: rgba(255, 255, 255, 0.5);  /* 写真の上のスクロール誘導の線 */
  --shadow: 0 1px 2px rgba(31, 45, 61, 0.06), 0 8px 24px rgba(31, 45, 61, 0.08);
  --shadow-hover: 0 2px 4px rgba(31, 45, 61, 0.08), 0 14px 32px rgba(31, 45, 61, 0.12);
  --text-shadow: 0 1px 12px rgba(16, 38, 66, 0.35);
  --hero-veil: linear-gradient(90deg, rgba(16, 38, 66, 0.66) 0%, rgba(16, 38, 66, 0.50) 38%, rgba(16, 38, 66, 0.14) 60%, rgba(16, 38, 66, 0) 74%);
  --photo-chip: rgba(16, 38, 66, 0.55);   /* 写真の上の小さな文字の下地（PCの日程行・スクロール誘導） */
  --hero-top: linear-gradient(180deg, rgba(16, 38, 66, 0.40) 0%, rgba(16, 38, 66, 0) 100%);
  /* 形 */
  --r-btn: 999px;
  --r-card: 18px;
  --r-small: 10px;
  --wrap: 1040px;
  --pad: 20px;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --pad: 32px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-break: strict;
}
img, svg { max-width: 100%; }
a { color: var(--snow-text); text-underline-offset: 3px; }
a:hover { color: var(--snow-deep); }
:focus-visible { outline: 2px solid var(--snow); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: var(--r-btn); box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

.st-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.st-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }

/* 見出しの折り返し: 文節で折る。keep-all と anywhere は同居させない（2026-09-22 の学び） */
.st-h, .st-h1 { word-break: keep-all; overflow-wrap: break-word; }

/* 丸みのある線画アイコン */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 進捗バー（上部1px・雪の青） ---------- */
.st-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--snow); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
html:not(.js) .st-progress { display: none; }

/* ---------- ナビ（スクロール前は透明＋濃紺の文字、スクロール後は白の半透明＋ぼかし） ---------- */
.st-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.st-nav.is-scrolled,
.st-nav.is-solid,
html:not(.js) .st-nav {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 var(--nav-line);
  color: var(--ink); text-shadow: none;
}
.st-nav-in {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--pad);
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.st-logo {
  color: inherit; text-decoration: none; font-weight: 700; font-size: 16px;
  letter-spacing: 0.02em; margin-right: auto; white-space: nowrap;
}
.st-logo:hover { color: inherit; }
.st-links { display: none; gap: 24px; }
.st-links a { color: inherit; opacity: .92; text-decoration: none; font-size: 14px; font-weight: 500; }
.st-links a:hover, .st-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 720px) { .st-links { display: flex; } }
.st-nav .btn { min-height: 38px; padding: 0 18px; font-size: 14px; text-shadow: none; }

/* ---------- ボタン（丸め） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  background: var(--snow-text); color: var(--white);
  border: 0; border-radius: var(--r-btn);
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.3;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(44, 102, 184, 0.22);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--snow-deep); color: var(--white); box-shadow: 0 8px 20px rgba(44, 102, 184, 0.30); }
.btn:active { background: var(--snow-deep); transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-xl { min-height: 58px; padding: 0 40px; font-size: 18px; }
.btn-ghost {
  background: var(--white); color: var(--snow-text);
  box-shadow: inset 0 0 0 1.5px var(--snow-text);
}
.btn-ghost:hover { background: var(--snow-tint); color: var(--snow-deep); box-shadow: inset 0 0 0 1.5px var(--snow-deep); }
.textlink { font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .btn, .card { transition: none; } .btn:active { transform: none; } }

/* 日程が決まっているか（data-state）で文言を切り替える。両方の文言をHTMLに持つ */
[data-state="tbd"] .if-open { display: none; }
[data-state="open"] .if-tbd { display: none; }

/* ---------- セクション（白と淡い空色の交互） ---------- */
.st-sec { padding: clamp(56px, 8vw, 104px) 0; }  /* 2026-09-27 節の境目が広すぎた（PC約300px・スマホ約180px）ので詰めた */
.st-sec.on-white { background: var(--white); }
.st-sec.on-cream { background: var(--cream); }

.st-h {
  margin: 0 0 20px;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.3; font-weight: 700; letter-spacing: 0;
  color: var(--ink);
}
.st-h.center, .center { text-align: center; }
.st-lead {
  margin: 0 auto; max-width: 34em;
  font-size: clamp(16px, 2.1vw, 19px); line-height: 1.85; color: var(--ink-sub);
}
.st-lead.center { text-align: center; }
.st-h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.5; font-weight: 700; color: var(--ink); }
.muted { color: var(--ink-sub); }
.small { font-size: 14px; line-height: 1.7; }

/* 見出しが画面に入ったら下からふわっと。JSがあり、動きを減らす設定でない時だけ隠す */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- カード（白・柔らかい影） ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .cards.two { grid-template-columns: 1fr 1fr; } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 24px; border-radius: var(--r-card);
  background: var(--white); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow);
  min-width: 0;
}
a.card { transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
a.card:hover { color: var(--ink); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.card h3 { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 700; word-break: keep-all; overflow-wrap: break-word; }
.card p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-sub); }
.card .meta { font-size: 13px; color: var(--ink-sub); font-weight: 500; }
.card .go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--snow-text); display: inline-flex; align-items: center; gap: 6px; }
.card.is-pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.state-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 6px 10px; border-radius: var(--r-btn); background: var(--cream-2); color: var(--snow-text);
}

/* 空状態（まだ記事が無い） */
.empty {
  padding: 48px 24px; border-radius: var(--r-card);
  background: var(--white); box-shadow: var(--shadow); text-align: center;
}
.empty svg { width: 56px; height: 56px; margin: 0 auto 16px; display: block; }
.empty .empty-ill { display: block; width: 120px; height: auto; margin: 0 auto 16px; }
.empty .ic-line { stroke: var(--snow); stroke-linecap: round; stroke-linejoin: round; }
.empty h2, .empty h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.empty p { margin: 0 auto; max-width: 30em; color: var(--ink-sub); font-size: 15px; }

/* ---------- パンくず・ページ見出し（一覧・記事） ---------- */
.st-page-head { padding: 120px 0 40px; background: var(--cream); }
.crumbs { font-size: 13px; color: var(--ink-sub); margin: 0 0 24px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-sub); opacity: .5; }
.crumbs a { color: var(--ink-sub); text-decoration: none; }
.crumbs a:hover { color: var(--snow-text); text-decoration: underline; }
.st-h1 { margin: 0 0 16px; font-size: clamp(30px, 6.4vw, 52px); line-height: 1.3; font-weight: 700; color: var(--ink); }
.st-page-head .st-lead { margin: 0; }

/* ---------- 記事（開催レポート・ノウハウ記事・インタビューの型） ---------- */
.art-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; color: var(--ink-sub); margin: 0; }
.art-meta b { font-weight: 700; color: var(--ink); margin-right: 6px; }
.answer {
  margin: 40px 0 48px; padding: 24px; border-radius: var(--r-card);
  background: var(--cream); box-shadow: inset 4px 0 0 var(--snow);
}
.answer > p { margin: 0 0 12px; }
.answer .answer-label { font-size: 14px; font-weight: 700; color: var(--snow-text); margin: 0 0 8px; }
.answer ul, .answer ol { margin: 0; padding-left: 1.3em; }
.answer dl { margin: 0 0 12px; display: grid; grid-template-columns: 5em 1fr; gap: 4px 12px; }
.answer dt { font-weight: 700; }
.answer dd { margin: 0; }
.prose { font-size: 17px; line-height: 1.9; }
.prose h2 { margin: 72px 0 16px; font-size: clamp(23px, 4.4vw, 30px); line-height: 1.45; font-weight: 700; word-break: keep-all; overflow-wrap: break-word; scroll-margin-top: 80px; }
.prose h3 { margin: 40px 0 8px; font-size: 20px; line-height: 1.5; font-weight: 700; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 1.4em; }
.prose li { margin: 0 0 6px; }
.prose .point { font-weight: 700; }
.toc { margin: 0 0 48px; padding: 20px 24px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.toc h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 15px; line-height: 1.9; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--snow-text); text-decoration: underline; }
.primary-note { margin: 32px 0; padding: 24px; border-radius: var(--r-card); background: var(--cream); }
.primary-note .label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--snow-text); }
.primary-note p:last-child { margin-bottom: 0; }

/* 表: 横スクロールさせない。スマホは data-label で縦積み */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; margin: 0 0 24px; font-size: 15px; line-height: 1.7; border-radius: var(--r-small); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { font-size: 13px; font-weight: 700; color: var(--ink-sub); background: var(--cream); }
.tbl tbody th { font-weight: 700; }
@media (max-width: 639px) {
  .tbl { box-shadow: none; border-radius: 0; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl th, .tbl td { border: 0; padding: 4px 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--ink-sub); }
}

/* 写真: 横スクロールなし・スマホ1列 */
.photos { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 32px; }
@media (min-width: 720px) { .photos { grid-template-columns: 1fr 1fr; } .photos .wide { grid-column: 1 / -1; } }
.photos figure { margin: 0; min-width: 0; }
.photos img { display: block; width: 100%; height: auto; border-radius: var(--r-card); background: var(--cream); }
.photos figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--ink-sub); }

/* 執筆者 */
.author { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 24px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); margin: 56px 0 0; }
.author .mono {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-2); color: var(--snow-text); font-weight: 700; font-size: 18px;
}
.author p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-sub); }
.author .name { color: var(--ink); font-weight: 700; font-size: 16px; margin-bottom: 4px; }

/* ---------- FAQ（丸みのあるカード） ---------- */
.faq { margin: 0; display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 17px; line-height: 1.6; border-radius: var(--r-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--snow-text); border-bottom: 2px solid var(--snow-text); border-radius: 1px; transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { margin: 0; padding: 0 24px 24px; color: var(--ink-sub); font-size: 16px; line-height: 1.85; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- 次回案内（日程の差し込み先） ---------- */
.next { display: grid; gap: 0; margin: 0 0 32px; padding: 8px 24px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.next div { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.next div:last-child { border-bottom: 0; }
.next dt { font-weight: 700; font-size: 15px; color: var(--ink-sub); }
.next dd { margin: 0; font-size: 16px; }

/* ---------- 申込フォーム ---------- */
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 700; font-size: 15px; }
.req, .opt { font-size: 12px; font-weight: 700; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-btn); vertical-align: 2px; }
.req { background: var(--snow-text); color: var(--white); }
.opt { background: var(--cream-2); color: var(--ink-sub); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--ink-sub); border-radius: var(--r-small);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.7; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-sub) 50%), linear-gradient(135deg, var(--ink-sub) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--snow-tint); outline-offset: 0; border-color: var(--snow-text); }
.field [aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--ink); }
.field .err { font-size: 14px; font-weight: 700; color: var(--ink); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.7; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--snow-text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 16px; border-radius: var(--r-small); background: var(--cream); font-weight: 700; box-shadow: inset 4px 0 0 var(--ink); }
.form-status:empty { display: none; }
.form-foot { display: grid; gap: 12px; justify-items: start; }
.form-foot .btn { width: 100%; }
@media (min-width: 720px) { .form-foot .btn { width: auto; } }
.done { padding: 32px 24px; border-radius: var(--r-card); background: var(--cream); }
.done h3 { margin: 0 0 8px; font-size: 22px; }
.done p { margin: 0 0 12px; }
.done .cal-label { margin: 20px 0 8px; font-size: 14px; font-weight: 700; color: var(--ink-sub); }
.done .cal-row { display: flex; flex-wrap: wrap; gap: 10px; }
.done .cal-row .btn { flex: 0 1 auto; }
.done .cal-note { margin: 10px 0 0; font-size: 13px; }
@media (max-width: 480px) { .done .cal-row .btn { flex: 1 1 100%; } }
.done .receipt { font-size: 15px; color: var(--ink-sub); }
.done .receipt b { color: var(--ink); font-size: 18px; letter-spacing: 0.04em; }

/* ---------- 申込への導線（記事末尾・一覧末尾） ---------- */
.cta-band { background: var(--cream); color: var(--ink); padding: clamp(72px, 11vw, 120px) 0; text-align: center; }
.cta-band p { color: var(--ink-sub); margin: 0 auto 32px; max-width: 32em; }

/* ---------- フッター ---------- */
.st-foot { background: var(--cream); color: var(--ink-sub); font-size: 14px; line-height: 1.8; padding: 56px 0 40px; border-top: 1px solid var(--line); }
.st-foot .cols { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .st-foot .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
.st-foot h2 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.st-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-foot a { color: var(--ink-sub); text-decoration: none; }
.st-foot a:hover { color: var(--snow-text); text-decoration: underline; }
.st-foot .copy { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.st-foot p { margin: 0; }
