/* ============================================================
   株式会社みみずや — Presentation Theme
   長野高専「エンジニアリングデザイン実践」ガイダンス用
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

:root {
  --color-earth-deep:    #3D2E24;
  --color-earth-brown:   #6B5B4E;
  --color-earth-warm:    #9B8A70;
  --color-forest-deep:   #2A5C48;
  --color-forest:        #3D8B6E;
  --color-leaf:          #6BC4A0;
  --color-leaf-light:    #A8E0C8;
  --color-sky:           #A8D4E6;
  --color-sky-light:     #D4EBF3;
  --color-cream:         #FDFBF8;
  --color-cream-dark:    #F5F0E8;
  --color-white:         #FFFFFF;
  --color-black:         #1A1A1A;
  --color-text:          #3D3D3D;
  --color-text-light:    #6B7280;
  --color-border:        #E8E2D9;
  --color-accent-gold:   #D4B87A;
  --color-accent-sunset: #D4956B;

  --font-heading: 'Noto Serif JP', serif;
  --font-body:    'Noto Sans JP', sans-serif;
  --font-round:   'Zen Maru Gothic', sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-cream);
}

.reveal {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 32px;
}

/* Force all slides to fill the full 1920×1080 viewport */
.reveal .slides section {
  padding: 80px 100px 60px;
  box-sizing: border-box;
  text-align: left;
  height: 1080px !important;
  width: 1920px !important;
}

/* ============================================================
   Typography
   ============================================================ */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  font-family: var(--font-heading);
  color: var(--color-earth-deep);
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  margin: 0;
}

.reveal h2 {
  font-size: 56px;
  margin-bottom: 48px;
}

.reveal h3 {
  font-size: 40px;
  margin-bottom: 24px;
}

.reveal strong {
  font-weight: 700;
  color: var(--color-earth-deep);
}

.reveal p {
  line-height: 1.9;
  margin-bottom: 28px;
}

.reveal small {
  font-size: 22px;
  color: var(--color-text-light);
}

/* ============================================================
   Lists
   ============================================================ */
.reveal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reveal ul li {
  position: relative;
  padding-left: 36px;
  line-height: 1.7;
  font-size: 30px;
}

.reveal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-leaf);
}

.reveal ul ul {
  margin-top: 12px;
  margin-left: 20px;
  gap: 12px;
}

.reveal ul ul li {
  font-size: 26px;
}

.reveal ul ul li::before {
  width: 8px;
  height: 8px;
  top: 12px;
  background-color: var(--color-earth-warm);
}

/* ============================================================
   Header & Footer (injected by JS)
   ============================================================ */
.slide-header {
  position: absolute;
  top: 36px;
  left: 80px;
  right: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.slide-header img {
  height: 40px;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.slide-header .header-text {
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-earth-warm);
  letter-spacing: 0.1em;
}

.slide-footer {
  position: absolute;
  bottom: 0;
  left: 80px;
  right: 80px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-earth-warm);
  z-index: 10;
}

/* ============================================================
   Section Label
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-earth-warm);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-label::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-sky);
  margin: 12px 0 0;
}

/* ============================================================
   Title Slide (Cover)
   ============================================================ */
.reveal .slides section.title-slide {
  padding: 0;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--color-forest-deep) 0%, var(--color-earth-deep) 100%);
  position: relative;
  overflow: hidden;
}

.title-slide::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 196, 160, 0.12), transparent 70%);
}

.title-slide::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 212, 230, 0.08), transparent 70%);
}

.title-slide h1 {
  font-family: var(--font-round);
  font-size: 72px;
  margin-bottom: 32px;
  line-height: 1.4;
  color: var(--color-white);
  position: relative;
  z-index: 2;
}

