/* リセット */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* 各ブロック */
.image-switcher {
  display: block; /* inline-block → block に変更 */
  margin: 1em auto; /* 左右中央寄せ */
  max-width: 500px;/*600px;*/
  width: 90%;/*90%;*/
  background: #fff;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* メイン画像 */
.image-switcher .main {
  width: 100%;/*100%;*/
  height: auto;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

/* サムネイルエリア */
.image-switcher .thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.2em;/*1em; */
  gap: 8px;
}

/* サムネイル画像 */
.image-switcher .thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.image-switcher .thumbnails img:hover {
  opacity: 1;
  transform: scale(1.05);
}


.thumbnails img {
  border: 2px solid transparent; /* 初期は枠なし */
  transition: border 0.3s ease;
  cursor: pointer;
}

.thumbnails img.active-thumb {
  border: 2px solid orange; /* マウスオーバー時に橙色の枠 #ff0000 */
}


/* レスポンシブデザイン適用   */


/* ▼ タブレット（幅 768px～1023px） */
@media (max-width: 1023px) and (min-width: 768px) {

 .image-switcher .thumbnails img {
    width: 70px;
    height: 53px;
  }
}


/* スマホ対応 */
@media (max-width: 767px) {
  .image-switcher .thumbnails img {
    width: 60px;
    height: 45px;
  }
}
