@font-face { font-family: "WL MPlus"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/mplus-300.woff2?v=002bc072") format("woff2"); }
@font-face { font-family: "WL MPlus"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/mplus-400.woff2?v=6db246e4") format("woff2"); }
@font-face { font-family: "WL MPlus"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/mplus-500.woff2?v=8015d235") format("woff2"); }
@font-face { font-family: "WL Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/fonts/inter.woff2?v=5a99f684") format("woff2"); }
/* ============================================================
   WISE LESSONS ― おかねの基礎
   会社HP（wiselabo-yokohama.com）と同じ部品で組む：
   オフホワイトの地／M PLUS 1p の細い大見出し／Inter の英字ラベル／
   オレンジの差し色／罫線の一覧／黒とベージュの面／背景の大きな英字。
   値はすべてここの変数で決める（同じ値を二度書かない）。
   ============================================================ */

/* 書体の @font-face は build.py が先頭に差し込む（使う文字だけに絞った woff2） */

:root {
  color-scheme: light;

  --bg:      #FAF8F5;   /* HP の地 */
  --bg-2:    #F2EDE6;   /* HP のベージュの面 */
  --card:    #FFFFFF;
  --ink:     #1C1C1A;   /* HP の墨 */
  --ink-2:   #3C3C38;
  --gray:    #6B6A63;   /* 小さな文字用（HP の #888880 を読みやすく） */
  --line:    #E3DFD7;
  --line-2:  #CFCAC0;

  --orange:      #E8711A;   /* HP の差し色（線・点・飾り・黒地の上の文字） */
  --orange-text: #A84C0A;   /* 明るい地の上の小さなオレンジ文字 */
  --orange-tint: rgba(232, 113, 26, .09);
  --orange-num:  #CC5F0E;   /* 大きな数字用（明るい地で 3:1 以上） */

  --dark:      #1C1C1A;     /* HP の黒の面 */
  --dark-2:    #262624;
  --on-dark:   #FAF8F5;
  --on-dark-2: #A3A39B;

  --jp: "WL MPlus", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --en: "WL Inter", "Helvetica Neue", Arial, "WL MPlus", sans-serif;

  --fs-body: 1.0625rem;   /* 17px */
  --fs-small: .875rem;    /* 14px（これより小さくしない） */
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --head-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--jp);
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: .02em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: anywhere;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .3em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ol, ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.vh { position: absolute !important; 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: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

/* 英字の小見出し（HP の ABOUT / LINKS と同じ作法） */
.eyebrow {
  display: inline-block;
  font-family: var(--en);
  font-size: var(--fs-small);   /* 14px */
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange-text);
  line-height: 1.6;
}
.eyebrow.gray { color: var(--gray); }

/* 細い大見出し */
.h-sec {
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-top: 10px;
}
.text-balance { word-break: auto-phrase; text-wrap: balance; }
.text-pretty { word-break: auto-phrase; text-wrap: pretty; }

/* 背景の大きな英字（HP の WISE LABO / ABOUT と同じ） */
.bigword::before { content: attr(data-word); }
.bigword {
  position: absolute;
  z-index: 0;
  font-family: var(--en);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.04em;
  color: rgba(28, 28, 26, .045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--head-h); max-width: none; padding-left: clamp(16px, 2vw, 28px); padding-right: clamp(16px, 3vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 40px; height: auto; }
.brand-en { font-family: var(--en); font-weight: 600; font-size: .875rem; letter-spacing: .2em; line-height: 1.2; display: block; }
.brand-ja { font-size: .875rem; font-weight: 500; color: var(--gray); letter-spacing: .08em; line-height: 1.2; display: block; margin-top: 3px; }
.head-nav { display: flex; align-items: center; gap: 28px; }
.head-nav a {
  position: relative;
  font-family: var(--en);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px; display: inline-flex; align-items: center;
}
.head-nav .sec { display: none; }
.head-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 6px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--orange); opacity: 0; transition: opacity .25s;
}
.head-nav a:hover::after, .head-nav a[aria-current="page"]::after { opacity: 1; }
.head-nav .out { gap: 6px; }

/* ============================================================
   目次ページ：ヒーロー
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 9vh, 132px) 0 clamp(40px, 7vh, 96px); }
.hero .bigword { right: -2vw; top: 50%; transform: translateY(-46%); font-size: clamp(7rem, 22vw, 21rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero-title {
  margin-top: 22px;
  font-weight: 300;
  font-size: clamp(2.5rem, 7.2vw, 5.5rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.hero-lead { margin-top: 28px; max-width: 34em; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; font-size: var(--fs-small); color: var(--gray); }
.facts li { display: inline-flex; align-items: baseline; gap: 8px; }
.facts b { font-family: var(--en); font-weight: 300; font-size: 2rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; }

.notice {
  display: grid; gap: 6px;
  margin-top: 32px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  max-width: 56em;
  font-size: var(--fs-small);
  line-height: 1.85;
  color: var(--gray);
}

/* ============================================================
   個人／法人の入口（HP のベージュの面と黒の面）
   ============================================================ */
.doors { padding: 0 0 clamp(56px, 8vw, 96px); }
.doors-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.door {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 300px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-2); color: var(--ink);
  border-radius: 2px;
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.door > * { position: relative; z-index: 1; }
.door .bigword { position: absolute; z-index: 0; right: -10px; top: -6px; font-size: clamp(4rem, 8vw, 6.5rem); }
.door-title { font-weight: 300; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.35; letter-spacing: -.01em; }
.door-desc { color: var(--ink-2); max-width: 30em; }
.door-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.door-topics li {
  padding: 2px 12px;
  border: 1px solid rgba(28, 28, 26, .18);
  border-radius: 999px;
  font-size: var(--fs-small); font-weight: 500; line-height: 1.8;
}
.door-more {
  margin-top: auto; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500;
}
.door-more .arr {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--en);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.door:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(28, 28, 26, .45); }
.door:hover .door-more .arr { transform: translateX(4px); background: var(--orange-text); }
.door.dark { background: var(--dark); color: var(--on-dark); }
.door.dark .bigword { color: rgba(250, 248, 245, .05); }
.door.dark .eyebrow { color: var(--orange); }
.door.dark .door-desc { color: var(--on-dark-2); }
.door.dark .door-topics li { border-color: rgba(250, 248, 245, .25); }
.door.dark .door-more .arr { background: var(--orange); color: var(--ink); }
.door.dark:hover .door-more .arr { background: #fff; }
.doors .notice { margin-top: 28px; }
.doors.other { padding-top: clamp(16px, 3vw, 32px); }

/* 個人／法人の専用ページの頭 */
.aud-hero { padding-top: 0; }
.aud-hero .crumbs { margin-bottom: clamp(28px, 6vh, 64px); }
.aud-hero .hero-title { font-size: clamp(2.25rem, 6vw, 4.5rem); }
.progress { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--gray); }
.progress b { font-family: var(--en); font-weight: 500; color: var(--ink); }
.progress .bar { width: 96px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.progress .bar i { position: absolute; inset: 0; width: var(--p, 0%); background: var(--orange); transition: width .6s var(--ease); }
.progress.solo { margin-top: 18px; }

/* ============================================================
   部（個人／法人）と動画カード
   ============================================================ */
.part { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.part.alt { background: var(--bg-2); }
.part .bigword { right: -1vw; top: clamp(24px, 4vw, 48px); font-size: clamp(5rem, 15vw, 13rem); }
.part .wrap { position: relative; z-index: 1; }
.part-head { max-width: 40em; }
.part-desc { margin-top: 14px; color: var(--ink-2); }
.part-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 14px; }
.part-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--ink); font-weight: 500; font-size: .9375rem;
  text-decoration: underline; text-underline-offset: .45em; text-decoration-color: var(--line-2);
}
.part-link:hover { text-decoration-color: var(--orange); }

