/* IFA法人代表者向け営業資料 — 10 スライドデッキ */

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

:root {
  --primary: #185FA5;
  --primary-dark: #0C447C;
  --primary-light: #E6F1FB;
  --green: #0F6E56;
  --green-light: #E1F5EE;
  --amber: #854F0B;
  --amber-light: #FAEEDA;
  --red: #993C1D;
  --red-light: #FAECE7;
  --purple: #3C3489;
  --purple-light: #EEEDFE;
  --text: #1A1A1A;
  --text-2: #5F5E5A;
  --text-3: #888780;
  --border: #D3D1C7;
  --bg-gray: #F1EFE8;
  --bg-tertiary: #EAE8E0;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Yu Gothic UI", "Yu Gothic", "游ゴシック", "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  background: #000;
  font-family: var(--font);
  color: var(--text);
  overflow: hidden;
  font-feature-settings: "palt";
}

/* ===== Inline SVG sprite icons (parent font-size で自動スケール) ===== */
.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* ===== Deck container (16:9, 1280×720 base) ===== */
.deck-frame {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck {
  width: 1280px;
  height: 720px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  transform-origin: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* ===== Slides ===== */
.slide {
  position: absolute;
  inset: 0;
  padding: 32px 48px 36px;
  display: none;
  flex-direction: column;
}

.slide.active { display: flex; }

.slide-title {
  font-size: 24pt;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slide-subtitle {
  font-size: 15pt;
  color: var(--text-2);
  line-height: 1.35;
  margin-bottom: 14px;
}

.slide-content { flex: 1; min-height: 0; }

.page-num {
  position: absolute;
  right: 32px;
  bottom: 16px;
  font-size: 11pt;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

/* ===== Brand dot logo ===== */
.brand-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: -2px;
  margin-right: 6px;
}
.brand-dot.sm { width: 12px; height: 12px; }
.brand-dot.dim { background: #c6c6c6; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15pt;
  font-weight: 500;
  color: var(--text);
}

/* ===== Service tab indicator (top-right of slides 4-6) ===== */
.service-tab {
  position: absolute;
  top: 32px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13pt;
  font-weight: 500;
  color: #c6c6c6;
}
.service-tab-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
}
.service-tab-item.active .brand-dot { background: var(--primary); }
.service-tab-item .brand-dot { background: #c6c6c6; }
.service-tab-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

/* ===== Slide 1: Cover ===== */
.cover-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 32px;
}
.cover-title {
  font-size: 34pt;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}
.cover-subtitle {
  font-size: 18pt;
  color: var(--text-2);
  text-align: center;
  line-height: 1.35;
  margin-bottom: 28px;
}
.cover-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.cover-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cover-pill {
  font-size: 12pt;
  font-weight: 700;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
  border-radius: 20px;
}

/* ===== Cards (challenges/solutions/merits/etc.) ===== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  height: 100%;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12pt;
  color: var(--text-2);
  background: var(--white);
  border: 0.5px solid var(--text-3);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  align-self: stretch;
  text-align: center;
}
.card-badge.center { /* alias for backward compat, now default */ }

.icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22pt;
  flex-shrink: 0;
}
.icon-circle.red    { background: var(--red-light);    color: var(--red);    border: 1.5px solid var(--red); }
.icon-circle.amber  { background: var(--amber-light);  color: var(--amber);  border: 1.5px solid var(--amber); }
.icon-circle.purple { background: var(--purple-light); color: var(--purple); border: 1.5px solid var(--purple); }
.icon-circle.green  { background: var(--green-light);  color: var(--green);  border: 1.5px solid var(--green); }
.icon-circle.primary{ background: var(--primary-light);color: var(--primary);border: 1.5px solid var(--primary); }

.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22pt;
  flex-shrink: 0;
}
.icon-tile.green   { background: var(--green-light);   color: var(--green);    border: 1.5px solid var(--green); }
.icon-tile.primary { background: var(--primary-light); color: var(--primary-dark); border: 1.5px solid var(--primary-dark); }

.card-title {
  font-size: 18pt;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 14pt;
  color: var(--text-2);
  line-height: 1.35;
}
.card-desc + .card-desc { margin-top: 6px; }

