:root {
  --red: #ff0000;
  --accent: #ff0000;
  --black: #000000;
  --line: #dddddd;
  --white: #ffffff;
  --slide-w: 100vw;
  --slide-h: 56.25vw;
  --mx: 4.2vw;
  --mt: 1.55vw;
  --mb: 1.3vw;
  --header-h: 2.2vw;
  --footer-h: 1.55vw;
  --gap-sm: 1vw;
  --gap-md: 1.6vw;
  --gap-lg: 2.4vw;
  --fs-meta: .9vw;
  --fs-small: 1.22vw;
  --fs-body: 1.72vw;
  --fs-lead: 2.12vw;
  --fs-title: 3.45vw;
  --fs-hero: 5.35vw;
}

* { box-sizing: border-box; }

html,
body,
.deck,
.slide-stage,
.slide {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  margin: 0;
  background: var(--line);
  color: var(--black);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.deck {
  width: var(--slide-w);
  height: var(--slide-h);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.slide-stage {
  position: relative;
  width: var(--slide-w);
  height: var(--slide-h);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr var(--footer-h);
  gap: .2vw;
  padding: var(--mt) var(--mx) var(--mb);
  background: var(--line);
  color: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slide.is-red {
  background: var(--red);
  color: var(--white);
}

.slide[data-layout="titleImage"] {
  display: block;
  padding: 0;
}

.slide[data-layout="titleImage"] .slide-header,
.slide[data-layout="titleImage"] .slide-title,
.slide[data-layout="titleImage"] .slide-footer {
  display: none;
}

.title-image {
  margin: 0;
  width: 100%;
  height: 100%;
}

.title-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-header {
  display: none;
}

.slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-meta);
  letter-spacing: .04em;
}

.slide-title {
  display: grid;
  gap: 0;
  margin-top: 1.05vw;
  max-width: 91.6vw;
}

.slide[data-layout="title"] {
  grid-template-rows: 1fr var(--footer-h);
}

.slide[data-layout="section"] {
  grid-template-rows: 1fr var(--footer-h);
}

.slide[data-layout="title"] .slide-title,
.slide[data-layout="section"] .slide-title {
  display: none;
}

.section-label {
  display: none;
}

.slide-title h1 {
  margin: 0;
  font-size: var(--fs-title);
  line-height: 1.08;
  font-weight: 700;
}

.slide-summary {
  margin: 0;
  max-width: 91vw;
  font-size: var(--fs-lead);
  line-height: 1.28;
  font-weight: 700;
}

.slide-content {
  min-height: 0;
  display: grid;
  align-items: center;
  padding-top: 0;
}

.slide[data-layout="title"] .slide-content,
.slide[data-layout="section"] .slide-content {
  align-items: stretch;
}

.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: .28vw;
  background: var(--white);
  z-index: 20;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.slide-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28vw;
  z-index: 40;
  transform: translateX(100%);
  transition: transform .18s ease;
}

.slide-nav::before {
  content: "";
  position: absolute;
  left: -1.25vw;
  top: 0;
  width: 1.25vw;
  height: 100%;
}

.slide-nav:hover,
.slide-nav:focus-within {
  transform: translateX(0);
}

.slide-nav-panel {
  height: 100%;
  padding: 1.05vw 1vw;
  background: var(--white);
  box-shadow: -0.45vw 0 1.35vw rgba(0, 0, 0, .08);
  display: grid;
}

.slide-nav-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: .65vw;
  padding-right: .18vw;
}

.slide-nav-group {
  display: grid;
  gap: 0;
}

