/* ========== ギャラリー表示部分 ========== */
.upd-slider {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  gap: 1em;
}
.upd-slide {
  -webkit-box-flex: 1;
      -ms-flex: auto;
          flex: auto;
  cursor: pointer;
  max-width: 500px;
}
/* ホバー時の動作 */
.upd-slide:hover {
  /*-webkit-transform: translateY(-5px);
          transform: translateY(-5px); /* 枠ごと少し上へ */
}

.upd-slide:hover .upd-slide img {
  -webkit-transform: scale(1.05);
          transform: scale(1.05); /* 中身だけズームイン */
  opacity: 1;
}

.upd-slide:has(> img[src=""]) {
  display: none;
}

/* ========== モーダル ========== */
.upd-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-animation: fadeIn 0.3s ease;
          animation: fadeIn 0.3s ease;
}

@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.upd-lightbox-img {
  width: 700px;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  -webkit-box-shadow: 0 0 25px rgba(0,0,0,0.4);
          box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* 閉じるボタン */
.upd-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.upd-lightbox-close:hover {
  opacity: 0.7;
}

/* ナビゲーションボタン */
.upd-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 90%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0 40px;
}

.upd-lightbox-nav button {
  background: rgba(255,255,255,0.3);
  border: none;
  color: #fff;
  font-size: 30px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}
.upd-lightbox-nav button:hover {
  background: rgba(255,255,255,0.6);
}
