/* ===== 方位磁石コンパス ===== */
#compass-container {
  position: absolute;
  top: 80px;
  right: 20px;
  z-index: 1000;
}

#compass-circle {
  width: 90px;
  height: 90px;
  border: 3px solid #333;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  position: relative;
  font-weight: bold;
}

/* N/E/S/W */
#compass-circle span {
  position: absolute;
  font-size: 16px;
}

.c-n { top: 5px; left: 50%; transform: translateX(-50%); }
.c-s { bottom: 5px; left: 50%; transform: translateX(-50%); }
.c-e { right: 5px; top: 50%; transform: translateY(-50%); }
.c-w { left: 5px; top: 50%; transform: translateY(-50%); }

/* ✅ 針（中心から回る） */
#compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;

  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 40px solid red;

  /* ✅ 針の根本を中心に合わせる */
  transform: translate(-50%, -100%) rotate(0deg);

  /* ✅ 回転軸を針の根本にする */
  transform-origin: 50% 100%;

  transition: transform 0.3s ease;
}
