/* 1280x720 の固定キャンバスを画面に合わせて拡大縮小する。印刷時は1ページ1枚。 */
:root {
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;

  --page: #1d2129;
  --slide: #f7f8fa;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #d9dde3;
  --frame: #3a4150;

  --green-bg: #e2f3e5;   --green-fg: #1f6b35;
  --blue-bg: #e2edfb;    --blue-fg: #1d4f91;
  --violet-bg: #ebe7fb;  --violet-fg: #4b3a9e;
  --aqua-bg: #dcf2f2;    --aqua-fg: #126565;
  --orange-bg: #fdeadb;  --orange-fg: #994812;
  --yellow-bg: #faf0cc;  --yellow-fg: #725400;
  --red-bg: #fbe3e3;     --red-fg: #a12c2c;
  --magenta-bg: #f9e2ee; --magenta-fg: #8c2962;
  --gray-bg: #eceef2;    --gray-fg: #596070;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--page); color: var(--ink); font-family: var(--font); overflow: hidden; }

/* ── 画面 ── */
#viewport { position: fixed; inset: 0 0 6px 0; }
body.show-notes #viewport { bottom: calc(32vh + 6px); }
#stage { width: 1280px; height: 720px; position: absolute; left: 50%; top: 50%; transform-origin: center; }

.slide {
  position: absolute; inset: 0; background: var(--slide);
  display: none; flex-direction: column; justify-content: center; align-items: center;
  padding: 72px 96px; overflow: hidden;
}
.slide.active { display: flex; }

.sec { position: absolute; top: 34px; left: 48px; font-size: 20px; color: var(--muted); letter-spacing: .08em; }
.pageno { position: absolute; bottom: 30px; right: 48px; font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }

.content { display: flex; flex-direction: column; align-items: center; gap: 40px; width: 100%; }
h1 { margin: 0; font-size: 60px; font-weight: 700; line-height: 1.35; text-align: center; text-wrap: balance; letter-spacing: .01em; }
.sub { margin: 0; font-size: 30px; color: var(--muted); text-align: center; line-height: 1.5; }
.sub.strong { font-size: 40px; color: var(--ink); font-weight: 700; }
.kicker { font-size: 24px; color: var(--muted); letter-spacing: .1em; margin-bottom: -24px; }
.badge { font-size: 24px; font-weight: 700; padding: 6px 26px; border-radius: 99px; margin-bottom: -16px; }

.slide.statement h1 { font-size: 76px; }
.slide.cover h1 { font-size: 96px; }
.slide.cover .sub { font-size: 36px; }
.slide.cover .content { gap: 32px; }
.slide.cover .content::before {
  content: ""; width: 120px; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, var(--blue-fg) 0 50%, var(--orange-fg) 50% 100%);
}

/* ── 色 ── */
.c-green { background: var(--green-bg); color: var(--green-fg); }
.c-blue { background: var(--blue-bg); color: var(--blue-fg); }
.c-violet { background: var(--violet-bg); color: var(--violet-fg); }
.c-aqua { background: var(--aqua-bg); color: var(--aqua-fg); }
.c-orange { background: var(--orange-bg); color: var(--orange-fg); }
.c-yellow { background: var(--yellow-bg); color: var(--yellow-fg); }
.c-red { background: var(--red-bg); color: var(--red-fg); }
.c-magenta { background: var(--magenta-bg); color: var(--magenta-fg); }
.c-gray { background: var(--gray-bg); color: var(--gray-fg); }

/* ── ブロック ── */
.ti { width: 1em; height: 1em; flex: none; display: block; }
.row { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-width: 200px; padding: 26px 34px; border-radius: 24px;
  font-size: 28px; font-weight: 700; line-height: 1.4; text-align: center;
}
.pill .ti { font-size: 64px; line-height: 1; }
.pill.off { opacity: .4; }
.pill.off span { text-decoration: line-through; text-decoration-thickness: 3px; }
.op { font-size: 48px; color: var(--muted); font-weight: 700; }

.board {
  min-width: 520px; padding: 24px 30px; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 5px solid var(--frame); border-radius: 14px;
  box-shadow: 0 10px 0 -4px var(--line);
}
.board .note { font-size: 28px; padding: 8px 20px; border-radius: 10px; background: var(--aqua-bg); color: var(--aqua-fg); }
.board .note.gone { opacity: .3; text-decoration: line-through; }

