body.modal-open {
  overflow: hidden;
}

#gallery .cntns_hl2::before,
#gallery .cntns_hl2::after {
  background-image: url(../images/common/icon_03.png);
}
#gallery .gallery {
  background-image: url(../images/lower/gallery_bg.png);
  background-size: 100%;
}
.gallery .gallery_box {
  padding: 60px 0;
}
/* スマートフォン用のスタイル */
@media screen and (max-width: 821px) {
  #gallery .gallery {
    background-image: url(../images/lower/gallery_bg_sp.png);
    background-size: 100%;
  }
}

/* --- さいきんのイベント --- */
.gallery .gallery_box .gallery_pickup {
  width: 100%;
  max-width: 980px;
  margin: auto;
  padding: 40px;
  background: #ffffff;
  border: 12px solid var(--bg-color);
  box-shadow: 3px 3px 6px #cccc;
}
.gallery .gallery_box .gallery_pickup h3 {
  width: 65%;
  max-width: 540px;
  margin: 0 auto 30px;
}
.gallery .gallery_box .pickup_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.gallery .gallery_box .gallery_pickup .pickup_img {
  width: 32vw;
  height: 32vw;
  max-width: 320px;
  max-height: 320px;
  line-height: 0;
  overflow: hidden;
}
.gallery .gallery_box .gallery_pickup .pickup_conts {
  width: 70vw;
  max-width: calc(100% - 380px);
}
.gallery .gallery_box .gallery_pickup .pickup_ttl {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  padding: 10px 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.6em;
  border-bottom: 3px solid var(--main-color);
}
.gallery .gallery_box .gallery_pickup .pickup_ttl .pickup_ttl_link a {
  display: block;
  margin-top: 10px;
  text-align: right;
  font-size: 60%;
  color: var(--main-color);
}
.gallery .gallery_box .gallery_pickup .pickup_txt div {
  width: 100%;
  line-height: 1.4;
}

/* --- ギャラリー一覧 --- */
.gallery .gallery_box .cntns_hl2 {
  margin: 80px auto 20px;
}
.gallery .gallery_box .gallery_list {
  padding: 80px 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.gallery .gallery_box .gallery_list .gallery_item {
  width: 16vw;
  height: 16vw;
  max-width: 200px;
  max-height: 200px;
  line-height: 0;
  border: 3px #ffffff solid;
  box-shadow: 3px 8px 0 #ffd13b88;
  border-radius: 50%;
  overflow: hidden;
}
.gallery .gallery_box .gallery_list .gallery_item:nth-of-type(even) {
  box-shadow: 3px 8px 0 #77be6488;
}
.gallery .gallery_box .gallery_pickup .pickup_img img,
.gallery .gallery_box .gallery_list .gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.gallery_item {
  display: none;
}
.gallery_item.visible {
  display: block;
  overflow: hidden;
}

/* さらにふわっとさせる微アニメーション */ /* 念のため */
.huwaflow {
  position: relative; /* 疑似要素用 */
  margin-top: 30px; /* 少し下から始まる */
  transition: margin-top 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  /* will-change: opacity; */
}
.huwaflow img {
  opacity: 0;
  transition: opacity 1.8s ease;
}
/* 霧レイヤー */
.huwaflow::before {
  border-radius: 50%;
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3), transparent 75%);
  opacity: 1;
  transition: opacity 2s ease;
  pointer-events: none;
}
/* 表示 */
.huwaflow.is-show {
  opacity: 1;
  margin-top: 0;
}
.huwaflow.is-show img {
  opacity: 1;
}
.huwaflow.is-show::before {
  opacity: 0;
}

/* タブレット用のスタイル */
@media screen and (max-width: 1081px) {
  .gallery .gallery_box .gallery_pickup {
    padding: 4vw 2vw;
  }
  .gallery .gallery_box .pickup_box {
    gap: 3vw;
  }
  .gallery .gallery_box .gallery_list {
    padding: 4vw 0;
  }
  .gallery .gallery_box .gallery_list .gallery_item {
    width: 15vw;
    height: 15vw;
    border: 3px #ffffff solid;
    box-shadow: 2px 6px 0 #ffd13b88;
  }
  .gallery .gallery_box .gallery_list .gallery_item:nth-of-type(even) {
    box-shadow: 2px 6px 0 #77be6488;
  }
  .gallery .gallery_box .gallery_pickup .pickup_img {
    width: 30vw;
    height: 30vw;
    max-width: none;
    max-height: none;
    line-height: 0;
    overflow: hidden;
  }
  .gallery .gallery_box .gallery_pickup .pickup_conts {
    width: 70vw;
    max-width: calc(100% - 35vw);
  }
}
/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {
  .gallery .gallery_box .gallery_pickup {
    padding: 5vw;
  }
  .gallery .gallery_box .gallery_pickup h3 {
    width: 80%;
    margin: 0 auto 3vw;
  }
  .gallery .gallery_box .gallery_pickup .pickup_img {
    width: 100%;
    height: 45vw;
    max-height: none;
  }
  .gallery .gallery_box .gallery_pickup .pickup_conts {
    width: 100%;
    max-width: none;
  }
  .gallery .gallery_box .gallery_list {
    width: 100%;
    justify-content: center;
    gap: 3vw;
  }
  .gallery .gallery_box .gallery_list .gallery_item {
    width: 25vw;
    height: 25vw;
  }
}
@media screen and (max-width: 430px) {
}

/* ポップアップの初期状態 */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  padding: 20px;
}

/* クリック後の表示状態（:target 発火） */
.popup:target {
  opacity: 1;
  pointer-events: auto;
  z-index: 999999;
}
.popup:target > footer {
  z-index: -1;
}

.popup-wrap .thumb {
  display: block;
  width: 240px;
  height: 240px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.popup-wrap .thumb:after {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
/* キャプション取得 */
.popup-wrap .thumb:hover::after {
  content: attr(data-nema);
  background: #00000055;
  color: #ffffff;
  text-align: center;
}
.popup-wrap .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popup .img-wrap {
  max-width: 70vw;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* キャプション */
.popup figcaption {
  max-width: 80vw;
  margin-top: 15px;
  color: #ffffff;
  line-height: 1.2;
}

/* 背景 */
.popup .close {
  display: block;
  content: "";
  width: 40px;
  height: 40px;
  background: #666666cc;
  text-align: center;
  font-size: 200%;
  color: #fff;
  position: absolute;
  top: 0;
  right: 0;
}
/* タブレット用のスタイル */
@media screen and (max-width: 1081px) {
  .popup-wrap .thumb {
    display: block;
    width: 100%;
    height: 100%;
    /* width: calc((100vw / 4) - 30px);
    height: calc((100vw / 4) - 30px); */
    overflow: hidden;
  }
}
/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {
  .tsubaki_itemlist {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .popup-wrap .thumb {
    width: 100%;
    height: 100%;
    /* width: calc((100vw / 2) - 40px);
    height: calc((100vw / 2) - 50px); */
  }
}
@media screen and (max-width: 430px) {
}