/* ===== Slide 3: Solutions with floating badge + arrow ===== */
.solution-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.solution-badge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 6px;
}
.solution-arrow {
  text-align: center;
  font-size: 16pt;
  color: var(--text-3);
  margin-bottom: 4px;
}
.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}
.brand-mark-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.brand-mark-row > * {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14pt;
  font-weight: 700;
  justify-content: center;
}

/* ===== Slide 4: Funnel ===== */
.section-label {
  font-size: 13pt;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.feat-tile {
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14pt;
  font-weight: 500;
}
.feat-tile .icon { color: var(--primary); width: 20px; height: 20px; }

.funnel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.funnel-step {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13pt;
}
.funnel-step b { font-weight: 700; color: var(--primary-dark); }
.funnel-step .fn-sub { color: var(--primary); font-size: 13pt; }
.funnel-arrow {
  position: absolute;
  right: 38px;
  top: 6px;
  bottom: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.funnel-arrow .shaft {
  flex: 1;
  width: 8px;
  background: var(--primary);
}
.funnel-arrow .head {
  font-size: 22pt;
  color: var(--primary-dark);
  line-height: 1;
  margin-top: -4px;
}
.funnel-goal {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 14pt;
  padding: 8px 20px;
  border-radius: 22px;
  text-align: center;
  min-width: 110px;
}

/* ===== Slide 5: Pitch cards ===== */
.pitch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 100%;
}
.pitch-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pitch-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32pt;
  margin: 18px 0 24px;
}
.pitch-title {
  font-size: 18pt;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
}
.pitch-desc {
  font-size: 14pt;
  color: var(--text-2);
  line-height: 1.35;
}

/* ===== Slide 6: Merit cards (3+2 grid) ===== */
.merit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.merit-card { padding: 14px; }
.merit-card .card-title { font-size: 18pt; margin-bottom: 6px; }
.merit-card .card-desc { font-size: 14pt; line-height: 1.35; }

/* ===== Slide 7: Comparison table ===== */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13pt;
}
.cmp-table th, .cmp-table td {
  padding: 8px 10px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: middle;
}
.cmp-table thead th {
  background: var(--bg-tertiary);
  font-weight: 700;
  color: var(--text-2);
  font-size: 12pt;
  text-align: center;
  line-height: 1.4;
}
.cmp-table thead th.feat { text-align: left; }
.cmp-table thead th.personal { color: var(--primary-dark); }
.cmp-table td.service {
  background: var(--bg-gray);
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  font-size: 13pt;
}
.cmp-table td.plan { text-align: center; }
.cmp-table td.personal-col { background: var(--primary-light); }
.cmp-check { color: var(--green); font-weight: 700; font-size: 14pt; }
.cmp-dash { color: var(--text-3); font-size: 13pt; }
.cmp-partial { color: var(--amber); font-weight: 700; font-size: 12pt; }
.cmp-full { color: var(--green); font-weight: 700; font-size: 12pt; }
.cmp-fee { color: var(--primary-dark); font-weight: 700; font-size: 14pt; }
.cmp-table .feat-col { width: 38%; }
.cmp-table .svc-col { width: 14%; }
.cmp-table .plan-col { width: 16%; }

/* ===== Slide 8: Scenarios ===== */
.scenario-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.scenario-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.scenario-head .icon-tile { width: 40px; height: 40px; margin: 0; font-size: 22pt; }
.scenario-head .titles { display: flex; flex-direction: column; }
.scenario-head .title { font-size: 16pt; font-weight: 700; }
.scenario-head .sub { font-size: 13pt; color: var(--text-3); }

.scenario-bullets {
  list-style: none;
  margin-bottom: 12px;
}
.scenario-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13pt;
  color: var(--text-2);
  line-height: 1.35;
}
.scenario-bullets li .chk {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--primary-light);
  border: 0.5px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13pt;
  flex-shrink: 0;
}
.scenario-bullets li b { font-weight: 700; color: var(--text); }

.reaction-box {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.reaction-label {
  font-size: 13pt;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.reaction-quote {
  font-size: 14pt;
  color: var(--text);
  line-height: 1.35;
}

.effect-tag {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary-light);
  border: 1px solid var(--primary-dark);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13pt;
  padding: 7px 18px;
  border-radius: 22px;
  margin-top: auto;
}

/* ===== Slide 9: Horizontal flow ===== */
.flow-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 100%;
}
.flow-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.flow-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22pt;
  font-weight: 700;
  margin-bottom: 14px;
}
.flow-actor {
  font-size: 12pt;
  color: var(--text-3);
  margin-bottom: 8px;
}
.flow-title {
  font-size: 15pt;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}
