:root {
  --empty-bg-color: #C0A0FF;
  --crowd-bg-color: #FFFF80;
  --full-bg-color: #FF8080;
  --none-bg-color: #27779BD;
  --err-bg-color: #FFFFFF;
}

/* 親要素を画面幅に合わせて伸縮可能にする */
.map-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: auto;
  aspect-ratio: 640 / 480; /* 元画像の比率（4:3）を保持 */
  margin: 0 auto;
}

.map-box img {
  width: 100%;
  height: 100%;
  display: block;
}

/* 各ピンの共通設定 */
.map-box > div {
  width: 5%;         /* 画面幅に応じて伸縮 */
  height: 0;
  padding-top: 5%;   /* 正円を維持 */
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(10px, 2.5vw, 14px); /* 画面サイズに合わせてフォント調整 */
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  background-color: var(--empty-bg-color);
  transform: translate(-50%, -50%); /* 中心点を合わせる */
}

/* a要素の配置調整 */
.map-box > div > a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

/* 各ホテルの位置（pxから％換算） */
.ベイシェラトン {
  top: 31.25%; /* 150 / 480 */
  left: 59.375%; /* 380 / 640 */
}

.JR東日本ホテルメッツ横浜 {
  top: 6.25%; /* 30 / 480 */
  left: 92.1875%; /* 590 / 640 */
}

.リッチモンドホテル横浜 {
  top: 10.4167%; /* 50 / 480 */
  left: 78.125%; /* 500 / 640 */
}

.京急EXイン横浜駅東口 {
  top: 20.8333%; /* 100 / 480 */
  left: 94.5312%; /* 605 / 640 */
}

.相鉄フレッサイン横浜駅東口 {
  top: 16.6667%; /* 80 / 480 */
  left: 96.875%; /* 620 / 640 */
}

.東横INN横浜駅西口 {
  top: 81.25%; /* 390 / 480 */
  left: 43.75%; /* 280 / 640 */
}

.ホテルユニゾ横浜駅西 {
  top: 68.75%; /* 330 / 480 */
  left: 28.125%; /* 180 / 640 */
}

.ホテルザノット横浜 {
  top: 56.25%; /* 270 / 480 */
  left: 37.5%; /* 240 / 640 */
}

.ホテルプラム横浜 {
  top: 35.4167%; /* 170 / 480 */
  left: 26.5625%; /* 170 / 640 */
}

.ホテルリブマックス横浜駅西口 {
  top: 45.8333%; /* 220 / 480 */
  left: 17.1875%; /* 110 / 640 */
}

.スカイスパ {
  top: 72.9167%; /* 350 / 480 */
  left: 70.3125%; /* 450 / 640 */
}