/* ==========================================
   全体の見た目の設定（おまじない）
   ========================================== */
body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 1364px;
  margin: 0 auto;
}

/* 📌 ベース画像と差分画像の「描き方」を100%完全に一致させます */
.base-image {
  width: 100%;
  height: auto;
  display: block;
}

/* 📌 差分画像の設定（ChatGPTさんおすすめのブレ防止＋にじみ対策） */
.diff-image {
  position: absolute;
  /* 👇 inset: 0 にすることで、ベース画像と1ミリの狂いもなくサイズを強制同期させます */
  inset: 0; 
  width: 100%;
  height: auto;
  z-index: 2;
  opacity: 0;
  display: block;
  pointer-events: none; /* マウスすり抜け用 */
  
  /* 👇 余計な image-rendering や強すぎる魔法を外して、ブラウザ本来の綺麗な描画に戻します */
  transition: opacity 0.15s linear;
}

/* ホバーして画像が表示されたとき */
.diff-image.active {
  opacity: 1;
}

/* 📌 透明なリンクボタン（赤→確認したので透明に） */
.map-link {
  position: absolute;
  z-index: 3;
  display: block;
  background: !important;
}

/* ==========================================
   📌 位置指定（1280px / 905px 基準に戻しました！）
   ========================================== */

/* 1. hospital（よるのびょういん） */
#link-hospital {
  left: 0%;
  bottom: 1.34%;
  width: 16.48%;
  height: 65.75%;
}

/* 2. rahula（ラーフラ） */
#link-rahula {
  left: 26.64%;   
  bottom: 17.50%;
  width: 14.50%;  
  height: 14.00%; 
}

/* 3. works */
#link-works {
  right: 10.31%;
  bottom: 17.35%;
  width: 7.97%;
  height: 11.49%;
}

/* 4. ihatov */
#link-ihatov {
  right: 23.59%;
  bottom: 2.65%;
  width: 35.63%;
  height: 14.59%;
}

/* 5. gense（現世） */
#link-gense {
  left: 17.66%;    
  bottom: 29.50%;
  width: 12.50%;   
  height: 14.92%;  
}

/* 6. line（LINE - 右端！） */
#link-line {
  right: 0.00%;    
  bottom: 15.03%;
  width: 9.45%;
  height: 15.80%;
}

/* 7. melt */
#link-melt {
  right: 0.00%;
  top: 15.14%;
  width: 13.67%;
  height: 14.36%;
}

/* 8. cpr */
#link-cpr {
  right: 21.00%;
  top: 31.00%;     
  width: 21.00%;   
  height: 20.00%;  
}

/* 9. gyakusenju（逆千手観音 - 左上の仏さん！） */
#link-gyakusenju {
  left: 18.67%;    
  top: 2.65%;      
  width: 9.14%;    
  height: 13.81%;  
}