.flow-desc {
  font-size: 12pt;
  color: var(--text-2);
  line-height: 1.35;
  text-align: left;
}
.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--text-3);
  font-size: 18pt;
}

/* ===== Slide 10: Summary ===== */
.sum-grid {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  gap: 8px;
  align-items: center;
}
.sum-section {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 18px 20px;
  height: 100%;
}
.sum-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 12px;
}
.sum-head .icon-tile { width: 36px; height: 36px; margin: 0; font-size: 18pt; }
.sum-head-title { font-size: 18pt; font-weight: 700; }
.sum-head-sub { font-size: 13pt; color: var(--text-3); }
.sum-list { list-style: none; }
.sum-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 13pt;
  line-height: 1.35;
}
.sum-list li .chk {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13pt;
  flex-shrink: 0;
}
.sum-list.ifa li .chk { background: var(--green-light); border: 0.5px solid var(--green); color: var(--green); }
.sum-list.corp li .chk { background: var(--primary-light); border: 0.5px solid var(--primary-dark); color: var(--primary-dark); }
.sum-cascade {
  font-size: 22pt;
  color: var(--primary-dark);
  text-align: center;
  font-weight: 700;
}
.sum-closing {
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 18pt;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}
.sum-brand-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 12px;
  font-size: 14pt;
  font-weight: 500;
}
.sum-brand-row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== Fixed UI controls (hidden on print) ===== */
.ctrl {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
}
.ctrl-tr { top: 16px;    right: 16px; flex-direction: column; align-items: flex-end; }
.ctrl-bl { bottom: 16px; left:  16px; }
.ctrl-br { bottom: 16px; right: 16px; flex-direction: column; align-items: flex-end; }
.ctrl-nav-row { display: flex; align-items: center; gap: 8px; }

.ctrl-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: none;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.ctrl-btn:hover { background: var(--white); }
.ctrl-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ctrl-btn .icon { width: 18px; height: 18px; }

/* Icon-only buttons: stay circular */
.ctrl-btn:has(.icon):not(.zoom-btn) {
  width: 36px;
  padding: 0;
  border-radius: 50%;
}

/* Zoom buttons (text "80%" / "100%") */
.zoom-btn {
  font-size: 13px;
  letter-spacing: 0.5px;
}
.zoom-btn.active {
  background: var(--primary-dark);
  color: var(--white);
}
.zoom-btn.active:hover { background: var(--primary); }

.ctrl-indicator {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  padding: 4px 12px;
  border-radius: 12px;
  min-width: 64px;
  text-align: center;
}

/* ===== Share modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal-backdrop.show { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.modal h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.modal button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
}
.modal button:hover { background: var(--primary); color: var(--white); }
.modal .modal-close {
  margin-top: 8px;
  margin-bottom: 0;
  background: var(--bg-gray);
  color: var(--text-2);
  border-color: var(--border);
  text-align: center;
  font-weight: 400;
}

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: var(--white);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 22px;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.2s;
}
.toast.show { opacity: 1; }

/* ===== Print CSS (PDF export) ===== */
@media print {
  @page { size: 13.3in 7.5in; margin: 0; }
  html, body { overflow: visible !important; background: #fff !important; }
  .deck-frame { position: static !important; display: block !important; }
  .deck {
    width: 13.3in !important;
    height: 7.5in !important;
    transform: none !important;
    box-shadow: none !important;
    page-break-after: always;
    overflow: hidden !important;
  }
  .slide {
    display: flex !important;
    position: relative !important;
    page-break-after: always;
    page-break-inside: avoid;
  }
  .deck > .slide:last-child { page-break-after: auto; }
  .ctrl, .modal-backdrop, .toast { display: none !important; }
}

/* ============================================================ */
/* ===== PPTX v6 strict positioning overrides ================= */
/* ============================================================ */
/* Coords derived from `IFA法人代表者向け営業資料_v6.pptx` shape geometry. */
/* Deck canvas: 1280×720. All values are CSS px (EMU/9525). */

/* --- Reset slide padding so children can absolute-position from 0,0 --- */
.slide { padding: 0; }

/* --- Common header/footer positioning (slides 2-10) --- */
.slide > .slide-title  { position: absolute; left: 48px;   top: 28.8px; width: 1180.8px; margin: 0; }
.slide > .slide-subtitle { position: absolute; left: 48px; top: 96px;   width: 1180.8px; margin: 0; }
.slide > .slide-content  { position: absolute; left: 0;    top: 0;     width: 100%; height: 100%; min-height: 0; }
.slide > .page-num       { position: absolute; right: 32px; top: 672px; bottom: auto; }

/* Service tab indicator at top-right (slides 4, 5, 6) */
.slide > .service-tab { position: absolute; top: 41px; right: 48px; }

/* ============================================================ */
/* Slide 1: Cover                                               */
/* ============================================================ */
#slide-1 .cover-card {
  position: absolute; left: 48px; top: 48px;
  width: 1180.8px; height: 624px;
  padding: 0;
  justify-content: flex-start;
}
#slide-1 .cover-title {
  position: absolute; left: 0; top: 134.4px;
  width: 100%; text-align: center; margin: 0;
}
#slide-1 .cover-subtitle {
  position: absolute; left: 0; top: 240px;
  width: 100%; text-align: center; margin: 0;
  line-height: 1.6;
}
#slide-1 .cover-logos {
  position: absolute; left: 0; top: 374.4px;
  width: 100%; justify-content: center; gap: 28.8px;
  margin: 0;
}
#slide-1 .cover-pill-row {
  position: absolute; left: 0; top: 470.4px;
  width: 100%; justify-content: center; gap: 14.4px;
}
#slide-1 .cover-pill {
  height: 43.2px; padding: 0 18px;
  display: inline-flex; align-items: center;
}

