/* ============================================================
   tooltips.css — Lightweight contextual tooltip component
   shindan.yamada-tools.jp — Phase 4
   ============================================================ */

.site-tooltip {
  position: absolute;
  z-index: 1000;
  max-width: 280px;
  padding: 12px 16px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.site-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: #1e293b;
  transform: rotate(45deg);
}
.site-tooltip.tooltip-above::before {
  top: auto;
  bottom: -6px;
}
.site-tooltip-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.site-tooltip-close:hover {
  color: white;
}

@media (max-width: 767px) {
  .site-tooltip {
    max-width: calc(100vw - 32px);
    left: 16px !important;
    right: 16px !important;
  }
}
