/* 自前の改修（2026-11-10 しょーてぃさん「会員サイトのデザインが見にくい。しょーてぃブログみたいなデザインの方がいい」）
   しょーてぃブログ（www.sho-t.net・WordPress の SWELL）の見た目に寄せた雛形。色と書体はブログの設定の値：
   オレンジ #f4993d（見出し・メニューの帯）・頭の帯 #fff9f5・文字 #333・リンク #0066c0・游ゴシック 500。
   講座を読み進める場所なので、文字は少し大きく行間を広く（本文 17px・行間 1.95）・動画は本文の幅いっぱい・ボタンは大きく。
   site.js・prompt-copy.js が使う変数（--accent・--line・--surface・--ok・--wait・--body）と部品の名前は前のまま。 */
:root {
  --bg: #FFFFFF;        /* 地（ブログと同じ白） */
  --head: #FFF9F5;      /* 頭の帯（ブログの l-header__bar） */
  --surface: #FFFFFF;   /* 面 */
  --surface2: #FBF6F1;  /* 面（沈んだ・薄いオレンジ寄り） */
  --ink: #333333;       /* 文字（ブログの --color_text） */
  --ink2: #5F5A55;      /* 補助の文字 */
  --ink3: #8F8780;
  --line: #EDE5DC;      /* 罫 */
  --main: #F4993D;      /* ブログのオレンジ（線・点・枠） */
  --accent: #E8771C;    /* 白い字を載せるオレンジ（ボタン・メニューの帯・見出しの帯） */
  --accent-ink: #C0560B;/* 白地に置くオレンジの字 */
  --accent-soft: #FFF3E8;
  --link: #0066C0;      /* ブログのリンクの色 */
  --ok: #2E9E57;        /* 完了 */
  --ok-soft: #EAF8EF;
  --wait: #9A6A12;      /* 公開前 */
  --wait-soft: #FBF1DC;
  --body: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --display: var(--body);
  --num: var(--body);
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0, 0, 0, .08);
  --shadow-hi: 0 4px 16px rgba(0, 0, 0, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-weight: 500; font-size: 16px; line-height: 1.85; letter-spacing: .02em; -webkit-font-smoothing: antialiased; line-break: strict; overflow-wrap: break-word; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: .02em; text-wrap: pretty; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.lead { color: var(--ink2); font-size: 15.5px; margin: 10px 0 0; max-width: 40em; }

/* ---- 頭の帯（ブログのヘッダー：薄いオレンジの帯にロゴ・下にオレンジのメニューの帯） ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--head); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.top-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px #F3DCC6; }
.who { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 13px; color: var(--ink3); }
.who-mail { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who button { font: inherit; font-size: 13px; color: var(--ink2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 36px; white-space: nowrap; }
.who button:hover { background: var(--surface2); }
.nav { background: var(--accent); }
.nav-in { max-width: 1080px; margin: 0 auto; padding: 0 12px; display: flex; justify-content: center; }
.nav a { position: relative; display: flex; align-items: center; min-height: 46px; padding: 0 22px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .06em; white-space: nowrap; transition: background 160ms var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, .14); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 3px; border-radius: 2px; background: #fff; }

.main { max-width: 1080px; margin: 0 auto; padding: 40px 24px 120px; }

/* ---- 講座のメニュー（講座のページ：月報・日報の設定／パートのページ：講座の目次・月報・日報の設定）
   2026-11-10 しょーてぃさん「どこを見せたいのかもわかんない」：主役（動画・本文・次に見るパート）より目立たないよう、細い文字のリンクにした ---- */
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; max-width: 820px; margin: 0 auto 18px; font-size: 13.5px; }
.subnav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.subnav a:hover { color: var(--accent-ink); text-decoration: underline; }
.subnav a + a::before { content: "・"; margin: 0 .5em; color: var(--ink3); font-weight: 500; }
.subnav a.sn-course { white-space: normal; }
.subnav a.sn-course::before { content: "← "; }
.subnav a[data-only] { display: none; }
.subnav[data-course="brain"] a[data-only~="brain"],
.subnav[data-course="crypto-master"] a[data-only~="crypto-master"] { display: inline-flex; }
.course-head .subnav { margin: 14px 0 0; }

/* ---- トップ（一番見せたい物＝「続きから」。オレンジで一番大きく。あいさつ・講座の一覧・お知らせは控えめ） ---- */
.hello h1 { font-size: 20px; color: var(--ink2); }
.resume { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k go" "t go" "c go"; row-gap: 6px; column-gap: 18px; align-items: center;
  margin: 14px 0 0; padding: 22px 26px; border-radius: 14px; background: var(--accent); color: #fff; text-decoration: none; box-shadow: 0 4px 0 #C25E10, var(--shadow-hi);
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); }
.resume:hover { transform: translateY(-1px); }
.resume:active { transform: translateY(3px); box-shadow: 0 1px 0 #C25E10; }
.resume-k { grid-area: k; justify-self: start; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--accent-ink); }
.resume-t { grid-area: t; font-weight: 700; font-size: 21px; line-height: 1.5; }
.resume-c { grid-area: c; font-size: 13.5px; opacity: .92; }
.resume-go { grid-area: go; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--accent-ink); font-size: 24px; font-weight: 700; }
.course-head .resume { margin-top: 22px; }
.block { margin: 44px 0 0; }
/* 講座の一覧などの小見出し（控えめ：左にオレンジの線） */
.block-h { margin: 0 0 16px; padding: 0 0 0 12px; border-left: 4px solid var(--main); font-size: 18px; line-height: 1.5; }
/* 本文の h2 はブログの h2 と同じ形（オレンジの帯・上下に細い線） */
.prose h2 { position: relative; margin: 0 0 22px; padding: .7em 1em; background: var(--accent); color: #fff; font-size: 19px; line-height: 1.5; }
.prose h2::before { content: ""; position: absolute; left: 0; top: -5px; width: 100%; height: calc(100% + 6px); box-sizing: content-box; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); pointer-events: none; }
/* ホームの下のお知らせ（home.md）は、主役の邪魔をしない薄い箱 */
.k-home .block .prose { max-width: none; padding: 20px 22px; border-radius: var(--radius); background: var(--surface2); font-size: 15.5px; line-height: 1.85; }
.k-home .block .prose h2 { margin: 0 0 8px; padding: 0; background: none; color: var(--ink); font-size: 16.5px; }
.k-home .block .prose h2::before { content: none; }
.courses { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.course-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--main); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); overflow: hidden; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.cc-title { font-weight: 700; font-size: 20px; line-height: 1.5; }
/* 2026-11-15 本人「サムネ入れといて」：講座の名前のすぐ下に、その講座のサムネ（絵で講座が分かるように） */
.cc-thumb { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.cc-sum { color: var(--ink2); font-size: 14.5px; line-height: 1.8; }
.cc-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--ink3); }
.cc-state { color: var(--accent-ink); font-weight: 700; }
.course-card .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 0; }
.course-card.is-locked { background: var(--surface2); box-shadow: none; border-top-color: var(--line); }
.course-card.is-locked .cc-title, .course-card.is-locked .cc-state { color: var(--ink2); }

