/* ===============================================
   SHIFT AI Slide Templates — slide-only styles
   Canvas: 1920 × 1080. All units are design px.
   =============================================== */

.slide {
  width: 1920px;
  height: 1080px;
  /* Brand background is the default base for every slide.
     Variants such as .section-divider and .quote-slide override it with
     their own `background:` shorthand, which wipes the image. */
  background: #fff url('../assets/background.png') center / cover no-repeat;
  color: var(--fg-strong);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

/* ——— Header band (default layout) ——— */
.header-band {
  height: 120px;
  background: linear-gradient(90deg, #FF5757 0%, #8C52FF 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 0 80px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.header-band > span:first-child {
  min-width: 0;
}
.header-band .pageno {
  font-size: 24px;
  font-weight: 500;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  opacity: 0.88;
}
.header-band .header-logo,
.slide.cover .band-logo {
  height: 56px;
  width: auto;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.body {
  padding: 80px;
  height: calc(1080px - 120px);
  box-sizing: border-box;
}

.slide-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  color: var(--fg-strong);
}

.eyebrow-inline {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-0);
  margin-bottom: 24px;
}

.lead {
  font-size: 32px;
  line-height: 1.5;
  color: var(--neutral-1);
  letter-spacing: 0.02em;
  margin: 0 0 48px;
  font-weight: 500;
}

.gradient-text {
  background: linear-gradient(90deg, #FF5757, #8C52FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =============== 01 · Cover =============== */
.slide.cover .band {
  height: 120px;
  background: linear-gradient(90deg, #FF5757 0%, #8C52FF 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  color: #fff;
  font-weight: 700;
}
.slide.cover .band-logo {
  height: 64px;
}
.slide.cover .band-meta  { font-size: 24px; font-weight: 500; font-family: 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.08em; opacity: 0.88; }

.cover-body {
  padding: 160px 80px 80px;
  position: relative;
  z-index: 1;
}
.cover-body .eyebrow {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary-0);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.cover-title {
  font-size: 160px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
}
.cover-sub {
  font-size: 40px;
  font-weight: 500;
  color: var(--neutral-1);
  letter-spacing: 0.02em;
  margin: 0 0 120px;
}
.cover-meta {
  font-size: 24px;
  color: var(--neutral-3);
  letter-spacing: 0.04em;
}
.cover-meta .sep { margin: 0 16px; color: var(--neutral-6); }

.slide.cover .corner-blob {
  position: absolute;
  left: -200px;
  bottom: -200px;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  background: var(--primary-9);
  opacity: 0.6;
  z-index: 0;
}

/* =============== 02 · Section divider =============== */
.slide.section-divider {
  background: linear-gradient(135deg, #e6033d 0%, #673ba0 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 160px;
  gap: 80px;
}
.slide.section-divider * {
  color: #fff;
}
.sd-number {
  font-size: 360px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.sd-title { flex: 1; }
.sd-en {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 0.7;
  margin-bottom: 32px;
}
.sd-title h2 {
  font-size: 112px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.sd-rule {
  position: absolute;
  left: 160px; right: 160px; bottom: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.72);
}

/* =============== 03 · Agenda =============== */
.agenda {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--neutral-9);
}
.agenda li {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 8px;
  border-bottom: 1px solid var(--neutral-9);
  font-size: 40px;
  font-weight: 500;
}
.agenda .num {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 48px;
  color: var(--primary-0);
  letter-spacing: 0;
  width: 96px;
}
.agenda .name { flex: 1; color: var(--fg-strong); }
.agenda .time {
  font-size: 28px;
  color: var(--neutral-4);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

/* =============== 04 · Standard content bullets =============== */
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bullets li {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 40px;
  font-weight: 500;
  color: var(--fg-strong);
  padding: 24px 32px;
  background: var(--primary-9);
  border-radius: 16px;
}
.b-check {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--primary-0);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  flex: none;
}

/* =============== 05 · Three column =============== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.col-card {
  background: #fff;
  border: 1px solid var(--neutral-9);
  border-radius: 24px;
  padding: 56px 48px;
  box-shadow: 0 4px 24px rgba(51,51,51,0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 480px;
}
.col-num {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-0);
  letter-spacing: 0.04em;
}
.col-head {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  line-height: 1.15;
}
.col-card p {
  font-size: 28px;
  line-height: 1.6;
  color: var(--neutral-1);
  letter-spacing: 0.02em;
  margin: 0;
  flex: 1;
}

/* =============== 06 · Comparison =============== */
.compare {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 24px;
  align-items: stretch;
}
.c-side {
  padding: 48px;
  border-radius: 24px;
  min-height: 560px;
}
.c-side.before {
  background: var(--neutral-9);
  color: var(--neutral-1);
}
.c-side.after {
  background: var(--primary-0);
  color: #fff;
}
.c-tag {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 32px;
}
.c-side.before .c-tag { background: #fff; color: var(--neutral-2); }
.c-side.after .c-tag { background: rgba(255,255,255,0.18); color: #fff; }
.c-side h4 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 32px;
}
.c-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.c-side li { padding-left: 28px; position: relative; }
.c-side li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}
.c-arrow {
  align-self: center;
  font-size: 80px;
  font-weight: 700;
  color: var(--primary-0);
  text-align: center;
}
.c-vs {
  align-self: center;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FF5757, #8C52FF);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-align: center;
}

/* =============== 07 · Stat =============== */
.stat-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: center; }
.stat-label {
  font-size: 32px;
  font-weight: 500;
  color: var(--neutral-2);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}
.stat-number {
  font-size: 400px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FF5757, #8C52FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-number .unit {
  font-size: 200px;
  margin-left: 8px;
}
.stat-caption {
  font-size: 24px;
  color: var(--neutral-4);
  margin-top: 32px;
  letter-spacing: 0.02em;
}
.stat-side { display: flex; flex-direction: column; gap: 24px; }
.mini-stat {
  background: var(--primary-9);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.mini-num {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-0);
  line-height: 1;
}
.mini-num .u { font-size: 40px; margin-left: 4px; }
.mini-lbl {
  font-size: 24px;
  font-weight: 500;
  color: var(--neutral-2);
  letter-spacing: 0.04em;
}

/* =============== 08 · Quote =============== */
.slide.quote-slide {
  background: var(--neutral-0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 160px;
}
.quote-wrap { max-width: 1400px; text-align: left; position: relative; }
.quote-mark {
  font-size: 320px;
  line-height: 0.8;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  background: none;
  -webkit-text-fill-color: #a51e6d;
  color: #a51e6d;
  margin-bottom: -40px;
}
blockquote {
  font-size: 96px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 56px;
}
.quote-attr {
  font-size: 28px;
  color: var(--neutral-6);
  letter-spacing: 0.04em;
}

/* =============== 09 · Closing =============== */
.slide.closing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  position: relative;
}
.closing-body { text-align: center; position: relative; z-index: 1; }
.closing-thanks {
  font-size: 200px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 48px;
}
.closing-jp {
  font-size: 48px;
  font-weight: 500;
  color: var(--fg-strong);
  letter-spacing: 0.04em;
  margin-bottom: 96px;
}
.closing-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 28px;
  color: var(--neutral-2);
}
.c-row { display: flex; gap: 40px; justify-content: center; align-items: baseline; }
.c-lbl {
  font-weight: 700;
  color: var(--primary-0);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 20px;
  min-width: 80px;
  text-align: right;
}
.c-val {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  text-align: left;
}
.closing-band {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 24px;
  background: linear-gradient(90deg, #FF5757, #8C52FF);
}

/* =============== 10 · Dialogue (掛け合い) ===============
   Pop-leaning learning-content variant. Keeps brand colors
   (primary = teacher, secondary = learner, neutral = 3rd)
   but allows larger/friendlier treatment than standard body
   slides. Use for Q&A, tutorial dialogues, character-driven
   learning content.
*/
.slide.dialogue-slide .body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.dialogue-stream {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
  align-items: stretch;
}
.dialogue-turn {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 1440px;
}
.dialogue-turn--left  { align-self: flex-start; }
.dialogue-turn--right { align-self: flex-end; flex-direction: row-reverse; }

.dialogue-avatar {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
  border: 4px solid #fff;
}
.dialogue-avatar img {
  width: 100%; height: 100%;
  border-radius: 999px; object-fit: cover;
  display: block;
}
.dialogue-avatar--teacher {
  background: var(--primary-0);
  box-shadow: 0 0 0 4px var(--primary-0), 0 10px 28px rgba(165,30,109,0.28);
}
.dialogue-avatar--learner {
  background: var(--secondary-0);
  box-shadow: 0 0 0 4px var(--secondary-0), 0 10px 28px rgba(3,149,120,0.28);
}
.dialogue-avatar--neutral {
  background: var(--neutral-2);
  box-shadow: 0 0 0 4px var(--neutral-2), 0 10px 28px rgba(51,51,51,0.22);
}

.dialogue-bubble {
  position: relative;
  padding: 28px 40px 32px;
  border-radius: 28px;
  max-width: 1180px;
  box-shadow: 0 8px 24px rgba(51,51,51,0.08);
}
.dialogue-bubble--teacher { background: var(--primary-9); }
.dialogue-bubble--learner { background: var(--secondary-9); }
.dialogue-bubble--neutral { background: var(--neutral-9); }

/* Speech tail — pointing toward the avatar */
.dialogue-turn--left .dialogue-bubble::before {
  content: '';
  position: absolute;
  left: -16px; top: 42px;
  width: 0; height: 0;
  border-top: 12px solid transparent;
  border-bottom: 18px solid transparent;
  border-right: 20px solid currentColor;
  color: var(--primary-9);
}
.dialogue-turn--left .dialogue-bubble--learner::before { color: var(--secondary-9); }
.dialogue-turn--left .dialogue-bubble--neutral::before { color: var(--neutral-9); }

.dialogue-turn--right .dialogue-bubble::before {
  content: '';
  position: absolute;
  right: -16px; top: 42px;
  width: 0; height: 0;
  border-top: 12px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 20px solid currentColor;
  color: var(--secondary-9);
}
.dialogue-turn--right .dialogue-bubble--teacher::before { color: var(--primary-9); }
.dialogue-turn--right .dialogue-bubble--neutral::before { color: var(--neutral-9); }

.dialogue-name {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
  color: #fff;
}
.dialogue-bubble--teacher .dialogue-name { background: var(--primary-0); }
.dialogue-bubble--learner .dialogue-name { background: var(--secondary-0); }
.dialogue-bubble--neutral .dialogue-name { background: var(--neutral-2); }

.dialogue-bubble p {
  font-size: 32px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--neutral-0);
  font-weight: 500;
}
.dialogue-bubble strong {
  font-weight: 700;
}
.dialogue-bubble--teacher strong { color: var(--primary-0); }
.dialogue-bubble--learner strong { color: var(--secondary-0); }

/* Solo explanation variant — single speaker, larger avatar + bubble */
.dialogue-solo {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 56px 64px;
  background: var(--primary-9);
  border-radius: 32px;
  margin-top: 16px;
}
.dialogue-solo.dialogue-solo--learner { background: var(--secondary-9); }
.dialogue-solo .dialogue-avatar {
  width: 220px;
  height: 220px;
  font-size: 88px;
}
.dialogue-solo .solo-body { flex: 1; }
.dialogue-solo .dialogue-name { font-size: 24px; margin-bottom: 16px; }
.dialogue-solo p {
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--neutral-0);
  font-weight: 500;
}
.dialogue-solo strong { color: var(--primary-0); font-weight: 700; }
.dialogue-solo.dialogue-solo--learner strong { color: var(--secondary-0); }
