:root {
  --ink: #1f2528;
  --muted: #667078;
  --paper: #fffdf7;
  --blue: #dff3ff;
  --blue-strong: #2c91bd;
  --yellow: #fff1a7;
  --yellow-strong: #c59716;
  --pink: #ffe3ed;
  --pink-strong: #d2527f;
  --purple: #ede7ff;
  --purple-strong: #7965c9;
  --green: #dff5df;
  --green-strong: #388a45;
  --red: #ffe5df;
  --red-strong: #c85e45;
  --shadow: 0 24px 60px rgba(28, 38, 48, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  background:
    linear-gradient(115deg, rgba(223, 243, 255, 0.72), rgba(255, 241, 167, 0.42) 38%, rgba(255, 227, 237, 0.46) 72%, rgba(237, 231, 255, 0.62)),
    #f3f5f1;
  overflow: hidden;
}

.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  background: var(--paper);
}

.slide.current {
  display: flex;
  flex-direction: column;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 3px solid rgba(31, 37, 40, 0.12);
  pointer-events: none;
}

.slide-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: clamp(16px, 1.6vw, 24px);
  background: var(--yellow);
  border: 2px solid rgba(31, 37, 40, 0.75);
  box-shadow: 5px 5px 0 rgba(31, 37, 40, 0.12);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 1180px;
  font-size: clamp(48px, 5.8vw, 88px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  max-width: 1180px;
  font-size: clamp(38px, 4.5vw, 74px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
}

.lead,
.claim {
  max-width: 1020px;
  margin-top: 28px;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.45;
  color: #344047;
  font-weight: 700;
}

.claim.small {
  max-width: 1160px;
  font-size: clamp(22px, 2vw, 30px);
}

.title-slide {
  justify-content: center;
  gap: 18px;
}

.title-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  max-width: 960px;
}

.title-grid span,
.next-box span {
  padding: 12px 18px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  border: 2px solid rgba(31, 37, 40, 0.72);
  background: #fff;
}

.statement-slide,
.concept-slide,
.layer-slide {
  justify-content: center;
}

.two-column,
.three-column {
  display: grid;
  gap: 28px;
  margin-top: 42px;
}

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

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

.point-box {
  min-height: 220px;
  padding: 28px;
  border: 3px solid rgba(31, 37, 40, 0.76);
  box-shadow: 8px 8px 0 rgba(31, 37, 40, 0.1);
}

.point-box p {
  margin-top: 18px;
  color: #344047;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.45;
  font-weight: 700;
}

.point-box.blue {
  background: var(--blue);
}

.point-box.green {
  background: var(--green);
}

.point-box.yellow {
  background: var(--yellow);
}

.point-box.pink {
  background: var(--pink);
}

.point-box.red {
  background: var(--red);
}

.point-box.purple {
  background: var(--purple);
}

.image-slide {
  justify-content: center;
}

.image-frame {
  margin: 28px 0 0;
  border: 3px solid rgba(31, 37, 40, 0.82);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-frame.wide {
  width: min(1520px, 92vw);
  aspect-ratio: 16 / 9;
}

.image-frame.compact {
  width: min(900px, 72vw);
  aspect-ratio: 16 / 9;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
}

.reference-preview {
  position: absolute;
  right: clamp(36px, 5vw, 74px);
  bottom: clamp(86px, 9vh, 118px);
  z-index: 1;
  width: clamp(190px, 18vw, 320px);
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(31, 37, 40, 0.34);
  background: #fff;
  box-shadow: 0 16px 34px rgba(28, 38, 48, 0.16);
}

.reference-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.service-thumb {
  width: min(900px, 72vw);
  aspect-ratio: 16 / 10;
  margin: 30px 0 0;
  overflow: hidden;
  border: 3px solid rgba(31, 37, 40, 0.82);
  background: #fff;
  box-shadow: var(--shadow);
}

.service-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  cursor: zoom-in;
}

.caption {
  max-width: 1180px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.45;
  font-weight: 700;
}

.caption-link {
  margin-left: 0.65em;
  color: var(--blue-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.caption-link-block {
  display: inline-block;
  margin: 8px 0 0;
}

.caption-list {
  max-width: 1040px;
  margin: 24px 0 0;
  padding-left: 1.25em;
  color: var(--muted);
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.5;
  font-weight: 800;
}

.caption-list li + li {
  margin-top: 10px;
}

.demo-cue {
  width: min(820px, 82vw);
  margin-top: 34px;
  padding: 26px 34px;
  background: var(--yellow);
  border: 4px solid rgba(31, 37, 40, 0.86);
  box-shadow: 10px 10px 0 rgba(31, 37, 40, 0.13);
}

.demo-cue strong,
.demo-cue span {
  display: block;
}

.demo-cue strong {
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.05;
}

.demo-cue span {
  margin-top: 12px;
  color: #344047;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.3;
  font-weight: 800;
}

.compact-flow h2 {
  font-size: clamp(34px, 4vw, 60px);
}

.compact-flow .flow-cards {
  margin-top: 30px;
}

.compact-flow .flow-cards > div {
  min-height: 230px;
  padding: 20px;
}

.compact-flow .flow-cards p {
  font-size: clamp(18px, 1.55vw, 24px);
}

.compact-flow .caption {
  margin-top: 14px;
  font-size: clamp(16px, 1.4vw, 22px);
}

.layers {
  display: grid;
  gap: 13px;
  width: min(1180px, 90vw);
  margin-top: 42px;
}

.layers.compact {
  width: min(1060px, 88vw);
}

.layer {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) 1fr;
  gap: 22px;
  align-items: center;
  min-height: 84px;
  padding: 18px 24px;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: 7px 7px 0 rgba(31, 37, 40, 0.09);
}

.layer strong {
  font-size: clamp(24px, 2.3vw, 34px);
}

.layer span {
  color: #344047;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.32;
  font-weight: 700;
}

.layer.dc {
  background: var(--purple);
}

.layer.cloud {
  background: var(--pink);
}

.layer.net {
  background: var(--yellow);
}

.layer.local {
  background: var(--blue);
}

.layer.you {
  background: var(--green);
}

.flow-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
  width: min(1240px, 90vw);
}