.cards { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
.card { border-top: 1px solid var(--line-2); }
.card:last-child { border-bottom: 1px solid var(--line-2); }
.card > a {
  display: grid;
  grid-template-columns: minmax(118px, 42%) 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  text-decoration: none; color: inherit;
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F4F1EA;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumb .play-dot {
  position: absolute; left: 10px; bottom: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(28, 28, 26, .82);
  transition: background .25s var(--ease), transform .3s var(--ease);
}
.thumb .play-dot::after {
  content: ""; position: absolute; left: 55%; top: 50%;
  border-style: solid; border-width: 5.5px 0 5.5px 9px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}
.thumb .time {
  position: absolute; right: 8px; bottom: 8px;
  padding: 2px 7px;
  background: rgba(28, 28, 26, .82); color: #fff;
  font-family: var(--en); font-size: var(--fs-small); font-weight: 500; letter-spacing: .04em; line-height: 1.5;
  border-radius: 2px;
}
.thumb .seen {
  position: absolute; left: 8px; top: 8px;
  display: none;
  padding: 2px 8px;
  background: #fff; color: var(--orange-text);
  font-size: var(--fs-small); font-weight: 500; line-height: 1.6;
  border-radius: 2px;
}
.card.is-seen .thumb .seen { display: inline-block; }
.card-meta { display: flex; align-items: center; gap: 10px; }
.num { font-family: var(--en); font-weight: 500; font-size: var(--fs-small); letter-spacing: .12em; color: var(--gray); }
.tag {
  display: inline-block;
  padding: 0 8px;
  background: var(--orange-tint); color: var(--orange-text);
  font-size: var(--fs-small); font-weight: 500; line-height: 1.75;
  border-radius: 2px;
}
.card-title { margin-top: 6px; font-size: 1.125rem; font-weight: 500; line-height: 1.55; letter-spacing: .02em; }
.card-sub { margin-top: 4px; font-size: .9375rem; line-height: 1.75; color: var(--gray); }
.card > a:hover .thumb img { transform: scale(1.035); }
.card > a:hover .play-dot { background: var(--orange); transform: scale(1.08); }
.card > a:hover .card-title { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .3em; }

/* ============================================================
   黒の面：このサイトについて（HP の ABOUT と同じ作法）
   ============================================================ */
.about {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--on-dark);
  padding: clamp(72px, 10vw, 128px) 0;
}
.about .bigword { color: rgba(250, 248, 245, .045); right: -2vw; bottom: -2vw; font-size: clamp(6rem, 18vw, 16rem); }
.about .wrap { position: relative; z-index: 1; }
.about .eyebrow { color: var(--orange); }
.about .h-sec { color: var(--on-dark); }
.about-rule { width: 40px; height: 1px; background: var(--orange); margin: 28px 0; border: 0; }
.about-body { max-width: 46em; color: var(--on-dark-2); }
.about-body p + p { margin-top: 1em; }
.about-meta { margin-top: 36px; max-width: 46em; border-top: 1px solid rgba(250, 248, 245, .14); }
.about-meta div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(250, 248, 245, .14); font-size: .9375rem; }
.about-meta dt { color: var(--on-dark-2); }
.about-meta dd { color: var(--on-dark); }
.about-meta a { text-decoration-color: rgba(250, 248, 245, .4); display: inline-block; padding: 12px 0; margin: -12px 0; }
.about-meta a:hover { text-decoration-color: var(--orange); }