/* ============================================================ */
/* Slide 2: 3 経営課題 cards (badge inside card)                 */
/* ============================================================ */
#slide-2 .three-col { display: block; height: 100%; }
#slide-2 .card {
  position: absolute; top: 168px;
  width: 379.2px; height: 465.6px;
  padding: 254.4px 33.6px 9.6px 33.6px;
  box-sizing: border-box;
}
#slide-2 .card:nth-child(1) { left: 48px; }
#slide-2 .card:nth-child(2) { left: 446.4px; }
#slide-2 .card:nth-child(3) { left: 844.8px; }
#slide-2 .card > .card-badge {
  position: absolute; left: 33.6px; top: 33.6px;
  width: 312px; height: 38.4px;
  margin: 0;
}
#slide-2 .card > .icon-circle {
  position: absolute; left: 33.6px; top: 91.4px;
  width: 57.6px; height: 57.6px; margin: 0;
}
#slide-2 .card > .card-title {
  position: absolute; left: 33.6px; top: 158.4px;
  width: 312px; min-height: 52.8px; margin: 0;
}
#slide-2 .card > .card-desc { margin: 0; }
#slide-2 .card > .card-desc + .card-desc { margin-top: 6px; }

/* ============================================================ */
/* Slide 3: Solution overview (badge row → arrows → cards)      */
/* ============================================================ */
#slide-3 .solution-block { display: block; height: 100%; }
#slide-3 .solution-badge-row { display: block; }
#slide-3 .solution-badge-row > .card-badge {
  position: absolute; top: 201.6px;
  width: 312px; height: 38.4px; margin: 0;
}
#slide-3 .solution-badge-row > .card-badge:nth-child(1) { left: 81.6px; }
#slide-3 .solution-badge-row > .card-badge:nth-child(2) { left: 480px; }
#slide-3 .solution-badge-row > .card-badge:nth-child(3) { left: 878.4px; }

#slide-3 .solution-arrow {
  position: absolute; top: 246px; left: 0;
  width: 100%; text-align: center; margin: 0;
}

#slide-3 .solution-cards { display: block; }
#slide-3 .solution-cards > .card {
  position: absolute; top: 284.4px;
  width: 379.2px; height: 289.8px;
  padding: 169.9px 33.6px 0 33.6px;
  box-sizing: border-box;
}
#slide-3 .solution-cards > .card:nth-child(1) { left: 48px; }
#slide-3 .solution-cards > .card:nth-child(2) { left: 446.4px; }
#slide-3 .solution-cards > .card:nth-child(3) { left: 844.8px; }
#slide-3 .solution-cards > .card > .icon-circle {
  position: absolute; left: 33.6px; top: 23.5px;
  width: 57.6px; height: 57.6px; margin: 0;
}
#slide-3 .solution-cards > .card > .card-title {
  position: absolute; left: 33.6px; top: 93.4px;
  width: 312px; min-height: 48px; margin: 0;
}
#slide-3 .solution-cards > .card > .card-desc { margin: 0; }