/* 進み具合の線 */
.bar { display: block; height: 8px; border-radius: 999px; background: #F3ECE4; overflow: hidden; }
.bar-in { display: block; height: 100%; width: var(--p, 0%); background: var(--main); border-radius: inherit; transition: width 420ms var(--ease); }

/* ---- 講座 ---- */
.course-head { max-width: 820px; margin: 0 auto; }
.course-head h1 { font-size: clamp(24px, 3.6vw, 32px); }
.course-progress { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; max-width: 480px; }
.course-progress .bar { flex: 1; }
.rs-progress { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.rs-progress b { font-size: 22px; color: var(--ink); font-weight: 700; }
.course-body { margin: 32px auto 0; max-width: 820px; }

/* 学びの道: レッスンを縦の線でつなぐ。完了で点が灯る */
.path { list-style: none; margin: 36px auto 0; padding: 0; position: relative; max-width: 820px; }
.path::before { content: ""; position: absolute; left: 15px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.step { position: relative; padding-left: 50px; margin: 0 0 10px; }
.dot { position: absolute; left: 6px; top: 24px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #E3D6C8; transition: background 200ms var(--ease), border-color 200ms var(--ease); }
.step.is-done .dot { background: var(--ok); border-color: var(--ok); }
.step.is-done .dot::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.step-link { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease); }
.step-link:hover { transform: translateX(3px); box-shadow: var(--shadow-hi); border-color: #F3D3B6; }
.step-n { font-weight: 700; font-size: 20px; color: var(--main); min-width: 1.7em; line-height: 1.5; font-variant-numeric: tabular-nums; }
.step-body { display: grid; gap: 2px; min-width: 0; }
.step-t { font-weight: 700; font-size: 16.5px; line-height: 1.6; }
.step-s { color: var(--ink2); font-size: 14px; line-height: 1.7; }
.step-state { font-size: 13px; color: var(--ink3); }
.step-state:empty { display: none; }
.step.is-done .step-state { color: var(--ok); font-weight: 700; }
.step.is-locked .step-link { background: transparent; border-style: dashed; }
.step.is-locked .step-t { color: var(--ink2); }
.step.is-locked .step-state { color: var(--wait); font-weight: 700; }
/* 自前の改修（2026-11-10）：目次の章の区切り（course.html の .chap・前付け chapter） */
.chap { position: relative; z-index: 1; margin: 26px 0 12px; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.chap:first-child { margin-top: 0; }
/* 自前の改修（2026-11-10）：ホームの「はじめに」の講座ごとの文（home.md の data-home-course。見られない講座の文は site.js が隠す） */
.home-course + .home-course { margin-top: 14px; }
.home-course p { margin: 4px 0; }

/* ---- レッスン ---- */
.lesson { max-width: 820px; margin: 0 auto; }
.crumb { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink3); margin: 0 0 12px; }
.crumb a { color: var(--ink2); text-decoration: none; }
.lesson h1, .page h1 { font-size: clamp(23px, 3.4vw, 30px); line-height: 1.5; }
.media { margin: 24px 0 0; }
.rs-video, .rs-embed { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #111; box-shadow: var(--shadow-hi); }
.rs-embed iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
/* 自前の改修（2026-11-14）：R2 の動画の下の「再生速度」のボタン（assets/speed.js） */
.rs-speed { text-align: right; margin: 8px 0 1.4em; }
.prose .rs-video:has(+ .rs-speed) { margin-bottom: 0; }
.rs-speed button { font: inherit; font-size: 14px; font-weight: 700; background: #fff; color: var(--ink, #333); border: 1px solid var(--line, #ccc); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.lesson > .prose { margin: 32px 0 0; }
.files { margin: 40px 0 0; padding: 20px 22px; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); }
.files .block-h { font-size: 17px; }
.files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.files a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--link); font-weight: 700; }
.file-ico { width: 18px; height: 22px; border: 2px solid currentColor; border-radius: 3px; position: relative; flex: none; opacity: .7; }
.file-ico::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: currentColor; box-shadow: 0 4px 0 currentColor; }
.btn-done { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--ok);
  background: #fff; color: var(--ok); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; transition: background 160ms var(--ease), color 160ms var(--ease), transform 90ms var(--ease); }
.btn-done:hover { background: var(--ok-soft); }
.btn-done:active { transform: scale(.97); }
.done-ico { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; position: relative; flex: none; }
.btn-done.is-done { background: var(--ok); color: #fff; }
.btn-done.is-done .done-ico::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.btn-done.is-done .done-ico { animation: pop 260ms var(--ease); }
@keyframes pop { 0% { transform: scale(.7); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---- 本文（ブログの見出しの形：h2＝オレンジの帯・h3＝下線の左3割がオレンジ・h4＝左にオレンジの線） ---- */
.prose { max-width: 820px; font-size: 17px; line-height: 1.95; }
.prose h2 { margin: 52px 0 22px; font-size: 20px; }
.prose h3 { position: relative; margin: 44px 0 18px; padding: 0 .3em .5em; font-size: 19.5px; }
.prose h3::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--main) 0%, var(--main) 29.3%, rgba(150, 150, 150, .2) 29.3%, rgba(150, 150, 150, .2) 100%); }
.prose h4 { margin: 32px 0 12px; padding: 0 0 0 14px; border-left: 3px solid var(--main); font-size: 17.5px; line-height: 1.6; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.prose li { margin: 6px 0; }
.prose ul li::marker { color: var(--main); }
.prose ol li::marker { color: var(--accent-ink); font-weight: 700; }
.prose blockquote { margin: 0 0 1.4em; padding: 16px 20px; border-radius: 8px; background: var(--surface2); border-left: 4px solid #E9D9C8; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-size: .9em; background: var(--surface2); padding: 2px 6px; border-radius: 5px; }
.prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 10px; background: #2B2622; color: #F5EFE9; font-size: 14px; line-height: 1.7; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose img { border-radius: 6px; }
.prose .rs-video, .prose .rs-embed { margin: 0 0 1.4em; }
.prose details { margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.prose details > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; background: var(--surface2); border-radius: 8px; list-style-position: inside; }
.prose details[open] > summary { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.prose details > :not(summary) { margin-left: 16px; margin-right: 16px; }
.prose details > :nth-child(2) { margin-top: 14px; }
.page { max-width: 820px; margin: 0 auto; }
.page h1 { margin: 0 0 28px; }

/* ---- 吹き出し（しょーてぃが喋っている形。ブログの c-balloon と同じ：丸いアイコン＋名前・水色の吹き出し）。
   中身は 02_Project/仮想通貨マスター講座_会員サイト/make_lessons.mjs が元のページの speech-wrap から作る ---- */
.balloon { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 1.6em; }
.balloon-icon { flex: none; width: 76px; text-align: center; line-height: 1.3; }
.balloon-icon img { display: block; width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #E6E6E6; }
.balloon-name { display: block; margin-top: 4px; font-size: 11.5px; letter-spacing: 0; white-space: nowrap; color: var(--ink2); }
.balloon-text { position: relative; flex: 1; min-width: 0; padding: 16px 20px; border-radius: 8px; background: #E2F6FF; font-size: 16.5px; line-height: 1.85; }
.balloon-text::before { content: ""; position: absolute; left: -11px; top: 24px; border-style: solid; border-width: 8px 12px 8px 0; border-color: transparent #E2F6FF transparent transparent; }
.balloon-text > :last-child { margin-bottom: 0; }
.balloon-text p { margin: 0 0 .8em; }

/* ---- 公開前 ---- */
.locked { max-width: 520px; margin: 40px auto 0; padding: 40px 32px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lock-ico { display: inline-block; width: 26px; height: 20px; border-radius: 4px; background: var(--wait); position: relative; margin: 14px 0 10px; }
.lock-ico::before { content: ""; position: absolute; left: 5px; top: -12px; width: 16px; height: 14px; border: 3px solid var(--wait); border-bottom: 0; border-radius: 10px 10px 0 0; box-sizing: border-box; }
.rs-locked-title { font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.locked p { margin: 0 0 10px; color: var(--ink2); }
.locked b { color: var(--wait); }

/* ---- ログイン（ログイン前の画面） ---- */
.guest { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--head); border-top: 6px solid var(--accent); }
.guest-card { width: 100%; max-width: 440px; padding: 32px 30px 26px; background: var(--surface); border-radius: 14px; border: 1px solid #F3DCC6; box-shadow: var(--shadow-hi); }
.guest-card .brand { margin: 0 0 24px; font-size: 19px; }
.rs-login .kick { display: none; }
.rs-login h1 { font-size: 24px; margin: 0 0 10px; }
.rs-login p { margin: 0 0 12px; }
.rs-login .sub { color: var(--ink2); font-size: 14px; line-height: 1.8; }
.rs-login label { display: block; font-size: 14px; font-weight: 700; margin: 18px 0 6px; }
.rs-login input[type=email], .rs-login input[type=text] { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #E3D6C8; border-radius: 8px; background: #fff; color: var(--ink); }
.rs-login input:focus { outline: 2px solid var(--main); outline-offset: 1px; }
.rs-login .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 20px 0 0; border: 0; border-radius: 999px; background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 #C25E10; }
.rs-login .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #C25E10; }
.rs-login .btn.ghost { background: var(--surface2); color: var(--ink); box-shadow: none; }
.rs-login details.help { margin: 16px 0 0; font-size: 13.5px; color: var(--ink2); }
.rs-login details.help summary { cursor: pointer; min-height: 32px; }
.guest-foot { margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.8; color: var(--ink2); }

.rs-slot-preview { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink3); font-size: 13px; }

/* 前のスマホの下のタブ（layout.html から外した。残っていても出さない） */
.tabs { display: none; }

/* ---- スマホ ---- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-in { height: 56px; padding: 0 12px 0 14px; gap: 10px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-ico { width: 34px; height: 34px; }
  .who-mail { display: none; }
  .who button { padding: 5px 12px; font-size: 12.5px; min-height: 34px; }
  .nav-in { padding: 0; }
  .nav a { flex: 1 1 0; justify-content: center; min-height: 44px; padding: 0 8px; font-size: 14.5px; letter-spacing: .02em; }
  .nav a[aria-current="page"]::after { left: 22%; right: 22%; }
  .main { padding: 24px 16px 96px; }
  .subnav { margin-bottom: 14px; font-size: 13px; }
  .resume { padding: 18px 18px; column-gap: 12px; }
  .resume-t { font-size: 17.5px; }
  .resume-go { width: 42px; height: 42px; font-size: 20px; }
  .block { margin-top: 40px; }
  .block-h, .prose h2 { font-size: 18px; }
  .courses { grid-template-columns: 1fr; }
  .course-card { padding: 20px 18px 26px; }
  .cc-title { font-size: 18.5px; }
  .path::before { left: 11px; }
  .step { padding-left: 36px; }
  .dot { left: 2px; }
  .step-link { padding: 14px 14px; gap: 10px; }
  .step-n { font-size: 17px; }
  .step-t { font-size: 15.5px; }
  .prose { font-size: 16.5px; line-height: 1.9; }
  .prose h3 { font-size: 18px; }
  .prose h4 { font-size: 16.5px; }
  .media { margin-left: -16px; margin-right: -16px; }
  .media .rs-video, .media .rs-embed, .media .rs-embed iframe { border-radius: 0; }
  .balloon { gap: 10px; }
  .balloon-icon { width: 58px; }
  .balloon-name { font-size: 10.5px; }
  .balloon-icon img { width: 54px; height: 54px; }
  .balloon-text { padding: 12px 14px; font-size: 15.5px; }
  .balloon-text::before { top: 18px; }
  .guest-card { padding: 26px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* 自前の改修（2026-11-08）：受講生の日報（lesson.html の data-report） */
.report-row{margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface2)}
.report-lead{margin:0 0 10px}
.report-btn{display:block;text-align:center;font-weight:700;padding:13px;border-radius:999px;background:#111;color:#fff;text-decoration:none;margin:0 0 8px}
.report-link{display:inline-block;margin:0 0 12px}
.report-label{display:block;font-size:14px;margin:4px 0}
.report-note{display:block;width:100%;margin-top:4px;font:inherit;padding:10px;border-radius:8px;border:1px solid #E3D6C8;background:#fff}
.report-save{margin-top:8px;font:inherit;font-weight:700;padding:9px 18px;border-radius:999px;border:0;background:var(--accent);color:#fff;cursor:pointer}
.report-msg{margin-left:10px;font-size:13px}
/* 自前の改修（2026-11-10）：分かりにくかった所・不具合の報告／月報の声かけ */
.ask-row{margin:40px 0 20px;padding:18px;border:1px dashed #E3D6C8;border-radius:var(--radius);color:var(--ink2)}
.ask-h{margin:0 0 6px;font-size:15px;color:var(--ink)}
.ask-lead{margin:0 0 4px;font-size:14px}
.ask-note{margin:0 0 10px;font-size:12px;color:var(--ink3)}
.ask-kinds{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px}
.ask-kind{display:flex;align-items:center;gap:4px;font-size:14px;padding:6px 10px;border:1px solid var(--line);border-radius:8px}
.ask-list{list-style:none;margin:12px 0 0;padding:0;font-size:13px}
.ask-list li{padding:6px 0;border-top:1px solid var(--line);white-space:pre-wrap}
.ask-list .ask-list-h{border-top:0;font-weight:700}
.nudge{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 20px;padding:14px 16px;border-radius:var(--radius);background:var(--accent-soft);border:1px solid #F6CFB0}
.nudge-text{margin:0;flex:1 1 220px;font-weight:700}
.nudge-btn{padding:9px 18px;border-radius:999px;background:var(--accent);color:#fff;text-decoration:none;font-weight:700}
/* 自前の改修（2026-11-10）：仮想通貨マスター講座の資産運用プランシートの入口（ホーム・講座のページ） */
.sheetbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 20px;padding:14px 16px;border-radius:var(--radius);background:#EEF7FD;border:1px solid #C9E3F4}
.sheetbar-text{margin:0;flex:1 1 220px;font-weight:700}
.sheetbar-btn{padding:9px 18px;border-radius:999px;background:var(--link);color:#fff;text-decoration:none;font-weight:700}
/* 自前の改修（2026-11-10）：パートの下の「前へ」「完了」「次へ」の3つのボタン（lesson.html）。次へ＝オレンジ・完了＝緑の枠（押すと緑で塗る）・前へ＝白 */
/* 2026-11-10「どこを見せたいのか」：本文を読み終えた所で目に入るよう、薄いオレンジの面にのせる */
.lesson-actions{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin:48px 0 0;padding:20px;border-radius:14px;background:var(--accent-soft);border:1px solid #F6D9BF}
/* 完了のボタンの文が長いパート（前付けの completeLabel）：ボタンを1段目に広く、前へ・次へを2段目に */
.lesson-actions.is-long{grid-template-columns:1fr 1fr;grid-template-areas:"done done" "prev next"}
.lesson-actions.is-long .btn-done{grid-area:done;justify-self:stretch;white-space:normal;text-align:center;line-height:1.4;padding:8px 20px}
.lesson-actions.is-long .la-prev{grid-area:prev}.lesson-actions.is-long .la-next{grid-area:next}
.la-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:0 20px;border-radius:999px;font:inherit;font-weight:700;font-size:16px;text-decoration:none;white-space:nowrap}
.la-prev{background:#fff;color:var(--ink);border:1px solid #E3D6C8}
.la-next{background:var(--accent);color:#fff;box-shadow:0 3px 0 #C25E10}
.la-next:active{transform:translateY(2px);box-shadow:0 1px 0 #C25E10}
.la-prev:hover{background:var(--surface2)}
.la-prev{justify-self:start}.la-next{justify-self:end}
.la-btn.is-off{visibility:hidden}
.lesson-actions .btn-done{padding:0 22px}
@media (max-width:420px){.la-btn{padding:0 13px;font-size:14.5px}.lesson-actions .btn-done{padding:0 13px;gap:6px}.lesson-actions{gap:6px;padding:14px 10px}.done-ico{width:19px;height:19px}.btn-done.is-done .done-ico::after{left:5px;top:1px}}

/* 自前の改修（2026-11-12 しょーてぃさん）：受講前にやることリストを、番号付きの押せるチェックリストに（site.js の data-prep-check）。
   JS が動かない時は、ふつうの番号付きリストのまま。押した行は緑の地とチェックの印 */
.prose .prep-check.is-ready ol { list-style: none; padding-left: 0; }
.prose .prep-check.is-ready li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: background 160ms var(--ease), border-color 160ms var(--ease); }
.prose .prep-check li.is-checked { background: var(--ok-soft); border-color: #BFE5CC; }
.prep-text { flex: 1; min-width: 0; }
.prep-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -6px 0; padding: 0 10px 0 8px; border: 1px solid #E3D6C8; border-radius: 10px; background: #fff; color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.prep-btn:hover { background: var(--surface2); }
.prep-mark { position: relative; width: 24px; height: 24px; border: 2px solid #CDBDAE; border-radius: 6px; background: #fff; flex: none; }
.prep-no { min-width: 1em; text-align: center; }
.is-checked .prep-btn { border-color: var(--ok); color: var(--ok); }
.is-checked .prep-mark { background: var(--ok); border-color: var(--ok); animation: pop 260ms var(--ease); }
.is-checked .prep-mark::after { content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.prep-done { margin: 4px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--ok-soft); border: 1px solid #BFE5CC; color: var(--ink); font-weight: 700; }
.prep-done a { margin-left: 6px; white-space: nowrap; }
@media (max-width: 420px) { .prose .prep-check.is-ready li { gap: 8px; padding: 10px; } .prep-btn { padding: 0 8px 0 6px; gap: 6px; } }

/* 自前の改修（2026-11-12 しょーてぃさん）：「はじめに」の注意事項・禁止事項を枠で囲って目立たせる（make_lessons.mjs が <div class="cm-box"> で囲う）。
   会員サイトの講座のカード・資料の箱と同じ形（薄い地に細い罫・上にオレンジの太い線） */
.prose .cm-box { margin: 32px 0 1.6em; padding: 4px 22px 4px; background: var(--surface2); border: 1px solid var(--line); border-top: 4px solid var(--main); border-radius: var(--radius); }
.prose .cm-box { scroll-margin-top: 90px; }
.prose .cm-box > h4:first-child { margin-top: 20px; }
.prose .cm-box > :last-child { margin-bottom: 18px; }
@media (max-width: 420px) { .prose .cm-box { padding: 2px 14px; } }

/* 自前の改修（2026-11-12 しょーてぃさん「同意済みは、押してある状態なのか分かりにくい」）：押した後は、丸を白く塗って緑の太いチェックの印を出す（押す前＝白地に空の丸・押した後＝緑の地に白い丸と✓） */
.btn-done.is-done .done-ico { background: #fff; border-color: #fff; }
.btn-done.is-done .done-ico::after { border-color: var(--ok); border-width: 0 3px 3px 0; left: 6px; top: 2px; width: 6px; height: 11px; }
@media (max-width: 420px) { .btn-done.is-done .done-ico::after { left: 5px; top: 1px; width: 5px; height: 10px; } }

/* 自前の改修（2026-11-12 しょーてぃさん）：完了の後の箱で「アウトプットを保存」をなくした。ボタンの近くの1行 */
.report-hint{margin:8px 0 10px;font-size:13.5px;color:var(--ink2)}
/* 自前の改修（2026-11-12 しょーてぃさん「送らなきゃいけない感じで、講座の中身の一部のように見える」）：分かりにくい所・不具合の報告は、
   普段はたたんだ小さな1行。枠を外し、薄い色・小さめで、前へ/完了/次へ の下に控えめに置く（開くと今までの欄） */
.ask-row{margin:28px 0 16px;padding:0;border:0;color:var(--ink3)}
.ask-fold > summary{cursor:pointer;display:inline-block;font-size:13px;color:var(--ink3);text-decoration:underline;text-underline-offset:3px;list-style:none;padding:6px 0}
.ask-fold > summary::-webkit-details-marker{display:none}
.ask-fold > summary::before{content:"＋ ";text-decoration:none}
.ask-fold[open] > summary::before{content:"－ "}
.ask-fold[open]{padding:14px 16px;border:1px dashed #E3D6C8;border-radius:var(--radius);color:var(--ink2)}

/* 自前の改修（2026-11-12 しょーてぃさん「一番下までスクロールしても次へが無く、どうやって進むのか分からない」）：パートの一番下の並び。
   1段目＝完了のボタン（広く）・2段目＝小さい「前へ」と大きい「次へ →（次のパートの題名）」。完了した後は「次へ」を目立たせる（.is-done-row）。
   その下に、小さい「完了を取り消す」と、記録できなかった時の知らせ */
.lesson-actions,.lesson-actions.is-long{grid-template-columns:auto 1fr;grid-template-areas:"done done" "prev next" "msg msg" "undo undo";margin:36px 0 0}
.lesson-actions .btn-done{grid-area:done;justify-self:stretch;white-space:normal;text-align:center;line-height:1.4;padding:8px 20px}
.lesson-actions .la-prev{grid-area:prev;justify-self:stretch;padding:0 16px;font-size:14.5px}
.lesson-actions .la-next{grid-area:next;justify-self:stretch;flex-direction:column;align-items:center;gap:0;padding:8px 18px;white-space:normal;text-align:center;line-height:1.35;min-height:64px}
.la-next-k{font-size:17px}
.la-next-t{font-size:12.5px;font-weight:500;opacity:.92;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lesson-actions.is-done-row .la-next{animation:nextpop 900ms var(--ease) 1;box-shadow:0 3px 0 #C25E10,0 0 0 4px rgba(232,119,28,.25)}
@keyframes nextpop{0%{transform:scale(1)}40%{transform:scale(1.04)}100%{transform:scale(1)}}
.la-msg{grid-area:msg;margin:0;font-size:13.5px;color:#B3261E;text-align:center}
.la-undo{grid-area:undo;justify-self:center;background:none;border:0;padding:4px 8px;font:inherit;font-size:12.5px;color:var(--ink3);text-decoration:underline;cursor:pointer}
.btn-done.is-done{cursor:default}
.btn-done.is-done:hover{background:var(--ok)}
.btn-done.is-done:active{transform:none}
.report-row{margin:32px 0 0}
@media (max-width:420px){.lesson-actions .la-prev{padding:0 10px;font-size:13.5px}.la-next-k{font-size:16px}}

/* 自前の改修（2026-11-12 しょーてぃさん）：受講前リストの中の登録のリンクをボタンの見た目に（押したらチェック・site.js の data-prep-go） */
.prose .prep-check.is-ready a.prep-go{display:inline-block;margin:2px 2px 2px 0;padding:6px 14px;border-radius:999px;background:var(--accent);color:#fff;text-decoration:none;font-weight:700;font-size:15px;line-height:1.5}
.prose .prep-check.is-ready li.is-checked a.prep-go{background:var(--ok)}
/* はじめにの設定の箱・パートのアウトプットの箱（②の位置） */
.report-h{margin:0 0 8px;font-size:17px}
.aff-err{margin:4px 0 8px;font-size:13px;color:#B3261E;font-weight:700}
.aff-fold{margin:12px 0 0}
.aff-fold > summary{cursor:pointer;font-size:14px;color:var(--link);text-decoration:underline;text-underline-offset:3px}
.aff-fold[open]{padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.aff-how .affhow{margin:10px 0}
.aff-how .affhow summary{cursor:pointer;font-size:14px;color:var(--link)}
.aff-how img{max-width:100%;height:auto;border:1px solid var(--line);border-radius:8px}
.aff-how h3{font-size:14px;margin:12px 0 6px}
.aff-how ol{padding-left:1.4em;font-size:14px}
.report-see{margin:4px 0 0}
.aff-note{margin:0 0 8px;font-size:12.5px;color:var(--ink2)}

/* 自前の改修（2026-11-12 使いやすさの点検 15）：講座の目次の「月報を書く」「日報の設定」を、押しやすい小さいボタンに（高さ40px以上）。パートのページの上の細い行はそのまま */
.course-head .subnav { gap: 8px; }
.course-head .subnav a { min-height: 40px; padding: 0 16px; border: 1px solid #E3D6C8; border-radius: 999px; background: #fff; color: var(--ink); }
.course-head .subnav a + a::before { content: none; }
.course-head .subnav a:hover { background: var(--surface2); text-decoration: none; }
/* 講座の目次の吹き出しの下の「第3章から始める →」（make_lessons.mjs が course.md に書く） */
.course-body a.go-ch3, .course-body a[href$="/c03-p01"] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; border: 2px solid var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
/* 点検 14：ホームの講座のカードの中の「次：◯◯」 */
.cc-next { font-size: 13.5px; color: var(--accent-ink); font-weight: 700; }
/* はじめにの設定の箱へ飛んだ時に、上の帯に隠れないように */
#log-settings { scroll-margin-top: 90px; }
.report-saved{margin:0 0 10px;font-weight:700;color:var(--ok)}

/* 自前の改修（2026-11-12 しょーてぃさん「完了・前へ・次へは1行に3つ横並び。完了が真ん中」）：マスター講座のパートの一番下は「← 前へ｜完了にする｜次へ →」の1行。
   次のパートの題名は広い画面だけ1行で出す（スマホは「次へ →」だけ）。2026-11-15 しょーてぃさん：Brain の講座も同じ1行に */
.lesson-actions{grid-template-columns:auto 1fr auto;grid-template-areas:"prev done next" "msg msg msg" "undo undo undo";gap:8px;padding:14px 12px}
.lesson-actions .btn-done{justify-self:center;white-space:normal;line-height:1.3;padding:6px 18px;min-height:54px}
.lesson-actions .la-prev{justify-self:start;padding:0 14px}
.lesson-actions .la-next{justify-self:end;min-height:54px;padding:6px 16px;max-width:220px}
.lesson-actions .la-next-t{-webkit-line-clamp:1;max-width:180px}
@media (max-width:560px){.lesson-actions .la-next-t{display:none}.lesson-actions{gap:6px;padding:12px 8px}.lesson-actions .la-prev,.lesson-actions .la-next{padding:0 11px;font-size:14px}.lesson-actions .la-next-k{font-size:14.5px}.lesson-actions .btn-done{padding:4px 11px;font-size:14.5px;gap:6px}}
/* 2026-11-12 しょーてぃさん：紹介報酬の1行（読者の得）は見出しのすぐ下。隠れないように、本文と同じ大きさの太字のオレンジ */
.report-aff{margin:2px 0 10px;font-size:14px;font-weight:700;line-height:1.7;color:var(--accent-ink)}.report-aff a{color:var(--accent-ink)}
.lesson-actions .btn-done.is-done{cursor:pointer}
/* 2026-11-12 しょーてぃさん：はじめにのリストの紹介リンクの行の中の欄（紹介リンク・ニックネーム）と保存のボタン */
.prep-form{margin-top:10px}
.prep-form .aff-note{margin:0 0 6px;font-size:13px;color:var(--ink2)}
.prep-form .report-label{font-size:13.5px;font-weight:700;margin-top:8px}
/* 2026-11-12 しょーてぃさん：リストの行の中に置く物は、ふつうの青文字の下線付きリンク（ボタンの形にしない）。文から離れて1つだけ置く、その場所の一番の行動はボタンのまま */
.prose .prep-check.is-ready a.prep-go,.prose .prep-check.is-ready li.is-checked a.prep-go{display:inline;margin:0;padding:0;border-radius:0;background:none;color:var(--link);text-decoration:underline;text-underline-offset:3px;font-weight:inherit;font-size:inherit;line-height:inherit}
/* 「完了にする」は1行のまま（はじめにの長い文だけ折り返す）。最後のページの「目次へ戻る →」は折り返してよい */
.lesson-actions .btn-done[data-label=""]{white-space:nowrap}
.lesson-actions .la-next{white-space:normal;text-align:center}
.lesson-actions .la-prev.is-off{display:none}
/* 2026-11-12 しょーてぃさん：第3章P5の「受講を始めた時の数字を入れる」の箱（site.js が data-base-form の中に作る。JS が動かない時は何も出ない） */
.base-form.is-ready{margin:18px 0;padding:16px 18px;border:2px solid var(--main);border-radius:12px;background:var(--accent-soft)}
.prose .base-form .base-h{margin:0 0 10px;font-size:17px}
.base-form .base-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0;font-weight:700;font-size:14.5px}
.base-form .base-in{display:flex;align-items:center;gap:6px;flex:none}
.base-form .base-in input{width:120px;font:inherit;font-weight:400;text-align:right;padding:8px 10px;border-radius:8px;border:1px solid #E3D6C8;background:#fff}
.base-form .base-u{font-weight:400}

/* 自前の改修（2026-11-12 試作・しょーてぃさん「第2章をやったら登山マップの絵を置いて、入り口に矢印が刺さっている」→ 同日「恐竜図鑑のティラノサウルスのように、
   山を真ん中に置いて名札がぐるっと囲み、各名札から山の章の点へ線が刺さる」「ゲームのマップみたいに1画面で全部見えてポチポチ押せる」）：
   目次の章の山の絵（course.html の .chmap）。絵＝章の場所を目立たせた山（map-c<章>.png）・線＝chmap.js が名札から絵の中の章の点へ引く。
   PC＝山のまわり（上2・左2・右2・下1）。スマホ＝山の上に4・下に3（2列）。名札の置き場は並び順（nth-child）で決める（7パートまで） */
.chmap { position: relative; z-index: 1; margin: 26px 0 18px; padding: 0 0 6px; background: var(--bg); }
.chmap-h { margin: 0 0 14px; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.chmap-box { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 14px 22px;
  grid-template-areas: ". p1 p2 ." "p3 img img p4" "p5 img img p6" ". p7 p7 ."; }
.chmap-img { grid-area: img; display: block; width: 100%; height: auto; }
.chmap-arrows { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 1; }
.chmap-tags { display: contents; list-style: none; margin: 0; padding: 0; }
.chmap-tag { position: relative; z-index: 2; }
.chmap-tag:nth-child(1) { grid-area: p1; } .chmap-tag:nth-child(2) { grid-area: p2; } .chmap-tag:nth-child(3) { grid-area: p3; } .chmap-tag:nth-child(4) { grid-area: p4; }
.chmap-tag:nth-child(5) { grid-area: p5; } .chmap-tag:nth-child(6) { grid-area: p6; } .chmap-tag:nth-child(7) { grid-area: p7; justify-self: center; width: min(100%, 300px); }
.chmap-tag:nth-child(1), .chmap-tag:nth-child(2) { align-self: end; }
.tag-link { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px 6px 6px; border-radius: 14px; background: #fff; border: 2px solid var(--main);
  box-shadow: 0 3px 0 #F6CFAA; color: var(--ink); text-decoration: none; transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); }
.tag-link:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #F6CFAA, var(--shadow-hi); }
.tag-link:active { transform: translateY(2px); box-shadow: 0 1px 0 #F6CFAA; }
.tag-n { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0; }
.tag-body { display: grid; flex: 1; min-width: 0; }
.tag-t { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.tag-state { font-size: 12px; line-height: 1.4; color: var(--ink3); }
.tag-state:empty { display: none; }
.tag-go { flex: none; color: var(--accent-ink); font-size: 22px; font-weight: 700; line-height: 1; }
.chmap-tag.is-done .tag-link { border-color: var(--ok); box-shadow: 0 3px 0 #BFE6CC; }
.chmap-tag.is-done .tag-n { background: var(--ok); }
.chmap-tag.is-done .tag-n::after { content: ""; position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ok); box-sizing: border-box; }
.chmap-tag.is-done .tag-n::before { content: ""; position: absolute; right: 2px; bottom: 3px; z-index: 1; width: 4px; height: 8px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chmap-tag.is-done .tag-state { color: var(--ok); font-weight: 700; }
.chmap-tag.is-done .tag-go { color: var(--ok); }
.chmap-tag.is-locked .tag-link { border-color: #E3D6C8; box-shadow: none; background: var(--surface2); }
.chmap-tag.is-locked .tag-n { background: #C9BBAD; }
.chmap-tag.is-locked .tag-go { color: var(--ink3); }
@media (min-width: 1120px) { .chmap { margin-left: -90px; margin-right: -90px; } .chmap-h { margin-left: 90px; margin-right: 90px; } }
@media (max-width: 760px) {
  .chmap-box { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; align-items: stretch;
    grid-template-areas: "p1 p2" "p3 p4" "img img" "p5 p6" "p7 ."; }
  .chmap-img { margin: 2px 0; }
  .chmap-tag:nth-child(7) { justify-self: stretch; width: auto; }
  .tag-link { height: 100%; box-sizing: border-box; gap: 6px; padding: 6px 6px 6px 5px; min-height: 50px; }
  .tag-n { width: 30px; height: 30px; font-size: 12.5px; }
  .tag-t { font-size: 13.5px; }
  .tag-go { display: none; }
}
/* 囲む形では、小さな地図とステージの入れ物は無い物として扱う（中の絵・名札がそのまま並びの部品になる） */
.chmap-mini, .chmap-scene { display: contents; }
.chmap-here, .chmap-road { display: none; }

/* 自前の改修（2026-11-12 試作・しょーてぃさん「ゲームのステージ選び」「全体像（山全体）の中で、今どこをやっているか」「地図アプリで場所を拡大した時のように」）：
   .chmap-stage＝上に山全体の小さな地図（いまここ）・その下に拡大した景色の上のくねくね道と P1〜のステージの丸。拡大の枠と線は chmap.js。
   スマホ＝道が上から下へ（名札は道の左右に交互）。PC＝道が左から右へ（名札は丸の上下に交互） */
.chmap-stage .chmap-box { display: block; position: relative; }
.chmap-stage .chmap-mini { display: block; position: relative; width: min(64%, 300px); margin: 0 auto 30px; }
.chmap-stage .chmap-img { display: block; width: 100%; height: auto; }
.chmap-stage .chmap-arrows { display: block; z-index: 3; }
.chmap-stage .chmap-here { display: block; position: absolute; z-index: 4; left: calc(var(--ax) * 100%); top: calc(var(--ay) * 100%); width: 0; height: 0; }
.chmap-here img { position: absolute; left: -46px; bottom: -6px; width: 40px; max-width: none; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.chmap-here-t { position: absolute; left: 10px; bottom: 12px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; box-shadow: 0 2px 0 #B85A10; }
.chmap-stage .chmap-scene { display: block; position: relative; z-index: 1; overflow: hidden; border-radius: 22px; border: 3px solid var(--accent); background-color: #DFF3C8; background-size: cover; background-position: 30% 80%;
  padding: 30px 10px 34px; box-shadow: var(--shadow-hi); }
.chmap-stage .chmap-scene::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .15), rgba(255, 255, 255, .35)); }
.chmap-stage .chmap-road { display: block; position: absolute; left: 0; top: 0; z-index: 1; overflow: visible; pointer-events: none; }
.chmap-stage .chmap-tags { display: block; position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; }
.chmap-stage .chmap-tag { grid-area: auto; position: relative; height: 92px; width: auto; justify-self: auto; align-self: auto; }
.chmap-stage .tag-link, .chmap-stage .tag-link:hover, .chmap-stage .tag-link:active { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px;
  min-height: 0; padding: 0 0 0 calc(27% - 31px); border: 0; border-radius: 0; background: none; box-shadow: none; }
.chmap-stage .chmap-tag:nth-child(even) .tag-link { flex-direction: row-reverse; padding: 0 calc(27% - 31px) 0 0; }
.chmap-stage .tag-n { width: 62px; height: 62px; font-size: 18px; border: 4px solid #fff; box-sizing: border-box; background: radial-gradient(circle at 35% 30%, #FFC27A, #E8771C 68%);
  box-shadow: 0 4px 0 #B85A10, 0 8px 14px rgba(0, 0, 0, .22); transition: transform 140ms var(--ease); }
.chmap-stage .tag-link:hover .tag-n { transform: scale(1.08); }
.chmap-stage .tag-link:active .tag-n { transform: scale(.96); }
.chmap-stage .tag-body { flex: 0 1 auto; max-width: 260px; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.chmap-stage .tag-t { font-size: 14.5px; line-height: 1.45; word-break: auto-phrase; text-wrap: balance; }
.chmap-stage .tag-go { display: none; }
/* 終わったステージ＝緑に光って旗 */
.chmap-stage .chmap-tag.is-done .tag-n { background: radial-gradient(circle at 35% 30%, #8FE3A8, #2E9E57 68%); box-shadow: 0 4px 0 #1E6E3C, 0 0 0 6px rgba(46, 158, 87, .22), 0 0 22px 6px rgba(140, 240, 170, .85); }
.chmap-stage .chmap-tag.is-done .tag-n::before { content: ""; position: absolute; left: 50%; top: -30px; right: auto; bottom: auto; width: 3px; height: 30px; border: 0; transform: none; background: #6B5A4E; }
.chmap-stage .chmap-tag.is-done .tag-n::after { content: ""; position: absolute; left: calc(50% + 3px); top: -30px; right: auto; bottom: auto; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 8px 0 8px 18px; border-color: transparent transparent transparent var(--ok); }
/* 公開前＝灰色 */
.chmap-stage .chmap-tag.is-locked .tag-n { background: radial-gradient(circle at 35% 30%, #E6DDD4, #B9AA9C 68%); box-shadow: 0 4px 0 #8E8174; }
.chmap-stage .chmap-tag.is-locked .tag-body { background: rgba(250, 247, 244, .92); color: var(--ink2); }
/* 次にやるステージ＝しょーてぃが立つ・丸がふわっと光る */
.chmap-stage .chmap-tag.is-next .tag-n { animation: chmap-pulse 1.6s var(--ease) infinite; }
.chmap-stage .chmap-tag.is-next .tag-body { outline: 3px solid var(--accent); }
.chmap-next { position: absolute; z-index: 3; width: 52px; height: auto; left: calc(27% - 31px - 44px); top: -6px; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
.chmap-stage .chmap-tag:nth-child(even) .chmap-next { left: auto; right: calc(27% - 31px - 44px); }
@keyframes chmap-pulse { 0%, 100% { box-shadow: 0 4px 0 #B85A10, 0 0 0 0 rgba(232, 119, 28, .55); } 50% { box-shadow: 0 4px 0 #B85A10, 0 0 0 12px rgba(232, 119, 28, 0); } }
/* PC：道が左から右へ（丸の上下に名札を交互） */
@media (min-width: 761px) {
  .chmap-stage .chmap-mini { width: 300px; margin-bottom: 34px; }
  .chmap-stage .chmap-scene { padding: 24px 12px; }
  .chmap-stage .chmap-tags { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 360px; column-gap: 6px; }
  .chmap-stage .chmap-tag { height: auto; }
  .chmap-stage .tag-link, .chmap-stage .tag-link:hover, .chmap-stage .tag-link:active,
  .chmap-stage .chmap-tag:nth-child(even) .tag-link { position: absolute; left: 0; right: 0; top: 0; bottom: auto; transform: none; flex-direction: column; justify-content: flex-start; padding: 0; gap: 10px; }
  .chmap-stage .chmap-tag:nth-child(even) .tag-link { top: auto; bottom: 22px; flex-direction: column-reverse; gap: 40px; }
  .chmap-stage .chmap-tag:nth-child(odd) .tag-link { top: 52px; }
  .chmap-stage .tag-body { max-width: 100%; text-align: center; }
  .chmap-stage .tag-t { font-size: 14px; }
  .chmap-next { left: calc(50% - 31px - 46px); top: 40px; }
  .chmap-stage .chmap-tag:nth-child(even) .chmap-next { right: auto; left: calc(50% - 31px - 46px); top: auto; bottom: 30px; }
}
.chmap-stage .chmap-tag.is-done .tag-link, .chmap-stage .chmap-tag.is-locked .tag-link { border: 0; box-shadow: none; background: none; }
.chmap-next { max-width: none; }

/* 自前の改修（2026-11-15 しょーてぃさん「紙芝居みたいな」）：撮影前のパートを、スライド1枚＋その場面の台本で1枚ずつめくる（kamishibai.js）。JS が無い時は縦に全部並ぶ */
.ks{margin:8px 0 24px}
.ks-note{background:var(--accent-soft);border-radius:10px;padding:10px 14px;font-size:14px;color:var(--ink2);margin:0 0 14px}
.ks-slide{margin:0 0 28px}
.ks-pic{display:block;width:100%;aspect-ratio:16/9;background:#f6f2ee;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.ks-pic img{display:block;width:100%;height:100%;object-fit:contain}
.ks-cap{margin:12px 0 4px;font-size:13px;font-weight:700;color:var(--accent-ink)}
.ks-text{font-size:16px;line-height:1.95}
.ks-text p{margin:0 0 .9em}
.ks-on .ks-slide{margin:0}
.ks-on .ks-pic{cursor:pointer;user-select:none;-webkit-user-select:none}
.ks-bar{height:4px;background:var(--line);border-radius:4px;overflow:hidden;margin:0 0 10px}
.ks-fill{height:100%;width:0;background:var(--accent);transition:width .2s}
.ks-nav{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px));background:var(--bg);border-top:1px solid var(--line);margin-top:14px;z-index:5}
.ks-btn{font:inherit;font-weight:700;font-size:15px;border-radius:999px;padding:10px 18px;cursor:pointer;border:2px solid var(--accent);background:var(--bg);color:var(--accent-ink)}
.ks-next{background:var(--accent);color:#fff}
.ks-btn:disabled{opacity:.4;cursor:default}
.ks-count{font-size:14px;color:var(--ink2);font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.ks-fill{transition:none}}
