@font-face {
  font-family: "LiveNotoJP";
  src: url("/assets/fonts/noto-sans-jp-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LiveNotoJP";
  src: url("/assets/fonts/noto-sans-jp-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --peach: #ffdfcb;
  --orange: #ff6200;
  --ink: #304254;
  --paper: #fffaf6;
  --white: #ffffff;
  --muted: #6f6f6f;
  --line: rgba(255, 98, 0, 0.22);
  --stage-pad: clamp(10px, 1.8vw, 22px);
  font-family: "LiveNotoJP", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--peach);
  color: var(--ink);
  overflow: hidden;
}

.app-shell {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--stage-pad);
}

.slide-stage {
  width: min(100%, 1600px);
  min-height: 0;
  display: grid;
  place-items: center;
}

.loading-state {
  display: grid;
  gap: 14px;
  justify-items: center;
  color: var(--orange);
  font-weight: 700;
}

.loading-mark {
  width: 52px;
  height: 52px;
  border: 5px solid rgba(255, 98, 0, 0.18);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.slide-card {
  position: relative;
  width: min(100%, 1500px);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--stage-pad) * 2);
  background: var(--peach);
  color: var(--ink);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 0;
  animation: softIn 220ms ease-out;
}

.slide-card::before,
.slide-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.slide-card::before {
  inset: 40px 44px auto auto;
  width: 150px;
  height: 150px;
  border: 18px solid rgba(255, 98, 0, 0.18);
  border-radius: 50%;
}

.slide-card::after {
  left: -40px;
  bottom: -52px;
  width: 220px;
  height: 220px;
  background: rgba(255, 98, 0, 0.11);
  border-radius: 50%;
}

.slide-meta,
.slide-footer,
.slide-content,
.ninja-asset {
  position: relative;
  z-index: 1;
}

.slide-meta,
.slide-footer {
  min-height: 46px;
  padding: 16px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--orange);
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 700;
}

.template-label,
.counter-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 0;
  background: var(--orange);
  color: var(--white);
  white-space: nowrap;
  text-transform: uppercase;
}

.slide-content {
  min-height: 0;
  padding: clamp(22px, 4.2vw, 62px) clamp(38px, 6vw, 86px);
}

.compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.7fr) minmax(280px, 0.7fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}

.hero-strip {
  align-self: stretch;
  display: grid;
  align-content: center;
  min-width: 0;
}

.eyebrow,
.block-label {
  margin: 0 0 12px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  background: var(--orange);
  color: var(--white);
  font-size: clamp(16px, 1.8vw, 28px);
  font-weight: 700;
  text-align: center;
  width: fit-content;
  max-width: 100%;
}

.slide-title,
.mega-title,
.dashboard-title {
  margin: 0;
  color: var(--orange);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.slide-title {
  font-size: clamp(40px, 5.5vw, 78px);
}

.labeled-block {
  min-height: min(48vh, 420px);
  padding: clamp(18px, 2.7vw, 34px);
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--orange);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
}

.slide-body,
.message-body,
.metric-text {
  margin: 0;
  color: var(--orange);
  line-height: 1.55;
  font-size: clamp(19px, 2.1vw, 32px);
  font-weight: 700;
}

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(12px, 1.7vw, 22px);
}

.bullet-list li {
  position: relative;
  padding-left: 30px;
  color: var(--orange);
  line-height: 1.42;
  font-size: clamp(18px, 2vw, 31px);
  font-weight: 700;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 12px;
  background: var(--orange);
  transform: translateY(-50%) rotate(45deg);
}

.centered-message {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding-inline: clamp(54px, 9vw, 140px);
}

.mega-title {
  font-size: clamp(58px, 8.6vw, 128px);
  max-width: 12ch;
}

.message-body {
  margin-top: 26px;
  color: var(--ink);
  max-width: 44ch;
}

.message-tags {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  background: var(--white);
  color: var(--orange);
  border: 2px solid var(--orange);
  font-size: clamp(14px, 1.3vw, 19px);
  font-weight: 700;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

blockquote {
  margin: 0;
  padding: clamp(24px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.72);
  border-left: 18px solid var(--orange);
}

.quote-text {
  margin: 0;
  color: var(--orange);
  font-size: clamp(36px, 5vw, 78px);
  font-weight: 700;
  line-height: 1.16;
  text-wrap: balance;
}

.quote-cite {
  display: block;
  margin-top: 26px;
  color: var(--ink);
  font-style: normal;
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 700;
}

.quote-visual {
  display: grid;
  gap: 18px;
}

.quote-image {
  width: min(100%, 320px);
  justify-self: center;
  filter: drop-shadow(0 16px 24px rgba(255, 98, 0, 0.2));
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(24px, 4.4vw, 64px);
  align-items: center;
}

.dashboard-title {
  font-size: clamp(38px, 5.2vw, 82px);
}

.dashboard-overview .slide-body {
  margin-top: 28px;
  color: var(--ink);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.metric-tile {
  min-height: 150px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 3px solid var(--orange);
  display: grid;
  align-content: space-between;
}

.metric-number {
  color: var(--white);
  background: var(--orange);
  width: 54px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
}

.metric-text {
  margin-top: 18px;
}

.ninja-asset {
  position: absolute;
  width: clamp(140px, 18vw, 300px);
  height: auto;
  pointer-events: none;
  opacity: 0.96;
  filter: drop-shadow(0 16px 22px rgba(255, 98, 0, 0.18));
}

.ninja-pointing {
  right: clamp(22px, 5vw, 78px);
  bottom: clamp(18px, 4vw, 64px);
}

.ninja-thumbs-up {
  left: clamp(24px, 6vw, 86px);
  bottom: clamp(18px, 4vw, 58px);
}

.ninja-explaining {
  width: clamp(110px, 14vw, 220px);
  right: auto;
  left: clamp(26px, 5vw, 80px);
  bottom: clamp(20px, 4vw, 56px);
}
.ninja-arms-crossed {
  width: clamp(92px, 11vw, 170px);
  right: clamp(24px, 4vw, 58px);
  top: clamp(78px, 9vw, 126px);
  opacity: 0.2;
}

.note-label,
.updated-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes softIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  .app-shell {
    min-height: 100vh;
    height: auto;
  }

  .slide-card {
    aspect-ratio: auto;
    min-height: calc(100vh - var(--stage-pad) * 2);
    max-height: none;
  }

  .compare-layout,
  .quote-layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .slide-meta,
  .slide-footer {
    padding: 12px 18px;
  }

  .slide-content {
    padding: 24px 20px 42px;
  }

  .labeled-block,
  .metric-tile {
    min-height: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .ninja-asset {
    width: 132px;
    opacity: 0.2;
  }
}