#slide-3 .brand-mark-row {
  position: absolute; top: 580px; left: 0;
  width: 100%; margin: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 12px;
}

/* ============================================================ */
/* Slide 4: Funnel                                              */
/* ============================================================ */
#slide-4 .section-label {
  position: absolute; left: 48px; top: 154.5px;
  margin: 0;
}
#slide-4 .feat-row {
  position: absolute; left: 0; top: 0; width: 100%;
  display: block; margin: 0;
}
#slide-4 .feat-row .feat-tile {
  position: absolute; top: 197.5px;
  width: 379.2px; height: 72px;
  box-sizing: border-box;
}
#slide-4 .feat-row .feat-tile:nth-child(1) { left: 48px; }
#slide-4 .feat-row .feat-tile:nth-child(2) { left: 446.4px; }
#slide-4 .feat-row .feat-tile:nth-child(3) { left: 844.8px; }

/* Funnel steps */
#slide-4 .funnel-wrap {
  position: absolute; left: 0; top: 319.9px; right: 0; bottom: 0;
  margin: 0; display: block;
}
#slide-4 .funnel-step {
  position: absolute; height: 55.7px;
  box-sizing: border-box;
}
#slide-4 .funnel-step:nth-of-type(1) { top: 0;     left: 110.4px; width: 1056px; }
#slide-4 .funnel-step:nth-of-type(2) { top: 67.2px; left: 189.6px; width: 897.6px; }
#slide-4 .funnel-step:nth-of-type(3) { top: 134.4px; left: 268.8px; width: 739.2px; }
#slide-4 .funnel-step:nth-of-type(4) { top: 201.6px; left: 348px;   width: 580.8px; }

#slide-4 .funnel-arrow { display: none; }

#slide-4 .funnel-goal {
  position: absolute; left: 582.4px; top: 321.4px;
  width: 115.2px; height: 43.2px;
  min-width: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================ */
/* Slide 5: 3 Pitch cards (large icon + 2-line title + desc)    */
/* ============================================================ */
#slide-5 .pitch-grid { display: block; height: 100%; }
#slide-5 .pitch-card {
  position: absolute; top: 182.4px;
  width: 379.2px; height: 441.6px;
  padding: 0; box-sizing: border-box;
}
#slide-5 .pitch-card:nth-child(1) { left: 48px; }
#slide-5 .pitch-card:nth-child(2) { left: 446.4px; }
#slide-5 .pitch-card:nth-child(3) { left: 844.8px; }
#slide-5 .pitch-card > .pitch-icon {
  position: absolute; left: 144px; top: 52.8px;
  width: 91.2px; height: 91.2px; margin: 0;
}
#slide-5 .pitch-card > .pitch-title {
  position: absolute; left: 28.8px; top: 187.2px;
  width: 321.6px; margin: 0; text-align: center;
}
#slide-5 .pitch-card > .pitch-desc {
  position: absolute; left: 38.4px; top: 326.4px;
  width: 302.4px; margin: 0; text-align: center;
}

/* ============================================================ */
/* Slide 6: 6 Merit cards in 3x2 grid                            */
/* ============================================================ */
#slide-6 .merit-grid { display: block; }
#slide-6 .merit-grid .merit-card {
  position: absolute;
  width: 379.2px; height: 249.6px;
  padding: 24px; box-sizing: border-box;
}
/* Row 1 (y=168) */
#slide-6 .merit-grid:nth-of-type(1) .merit-card:nth-child(1) { top: 168px; left: 48px; }
#slide-6 .merit-grid:nth-of-type(1) .merit-card:nth-child(2) { top: 168px; left: 444.5px; }
#slide-6 .merit-grid:nth-of-type(1) .merit-card:nth-child(3) { top: 168px; left: 841px; }
/* Row 2 (y=434.9) */
#slide-6 .merit-grid:nth-of-type(2) .merit-card:nth-child(1) { top: 434.9px; left: 48px; }
#slide-6 .merit-grid:nth-of-type(2) .merit-card:nth-child(2) { top: 434.9px; left: 444.5px; }
#slide-6 .merit-grid:nth-of-type(2) .merit-card:nth-child(3) { top: 434.9px; left: 841px; visibility: hidden; }
#slide-6 .merit-grid .merit-card > .icon-tile {
  position: absolute; left: 24px; top: 24px;
  width: 48px; height: 48px; margin: 0;
}
#slide-6 .merit-grid .merit-card > .card-title {
  position: absolute; left: 24px; top: 81.6px;
  width: 331.2px; height: 43.2px; margin: 0;
}
#slide-6 .merit-grid .merit-card > .card-desc {
  position: absolute; left: 24px; top: 143.5px;
  width: 331.2px; margin: 0;
}

