:root {
  --c-base: #fbf7ee;
  --c-paper: #fffdf8;
  --c-main: #183247;
  --c-sub: #416b6b;
  --c-accent: #c45f3d;
  --c-gold: #d9a441;
  --c-line: rgba(24, 50, 71, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--c-base);
  color: var(--c-main);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-break: strict;
}

button {
  font: inherit;
}

.deck-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--c-base);
}

.slide-stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  background: var(--c-base);
}

.slide {
  position: absolute;
  width: 100vw;
  height: 100vh;
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
  margin: auto;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  background: var(--c-paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  border: 0.1cqw solid rgba(24, 50, 71, 0.08);
}

.slide.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: auto;
}

.slide-content {
  width: 100%;
  height: 100%;
  padding: 2.8cqw 5.6cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.65cqw;
}

.slide-hero {
  font-size: 5.8cqw;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.slide-h1 {
  font-size: 4.4cqw;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.slide-h2 {
  font-size: 2.8cqw;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.slide-h3 {
  font-size: 2.1cqw;
  line-height: 1.3;
  font-weight: 700;
}

.slide-title {
  font-size: 2.08cqw;
  line-height: 1.6;
  font-weight: 500;
}

.slide-body {
  font-size: 1.46cqw;
  line-height: 1.82;
  font-weight: 400;
}

.slide-caption {
  font-size: 1cqw;
  line-height: 1.7;
  color: rgba(24, 50, 71, 0.72);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.7cqw;
  padding: 0.45cqw 0.9cqw;
  border: 0.1cqw solid var(--c-line);
  border-radius: 0;
  color: var(--c-sub);
  font-size: 1.05cqw;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 1.8cqw;
  height: 0.18cqw;
  background: var(--c-accent);
}

.cover {
  background:
    linear-gradient(90deg, rgba(24, 50, 71, 0.08), transparent 36%),
    var(--c-paper);
}

.cover .slide-content {
  align-items: flex-start;
}

.cover-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 5cqw;
  align-items: center;
}

.cover-map {
  height: 27cqw;
  border: 0.2cqw solid var(--c-main);
  background: rgba(65, 107, 107, 0.08);
  position: relative;
  display: grid;
  place-items: center;
}

.cover-map::before {
  content: "";
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  top: 14cqw;
  height: 0.25cqw;
  background: var(--c-main);
  transform: rotate(-8deg);
}

.cover-map span,
.cover-map b {
  position: absolute;
  padding: 0.55cqw 0.8cqw;
  border: 0.12cqw solid currentColor;
  background: var(--c-paper);
  font-size: 1.1cqw;
  letter-spacing: 0.08em;
}

.cover-map span {
  left: 3.8cqw;
  bottom: 5.2cqw;
  color: var(--c-accent);
}

.cover-map b {
  right: 3.8cqw;
  top: 4.8cqw;
  color: var(--c-gold);
}

.cover-map i {
  position: absolute;
  width: 4cqw;
  height: 4cqw;
  border: 0.16cqw solid var(--c-sub);
  background: var(--c-paper);
  transform: rotate(12deg);
}

.section {
  background: var(--c-main);
  color: var(--c-paper);
}

.section .eyebrow {
  color: rgba(255, 253, 248, 0.85);
  border-color: rgba(255, 253, 248, 0.28);
}

.section .eyebrow::before {
  background: var(--c-gold);
}

.center-message {
  max-width: 75cqw;
}

.lead {
  max-width: 76cqw;
}

.roadmap-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8cqw;
  align-items: center;
}

.roadmap-image {
  width: 100%;
  height: 50cqw;
  object-fit: contain;
  border: 0.1cqw solid var(--c-line);
  background: #fff;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.95cqw;
  align-items: stretch;
}

.flow-item,
.card,
.person-card,
.question-card,
.take-card {
  border: 0.1cqw solid var(--c-line);
  background: rgba(255, 253, 248, 0.78);
}

.flow-item {
  min-height: 10cqw;
  padding: 0.95cqw 1.05cqw;
  display: flex;
  flex-direction: column;
  gap: 0.65cqw;
  justify-content: center;
}

.flow-item strong,
.card strong,
.person-card strong,
.question-card strong,
.take-card strong {
  color: var(--c-accent);
  font-size: 1.35cqw;
  line-height: 1.35;
}

.flow-item span,
.card span,
.person-card span,
.question-card span,
.take-card span {
  line-height: 1.75;
}

.number {
  color: var(--c-sub);
  font-weight: 900;
  font-size: 2.2cqw;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.2cqw;
  align-items: center;
}

.split.equal {
  grid-template-columns: 1fr 1fr;
}

.visual-panel {
  min-height: 28cqw;
  border: 0.15cqw solid var(--c-main);
  padding: 2cqw;
  display: grid;
  place-items: center;
  background: rgba(217, 164, 65, 0.1);
}

.diagram-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1cqw;
}

.diagram-row {
  display: flex;
  align-items: center;
  gap: 1cqw;
  font-size: 1.45cqw;
}

.diagram-dot {
  width: 2.2cqw;
  height: 2.2cqw;
  border: 0.15cqw solid var(--c-accent);
  background: var(--c-paper);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2cqw;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2cqw;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4cqw;
}

.card,
.person-card,
.question-card,
.take-card {
  padding: 1.1cqw 1.25cqw;
  min-height: 11.4cqw;
  display: flex;
  flex-direction: column;
  gap: 0.7cqw;
  justify-content: center;
}

.person-card {
  min-height: 16cqw;
}

