/* サンフォレスト専用 提案スライド（印刷・PDF向け） */

:root {
  --sf-green: #15803d;
  --sf-green-dark: #166534;
  --sf-green-light: #f0fdf4;
  --sf-navy: #0f172a;
  --sf-muted: #475569;
  --sf-slide: 1280px;
  --sf-fs-body: 13px;
  --sf-fs-h2: 28px;
  --sf-fs-small: 11px;
}

.sf-wrap {
  counter-reset: sf-slide;
}

.sf-slide {
  width: 100%;
  max-width: var(--sf-slide);
  aspect-ratio: 16 / 9;
  margin: 0 auto 28px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  color: var(--sf-navy);
  counter-increment: sf-slide;
}

.sf-slide__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: var(--sf-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 12px;
}
.sf-slide__foot::after {
  content: counter(sf-slide) ' / 16';
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.sf-slide__foot strong { color: #fff; letter-spacing: 0.12em; font-size: 10px; }

.sf-slide__head {
  position: absolute;
  top: 18px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  z-index: 2;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sf-green-light);
}
.sf-slide__client { font-size: 14px; font-weight: 800; }
.sf-slide__client em { font-style: normal; color: var(--sf-muted); font-weight: 600; }
.sf-slide__en { font-size: 11px; color: var(--sf-muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.sf-slide__body {
  position: absolute;
  top: 58px;
  left: 32px;
  right: 32px;
  bottom: 44px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.sf-slide h2 {
  font-size: var(--sf-fs-h2);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 5px solid var(--sf-green);
  color: var(--sf-navy);
  letter-spacing: -0.02em;
}
.sf-slide .lead {
  font-size: var(--sf-fs-body);
  line-height: 1.7;
  color: var(--sf-muted);
  margin-bottom: 12px;
}
.sf-slide .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--sf-green);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* 表紙 */
.sf-cover {
  background: var(--sf-navy);
  color: #fff;
}
.sf-cover__img {
  position: absolute;
  inset: 0;
}
.sf-cover__img img { width: 100%; height: 100%; object-fit: cover; }
.sf-cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(21, 128, 61, 0.35) 100%);
}
.sf-cover__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 40px 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sf-cover__logo {
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.75;
}
.sf-cover h1 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  line-height: 1.45;
  max-width: 14em;
}
.sf-cover__meta { font-size: 12px; opacity: 0.85; }