.chat { width: 940px; display: flex; flex-direction: column; gap: 20px; }
.bub { max-width: 78%; padding: 20px 30px; border-radius: 26px; font-size: 30px; line-height: 1.6; font-weight: 500; }
.bub.user { align-self: flex-end; background: #fff; border: 2px solid var(--line); border-bottom-right-radius: 6px; }
.bub.ai { align-self: flex-start; border-bottom-left-radius: 6px; }
.bub.note { align-self: center; background: var(--gray-bg); color: var(--gray-fg); font-size: 24px; padding: 10px 24px; }
.bub.page { align-self: center; text-align: center; border: 3px dashed currentColor; border-radius: 12px; }

.loop { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px 32px; align-items: center; width: 780px; }
.tag { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; font-size: 26px; font-weight: 700; }
.tag .ti { font-size: 34px; }
.loop-text { font-size: 36px; font-weight: 500; }

.progress { display: flex; gap: 12px; margin: -12px 0 -8px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 22px; padding: 6px 18px; border-radius: 99px; border: 2px solid var(--line); color: var(--muted); }
.step.done { background: var(--green-bg); color: var(--green-fg); border-color: transparent; }
.step.now { border-color: var(--frame); color: var(--ink); font-weight: 700; }

.compare { display: grid; grid-template-columns: 200px repeat(2, minmax(0, 1fr)); gap: 10px; width: 900px; font-size: 30px; }
.compare > div { padding: 16px 24px; border-radius: 14px; }
.compare .head { font-weight: 700; }
.compare .key { color: var(--muted); font-size: 24px; display: flex; align-items: center; padding-left: 0; }

.bars { display: flex; align-items: flex-end; gap: 72px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 26px; color: var(--muted); }
.bar div { width: 150px; border-radius: 16px; }
.bar div.c-green { background: #9fd3aa; }
.bars-caption { font-size: 24px; color: var(--muted); margin-top: -20px; }

.tree { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: -12px; }
.tree .pill { flex-direction: row; gap: 14px; padding: 16px 30px; min-width: 180px; }
.tree .pill .ti { font-size: 44px; }
.tree .op { font-size: 40px; }

.ba { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px 18px; align-items: center; width: 900px; }
.ba .ti { font-size: 44px; justify-self: center; }
.ba .ti-x { color: var(--red-fg); }
.ba .ti-check { color: var(--green-fg); }
.ba .box { padding: 20px 28px; border-radius: 18px; font-size: 30px; line-height: 1.6; font-weight: 500; }
.ba .box b { font-size: 22px; font-weight: 700; margin-left: 6px; }

/* ── 進捗バーとノート ── */
#bar { position: fixed; left: 0; right: 0; bottom: 0; height: 6px; background: #2c323d; }
body.show-notes #bar { bottom: 32vh; }
#bar-fill { height: 100%; width: 0; background: var(--orange-fg); transition: width .2s; }

#notes {
  position: fixed; left: 0; right: 0; bottom: 0; height: 32vh; display: none;
  padding: 18px max(24px, 4vw); background: #11141a; color: #e8eaee; overflow-y: auto;
  border-top: 1px solid #2c323d;
}
body.show-notes #notes { display: block; }
#notes-head { font-size: 14px; color: #9aa1ad; letter-spacing: .06em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
#notes-text { font-size: clamp(18px, 2.2vw, 26px); line-height: 1.75; max-width: 60em; }
#notes-next { margin-top: 14px; font-size: 14px; color: #9aa1ad; }

@media (prefers-reduced-motion: reduce) { #bar-fill { transition: none; } }

/* ── 印刷（PDF） ── */
@page { size: 1280px 720px; margin: 0; }
@media print {
  html, body { height: auto; overflow: visible; background: var(--slide); }
  #viewport { position: static; display: block; }
  #stage { position: static; transform: none !important; width: 1280px; height: auto; }
  .slide { position: relative; display: flex !important; width: 1280px; height: 720px; break-after: page; }
  #bar, #notes { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