/* ============================================================ */
/* Slide 7: Comparison table                                    */
/* ============================================================ */
#slide-7 .slide-content .cmp-table {
  position: absolute; left: 48px; top: 163.2px;
  width: 1180.8px;
}

/* ============================================================ */
/* Slide 8: 2 Scenario cards (large, with bullets + reaction-box) */
/* ============================================================ */
#slide-8 .two-col { display: block; height: 100%; }
#slide-8 .two-col .scenario-card {
  position: absolute; top: 163.2px;
  width: 580.8px; height: 465.6px;
  padding: 0; box-sizing: border-box;
}
#slide-8 .two-col .scenario-card:nth-child(1) { left: 48px; }
#slide-8 .two-col .scenario-card:nth-child(2) { left: 648px; }
#slide-8 .two-col .scenario-card > .scenario-head {
  position: absolute; left: 28.8px; top: 28.8px;
  width: 523.2px; height: 57.6px; margin: 0;
}
#slide-8 .two-col .scenario-card > .scenario-head > .icon-tile {
  width: 57.6px; height: 57.6px; margin: 0;
}
#slide-8 .two-col .scenario-card > .scenario-bullets {
  position: absolute; left: 33.6px; top: 115.2px;
  width: 523.2px; margin: 0;
}
#slide-8 .two-col .scenario-card > .reaction-box {
  position: absolute; left: 28.8px; top: 254.4px;
  width: 523.2px; height: 115.2px; margin: 0;
  box-sizing: border-box;
}
#slide-8 .two-col .scenario-card > .effect-tag {
  position: absolute; left: 50%; top: 403.2px;
  transform: translateX(-50%); margin: 0;
}

/* ============================================================ */
/* Slide 9: 4 Flow cards                                        */
/* ============================================================ */
#slide-9 .flow-row { display: block; height: 100%; }
#slide-9 .flow-row .flow-card {
  position: absolute; top: 177.6px;
  width: 273.6px; height: 451.2px;
  padding: 0; box-sizing: border-box;
}
#slide-9 .flow-row .flow-card:nth-of-type(1) { left: 48px; }
#slide-9 .flow-row .flow-card:nth-of-type(2) { left: 350.4px; }
#slide-9 .flow-row .flow-card:nth-of-type(3) { left: 652.8px; }
#slide-9 .flow-row .flow-card:nth-of-type(4) { left: 955.2px; }
#slide-9 .flow-row .flow-card > .flow-num {
  position: absolute; left: 103.2px; top: 33.6px;
  width: 67.2px; height: 67.2px;
  margin: 0; font-size: 28pt;
}
#slide-9 .flow-row .flow-card > .flow-actor {
  position: absolute; left: 19.2px; top: 124.8px;
  width: 235.2px; height: 48px; margin: 0;
  text-align: center;
}
#slide-9 .flow-row .flow-card > .flow-title {
  position: absolute; left: 24px; top: 177.6px;
  width: 225.6px; height: 134.4px; margin: 0;
  text-align: center;
}
#slide-9 .flow-row .flow-card > .flow-desc {
  position: absolute; left: 24px; top: 321.6px;
  width: 225.6px; height: 124.8px; margin: 0;
  text-align: center;
}
#slide-9 .flow-row .flow-arrow {
  position: absolute; top: 391.2px;
  width: 24px; height: 24px; margin: 0;
}
#slide-9 .flow-row .flow-arrow:nth-of-type(1) { left: 326.4px; }
#slide-9 .flow-row .flow-arrow:nth-of-type(2) { left: 628.8px; }
#slide-9 .flow-row .flow-arrow:nth-of-type(3) { left: 931.2px; }