/* 2カラム */
.sf-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
}
.sf-cols--wide { grid-template-columns: 1.05fr 0.95fr; }
.sf-col-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  min-height: 0;
}
.sf-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-col-img--contain img { object-fit: contain; background: #f8fafc; }

/* 引用 */
.sf-quote {
  border-left: 4px solid var(--sf-green);
  padding: 12px 16px;
  background: var(--sf-green-light);
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.sf-quote cite {
  display: block;
  font-size: 11px;
  color: var(--sf-muted);
  margin-top: 6px;
  font-style: normal;
}

/* 3課題 */
.sf-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}
.sf-pain {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  font-size: 11px;
  line-height: 1.55;
}
.sf-pain strong { display: block; font-size: 12px; margin-bottom: 6px; color: var(--sf-green-dark); }

/* D1-D4 カード */
.sf-deliver {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}
.sf-deliver__card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sf-deliver__card img { height: 148px; object-fit: cover; width: 100%; background: #f1f5f9; }
.sf-deliver__card .txt { font-size: 12px; }
.sf-deliver__card h3 { font-size: 14px; }
.sf-deliver__card .txt {
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--sf-muted);
  flex: 1;
}
.sf-deliver__card h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--sf-green-dark);
  padding: 10px 12px 0;
}
.sf-deliver__badge {
  display: inline-block;
  background: var(--sf-green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

/* 概念図 */
.sf-arch {
  flex: 1;
  display: flex;
  align-items: center;
}
.sf-arch svg { width: 100%; max-height: 260px; }

/* 比較 */
.sf-vs {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 8px;
  align-items: stretch;
  font-size: 12px;
  margin: 10px 0;
}
.sf-vs__box {
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  line-height: 1.5;
}
.sf-vs__box--before { background: #fef2f2; border: 1px solid #fecaca; }
.sf-vs__box--after { background: var(--sf-green-light); border: 1px solid #86efac; }
.sf-vs__arrow { display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--sf-green); }

/* ガント */
.sf-gantt { flex: 1; font-size: 10px; }
.sf-gantt__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}
.sf-gantt__bar {
  height: 22px;
  background: #f1f5f9;
  border-radius: 4px;
  position: relative;
}
.sf-gantt__fill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 3px;
  background: var(--sf-green);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding-left: 6px;
}
.sf-gantt__fill--2 { background: #2d6a4f; }
.sf-gantt__fill--3 { background: #4ade80; color: var(--sf-navy); }

/* 価格 */
.sf-price {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--sf-green-light), #fff);
  border-radius: 16px;
  border: 2px solid #86efac;
  padding: 24px;
}
.sf-price__num {
  font-size: 52px;
  font-weight: 900;
  color: var(--sf-green-dark);
  line-height: 1;
}
.sf-price__num small { font-size: 0.4em; }
.sf-price__sub { font-size: 14px; color: var(--sf-muted); margin-top: 12px; }

/* 体制 */
.sf-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.sf-team div {
  text-align: center;
  padding: 12px 8px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 10px;
  border: 1px solid #e2e8f0;
}
.sf-team strong { display: block; font-size: 11px; margin-bottom: 4px; }

/* 投資・ROI */
.sf-roi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.sf-roi__card {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid #e2e8f0;
}
.sf-roi__card--alt { background: var(--sf-green-light); border-color: #86efac; }
.sf-roi__card strong { display: block; font-size: 13px; margin-bottom: 8px; color: var(--sf-navy); }
.sf-roi__card .num { font-size: 20px; font-weight: 900; color: var(--sf-green-dark); }
.sf-roi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 6px;
}
.sf-roi-table th {
  background: var(--sf-navy);
  color: #fff;
  text-align: left;
  padding: 6px 8px;
  font-size: 9px;
}
.sf-roi-table td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  vertical-align: top;
}
.sf-roi-table tr:nth-child(even) td { background: #f8fafc; }
.sf-roi-note {
  font-size: 10px;
  color: var(--sf-muted);
  margin-top: 8px;
  padding: 8px 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

/* 担当者別 Before / After */
.sf-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.sf-role {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
.sf-role__head {
  background: var(--sf-navy);
  color: #fff;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 11px;
}
.sf-role__head span { font-weight: 600; opacity: 0.85; font-size: 9px; display: block; }
.sf-role__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}
.sf-role__before,
.sf-role__after {
  padding: 8px 10px;
}
.sf-role__before { background: #f8fafc; border-right: 1px solid #e2e8f0; }
.sf-role__after { background: var(--sf-green-light); }
.sf-role__lbl {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: #64748b;
}
.sf-role__after .sf-role__lbl { color: var(--sf-green-dark); }

/* 4つの価値 */
.sf-value-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.sf-value-4 div {
  border-top: 3px solid var(--sf-green);
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-top-width: 3px;
  border-top-color: var(--sf-green);
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.5;
}
.sf-value-4 strong { display: block; font-size: 11px; margin-bottom: 6px; color: var(--sf-navy); }

/* できることリスト */
.sf-can {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
}
.sf-can__item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.55;
}
.sf-can__item h3 {
  font-size: 12px;
  font-weight: 800;
  color: var(--sf-green-dark);
  margin-bottom: 6px;
}
.sf-can__item ul {
  margin: 0 0 0 16px;
  color: var(--sf-muted);
}
.sf-can__item li { margin-bottom: 3px; }

/* 相場バーチャート */
.sf-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 4px;
  flex-shrink: 0;
}
.sf-chart__row {
  display: grid;
  grid-template-columns: 118px 1fr 72px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}
.sf-chart__label { color: var(--sf-navy); }
.sf-chart__track {
  height: 28px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.sf-chart__fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.sf-chart__fill--si { background: linear-gradient(90deg, #64748b, #94a3b8); width: 100%; }
.sf-chart__fill--hire { background: linear-gradient(90deg, #b45309, #d97706); width: 72%; }
.sf-chart__fill--us { background: linear-gradient(90deg, #15803d, #22c55e); width: 25%; }
.sf-chart__val { text-align: right; color: var(--sf-green-dark); font-size: 13px; }

/* 記事スクショ（相場根拠） */
.sf-evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.sf-evidence figure {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.sf-evidence img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.sf-evidence figcaption {
  font-size: 9px;
  font-weight: 700;
  padding: 6px 8px;
  line-height: 1.4;
  color: var(--sf-muted);
  background: #f8fafc;
}
.sf-evidence figcaption strong { color: var(--sf-navy); display: block; font-size: 10px; }

/* 課題スライド：引用をコンパクトに */
.sf-slide--problem .sf-quote { font-size: 12px; padding: 10px 14px; }
.sf-slide--problem .sf-pain { font-size: 12px; }

/* 担当者：読みやすさ */
.sf-role { font-size: 11px; }
.sf-role__head { font-size: 12px; padding: 10px 12px; }
.sf-role__before, .sf-role__after { padding: 10px 12px; }
.sf-role__lbl { font-size: 9px; }

/* 価格スライド強調 */
.sf-price-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}
.sf-price-compare__box {
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 2px solid #e2e8f0;
}
.sf-price-compare__box--market { background: #f8fafc; }
.sf-price-compare__box--us {
  background: var(--sf-green-light);
  border-color: #86efac;
}
.sf-price-compare__box .big {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--sf-navy);
}
.sf-price-compare__box--us .big { color: var(--sf-green-dark); }
.sf-price-compare__box .lbl { font-size: 11px; font-weight: 700; color: var(--sf-muted); margin-bottom: 8px; }

@media print {
  body { background: #fff !important; }
  .sf-toolbar { display: none !important; }
  .sf-wrap { padding: 0 !important; max-width: none !important; }
  .sf-slide {
    page-break-after: always;
    box-shadow: none;
    margin: 0;
    max-width: none;
    width: 100%;
    aspect-ratio: auto;
    min-height: 190mm;
  }
  :root {
    --sf-fs-body: 12pt;
    --sf-fs-h2: 22pt;
  }
  .sf-slide h2 { font-size: 22pt; }
  .sf-deliver__card img { height: 120px; }
}
