/*------------------------------
 Image Hotspot
------------------------------*/
.image-hotspot {
  position: relative;
}
.image-hotspot > img {
  display: block;
  width: 100%;
  height: auto;
}
.image-hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%); /*マーカーの左上ではなく、中心が指定座標に一致するように*/
  width: 5.8%; /*元画像の青丸は、画像全体の横幅に対して約5.6％の直径*/
  aspect-ratio: 1 / 1; /*常に正円を維持*/
  padding: 0;
  background: rgba(0, 117, 184, 0.75);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}
.image-hotspot-pin:hover, .image-hotspot-pin:focus-visible {
  background: #cdb58b;
}
/*------------------------------
 Hotspot Item
------------------------------*/
.image-hotspot-item {
  position: absolute;
	left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 5.8%/*5.6%*/;
  aspect-ratio: 1 / 1;
  z-index: 1;
}
.image-hotspot-item > .image-hotspot-pin {
  position: relative;
  transform: none;
  display: block;
  width: 100%;
  height: 100%;
}
/*------------------------------
 Hotspot Popup
------------------------------*/
.image-hotspot-popup {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 100%;
  translate: 0 -50%;
  scale: 0.1;
  transform-origin: left center;
  width: 280px;
  padding: 20px 20px 10px ;
  box-sizing: border-box;
  background: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-align: left;
  transition: scale 0.2s ease-out,
              opacity 0.2s ease,
              visibility 0.2s;
}
.image-hotspot-item:hover, .image-hotspot-item:focus-within {
  z-index: 10;
}
.image-hotspot-item:hover .image-hotspot-popup,
.image-hotspot-item:focus-within .image-hotspot-popup {
  opacity: 1;
  visibility: visible;
  scale: 1;
}
.image-hotspot-item:hover .image-hotspot-pin, .image-hotspot-item:focus-within .image-hotspot-pin {
  background: #cdb58b;
}
/*------------------------------
 Popup Contents
------------------------------*/
.image-hotspot-popup h4 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-weight: bold;
}
.image-hotspot-popup ul {
	/*margin: 0 0 15px;*/
  margin: 0 0 0px;
  padding: 0;
  list-style: none;
}
.image-hotspot-popup li {
  margin: 10px 0;
  font-size: .9rem;
  line-height: 1.1;
}
.image-hotspot-popup a {
  color: #0075b8;
  text-decoration: none;
}
.image-hotspot-popup a:hover {
  text-decoration: underline;
}
.image-hotspot-popup .image-hotspot-more {
	/*未使用へ*/
  display: block;
  padding: 10px;
  background: #0075b8;
  color: #fff;
  border-radius: 30px;
  text-align: center;
}
/*------------------------------
 Popup Position
------------------------------*/

/* 左側に表示 */
.image-hotspot-item.is-left .image-hotspot-popup {
  left: auto;
  right: 100%;
  transform-origin: right center;
}

/* 上側に表示 */
.image-hotspot-item.is-top .image-hotspot-popup {
  top: auto;
  bottom: 100%;
  left: 50%;
  translate: -50% 0;
  transform-origin: center bottom;
}

/* 下側に表示 */
.image-hotspot-item.is-bottom .image-hotspot-popup {
  top: 100%;
  left: 50%;
  translate: -50% 0;
  transform-origin: center top;
}
/*------------------------------
 Hotspot Smartphone
------------------------------*/
@media screen and (max-width: 767px) {

  .image-hotspot .image-hotspot-item .image-hotspot-popup {
    top: 100%;
    bottom: auto;
    left: calc(50% + (50% - var(--x)) / 0.056);
    right: auto;
    translate: -50% 0;
    transform-origin: var(--x) top;
    width: 280px;
    max-width: calc(100vw - 40px);
  }

}
/*------------------------------
 Hotspot Hover Area
青丸＋紺色長方形も追加
------------------------------*/
.image-hotspot-item::before {
  content: "";
  position: absolute;
  right: 43%;
  top: 45%;
  width: 670%;
  height: 166%;
  background: transparent;
  cursor: pointer;
	/* 範囲確認用 */
	/*background: rgba(255, 0, 0, 0.3); */
}