/* ============================================================ */
/* Slide 10: Summary (2 sections + closing banner)              */
/* ============================================================ */
#slide-10 .sum-grid {
  display: block; height: 100%; margin: 0;
}
#slide-10 .sum-section {
  position: absolute; top: 163.2px;
  width: 571.2px; height: 379.2px;
  padding: 0; box-sizing: border-box;
}
#slide-10 .sum-section:nth-of-type(1) { left: 48px; }
#slide-10 .sum-section:nth-of-type(2) { left: 657.6px; }
#slide-10 .sum-cascade {
  position: absolute; left: 619.2px; top: 340.8px;
  width: 38.4px; margin: 0; text-align: center;
}
#slide-10 .sum-section > .sum-head {
  position: absolute; left: 28.8px; top: 28.8px;
  width: 513.6px; height: 67.2px;
  padding: 0; border: 0; margin: 0;
}
#slide-10 .sum-section > .sum-head > .icon-tile {
  width: 48px; height: 48px; margin: 0;
}
#slide-10 .sum-section > .sum-list {
  position: absolute; left: 33.6px; top: 112.3px;
  width: 513.6px; margin: 0;
}
#slide-10 .sum-section > .sum-list li { padding: 5px 0; }
#slide-10 .sum-closing {
  position: absolute; left: 285.1px; top: 564.3px;
  width: 711.8px; height: 65.8px; margin: 0;
  padding: 14px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
#slide-10 .sum-brand-row {
  position: absolute; left: 0; top: 645.6px;
  width: 100%; justify-content: center; gap: 28.8px; margin: 0;
}

/* ============================================================ */
/* PPTX-strict v2 fixes (PR #220)                                */
/* Targets: Slide 3 ↓ alignment, brand-mark column align;       */
/*          Slide 4 funnel-step inline-width override, ↓ arrow, */
/*          Slide 7 table compression to fit above footer,      */
/*          Slide 9 flow-cards / arrows via :nth-child,         */
/*          Slide 10 sum-sections via :nth-child.               */
/* ============================================================ */

/* --- Slide 3: arrows in 3 columns matching card grid --- */
#slide-3 .solution-arrow {
  position: absolute; top: 240px; left: 48px;
  width: 1180.8px; height: 36px; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19.2px;
  justify-items: center;
  align-items: center;
  text-align: center;
  letter-spacing: 0;
  color: var(--text-3);
  font-size: 24px;
  line-height: 1;
}
#slide-3 .solution-arrow > span { display: inline-block; }

#slide-3 .brand-mark-row {
  position: absolute; top: 580.2px; left: 48px;
  width: 1180.8px; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19.2px;
  justify-items: center;
  align-items: center;
}

/* --- Slide 4: override inline style="width:90%" via !important --- */
#slide-4 .funnel-step:nth-of-type(1) { left: 110.4px !important; width: 1056px !important; top: 0; }
#slide-4 .funnel-step:nth-of-type(2) { left: 189.6px !important; width: 897.6px !important; top: 67.2px; }
#slide-4 .funnel-step:nth-of-type(3) { left: 268.8px !important; width: 739.2px !important; top: 134.4px; }
#slide-4 .funnel-step:nth-of-type(4) { left: 348px !important; width: 580.8px !important; top: 201.6px; }

/* funnel-arrow: small ↓ between step 4 and goal */
#slide-4 .funnel-arrow {
  display: flex !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  top: 268px !important;        /* slide y = 319.9 + 268 = 587.9 */
  transform: translateX(-50%);
  width: 36px !important;
  height: 38px !important;
  flex-direction: column;
  align-items: center;
}
#slide-4 .funnel-arrow .shaft {
  flex: 1;
  width: 4px;
  background: var(--primary);
}
#slide-4 .funnel-arrow .head {
  font-size: 26px;
  color: var(--primary-dark);
  line-height: 1;
  margin-top: -4px;
}

/* funnel-goal: keep horizontally centered; raise slightly to add breathing room from footer */
#slide-4 .funnel-goal {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  top: 308px !important;        /* slide y = 319.9 + 308 = 627.9 (was 641.3) */
  transform: translateX(-50%);
  width: 115.2px;
  height: 43.2px;
  min-width: 0;
  margin: 0;
  display: flex; align-items: center; justify-content: center;
}