.slide-nav-group h2 {
  margin: 0;
  padding: .28vw .15vw .38vw;
  background: transparent;
  color: var(--red);
  font-size: .78vw;
  line-height: 1.1;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.slide-nav-item {
  border: 0;
  width: 100%;
  min-height: 1.85vw;
  padding: .34vw .15vw;
  background: transparent;
  color: var(--black);
  display: grid;
  grid-template-columns: 2.05vw 1fr;
  gap: .36vw;
  align-items: center;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-bottom: 1px solid #eeeeee;
}

.slide-nav-item span {
  color: var(--red);
  font-size: .72vw;
  font-weight: 700;
}

.slide-nav-item em {
  font-style: normal;
  font-size: .82vw;
  font-weight: 700;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-nav-item.active {
  background: #fff1f1;
  color: var(--black);
}

.slide-nav-item.active span {
  color: var(--red);
}

.slide-nav-item.active em {
  color: var(--red);
}

.title-cover,
.section-cover {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 1.25vw;
}

.title-cover h2,
.section-cover h2 {
  margin: 0;
  max-width: 80vw;
  font-size: var(--fs-hero);
  line-height: 1.02;
  font-weight: 700;
}

.title-cover p,
.section-cover p {
  margin: 0;
  max-width: 76vw;
  font-size: 2vw;
  line-height: 1.32;
}

.hero-flow {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-top: 1.4vw;
}

.hero-chip,
.flow-chip,
.thumb,
.card,
.mini-card,
.menu-card,
.input-card,
.send-card {
  border: 0;
  background: var(--white);
}

.hero-chip {
  min-width: 13.6vw;
  padding: 1.14vw 1.25vw;
  font-size: 1.58vw;
  font-weight: 700;
  text-align: center;
}

.arrow {
  color: var(--accent);
  font-size: 2.65vw;
  font-weight: 700;
}

.is-red .arrow {
  color: var(--white);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75vw;
  align-self: center;
}

.output-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1vw;
  align-items: stretch;
  align-self: center;
}

.output-badge {
  min-height: 5.6vw;
  padding: .9vw 1.2vw;
  display: grid;
  grid-template-columns: 18vw 1fr;
  align-items: center;
  gap: 1.2vw;
  background: transparent;
  color: var(--black);
}

.output-badge b {
  font-size: 2.75vw;
  line-height: 1;
}

.output-badge span {
  font-size: 1.55vw;
  line-height: 1.35;
  font-weight: 700;
}

.thumb {
  min-height: 9.8vw;
  padding: 0;
  display: grid;
  grid-template-columns: 4.6vw 1fr;
  align-items: stretch;
  box-shadow: none;
}

.thumb b {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  font-size: 1.75vw;
  line-height: 1;
}

.thumb span {
  align-self: center;
  padding: 1vw;
  font-size: 1.62vw;
  line-height: 1.18;
  font-weight: 700;
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .7vw;
  align-self: center;
}

.flow-chip {
  min-height: 12.8vw;
  padding: 1vw .8vw;
  display: grid;
  align-content: space-between;
  gap: .55vw;
  text-align: center;
  box-shadow: none;
  border-top: 0;
}

.flow-chip b,
.card b,
.mini-card b,
.menu-card b,
.input-card b,
.send-card b {
  color: var(--accent);
  font-size: 2.15vw;
  line-height: 1;
}

.flow-chip span,
.card span,
.mini-card span,
.menu-card span,
.input-card span,
.send-card span,
.agenda-item span {
  font-size: 1.56vw;
  line-height: 1.2;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
}

.agenda-list {
  width: 58vw;
  justify-self: center;
  align-self: center;
  display: grid;
  gap: .72vw;
}

.agenda-item {
  min-height: 4.35vw;
  display: grid;
  grid-template-columns: 8.4vw 1fr;
  align-items: center;
  box-shadow: none;
  background: var(--white);
}

.agenda-item b {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-size: 2.05vw;
  line-height: 1;
}

.agenda-item span {
  padding: 0 1.35vw;
  font-size: 1.85vw;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1vw;
  align-items: stretch;
  align-self: center;
}

.panel {
  border: 0;
  padding: 1.65vw;
  display: grid;
  gap: .8vw;
  min-height: 29vw;
  background: var(--white);
}

.panel:first-child {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.panel h3 {
  margin: 0;
  font-size: 2.8vw;
}

.panel ul {
  margin: 0;
  padding-left: 1.55vw;
  font-size: 2vw;
  line-height: 1.45;
}

.funnel {
  display: grid;
  gap: .7vw;
  max-width: 82vw;
  justify-self: center;
  align-self: center;
  width: 82vw;
}

.funnel-step {
  display: grid;
  grid-template-columns: 5vw 1fr;
  align-items: center;
  gap: 1vw;
  border: 0;
  box-shadow: none;
  border-left: 0;
  background: var(--white);
  padding: 1.15vw 1.35vw;
}

.funnel-step b {
  color: var(--accent);
  font-size: 2.2vw;
}

.funnel-step span {
  font-size: 2.15vw;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75vw;
  width: 74vw;
  justify-self: center;
  align-self: center;
}

.card {
  min-height: 9.8vw;
  padding: 0;
  display: grid;
  grid-template-columns: 4.6vw 1fr;
  align-items: stretch;
  box-shadow: none;
  align-content: stretch;
}

.card b {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
}

.card span {
  align-self: center;
  padding: 1vw;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85vw;
  align-self: center;
}

.mini-card {
  min-height: 20vw;
  padding: 1.25vw;
  display: grid;
  align-content: start;
  gap: .75vw;
  box-shadow: none;
  border-top: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9vw;
  align-self: center;
}

.menu-card {
  min-height: 12.8vw;
  padding: 1.25vw;
  display: grid;
  align-content: center;
  text-align: center;
  box-shadow: none;
}

.venn {
  position: relative;
  width: 62vw;
  height: 27vw;
  justify-self: center;
  align-self: center;
}

.circle {
  position: absolute;
  width: 20vw;
  height: 20vw;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 2vw;
  font-weight: 700;
  background: var(--white);
}

.circle:nth-child(1) { left: 21vw; top: 0; }
.circle:nth-child(2) { left: 38vw; top: 6.8vw; }
.circle:nth-child(3) { left: 4vw; top: 6.8vw; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75vw;
  align-items: stretch;
  align-self: center;
}

.input-card {
  min-height: 14.5vw;
  padding: 1.15vw;
  display: grid;
  align-content: space-between;
  box-shadow: none;
  border-top: 0;
}

.prompt-frame {
  position: relative;
  align-self: center;
  width: 100%;
  min-width: 0;
  max-height: 31vw;
  overflow: hidden;
}

.prompt-copy {
  position: absolute;
  top: .9vw;
  right: 1vw;
  z-index: 2;
  border: 0;
  background: var(--red);
  color: var(--white);
  padding: .45vw .9vw;
  font: inherit;
  font-size: 1vw;
  font-weight: 700;
  cursor: pointer;
}

.prompt-box {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 0;
  background: var(--white);
  padding: 1.25vw 6.2vw 1.25vw 1.45vw;
  max-height: 31vw;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9vw;
  line-height: 1.24;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.example-frame {
  position: relative;
  align-self: center;
  width: 100%;
  min-width: 0;
}

.example-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8vw;
  align-self: center;
  max-height: 31.2vw;
  overflow-y: auto;
  padding-right: .6vw;
}

.example-card {
  min-height: 0;
  padding: .9vw 1.05vw;
  background: var(--white);
  display: grid;
  align-content: start;
  gap: .38vw;
}

.example-card > b {
  color: var(--red);
  font-size: 1.35vw;
  line-height: 1.12;
}

.example-title-options {
  margin: 0;
  padding-left: 1.3vw;
  font-size: .9vw;
  line-height: 1.28;
  font-weight: 700;
}

.example-card ul {
  margin: 0;
  padding-left: 1.15vw;
  font-size: .95vw;
  line-height: 1.28;
  font-weight: 700;
}

.example-card p {
  margin: 0;
  font-size: .86vw;
  line-height: 1.28;
}

.example-card strong {
  display: inline-block;
  margin-right: .45vw;
  color: var(--red);
}

.cover-prompt {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.2vw;
  align-items: stretch;
  align-self: center;
}

.prompt-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85vw;
  align-self: stretch;
}

.prompt-stack .input-card {
  min-height: 6.6vw;
  grid-template-columns: 9vw 1fr;
  align-items: center;
  align-content: center;
  border-top: 0;
  border-left: 0;
}

.red-preview {
  background: var(--red);
  color: var(--white);
  min-height: 30vw;
  padding: 1.75vw;
  display: grid;
  align-content: end;
  gap: .8vw;
}

.red-preview b {
  font-size: 3.25vw;
  line-height: 1.08;
  overflow-wrap: normal;
}

.red-preview span {
  font-size: 1.75vw;
}

.action-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75vw;
  align-self: center;
}

.send-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9vw;
  align-self: center;
}

.send-card {
  min-height: 21vw;
  padding: 1.35vw;
  display: grid;
  align-content: center;
  text-align: center;
  box-shadow: none;
  background: var(--white);
}

.send-card:first-child {
  background: var(--red);
  color: var(--white);
  box-shadow: none;
}

.send-card:first-child b {
  color: var(--white);
}

@media print {
  @page { size: 16in 9in; margin: 0; }
  body { margin: 0; }
  .deck,
  .slide-stage,
  .slide {
    width: 16in;
    height: 9in;
  }
  .slide {
    page-break-after: always;
    opacity: 1 !important;
    position: relative;
  }
  .slide-stage {
    overflow: visible;
  }
  .progress { display: none; }
}
