@charset "utf-8";

body.modal-open {
    padding-right: 0 !important;
}

.galleryCateBtnWr section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.galleryBtn {
    color: #fff;
    display: block;
    position: relative;
    z-index: 9;
    font-size: 16px;
    text-shadow: 0px 0px 3px #333;
}

.galleryBtn:hover {
    opacity: 0.7;
    color: #fff;
}

.firstBox {
    display: none;
}

.firstBox:first-child {
    display: flex;
}

/*-----------------------------------------------------------
ギャラリー
-----------------------------------------------------------*/

.galleryBlockBox section {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    display: grid;
}

.galleryBlockBox>section .webgene-pagination:nth-last-child(1) {
    grid-area: auto/auto/auto/span 2;
}

img + .no-img {
    display: none;
}

.gallery-img-frame {
    width: 100%;
    height: 0;
    padding-top: 132.09%;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.gallery-img-frame img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    object-fit: cover;
}

.galleryModalBtn {
	padding: 5px;
    border: 3px solid ;
    cursor: pointer;
    transition: all .3s;
}

.galleryModalBtn:hover img {
    transform: scale(1.1);
    transition: all .3s;
}

.galleryModalBtn img {
    transition: all .3s;
}

.galleryBtn.is-active {
    text-decoration: underline;
}

/*===========================================================
Modal
===========================================================*/

.galleryModalImgBox {
    width: 100%;
    height: 0;
    padding-top: 132.09%;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.galleryModalImgBox img {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
}

.modal-content {
    border-radius: unset !important;
}

.intModal01 {
    max-width: 403px;
    width: 96%;
    margin: 1rem auto 1rem auto;
}

.inModalBody.modal-body {
    padding: 15px 15px 30px;
    background-color: #fff;
    color: #555;
}

.gallery-title {
    margin-top: 15px;
    color: #333;
    font-size: 14px;
}

.closeBtn {
    max-width: 150px;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    position: relative;
    border: 1px solid;
    border-radius: 33px;
    transition: all .5s;
    cursor: pointer;
    margin: 20px auto 0;
}

.closeBtn {
    border-color: #555555;
    color: #555555;
}

.closeBtn:hover {
    background-color: #555555;
    color: #fff;
}

/* ---------- ぺージャーここから ---------- */

.webgene-pagination {
    width: 100%;
}

.webgene-pagination > ul{
  padding: 0;
  display: flex;
  justify-content: center;
  margin: 40px auto 0;
  gap: 10px;
}

.webgene-pagination > ul > li{
  display: flex;
}

.webgene-pagination > ul > li{
  height: 40px;
  width:100%;
  max-width: 40px;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 50%;
  font-size: 14px;
  border: 1px solid #5c845300;
  font-weight: 400;
  margin: 0 !important;
}

.webgene-pagination > ul > li.selected > a{
  color: #333;
  background: #fff;
  cursor: inherit;
}

.webgene-pagination > ul > li.selected > a:hover {
    color: #fff;
    background-color: #333;
}

.webgene-pagination > ul > li > a{
  width: 100%;
  height: 100%;
  width: 100%;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.webgene-pagination > ul > li > a:hover{
  color: #333;
  background-color: #fff;
  text-decoration: none;
}

.next > a {
    font-size: 0;
    padding-top: 0 !important;
    background-color: #555 !important;
}

.prev > a{
    font-size: 0;
    padding-top: 0 !important;
    background-color: #333 !important;
}

.next > a:before {
    content: "";
    background: url(/system_panel/uploads/images/next-icon01.svg) no-repeat;
    background-position: center;
    background-size: contain;
    width: 13px;
    height: 8px;
}

.prev > a:before {
    content: "";
    background: url(/system_panel/uploads/images/prev-icon01.svg) no-repeat;
    background-position: center;
    background-size: contain;
    width: 13px;
    height: 8px;
}

.webgene-pagination > ul > .prev > a:hover,
.webgene-pagination > ul > .next > a:hover{
  background-color: #333 !important;
}

.webgene-pagination > ul > .prev > a:hover:before,
.webgene-pagination > ul > .next > a:hover:before{
    filter: brightness(0) invert(1);
}


/*-----*/

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:375px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 375px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:414px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

  



/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 414px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:544px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
  

  
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 544px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:768px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

/*---カテゴリ--*/

.galleryCateBtnWr section {
    gap: 10px 33px;
}

.galleryBtn {
    font-size: 18px;
}

/*--記事--*/

.galleryBlockBox section {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.galleryBlockBox>section .webgene-pagination:nth-last-child(1) {
    grid-area: auto/auto/auto/span 3;
}

.galleryModalBtn {
    padding: 10px;
    border: 5px solid ;
}
  
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 768px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:992px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
  


/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 992px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */


/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:1024px) {

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

/*---カテゴリ--*/

.galleryCateBtnWr section {
    gap: 10px 53px;
}

.galleryBtn {
    font-size: 20px;
}

/*--記事--*/

.galleryBlockBox section {
    grid-template-columns: repeat(4, 1fr);
}

.galleryBlockBox>section .webgene-pagination:nth-last-child(1) {
    grid-area: auto/auto/auto/span 4;
}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

} /* min-width: 1024px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */