@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;900&display=swap');

:root {
  --deck-font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --deck-dark: #0c1222;
  --deck-dark2: #141c2e;
  --deck-text: #1a1a1a;
  --deck-muted: #4a5568;
  --deck-accent: #1e5a8a;
  --deck-gold: #c9a227;
  --deck-slide-w: 1280px;
  --deck-slide-ratio: 16 / 9;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body.deck-body {
  font-family: var(--deck-font);
  background: #1a1a1a;
  color: var(--deck-text);
}

.deck-toolbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(12, 18, 34, 0.95);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.deck-toolbar a, .deck-toolbar button {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.deck-toolbar .primary { background: var(--deck-accent); border-color: var(--deck-accent); }

.deck-wrap {
  padding: 56px 20px 40px;
  max-width: calc(var(--deck-slide-w) + 40px);
  margin: 0 auto;
}

/* ===== Slide shell (16:9 like PDF) ===== */
.slide {
  width: 100%;
  max-width: var(--deck-slide-w);
  aspect-ratio: var(--deck-slide-ratio);
  margin: 0 auto 28px;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.slide__inner {
  position: absolute;
  inset: 0;
  padding: 48px 56px 52px;
  display: flex;
  flex-direction: column;
}

/* Header line: Sunforest / セクション */
.slide__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.slide__client {
  font-size: 15px;
  font-weight: 700;
  color: var(--deck-text);
}
.slide__client span { color: var(--deck-muted); font-weight: 500; }
.slide__section-en {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--deck-muted);
  text-transform: uppercase;
}

.slide__title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--deck-text);
}
.slide__subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--deck-accent);
  margin-bottom: 12px;
}
.slide__body {
  flex: 1;
  font-size: 13px;
  line-height: 1.75;
  color: var(--deck-muted);
}
.slide__body p { margin-bottom: 10px; }
.slide__body strong { color: var(--deck-text); font-weight: 700; }

/* Footer (PDF bottom bar) */
.slide__foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 36px;
  background: var(--deck-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 9px;
  color: rgba(255,255,255,.75);
  letter-spacing: 0.02em;
}
.slide__foot-brand {
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.15em;
}

/* ===== Cover (page 1) ===== */
.slide--cover {
  background: var(--deck-dark);
  color: #fff;
}
.slide--cover .slide__inner {
  padding: 0;
  justify-content: flex-end;
}
.slide--cover__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0c1222 0%, #1a3a52 50%, #0c1222 100%);
}
.slide--cover__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.slide--cover__content {
  position: relative;
  z-index: 2;
  padding: 48px 56px 64px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.slide--cover__conf {
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}
.slide--cover__date {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
}
.slide--cover__copy {
  font-size: 9px;
  opacity: 0.5;
  margin-top: 8px;
}
.slide--cover__logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: auto 0 24px;
  line-height: 1.2;
}
.slide--cover__logo small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-top: 8px;
}
.slide--cover h1 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  max-width: 20em;
}
.slide--cover__proposal-date {
  font-size: 12px;
  margin-top: 16px;
  opacity: 0.8;
}

/* Agenda (page 2) */
.slide--agenda .slide__inner {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 30%);
}
.agenda-mission {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--deck-text);
  margin: 20px 0;
  padding-left: 16px;
  border-left: 4px solid var(--deck-accent);
}
.agenda-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  color: var(--deck-accent);
  margin-top: 24px;
}
.agenda-brand-large {
  position: absolute;
  right: 56px;
  bottom: 56px;
  font-size: 64px;
  font-weight: 900;
  color: rgba(30, 90, 138, 0.08);
  line-height: 1;
  pointer-events: none;
}

/* Era columns (page 3) */
.era-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--deck-muted);
}
.era-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.era-col {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  min-height: 140px;
}
.era-col__period {
  font-size: 11px;
  font-weight: 900;
  color: var(--deck-accent);
  margin-bottom: 10px;
}
.era-col__items {
  font-size: 11px;
  line-height: 1.6;
  color: var(--deck-muted);
}
.era-col__era-name {
  font-size: 10px;
  font-weight: 700;
  margin-top: 12px;
  color: var(--deck-text);
}
.era-arrow {
  text-align: center;
  font-size: 11px;
  color: var(--deck-muted);
  margin: 8px 0;
}

/* Purpose (page 4) */
.purpose-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
}
.purpose-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 8px;
}
.purpose-step {
  width: 100%;
  max-width: 280px;
  text-align: center;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--deck-accent);
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
}
.purpose-step:nth-child(2) { width: 92%; background: #2d6a9f; }
.purpose-step:nth-child(3) { width: 84%; background: #3d7ab0; }
.purpose-step:nth-child(4) { width: 76%; background: #5a8fc4; }
.purpose-bullets {
  font-size: 12px;
  line-height: 1.8;
}
.purpose-bullets li { margin-left: 1.2em; margin-bottom: 6px; }
.purpose-four {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 900;
  color: var(--deck-accent);
}

/* Suggestion cards (page 5-6) */
.suggest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}
.suggest-item h4 {
  font-size: 14px;
  font-weight: 900;
  color: var(--deck-accent);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--deck-accent);
}
.suggest-item p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--deck-muted);
}
.suggest-visual {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  max-height: 120px;
}
.suggest-visual img { width: 100%; height: 100%; object-fit: cover; }