/* --- Slide 7: compress table rows to keep table within 163.2 → ~640 above footer --- */
#slide-7 .cmp-table {
  font-size: 12pt;
}
#slide-7 .cmp-table th,
#slide-7 .cmp-table td {
  padding: 3px 8px;
  line-height: 1.25;
}
#slide-7 .cmp-table thead th { font-size: 10pt; }
#slide-7 .cmp-table .cmp-fee,
#slide-7 .cmp-table .cmp-check { font-size: 11pt; }

/* --- Slide 9: position 4 flow-cards + 3 flow-arrows using :nth-child --- */
/* (siblings = flow-card → flow-arrow → flow-card → flow-arrow → ... 7 total) */
#slide-9 .flow-row > .flow-card:nth-child(1) { left: 48px; }
#slide-9 .flow-row > .flow-card:nth-child(3) { left: 350.4px; }
#slide-9 .flow-row > .flow-card:nth-child(5) { left: 652.8px; }
#slide-9 .flow-row > .flow-card:nth-child(7) { left: 955.2px; }
#slide-9 .flow-row > .flow-arrow:nth-child(2) { left: 326.4px; }
#slide-9 .flow-row > .flow-arrow:nth-child(4) { left: 628.8px; }
#slide-9 .flow-row > .flow-arrow:nth-child(6) { left: 931.2px; }

/* --- Slide 10: position 2 sum-sections using :nth-child (1st + 3rd children of sum-grid) --- */
#slide-10 .sum-grid > .sum-section:nth-child(1) { left: 48px; }
#slide-10 .sum-grid > .sum-section:nth-child(3) { left: 657.6px; }

/* ============================================================ */
/* PPTX-strict v3 fixes (PR #222)                                */
/* - Slide 4 funnel arrow: single ↓ (slide 3 style)             */
/* - Slide 7 table: relax padding for breathing room            */
/* - Slide 10 muted text in parentheses                         */
/* - Control bar: tr vertical, bl=copy single, br=vertical      */
/* ============================================================ */

/* --- Slide 4: simple ↓ arrow above 面談へ (replace shaft/head) --- */
#slide-4 .funnel-arrow {
  display: flex !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  top: 260px !important;        /* slide y = 319.9 + 260 = 579.9 */
  transform: translateX(-50%);
  width: 36px !important;
  height: 40px !important;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-3);
  line-height: 1;
}
#slide-4 .funnel-arrow > span { display: inline-block; line-height: 1; }
/* hide old internal shaft/head if present in legacy HTML (no-op for new) */
#slide-4 .funnel-arrow .shaft,
#slide-4 .funnel-arrow .head { display: none; }

/* --- Slide 7: loosen table padding for readability without footer overlap --- */
#slide-7 .cmp-table {
  font-size: 12pt;
}
#slide-7 .cmp-table th,
#slide-7 .cmp-table td {
  padding: 7px 10px;
  line-height: 1.4;
}
#slide-7 .cmp-table thead th { font-size: 10pt; padding: 8px 10px; }
#slide-7 .cmp-table .cmp-fee,
#slide-7 .cmp-table .cmp-check { font-size: 11pt; }

/* --- Slide 10: parenthesized supplemental text muted (gray) --- */
#slide-10 .sum-list .muted {
  color: var(--text-3);
  font-weight: 400;
}

/* --- Control bar: vertical top-right + bottom-right, single-button bottom-left --- */
.ctrl-tr { flex-direction: column !important; align-items: flex-end; }
.ctrl-br { flex-direction: column !important; align-items: flex-end; }
.ctrl-nav-row { display: flex; align-items: center; gap: 8px; }

/* Indicator: vertical layout style (pill above nav-row) */
.ctrl-indicator {
  margin-left: 0 !important;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 12px;
  border-radius: 12px;
  min-width: 64px;
  text-align: center;
}

/* ============================================================ */
/* text/font tweaks v2 (PR #230) — slide 7 border thicker        */
/* ============================================================ */
#slide-7 .cmp-table thead th {
  border-bottom: 1.5px solid var(--text-3);
}
#slide-7 .cmp-table tbody tr:nth-of-type(5) td {
  border-bottom: 1.5px solid var(--text-3);
}
/* slide 7: bottom border of IFA Finder service cell (rowspan=5) to match section divider */
#slide-7 .cmp-table td.service[rowspan="5"] {
  border-bottom: 1.5px solid var(--text-3);
}
