/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --c-base: #ffe900;
  --c-main: #1a1a1a;
  --c-accent: #ffcc00;
  --c-accent-dark: #e6b800;
  --c-muted: #555555;
  --c-light: #fff176;
  --c-border: #ffd600;
  --slide-w: 1920;
  --slide-h: 1080;
}

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

/* ── Custom Cursor (banana) ── */
*, *::before, *::after {
  cursor: url('../image/cursor-small.png') 12 12, auto !important;
}

a, button, [role="button"],
.menu-btn, .sidebar-section-title,
.sidebar-slide-list li,
[style*="cursor: pointer"],
[cursor="pointer"] {
  cursor: url('../image/cursor-small.png') 12 12, pointer !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1a1a;
  font-family: "Noto Sans JP", "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Slide Stage ── */
.slide-stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  background: #1a1a1a;
  position: relative;
}

.slide {
  width: 100vw;
  height: 100vh;
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: var(--c-base);
  color: var(--c-main);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  container-type: inline-size;
}

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

/* ── Cover Slide ── */
.slide.cover-slide {
  background: none;
  padding: 0;
}
.slide-cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Slide Content ── */
.slide-content {
  width: 100%;
  height: 100%;
  padding: 5% 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Typography (cqw) ── */
.slide-h1 {
  font-size: clamp(2.6rem, 5.2cqw, 4.8rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.slide-h2 {
  font-size: clamp(2.2rem, 4.8cqw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.slide-h3 {
  font-size: clamp(1.8rem, 3.8cqw, 3.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.slide-title {
  font-size: clamp(1.4rem, 2.8cqw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.slide-body {
  font-size: clamp(1.2rem, 2.4cqw, 2rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.slide-caption {
  font-size: clamp(0.85rem, 1.4cqw, 1.1rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--c-muted);
}

.slide-number-huge {
  font-size: clamp(5rem, 14cqw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--c-accent);
}

.slide-number-unit {
  font-size: clamp(1.6rem, 3.2cqw, 2.8rem);
  font-weight: 700;
  color: var(--c-main);
}

/* ── Layouts ── */

/* center */
.layout-center {
  text-align: center;
  align-items: center;
  gap: 2rem;
}

/* section (bridge) — dark bg with vivid yellow text */
.layout-section {
  background: #1a1a1a;
  color: #ffe900;
}

.layout-section .slide-content {
  text-align: center;
  align-items: center;
  gap: 1.5rem;
}

.layout-section .slide-h1 {
  color: #ffe900;
}

.layout-section .slide-body {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.6rem, 3.4cqw, 3rem);
  font-weight: 700;
}

/* split-2 */
.layout-split-2 .slide-content {
  gap: 2.5rem;
}

.split-2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
}

.split-2-col {
  padding: 2.5rem;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  border-left: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.split-2-col .col-label {
  font-size: clamp(1rem, 2cqw, 1.6rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
}

.split-2-col .col-content {
  font-size: clamp(1.1rem, 2.2cqw, 1.8rem);
  line-height: 1.6;
  color: #333;
}

/* Highlight right column for comparison slides */
.split-2-col:last-child {
  background: #1a1a1a;
  color: #fff;
}
.split-2-col:last-child .col-label {
  color: #fff;
}
.split-2-col:last-child .col-content {
  color: #fff;
}

/* split-3 */
.layout-split-3 .slide-content {
  gap: 2.5rem;
}

.split-3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
}

.split-3-col {
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  border-bottom: 4px solid var(--c-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.split-3-col .col-label {
  font-size: clamp(1.4rem, 2.8cqw, 2.4rem);
  font-weight: 900;
  color: #1a1a1a;
}

.split-3-col .col-content {
  font-size: clamp(1rem, 2cqw, 1.6rem);
  line-height: 1.6;
  color: #333;
}

/* Highlight column */
.split-3-col.highlight {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  box-shadow: 0 8px 32px rgba(255, 233, 0, 0.4);
  transform: scale(1.05);
}

.split-3-col.highlight .col-label {
  color: #fff;
}

.split-3-col.highlight .col-content {
  color: #fff;
  font-size: clamp(1.4rem, 2.8cqw, 2.4rem);
  font-weight: 900;
}

a.split-3-col {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.split-3-col:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.col-cta {
  display: inline-block;
  margin-top: auto;
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #b5cc18, #21ba45);
  color: #fff;
  font-size: clamp(0.8rem, 1.6cqw, 1.1rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  transition: filter 0.2s;
}
a.split-3-col:hover .col-cta {
  filter: brightness(1.1);
}

/* top-bottom (numbered list) */
.layout-top-bottom .slide-content {
  gap: 2rem;
}

.top-bottom-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.top-bottom-item {
  padding: 1.2rem 2rem;
  background: transparent;
  border-radius: 0;
  border-left: 5px solid var(--c-accent);
  font-size: clamp(1rem, 2cqw, 1.6rem);
  line-height: 1.6;
}

/* quote */
.layout-quote .slide-content {
  text-align: center;
  align-items: center;
  gap: 2rem;
}

.layout-quote .slide-h2 {
  font-size: clamp(1.6rem, 3.2cqw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--c-main);
  position: relative;
  padding: 1rem 2rem;
}

.layout-quote .slide-h2::before {
  content: "\201C";
  position: absolute;
  top: -0.4em;
  left: -0.2em;
  font-size: 4em;
  color: var(--c-accent);
  opacity: 0.3;
  font-style: normal;
  line-height: 1;
}

/* flow */
.layout-flow .slide-content {
  gap: 2.5rem;
}

.flow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.flow-step {
  flex: 1;
  padding: 1.5rem 1rem;
  background: rgba(255, 233, 0, 0.08);
  border-bottom: 3px solid var(--c-accent);
  border-radius: 0;
  text-align: center;
  font-size: clamp(0.9rem, 1.8cqw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
}

.flow-arrow {
  flex: 0 0 auto;
  padding: 0 0.5rem;
  color: var(--c-accent);
  font-size: clamp(1rem, 2cqw, 1.6rem);
  font-weight: 700;
}

/* big-number */
.layout-big-number .slide-content {
  text-align: center;
  align-items: center;
  gap: 1rem;
}

/* left-right */
.layout-left-right .slide-content {
  gap: 2rem;
}

.left-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
}

.left-right-grid > div {
  padding: 2.5rem;
  background: transparent;
  border-left: 5px solid var(--c-accent);
  display: flex;
  align-items: center;
}

.left-right-grid > div p {
  font-size: clamp(1.1rem, 2.2cqw, 1.8rem);
  line-height: 1.6;
}

/* accent highlight (action slides) */
.accent-slide {
  border: none;
  background: #1a1a1a !important;
  color: #ffe900 !important;
}

.accent-slide .slide-content {
  color: #ffe900;
}

.accent-slide .slide-h2 {
  color: #ffe900;
}

.accent-slide .slide-body {
  color: rgba(255, 255, 255, 0.9);
}

.accent-slide .slide-footer {
  color: rgba(255, 255, 255, 0.6);
}

/* footer on slides */
.slide-footer {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(0.85rem, 1.4cqw, 1.1rem);
  color: var(--c-muted);
  padding: 0 7%;
  line-height: 1.6;
}

/* ── Status Bar ── */
.status-bar {
  position: fixed;
  top: 16px;
  right: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  pointer-events: none;
}

.status-agenda {
  opacity: 0.8;
}

.status-slide-num {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 10px;
  border-radius: 4px;
}

/* ── Menu Button ── */
.menu-btn {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Sidebar ── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 85vw;
  height: 100vh;
  background: #1a1a1a;
  color: #ffe900;
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 80px 24px 32px;
}

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

.sidebar-cta {
  display: block;
  text-align: center;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #b5cc18, #21ba45);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.sidebar-cta:hover {
  opacity: 0.85;
}

.sidebar h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-section-title {
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.sidebar-section-title:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-section-title.active {
  background: rgba(255, 233, 0, 0.2);
  color: #ffe900;
}

.sidebar-section-title .time {
  font-size: 12px;
  opacity: 0.5;
  font-weight: 400;
}

.sidebar-slide-list {
  list-style: none;
  padding: 4px 0 4px 24px;
}

.sidebar-slide-list li {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, color 0.15s;
}

.sidebar-slide-list li:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-slide-list li.active {
  color: #ffe900;
  font-weight: 600;
}

/* ── Talk Script ── */
.script-trigger {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 80;
}

.script-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 30vh;
  background: rgba(26, 26, 26, 0.95);
  color: #fff;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.2s ease;
  overflow-y: auto;
  padding: 24px 40px;
  font-size: 16px;
  line-height: 1.8;
  backdrop-filter: blur(8px);
}

.script-panel.visible {
  transform: translateY(0);
}

.script-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ── Agenda Timeline Layout ── */
.layout-agenda-timeline {
  gap: 2rem;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 1100px;
}

.agenda-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.agenda-row:last-child {
  border-bottom: none;
}

.agenda-time {
  font-family: "Inter", monospace;
  font-size: clamp(1rem, 2cqw, 1.5rem);
  font-weight: 700;
  color: var(--c-main);
  min-width: 11rem;
  opacity: 0.6;
}

.agenda-label {
  flex: 1;
  font-size: clamp(1.1rem, 2.2cqw, 1.8rem);
  font-weight: 700;
  color: var(--c-main);
}

.agenda-duration {
  font-size: clamp(0.85rem, 1.4cqw, 1.1rem);
  font-weight: 400;
  color: var(--c-main);
  opacity: 0.4;
  min-width: 4rem;
  text-align: right;
}

/* ── Prompt Layout (dark terminal style) ── */
.layout-prompt {
  align-items: center;
  gap: 1.5rem;
}

.prompt-label {
  font-size: clamp(1.2rem, 2.4cqw, 2rem);
  font-weight: 700;
  color: var(--c-main);
  text-align: center;
  letter-spacing: 0.05em;
}

.prompt-box {
  width: 85%;
  max-width: 1400px;
  background: #1e1e1e;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #333;
  color: #ccc;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.copy-btn:hover {
  background: #555;
  color: #fff;
}

.copy-tooltip {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-base);
  color: var(--c-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  animation: tooltipPop 0.3s ease;
}
.copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--c-base);
  border-bottom: 0;
}
@keyframes tooltipPop {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.prompt-box::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #ff5f57;
  border-radius: 50%;
  box-shadow: 20px 0 0 #febc2e, 40px 0 0 #28c840;
}

.prompt-cursor {
  position: absolute;
  top: 2.5rem;
  right: 3rem;
  color: #ffd600;
  font-size: 1.4rem;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.prompt-text {
  margin-top: 1.5rem;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: clamp(1rem, 2cqw, 1.6rem);
  line-height: 1.8;
  color: #e0e0e0;
  white-space: pre-wrap;
}

/* ── Prompt Result Layout (prompt + generated image) ── */
.layout-prompt-result {
  align-items: center;
  gap: 1.2rem;
}

.prompt-result-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.3fr;
  gap: 1.5rem;
  align-items: center;
  width: 92%;
  max-width: 1600px;
}

.prompt-box-sm {
  padding: 1.5rem 2rem !important;
  width: 100%;
}

.prompt-box-sm .prompt-text {
  margin-top: 0.8rem;
  font-size: clamp(1rem, 2cqw, 1.5rem);
  line-height: 1.7;
}

.prompt-result-arrow {
  font-size: clamp(1.5rem, 3cqw, 2.5rem);
  font-weight: 900;
  color: var(--c-main);
  opacity: 0.4;
}

.prompt-result-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-result-img img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ── List Banner Layout (white strips) ── */
.layout-list-banner {
  text-align: center;
  align-items: center;
  gap: 2rem;
}

.list-banner-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 900px;
}

.list-banner-item {
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: clamp(1.1rem, 2.2cqw, 1.8rem);
  font-weight: 700;
  color: var(--c-main);
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Progress Bar ── */
.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--c-accent);
  z-index: 70;
  transition: width 0.2s ease;
}
