
.image-text-box {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 20px 0;
  width: 420px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  margin-left: 0;
  display: inline-block; /* インラインブロック要素として配置 */
  margin-right: 20px; /* 右側にマージンを追加して間隔を空ける */
  vertical-align: top; /* 上揃えにする */
}

.image-text-box img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.image-text-box img:hover {
  transform: scale(1.05);
}

.image-text-box p {
  margin-top: 10px;
  font-size: 1em;
  color: #333;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  margin: 10px;
  padding: 10px;
  border: 1px solid #888;
  width: 90%;
  max-width: 800px;
  position: relative;
  border-radius: 8px;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.modal .close-button {
  position: absolute;
  top: 8px;
  right: 20px;
  color: #aaa;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal .close-button:hover,
.modal .close-button:focus {
  color: #000;
  text-decoration: none;
}


@media (max-width: 500px) {

.image-text-box {
  width: 310px;
}

.modal-content {
  padding: 5px;
}