/* ============================================================
   フッター（HP と同じく明るい地）
   ============================================================ */
.site-foot { padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-small); color: var(--gray); }
.site-foot .wrap { display: grid; gap: 24px; }
.foot-brand { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--ink); text-decoration: none; justify-self: start; }
.foot-brand img { width: 44px; height: auto; }
.foot-brand span { font-weight: 500; font-size: .9375rem; letter-spacing: .06em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { text-decoration: none; color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); }
.copy { font-family: var(--en); letter-spacing: .06em; border-top: 1px solid var(--line); padding-top: 20px; }

/* ============================================================
   講のページ
   ============================================================ */
.crumbs { padding-top: 20px; font-size: var(--fs-small); color: var(--gray); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.crumbs a { color: var(--gray); text-decoration: none; display: inline-block; padding: 12px 0; margin: -12px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.l-head { position: relative; padding: clamp(24px, 4vw, 44px) 0 clamp(24px, 3vw, 32px); }
.l-head .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.l-title {
  margin-top: 14px;
  font-weight: 300;
  font-size: clamp(2.125rem, 6vw, 4rem);
  line-height: 1.3;
  letter-spacing: -.015em;
}
.l-sub { margin-top: 10px; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.l-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; font-size: var(--fs-small); color: var(--gray); }
.l-meta li { display: inline-flex; align-items: center; gap: 8px; }
.l-meta svg { width: 16px; height: 16px; flex: none; color: var(--orange); }
.l-meta .en { font-family: var(--en); font-weight: 500; color: var(--ink-2); }

.screen {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #FAF7F0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(28, 28, 26, .35);
}
.screen video { width: 100%; height: 100%; object-fit: contain; background: #FAF7F0; }
.screen video::cue { font-family: var(--jp); background: rgba(28, 28, 26, .82); color: #fff; line-height: 1.5; }
.play {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  width: 100%; border: 0;
  padding: clamp(14px, 3vw, 32px);
  background: linear-gradient(to top, rgba(28, 28, 26, .10), rgba(28, 28, 26, 0) 40%);
  cursor: pointer;
}
.play-pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 22px 8px 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(28, 28, 26, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.play-ring {
  position: relative; flex: none;
  width: clamp(44px, 6vw, 56px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
}
.play-ring::after {
  content: ""; position: absolute; left: 55%; top: 50%;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}
.play-text { font-weight: 500; font-size: .9375rem; color: var(--ink); letter-spacing: .06em; }
@media (max-width: 639px) {
  .play-pill { gap: 10px; padding: 6px 16px 6px 6px; }
  .play-ring { width: 40px; }
  .play-ring::after { border-width: 7px 0 7px 11px; }
}
.play-text .en { font-family: var(--en); font-weight: 500; color: var(--gray); margin-left: 10px; letter-spacing: .02em; }
.play:hover .play-pill, .play:focus-visible .play-pill { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(28, 28, 26, .5); }
.play:hover .play-ring { background: var(--orange-text); }
.resume {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 4px 4px 4px 14px;
  background: rgba(255, 255, 255, .96);
  border-radius: 2px;
  box-shadow: 0 6px 20px -10px rgba(28, 28, 26, .4);
  font-size: var(--fs-small); color: var(--ink-2);
}
.resume b { font-family: var(--en); color: var(--ink); font-weight: 600; }
.resume button { min-height: 36px; padding: 0 12px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }
.endcard {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: 24px;
  background: rgba(250, 248, 245, .97);
  text-align: center;
  animation: fade .4s var(--ease) both;
}
.end-title { font-weight: 500; font-size: clamp(1.125rem, 3vw, 1.5rem); }
.end-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink);
  font-weight: 500; letter-spacing: .06em; text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--orange-text); border-color: var(--orange-text); }
.btn .arr { font-family: var(--en); }

/* 動画内の誤りの訂正（動画のすぐ下に出す） */
.correction {
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(168, 76, 10, .35);
  border-left: 4px solid var(--orange);
  background: #FFF;
  border-radius: 2px;
  font-size: .9375rem; line-height: 1.85; color: var(--ink-2);
}
.corr-h { display: flex; align-items: baseline; gap: 12px; font-weight: 500; color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.correction dl { margin-top: 10px; border-top: 1px solid var(--line); }
.correction dl div { display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.correction dt { font-weight: 500; color: var(--orange-text); }
.correction dl div:first-child dd { text-decoration: line-through; text-decoration-color: rgba(168, 76, 10, .6); color: var(--gray); }
.corr-src { margin-top: 8px; font-size: var(--fs-small); }
.corr-src a { color: var(--ink); text-decoration-color: var(--line-2); }

/* 送る（HP の MORE → と同じ下線リンク） */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: 22px; }
.share .eyebrow { margin-right: 4px; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--ink);
  font-size: .9375rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: .45em; text-decoration-color: var(--line-2);
  cursor: pointer;
}
.share a:hover, .share button:hover { text-decoration-color: var(--orange); }
.share svg { width: 18px; height: 18px; flex: none; }
.share .done { color: var(--orange-text); }

/* 本文 */
.l-body { display: grid; grid-template-columns: 1fr; gap: 56px; padding: clamp(56px, 8vw, 96px) 0 0; }
.sec-title { font-weight: 300; font-size: clamp(1.625rem, 3.4vw, 2.25rem); line-height: 1.4; margin-top: 6px; }
.points ol { margin-top: 24px; border-top: 1px solid var(--line-2); }
.points ol > li { display: grid; grid-template-columns: 3rem 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.points .pn { font-family: var(--en); font-weight: 300; font-size: 1.75rem; line-height: 1.1; color: var(--orange-num); letter-spacing: -.02em; }
.points p { font-size: 1.125rem; line-height: 1.85; }
.notes { margin-top: 24px; padding: 20px 22px; background: var(--bg-2); border-radius: 2px; font-size: .9375rem; line-height: 1.85; color: var(--ink-2); }
.notes .eyebrow { display: block; margin-bottom: 6px; }
.notes li { padding-left: 1.2em; text-indent: -1.2em; }
.notes li::before { content: "※"; margin-right: .2em; }
.notes li + li { margin-top: 6px; }

.words dl { margin-top: 24px; border-top: 1px solid var(--line-2); }
.words div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.words dt { font-weight: 500; font-size: 1.0625rem; }
.words dd { margin-top: 4px; font-size: .9375rem; line-height: 1.85; color: var(--gray); }

.script { margin-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.script summary {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 12px 0;
  cursor: pointer; list-style: none;
}
.script summary::-webkit-details-marker { display: none; }
.script summary .s-title { font-size: 1.125rem; font-weight: 500; }
.script summary .s-note { font-size: var(--fs-small); color: var(--gray); }
.script .toggle { margin-left: auto; position: relative; width: 40px; height: 40px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .25s, background .25s; }
.script .toggle::before, .script .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.script .toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.script[open] .toggle::after { transform: translate(-50%, -50%) rotate(0); }
.script summary:hover .toggle { border-color: var(--orange); }
.script-body { padding: 4px 0 40px; max-width: 40em; }
.script-body p + p { margin-top: 1.1em; }

/* 出典（HP の LINKS の一覧と同じ作法） */
.sources { margin-top: clamp(56px, 8vw, 88px); }
.sources .checked { margin-top: 10px; font-size: var(--fs-small); color: var(--gray); }
.src-list { margin-top: 20px; border-top: 1px solid var(--line-2); }
.src-list li { border-bottom: 1px solid var(--line); }
.src-list a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 60px; padding: 12px 4px;
  text-decoration: none; color: var(--ink);
  font-size: .9375rem;
}
.src-list a:hover { background: rgba(232, 113, 26, .04); }
.src-list a:hover .src-t { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .3em; }
.src-list .arr { font-family: var(--en); color: var(--gray); }

.related { margin-top: clamp(64px, 9vw, 104px); }
.related .cards { margin-top: 24px; }

.pager { display: grid; grid-template-columns: 1fr; margin-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pager a { display: grid; gap: 4px; padding: 22px 4px; text-decoration: none; color: inherit; transition: background .2s; }
.pager a + a { border-top: 1px solid var(--line); }
.pager .eyebrow { color: var(--gray); }
.pager .p-title { font-size: 1.125rem; font-weight: 500; }
.pager .next { text-align: right; }
.pager a:hover { background: rgba(232, 113, 26, .04); }
.pager a:hover .p-title { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .3em; }

.lesson-main { padding-bottom: clamp(72px, 10vw, 120px); }

/* 見つからないページ */
.lost { position: relative; overflow: hidden; padding: 18vh 0 14vh; }
.lost .bigword { right: -2vw; top: 50%; transform: translateY(-50%); font-size: clamp(8rem, 30vw, 26rem); }
.lost .wrap { position: relative; z-index: 1; }
.lost p { margin-top: 16px; color: var(--ink-2); }
.lost .btn { margin-top: 28px; }

/* ============================================================
   動き（HP と同じく、ふわっと現れる。動きを減らす設定の人には出さない）
   ============================================================ */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .wrap > * { animation: rise .9s var(--ease) both; }
  .js .hero .wrap > :nth-child(2) { animation-delay: .08s; }
  .js .hero .wrap > :nth-child(3) { animation-delay: .16s; }
  .js .hero .wrap > :nth-child(4) { animation-delay: .24s; }
  .js .hero .wrap > :nth-child(5) { animation-delay: .32s; }
  .js .hero .bigword { animation: fade 1.6s var(--ease) .2s both; }
  .js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ============================================================
   広い画面
   ============================================================ */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
  .card, .card:last-child { border: 0; }
  .card > a { display: block; padding: 0; }
  .card-meta { margin-top: 16px; }
  .thumb .play-dot { width: 40px; height: 40px; left: 12px; bottom: 12px; }
  .thumb .play-dot::after { border-width: 7px 0 7px 11px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a + a { border-top: 0; border-left: 1px solid var(--line); }
  .pager .only-next { grid-column: 2; }
  .pager .prev { padding-right: 24px; }
  .pager .next { padding-left: 24px; }
}
@media (min-width: 860px) {
  .head-nav .sec { display: inline-flex; font-family: var(--jp); letter-spacing: .06em; }
  .doors-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .doors-grid.one { grid-template-columns: 1fr; }
  .door { min-height: 380px; }
  .site-foot .wrap { grid-template-columns: auto 1fr; align-items: center; }
  .foot-links { justify-content: flex-end; }
  .copy { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
  .l-body { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 72px; }
  .lesson-main .screen-wrap { margin-left: 0; margin-right: 0; }
}

/* ============================================================
   印刷
   ============================================================ */
@media print {
  .site-head, .share, .play, .resume, .endcard, .skip, .pager, .bigword { display: none !important; }
  .about { background: #fff; color: #000; }
  .about .h-sec, .about-meta dd { color: #000; }
}