.title-slide h1 .accent {
  display: block;
  background: linear-gradient(135deg, var(--color-leaf-light), var(--color-accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 80px;
}

.title-slide p {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

.title-slide .title-meta {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 2;
}

.title-slide .slide-footer {
  border-top-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   Center Slide (Impact / Quote)
   ============================================================ */
.reveal .slides section.center-slide {
  padding: 0;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ============================================================
   Dark Slide
   ============================================================ */
.reveal .dark-slide {
  background: linear-gradient(160deg, var(--color-forest-deep), #1E4A38);
  position: relative;
  overflow: hidden;
}

.reveal .dark-slide::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 196, 160, 0.08), transparent 70%);
}

.reveal .dark-slide h1,
.reveal .dark-slide h2,
.reveal .dark-slide h3,
.reveal .dark-slide h4 {
  color: var(--color-white);
}

.reveal .dark-slide p,
.reveal .dark-slide li {
  color: rgba(255, 255, 255, 0.85);
}

.reveal .dark-slide .section-label {
  color: var(--color-leaf-light);
}

.reveal .dark-slide .section-label::after {
  background: rgba(168, 224, 200, 0.4);
}

.reveal .dark-slide .slide-header .header-text {
  color: rgba(255, 255, 255, 0.5);
}

.reveal .dark-slide .slide-header img {
  filter: brightness(0) invert(1);
}

.reveal .dark-slide .slide-footer {
  border-top-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
}

/* Dark-earth variant */
.reveal .dark-earth {
  background: linear-gradient(160deg, var(--color-earth-deep), #2C1F16);
}

.reveal .dark-earth::before {
  background: radial-gradient(circle, rgba(212, 184, 122, 0.08), transparent 70%);
}

/* ============================================================
   Impact Slide (big text only)
   ============================================================ */
.reveal .impact-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px !important;
}

.reveal .impact-slide h2 {
  font-family: var(--font-round);
  font-size: 72px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.reveal .impact-slide p {
  font-size: 32px;
  max-width: 1200px;
}

/* ============================================================
   Two Column Layout
   ============================================================ */
.two-col {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  margin-top: 20px;
}

.two-col > * {
  flex: 1;
}

.two-col--center {
  align-items: center;
}

/* ============================================================
   Cards
   ============================================================ */
.slide-grid {
  display: grid;
  gap: 32px;
}

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

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

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

.slide-card {
  background: var(--color-white);
  padding: 40px 36px;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(61, 46, 36, 0.05);
  border: 1px solid var(--color-border);
}

.slide-card h3 {
  font-family: var(--font-round);
  font-size: 30px;
  margin-bottom: 16px;
  color: var(--color-forest-deep);
}

.slide-card p {
  font-size: 24px;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.slide-card .card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-forest-deep), var(--color-forest));
  color: var(--color-white);
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.slide-card .card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

/* Dark-slide cards */
.reveal .dark-slide .slide-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.reveal .dark-slide .slide-card h3 {
  color: var(--color-leaf-light);
}

.reveal .dark-slide .slide-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Quote Block
   ============================================================ */
.quote-block {
  position: relative;
  padding: 48px 56px;
  background: var(--color-white);
  border-radius: 20px;
  border-left: 6px solid var(--color-leaf);
  box-shadow: 0 4px 20px rgba(61, 46, 36, 0.06);
  margin: 32px 0;
}

.quote-block p {
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.8;
  color: var(--color-earth-deep);
  margin-bottom: 0;
}

.quote-block .quote-author {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--color-text-light);
  margin-top: 24px;
  margin-bottom: 0;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-leaf), var(--color-sky));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-forest);
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-forest);
}

.timeline-item .time-label {
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 26px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================================
   Highlight / Stat
   ============================================================ */
.stat-row {
  display: flex;
  gap: 48px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-item .stat-value {
  font-family: var(--font-round);
  font-size: 56px;
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1.2;
}

.stat-item .stat-unit {
  font-size: 28px;
}

.stat-item .stat-label {
  font-size: 20px;
  color: var(--color-text-light);
  margin-top: 8px;
}

.reveal .dark-slide .stat-item .stat-value {
  color: var(--color-leaf-light);
}

.reveal .dark-slide .stat-item .stat-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Workshop / Work Section
   ============================================================ */
.work-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--color-forest-deep), var(--color-forest));
  color: var(--color-white);
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.work-instruction {
  background: var(--color-cream-dark);
  border-radius: 20px;
  padding: 40px 48px;
  border: 2px dashed var(--color-border);
  margin: 24px 0;
}

.work-instruction h3 {
  font-family: var(--font-round);
  font-size: 32px;
  color: var(--color-forest-deep);
  margin-bottom: 20px;
}

.work-instruction p {
  font-size: 26px;
  margin-bottom: 16px;
}

/* ============================================================
   Agenda step indicator
   ============================================================ */
.agenda-steps {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.agenda-step {
  flex: 1;
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  text-align: center;
  transition: all 0.3s;
}

.agenda-step.active {
  border-color: var(--color-forest);
  background: rgba(61, 139, 110, 0.06);
}

.agenda-step .step-num {
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 8px;
}

.agenda-step .step-title {
  font-family: var(--font-round);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-earth-deep);
  margin-bottom: 6px;
}

.agenda-step .step-time {
  font-size: 18px;
  color: var(--color-text-light);
}

/* ============================================================
   Comparison / Contrast
   ============================================================ */
.contrast-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.contrast-item {
  flex: 1;
  padding: 36px;
  border-radius: 20px;
  text-align: center;
}

.contrast-item--before {
  background: var(--color-cream-dark);
  border: 2px solid var(--color-border);
}

.contrast-item--after {
  background: rgba(61, 139, 110, 0.08);
  border: 2px solid var(--color-leaf);
}

.contrast-item .contrast-label {
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.contrast-item--before .contrast-label {
  color: var(--color-text-light);
}

.contrast-item--after .contrast-label {
  color: var(--color-forest);
}

.contrast-item h3 {
  font-family: var(--font-round);
  font-size: 36px;
  text-align: center;
  margin-bottom: 12px;
}

.contrast-item p {
  font-size: 24px;
  text-align: center;
  margin-bottom: 0;
}

.contrast-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--color-forest);
  padding: 0 8px;
}

/* ============================================================
   Emphasis text
   ============================================================ */
.text-forest {
  color: var(--color-forest) !important;
}

.text-leaf {
  color: var(--color-leaf) !important;
}

.text-accent {
  color: var(--color-accent-gold) !important;
}

.text-muted {
  color: var(--color-text-light) !important;
}

.text-large {
  font-size: 40px !important;
}

.text-xl {
  font-size: 48px !important;
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 12px !important; }
.mb-md { margin-bottom: 24px !important; }
.mt-md { margin-top: 24px !important; }
.mt-lg { margin-top: 48px !important; }

/* ============================================================
   Progress bar (custom)
   ============================================================ */
.reveal .progress {
  background: var(--color-border);
  height: 4px;
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--color-forest), var(--color-leaf));
}