.person-name {
  font-size: 2.1cqw;
  font-weight: 800;
}

.quote-block {
  border-left: 0.3cqw solid var(--c-accent);
  padding: 1.4cqw 0 1.4cqw 2cqw;
  max-width: 76cqw;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1cqw;
}

.timeline-row {
  display: grid;
  grid-template-columns: 12cqw 1fr;
  gap: 1.4cqw;
  align-items: center;
  border-bottom: 0.1cqw solid var(--c-line);
  padding: 0.9cqw 0;
}

.timeline-row b {
  color: var(--c-sub);
}

.closing-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4cqw;
  max-width: 82cqw;
}

.two-col {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3.2cqw;
  align-items: center;
}

.detail-grid {
  display: grid;
  gap: 1cqw;
  align-items: stretch;
}

.detail-grid.one {
  grid-template-columns: 1fr;
}

.detail-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.detail-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.detail-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.detail-grid.five {
  grid-template-columns: repeat(5, 1fr);
}

.detail-card,
.note-panel,
.large-quote,
.tag-cloud,
.mini-row {
  border: 0.1cqw solid var(--c-line);
  background: rgba(255, 253, 248, 0.78);
}

.detail-card {
  min-height: 9.2cqw;
  padding: 0.95cqw 1.05cqw;
  display: flex;
  flex-direction: column;
  gap: 0.5cqw;
}

.detail-card strong {
  color: var(--c-accent);
  font-size: 1.42cqw;
  line-height: 1.35;
}

.detail-card p {
  margin: 0;
  font-size: 1.12cqw;
  line-height: 1.82;
}

.note-panel {
  padding: 1.55cqw 1.75cqw;
}

.note-panel strong {
  display: block;
  margin-bottom: 1cqw;
  color: var(--c-accent);
  font-size: 1.62cqw;
  line-height: 1.38;
}

.note-panel p {
  margin: 0;
  font-size: 1.35cqw;
  line-height: 1.9;
}

.check-list {
  display: grid;
  gap: 0.75cqw;
}

.check-list span {
  display: block;
  padding-left: 1.4cqw;
  position: relative;
  line-height: 1.82;
}

.check-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.55cqw;
  height: 0.55cqw;
  background: var(--c-accent);
}

.member-goals {
  display: grid;
  gap: 0.75cqw;
}

.mini-row {
  display: grid;
  grid-template-columns: 11cqw 1fr;
  gap: 1.1cqw;
  align-items: start;
  padding: 0.82cqw 1.05cqw;
}

.mini-row b {
  color: var(--c-sub);
  font-size: 1.25cqw;
  line-height: 1.35;
}

.mini-row span {
  font-size: 1.16cqw;
  line-height: 1.78;
}

.large-quote {
  padding: 2cqw 2.2cqw;
  border-left: 0.35cqw solid var(--c-accent);
}

.large-quote p {
  margin: 0;
  font-size: 2.05cqw;
  line-height: 1.68;
  font-weight: 800;
}

.tag-cloud {
  padding: 1.6cqw;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75cqw;
  align-content: center;
}

.tag-cloud span {
  display: inline-flex;
  padding: 0.55cqw 0.8cqw;
  border: 0.1cqw solid var(--c-line);
  background: rgba(217, 164, 65, 0.13);
  color: var(--c-main);
  font-size: 1.14cqw;
  font-weight: 700;
  line-height: 1.35;
}

.section .large-quote,
.section .note-panel,
.section .detail-card {
  background: rgba(255, 253, 248, 0.08);
  border-color: rgba(255, 253, 248, 0.26);
}

.section .slide-title {
  color: rgba(255, 253, 248, 0.86);
}

@media (max-aspect-ratio: 4 / 3) {
  .detail-grid.five,
  .detail-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col,
  .split,
  .split.equal {
    grid-template-columns: 1fr;
  }
}

.menu-button,
.sidebar-close {
  border: 1px solid rgba(24, 50, 71, 0.18);
  background: rgba(255, 253, 248, 0.94);
  color: var(--c-main);
  cursor: pointer;
}

.menu-button {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 120;
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.status {
  position: fixed;
  top: 24px;
  right: 78px;
  z-index: 110;
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(24, 50, 71, 0.72);
  font-size: 12px;
}

.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(24, 50, 71, 0.12);
  z-index: 130;
}

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

.nav-hit {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 24vw;
  z-index: 80;
}

.nav-prev {
  left: 0;
}

.nav-next {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 50, 71, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 86vw);
  height: 100%;
  background: var(--c-paper);
  border-left: 1px solid rgba(24, 50, 71, 0.18);
  transform: translateX(100%);
  transition: transform 220ms ease;
  padding: 24px;
  overflow: auto;
}

.sidebar-overlay.open .sidebar {
  transform: translateX(0);
}

.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sidebar-head p {
  margin: 0;
  font-weight: 800;
}

.sidebar-close {
  width: 36px;
  height: 36px;
  font-size: 22px;
}

.agenda-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.agenda-list button {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(24, 50, 71, 0.14);
  background: transparent;
  color: var(--c-main);
  cursor: pointer;
}

.agenda-list button.active {
  border-color: var(--c-accent);
  background: rgba(196, 95, 61, 0.08);
}

.notes-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  max-height: 30vh;
  padding: 18px 26px;
  background: rgba(24, 50, 71, 0.94);
  color: var(--c-paper);
  font-size: 14px;
  line-height: 1.7;
  transform: translateY(calc(100% - 8px));
  transition: transform 180ms ease;
  overflow: auto;
}

.notes-panel.open {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
