body {
  margin: 0;
  font-family: sans-serif;
}

.container {
  position: relative;
  max-width: 800px;
  margin: auto;
}

.bg-image {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hotspot {
    width: 40px !important;
    height: 40px !important;
    display: inline-block !important;
    font-size: 16px !important;
    background-color: rgba(255, 0, 0, 0.4) !important;
  }
}

/* モーダル全体の背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

/* モーダルの中身 */
.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  width: 70vw;
  max-width: 600px;
  padding: 24px;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  overflow-y: auto;
  max-height: 80vh;
}

.modal-content p {
  font-size: 16px;
  line-height: 1.4;
}

/* スマホだけで上書き */
@media (max-width: 768px) {
  .modal-content p {
    font-size: 16px;
    line-height: 1.4;
  }
}

.modal-content img,
.modal-content video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 12px 0;
}

/* Closeボタン */
.close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  z-index: 999;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .modal-content {
    width: 80vw;
    font-size: 16px !important;
    -webkit-text-size-adjust: none;
    padding: 20px;
  }
}

/* 📱 モーダル内の本文（スマホだけフォント大きめ） */
@media (max-width: 768px) {
  .modal-content p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}

/* 拡大用のオーバーレイ */
#image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#image-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  border-radius: 10px;
  cursor: zoom-out;
}
