.image-overlay {
  position: relative;
  display: inline-block;
}

.image-overlay img {
  display: block;
  width: 100%; /* 必要に応じて調整 */
  height: auto;
}

.overlay-text {
  position: absolute;
  top: 20px;         /* 上からの位置 */
  left: 20px;        /* 左からの位置 */
  color: white;      /* 文字色（背景に応じて変更） */
  font-size: 24px;
  font-weight: bold;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.4); /* 半透明背景で読みやすく */
  padding: 10px;
  border-radius: 8px;
}