

/* Lightbox画像に最大サイズとアスペクト比を保たせる */
.lightbox img,
.lb-image,
.pswp__img {
  /*
  max-width: 100%;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;

  height: auto !important;
  */

  object-fit: contain;
  object-position: center center;


}

* {
  margin: 0;
  padding: 0;
  border-top-style: none;
  border-right-style: none;
  border-bottom-style: none;
  border-left-style: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  list-style: none;
}

html {
  height: 100%;
  width: 100%;
  min-width:370px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  color: #000;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  height: 100%;
  width: 100%;
  letter-spacing: 0.5px;
  -webkit-text-size-adjust: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

/* Common
--------------------------------------------------------------------*/

/* For modern browsers */
.cf:before,
.cf:after {
  content: "";
  display: table;
}

.cf:after {
  clear: both;
}

/* For IE 6/7 (trigger hasLayout) */
.cf {
  zoom: 1;
  overflow: hidden;
}

/* Item set */
img {
  width: 100%;
  height: auto;
  display: block;
}

.iframe-content {
  position: relative;
  width: 100%;
}

.iframe-content iframe {
  width: 100%;
  height: 100%;
}

.ytmm {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.ytmm iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100% !important;
  height: 100% !important;
}



body {
  background-color: #fff;

}



.youtube-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.youtube-wrap iframe {
  width: 100%;
  height: 100%;
}


.title-wrap{
  padding: 30px;
}

.title-wrap h1{
  text-align: center;

  font-size: 32px;
  margin-bottom: 10px;
} 

.title-wrap h2{
  text-align: center;
  font-size: 22px;
  margin-bottom: 10px;

}


.title-wrap h3{
    font-size: 18px;
  text-align: center;

}



/*ページネーション*/

.pagination{
  display: table;
  margin: 0 auto;
  margin-bottom: 30px;


}


.pagination a.current{
  border: 1px solid #333333;
  display: inline-block;
  margin:  2px !important;
  padding: 8px 8px !important;
 color: #333333;
}

.pagination a.current{
  background: #333333;
  color: #fff;
}

.pagination a{

  display: inline-block;
  border: 1px solid #333333;
  margin:  2px !important;
  padding: 8px 8px !important;
  color: #151515;

}

.pagination a {
    width: auto !important;
    height: auto;
    text-decoration: none;

}
.pagination a:hover {
    box-shadow:none!important;
}

.pagination a.active {
  background: #333333;
  color: #fff;
  padding: 8px 8px !important;
}

.pagination a:hover{
  background: #333333;
  color: #fff;
}
.pagination a:hover{
  color: #fff;
}


.copy{
  text-align: center;
  padding-bottom: 30px;

}


    .gallery-wrap {
     padding-right: 10px;
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
      padding: 10px;
      padding-right: 0px;

    }
    .gallery a img {
      max-width: 100%;
      height: auto;
      /*
      border: 1px solid #ccc;
      border-radius: 8px;
      */
      transition: transform 0.2s;
    }
    .gallery a img:hover {
      transform: scale(1.05);
    }


.gallery {
  margin: 0 auto;
}

.gallery-item {
  width: calc(25% - 10px); /* 4列、間隔10px */
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .gallery-item {
    width: calc(33.33333333% - 10px); /* タブレット2列 */
  }



.title-wrap h1{
  text-align: center;

  font-size: 26px;
  margin-bottom: 10px;
} 

.title-wrap h2{
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;

}


.title-wrap h3{
    font-size: 12px;
  text-align: center;

}



.pagination a{

  font-size: 12px;

}


.pswp__img {
/*
  object-fit: contain !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  */

}

}

@media (max-width: 480px) {
  .gallery-item {
    width: calc(50% - 10px); /* タブレット2列 */
  }
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

