/* ----- Service Sidebar (scoped) ----- */
.svc-sidebar {
  --svc-radius: 14px;
  --svc-gap: 16px;
  --svc-border: 1px solid var(--svc-border-color, #e6e8ec);
  --svc-bg: var(--svc-bg-color, #fff);
  --svc-muted: #6b7280;
  --svc-accent: var(--svc-accent-color, #2e7df6);
  position: relative;
  display: grid;
  gap: var(--svc-gap);
}

.svc-card {
  background: var(--svc-bg);
  border: var(--svc-border);
  border-radius: var(--svc-radius);
  padding: 16px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
}

.svc-card__title {
  font-size: 14px;
  letter-spacing: .04em;
  font-weight: 700;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 10px;
}

.svc-seg { margin-top: 12px; }
.svc-seg__title {
  font-size: 13px;
  color: #111827;
  margin: 0 0 6px;
  font-weight: 600;
}

.svc-list, .svc-links, .svc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.svc-list li + li,
.svc-links li + li { margin-top: 8px; }

.svc-steps { counter-reset: step; }
.svc-steps li {
  counter-increment: step;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}
.svc-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px; color: #374151;
  background: #fff;
}

.svc-link, .svc-links a, .svc-list a {
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.svc-link:hover,
.svc-links a:hover,
.svc-list a:hover {
  color: var(--svc-accent);
  border-bottom-color: var(--svc-accent);
}

.svc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.svc-metric {
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.svc-metric__value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
.svc-metric__unit { font-size: 12px; margin-left: 2px; color: #374151; }
.svc-metric__label { font-size: 11px; color: #4b5563; margin-top: 6px; }

.svc-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--svc-muted);
}

/* Buttons */
.svc-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .06s ease, box-shadow .06s ease, background .2s ease, color .2s ease;
}
.svc-btn:active { transform: translateY(1px); }
.svc-btn--primary {
  background: var(--svc-accent);
  color: #fff;
  box-shadow: 0 6px 14px rgb(46 125 246 / 22%);
}
.svc-btn--primary:hover { filter: brightness(0.95); }
.svc-btn--ghost {
  background: #fff;
  color: var(--svc-accent);
  border-color: var(--svc-accent);
}
.svc-btn--flat {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}

/* Sticky CTA (上部) */
.svc-sticky-cta {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: transparent;
  margin-bottom: 4px;
}

/* Sticky CTA（下部：モバイル優先） */
.svc-sticky-cta--bottom {
  display: none;
  position: sticky;
  bottom: 8px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* レイアウト調整（親が2カラムの場合の想定） */
@media (min-width: 960px) {
  .svc-sidebar { align-self: start; }
}

@media (max-width: 767px) {
  .svc-metrics { grid-template-columns: 1fr 1fr; }
  .svc-sticky-cta { display: none; }
  .svc-sticky-cta--bottom { display: grid; }
}

.widget-area .widget {
  padding: 0 !important;
}