/* SNS Role (page 7) */
.role-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  flex: 1;
}
.role-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.role-funnel__step {
  width: 100%;
  text-align: center;
  padding: 8px;
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--deck-text);
}
.role-funnel__step--1 { width: 100%; background: #cbd5e1; }
.role-funnel__step--2 { width: 88%; }
.role-funnel__step--3 { width: 76%; background: var(--deck-accent); color: #fff; }
.role-funnel__step--4 { width: 64%; background: #2d6a9f; color: #fff; }
.role-funnel__step--5 { width: 52%; background: var(--deck-dark); color: #fff; }
.role-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.role-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}
.role-notes {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 12px;
  color: var(--deck-muted);
}

/* Website / demo slide (page 8) */
.renewal-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  flex: 1;
}
.renewal-mock {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  background: #f1f5f9;
  min-height: 200px;
}
.renewal-mock img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.renewal-list {
  list-style: none;
  font-size: 12px;
  line-height: 1.85;
}
.renewal-list li::before {
  content: '・';
  color: var(--deck-accent);
  font-weight: 900;
}
.renewal-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: var(--deck-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* TikTok-style A/B/C (page 9-11) → デモタイプ */
.tt-slide {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  flex: 1;
}
.tt-slide__side {
  font-size: 11px;
  color: var(--deck-muted);
}
.tt-slide__side ul { margin: 8px 0 0 1.2em; line-height: 1.7; }
.tt-slide__mock {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  position: relative;
}
.tt-slide__mock img { width: 100%; max-height: 280px; object-fit: cover; }
.tt-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--deck-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 4px;
}
.tt-effect {
  font-size: 11px;
  font-weight: 900;
  color: var(--deck-gold);
  margin-top: 8px;
}

/* Schedule (page 12-13) */
.schedule-gantt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
}
.gantt-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 8px;
}
.gantt-bar-wrap {
  height: 22px;
  background: #f1f5f9;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.gantt-bar {
  position: absolute;
  top: 2px; bottom: 2px;
  border-radius: 3px;
  background: var(--deck-accent);
  font-size: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-weight: 700;
}
.gantt-bar--2 { background: #2d6a9f; }
.gantt-bar--3 { background: #5a8fc4; }
.org-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  font-size: 9px;
}
.org-cell {
  border: 1px solid #e2e8f0;
  padding: 8px;
  text-align: center;
  background: #f8fafc;
}
.org-cell strong { display: block; font-size: 10px; margin-bottom: 4px; }

/* ===== Estimate (Eight PDF 1 page) ===== */
.estimate-page {
  max-width: 210mm;
  margin: 56px auto 40px;
  background: #fff;
  padding: 12mm 14mm 14mm;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  font-size: 10pt;
  line-height: 1.5;
  color: #000;
}
.est-title {
  text-align: center;
  font-size: 22pt;
  font-weight: 900;
  letter-spacing: 0.35em;
  margin: 8px 0 4px;
}
.est-lead {
  text-align: center;
  font-size: 10pt;
  margin-bottom: 20px;
}
.est-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 9pt;
}
.est-meta-box {
  border: 1px solid #333;
  padding: 10px 12px;
}
.est-meta-box dt {
  font-weight: 700;
  display: inline;
}
.est-meta-box dd {
  display: inline;
  margin-left: 8px;
}
.est-subject {
  font-size: 10pt;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid #999;
  padding-bottom: 6px;
}
.est-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
  margin-bottom: 16px;
}
.est-table th,
.est-table td {
  border: 1px solid #333;
  padding: 6px 8px;
  vertical-align: top;
}
.est-table th {
  background: #f0f0f0;
  font-weight: 700;
  text-align: center;
}
.est-table td.num { text-align: right; white-space: nowrap; }
.est-table .col-detail { width: 38%; }
.est-other {
  margin-top: 16px;
  font-size: 9pt;
}
.est-other h3 {
  font-size: 10pt;
  font-weight: 700;
  margin-bottom: 8px;
  border-left: 4px solid #333;
  padding-left: 8px;
}
.est-other table { margin-top: 8px; }
.est-note {
  font-size: 8.5pt;
  margin-top: 12px;
  line-height: 1.6;
}
.est-company {
  margin-top: 24px;
  text-align: right;
  font-size: 9pt;
  line-height: 1.7;
}
.est-company strong { font-size: 11pt; }

@media print {
  .deck-toolbar, .no-print { display: none !important; }
  body.deck-body { background: #fff; }
  .deck-wrap { padding: 0; max-width: none; }
  .slide {
    box-shadow: none;
    page-break-after: always;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .slide:last-child { page-break-after: auto; }
  .estimate-page {
    box-shadow: none;
    margin: 0;
    max-width: none;
  }
}
