.modal {
  display: none; /* デフォルトでは表示しない */
  position: fixed; /* 固定位置 */
  z-index: 10000; /* 前面に表示 */
  padding-top: 100px; /* 上部のパディング */
  left: 10%;
  top: 0;
  width: 80%; /* 横幅を100%に */
  height: 100%; /* 高さを100%に */
  overflow: auto; /* 必要に応じてスクロール */
  background-color: rgb(0,0,0); /* 黒い背景 */
  background-color: rgba(0,0,0,0.8); /* 透明度80% */
}

/* モーダルコンテンツ（画像） */
.modal-content {
  margin: auto;
  display: block;
  width: 60%;
  max-width: 700px;
}

/* キャプション（テキスト） */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 拡大画像のアニメーション */
.modal-content {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

/* 画像コンテナ */
.img-container {
  position: relative;
  display: inline-block;
}

/* 画像にマウスオーバーしたときの効果 */
.myImg:hover {
  opacity: 0.7;
  transition: opacity 0.3s;
}

/* 虫眼鏡マーク */
.magnifier {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.img-container:hover .magnifier {
  opacity: 1;
}