
.messageBox {
  margin: 0 auto;
  text-align: center;
  max-width: 820px;
  font-family: "Hiragino Sans", "Meiryo", sans-serif;
}

/* メイン画像 */
.mainImage {
  display: block;
  margin: 0 auto;
  border: none;
  max-width: 100%;
  height: auto;
}

/* 説明文リスト（非表示データ） */
.ImageNote {
  display: none;
}

/* キャプション表示用 */
.caption02 {
  font-size: 15px;
  font-weight: bold;
  color: #222;
  margin: 5px 0 5px 0;
}

/* サムネイル群 */
.thumbs {
  text-align: center;
  margin-top: 5px;
}

.thumb {
  width: 90px;
  height: 60px;
  margin: 4px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.2s;
  vertical-align: middle;
}

.thumb:hover {
  border-color: #666;
  transform: scale(1.05);
}

/* 選択中のサムネイル */
.thumb.active {
  border-color: #ff6347; /* トマト色の枠 */
}

/* ===== レスポンシブデザイン ===== */

/* ===== タブレット（例：768px以下） ===== */
@media screen and (min-width: 768) and (max-width: 1023px) {
  .messageBox {
    padding: 0 10px;
  }

  .caption {
    font-size: 14px;
  }

  .thumb {
    width: 70px;
    height: 47px;
    margin: 3px;
  }
}



/* ===== スマートフォン（例：767px以下） ===== */
@media screen and (max-width: 767px) {
  .caption {
    font-size: 13px;
  }

  .thumb {
    width: 60px;
    height: 40px;
    margin: 2px;
  }

  .messageBox p {
    font-size: 14px;
  }

  .thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumb {
    flex: 0 0 auto;
  }
}