.flow-cards > div {
  min-height: 260px;
  padding: 24px;
  background: #fff;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: 7px 7px 0 rgba(31, 37, 40, 0.09);
}

.step {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-strong);
  font-weight: 900;
  font-size: 26px;
}

.flow-cards strong {
  display: block;
  font-size: clamp(24px, 2.3vw, 34px);
}

.flow-cards p {
  margin-top: 18px;
  color: #344047;
  font-size: clamp(20px, 1.75vw, 28px);
  line-height: 1.38;
  font-weight: 700;
}

.ai-route,
.route-board {
  display: grid;
  align-items: stretch;
  gap: 14px;
  width: min(1200px, 90vw);
  margin-top: 46px;
}

.ai-route {
  grid-template-columns: 1.2fr auto 1.2fr auto 1.35fr auto 1fr;
}

.ai-route.simple-route {
  grid-template-columns: 1.2fr auto 1.2fr auto 1.2fr;
}

.ai-route > div,
.route-card {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 20px;
  text-align: center;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  border: 3px solid rgba(31, 37, 40, 0.78);
}

.ai-route span,
.route-card span {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 1.5vw, 24px);
  color: #566168;
  font-weight: 800;
}

.device {
  background: var(--blue);
}

.internet {
  background: var(--yellow);
}

.model {
  background: var(--purple);
}

.answer {
  background: var(--green);
}

.arrow,
.route-arrow {
  place-self: center;
  border: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  font-size: clamp(42px, 4vw, 64px) !important;
  background: transparent !important;
}

.divider-slide {
  justify-content: center;
}

.part-label {
  width: fit-content;
  margin-bottom: 26px;
  padding: 10px 18px;
  background: #fff;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: 7px 7px 0 rgba(31, 37, 40, 0.1);
  font-size: clamp(26px, 2.6vw, 42px);
  font-weight: 900;
}

.divider-slide h2 {
  font-size: clamp(58px, 6.4vw, 104px);
}

.divider-slide p {
  max-width: 980px;
  margin-top: 28px;
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.38;
  font-weight: 800;
}

.divider-slide.chrome {
  background: linear-gradient(135deg, var(--blue), #fff, var(--yellow));
}

.divider-slide.parking {
  background: linear-gradient(135deg, var(--green), #fff, var(--pink));
}

.divider-slide.part-types {
  background: linear-gradient(135deg, var(--green), #fff 48%, var(--blue));
}

.divider-slide.part-examples {
  background: linear-gradient(135deg, var(--yellow), #fff 48%, var(--pink));
}

.divider-slide.part-ai {
  background: linear-gradient(135deg, var(--purple), #fff 48%, var(--blue));
}

.route-board {
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.route-card {
  background: #fff;
}

.summary-list {
  display: grid;
  gap: 18px;
  width: min(1100px, 90vw);
  margin-top: 42px;
}

.summary-list p {
  padding: 22px 26px;
  background: #fff;
  border: 3px solid rgba(31, 37, 40, 0.78);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.4;
  font-weight: 700;
}

.summary-list strong {
  color: #111;
}

.next-slide {
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(223, 243, 255, 0.9), rgba(255, 253, 247, 0.94), rgba(237, 231, 255, 0.9)),
    var(--paper);
}

.next-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.controls {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(31, 37, 40, 0.18);
  box-shadow: 0 12px 32px rgba(28, 38, 48, 0.16);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(31, 37, 40, 0.35);
  background: #fff;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--yellow);
}

.icon-button:disabled {
  opacity: 0.34;
  cursor: default;
}

.icon-button:disabled:hover {
  background: #fff;
}

.progress {
  min-width: 70px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.notes {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 36px;
  background: rgba(15, 18, 20, 0.92);
}

.image-lightbox.open {
  display: grid;
}

.image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 41;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .deck,
  .slide {
    min-height: 100vh;
    height: auto;
  }

  .slide {
    position: relative;
    padding: 28px 18px 96px;
  }

  .slide::after {
    display: none;
  }

  .two-column,
  .three-column,
  .flow-cards,
  .ai-route,
  .route-board {
    grid-template-columns: 1fr;
  }

  .arrow,
  .route-arrow {
    transform: rotate(90deg);
  }

  .layer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .image-frame.wide {
    width: 100%;
  }

  .image-frame,
  .service-thumb {
    border: 0;
    box-shadow: none;
  }

  .reference-preview {
    display: none;
  }

  .controls {
    border: 0;
    box-shadow: none;
  }

  .image-lightbox {
    padding: 18px;
  }
}

@media print {
  body {
    overflow: visible;
    background: #fff;
  }

  .deck,
  .slide {
    width: 100%;
    height: auto;
  }

  .slide {
    position: relative;
    display: flex !important;
    min-height: 100vh;
    break-after: page;
  }

  .controls {
    display: none;
  }
}
