@charset "UTF-8";

.gallery_wrapper {
  margin-inline: auto;
}

.gallery_main .gallery_wrapper,
.gallery_main .gallery_title .section_inner,
.gallery_main .link_saganyan {
  max-width: 1300px;
  margin-inline: auto;
}
.gallery_main .gallery_title {
  margin-top: 3.5vw;
}
.gallery_main .gallery_title .ss_tt {
  align-items: center;
}
.gallery_main .link_saganyan {
  margin-top: 25px;
}
.gallery_main .link_saganyan a {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  background-color: #ff633c;
  color: #fff;
  padding: 15px 20px 15px 45px;
  font-size: 16px;
  letter-spacing: calc(100em / 1000);
}
.gallery_main .link_saganyan a::before {
  display: block;
  position: absolute;
  top: 50%;
  left: 25px;
  width: 18px;
  height: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  content: "";
  transform: translate(-50%, -50%);
  background-image: url(../images/news/prev_ar.png);
  transition: linear all 0.25s;
}
.gallery_main .link_saganyan a:hover::before {
  left: 15px;
  transition: linear all 0.25s;
}

.gallery_inner {
  display: flex;
  margin-right: -1.5%;
  flex-flow: wrap;
}
.gallery_inner .gallery_item {
  width: 20%;
  padding-right: 1.5%;
  display: block;
  position: relative;
  margin-top: 45px;
}
.gallery_inner .gallery_item a {
  display: block;
  position: relative;
  background-color: #fff;
  padding: 25px 20px;
  transition: 0.25s ease-in-out;
}
.gallery_inner .gallery_item .tags {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  background-color: #ff633c;
  transform: rotate(-15deg);
  z-index: 2;
  border-radius: 100%;
}
.gallery_inner .gallery_item .gallery-image {
  width: 100%;
  height: 0;
  padding-top: 100%;
  position: relative;
  border: 2px solid #ff633c;
  overflow: hidden;
}
.gallery_inner .gallery_item .gallery-image img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  min-height: 100%;
  object-position: center center;
}
.gallery_item .saganyan_name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.22;
  padding-top: 12px;
}
.gallery_item .saganyan_name span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: #ff633c;
}
.gallery-info-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 30px;
  gap: 25px;
  align-items: center;
}
.gallery-info-block p {
  font-size: 1rem;
  line-height: 2em;
}
.gallery-info-bar {
  text-align: right;
  font-size: 15px;
}
@media screen and (max-width: 1179px) {
  .gallery_inner .gallery_item {
    width: 25%;
  }
  .gallery_main .link_saganyan {
    margin-top: 45px;
  }
}
@media screen and (max-width: 769px) {
  .gallery_inner .gallery_item {
    width: 33.33%;
    padding-right: 2%;
    margin-top: 4%;
  }
  .gallery_inner .gallery_item a {
    padding: 8% 5%;
  }
  .gallery_inner .gallery_item .tags {
    top: 10px;
    left: 0vw;
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
  .gallery_item .saganyan_name {
    font-size: 3.4vw;
    padding-top: 2vw;
  }

  .gallery-info-block {
    margin-top: 20px;
    gap: 20px;
  }
  .gallery-info-block p {
    line-height: 1.8em;
  }
  .gallery-info-bar {
    text-align: right;
    font-size: 14px;
  }

  .gallery_main .gallery_title {
    margin-top: 5vw;
  }

  .gallery_main .link_saganyan {
    margin-top: 12vw;
  }
  .gallery_main .link_saganyan a {
    border-radius: 10px;
    padding: 10px 15px 10px 35px;
    font-size: 2.8vw;
  }
  .gallery_main .link_saganyan a::before {
    left: 20px;
    width: 15px;
    height: 8px;
  }
  .gallery_main .link_saganyan a:hover::before {
    left: 15px;
  }
}

/* .page_single_wrap #news_pagination {
  display: none;
} */
.page_single_wrap .gallery_inner .gallery_item a {
  padding: 0;
}

.page_single_wrap #gallery_lk {
  margin-top: 25px;
}
#gallery_lk {
  display: flex;
  position: relative;
  margin-right: auto;
  margin-left: auto;
  border-radius: 100px;
  background-color: #ff633c;
  color: #fff;
  font-weight: 500;
  align-items: center;
  -webkit-box-align: center;
  -moz-box-align: center;
  -o-box-align: center;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -o-box-pack: center;
  -ms-flex-align: center;
  justify-content: center;
}
#gallery_lk:hover {
  background-color: #ff963c;
}
.page_single_wrap #gallery_lk::after {
  position: absolute;
  top: 50%;
  background-image: url(../images/news_btn_next.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  content: "";
  transform: translate(0, -50%);
}
#gallery_lk:hover::after {
  right: 2.196193265vw;
}
@media screen and (min-width: 769px) {
  #gallery_lk {
    width: 17.5695461201vw;
    height: 3.953147877vw;
    padding-right: 1.317715959vw;
    font-size: 1.0248901903vw;
    line-height: 1.0248901903vw;
  }
  #gallery_lk::after {
    right: 2.3426061493vw;
    width: 1.0248901903vw;
    height: 0.7320644217vw;
  }
}
@media screen and (max-width: 768px) {
  #gallery_lk {
    margin-top: 15px;
    width: 64vw;
    height: 14.4vw;
    padding-right: 4.8vw;
    font-size: 3.7333333333vw;
    line-height: 3.7333333333vw;
  }
  #gallery_lk::after {
    right: 8.5333333333vw;
    width: 3.7333333333vw;
    height: 2.6666666667vw;
  }
}

/* モーダルのスタイル調整 */
.modaal-content-container {
  padding: 20px;
}

/* ✕ボタンの位置調整 */
.modaal-close {
  position: absolute;
  top: -60px;
  right: 0;
}

/* ✕ボタンの色 */
.modaal-close:after,
.modaal-close:before {
  background: #ccc;
}

/* ホバーしたときの✕ボタンの色 */
.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before {
  background: #ca353b;
}

.modaal-wrapper {
  overflow: hidden !important;
}
.modaal-outer-wrapper {
  overflow: hidden !important;
}
.modaal-inner-wrapper {
  overflow: hidden !important;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 5vh;
  padding-bottom: 5vh;
}
.modaal-container {
  background: none !important;
  box-shadow: none !important;
}
.modaal-image .modaal-gallery-item img {
  display: block;
  max-height: 90vh;
  max-width: 90vw;
  width: auto !important;
  height: auto !important;
  margin: auto;
}
.modaal-gallery-control {
  position: fixed !important;
}
.modaal-gallery-next-inner {
  right: 5%;
  left: auto !important;
}
.modaal-gallery-prev-inner {
  right: auto !important;
  left: 5%;
}
