@charset "utf-8";
.video_container{
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
}
.video_container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

/***サムネイルが開く*****/
p.toggle1 {
  cursor: pointer;
  font-weight: bold;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  background-color: #f8fff2;
}
.toggle1::before,.toggle1::after{
 content: "　";
 background:url('https://www.oozeki-shop.com/data/bunkoya/image/free/other/ichigo_icon.gif') no-repeat;
 display:inline-block;
 background-size:contain; 
 background-repeat: no-repeat;
 width: 40px;
 height: 30px;
}
.toggle2 {
  margin-top: 10px;
}
.toggle2.closed {display:none;}
/*******************/
.variation_box {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.variation_box p{
font-size:0.7em;
}
.var_list {
  width: 120px;
  text-align: center;
}
.variation_box li.var_list {
 width: 15%;
 border: 1px solid #ccc;
 box-sizing: border-box;
 margin: 0.15em 0.5%;
 position: relative;
}
.variation_box li img {
 width: 100%;
}
.variation_box li p {
 position: relative;
 margin: 0.2em 1em;
}

.variation_box li p span {
 display: inline-block;
 font-size: 0.85em;
}

#caption {
  text-align: center;
  color: #ccc;
  margin-top: 10px;
}
/****************/
.zoom-img {
  transform: scale(1);
  transition: transform 0.4s ease-in-out;
  cursor: pointer;
}
.zoom-img.active {
  position: fixed;
  top: 0;
  left: 0;
/*  width: 90vw;
  height: 90vh;
*/
  width: 90%;
  height: auto;
  max-width: none;   /* 外部CSSの制約を解除 */
  max-height: none;  /* 外部CSSの制約を解除 */
  object-fit: contain;
  background: #fff;
  z-index: 9999;
}
/**********************/
.modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: visible;
  opacity: 1;
}

.modal-content {
  margin: 0 auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  transform: scale(0.9);   /* ←少し小さめから */
  opacity: 0;              /* ←透明からスタート */
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.modal.show .modal-content {
  transform: scale(1);     /* ←ふわっと拡大 */
  opacity: 1;              /* ←同時にフェードイン */
}
#caption {
  margin-top: 10px;
  color: #ccc;
  text-align: center;
  /* 追加: 幅を画像に合わせる */
  max-width: 80%;
}

.close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}
.tips{
 width:100%;background:#f9f5e4;
 font-size:0.8em;border:none;padding:0.7em;box-sizing: content-box;box-sizing: border-box;
 }



@media screen and (max-width:649px) { /*sph*/
.variation_box li.var_list {
width: 30%;boxsizing:border-box;
}

}
