
/* **********************************
 *  Gallery
 * ********************************* */
.pg_xxxx{

}
.pg_xxxx .section#sec1{

}
.pg_xxxx .section#sec2{

}
.pg_xxxx .section#sec3{

}

.gallery_items{
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;

}
.gallery_items .item{
  width: 100%;
}
.gallery_items .item:first-child{
  padding-top: 50px;
  margin-top: -50px;
}
.gallery_items .item:nth-child(n+2){
  padding-top: 50px;
  margin-top: 0;
}
.gallery_items .inner{
  padding: 0 5px;
}
.gallery_items .item .img{

}
.gallery_items .item .img.img_fit:before{
  padding-top: 79.5%;
}

.gallery_items .item .txt{
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 2;
  text-align: justify;
  margin-top: 20px;
}

.gallery_sns {
  margin-top: 50px;
  text-align: center;
}
.gallery_sns .text{
  letter-spacing: 0.1em;
  line-height: 2;
}
.gallery_sns .btn a{
  letter-spacing: 0;
  width: 100%;
  max-width: 340px;
}
.gallery_sns .min{
  font-size: 14px;
  margin-top: 11px;
}

.btn a{
}

/*HOME:ギャラリー*/
.home_gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0;
  padding: 0 15px;
}
.home_gallery .item {
  width: 50%;
  padding: 0 5px;
}
.home_gallery .img_fit{
  overflow: hidden;
}
.home_gallery .img_fit:before{
  padding-top: 86.5%;
}
.home_gallery .item a{
  display: block;
}
.home_gallery .item a:hover{
  opacity: 1;
}
.home_gallery .img_fit img{
  transition: 0.2s;
}
.home_gallery a:hover .img_fit img{
  scale: 1.1;
  opacity: 1;
}

@media(max-width:767px){
  .gallery_sns .text{
    text-align: justify;
  }
  .gallery_sns .sns_list{
    margin-top: 30px;
  }
  .gallery_sns .sns_list .item{
    margin-top: 30px;
  }

  .home_gallery .item:nth-child(n+2){
    margin-top: 0;
  }
  .home_gallery .item:nth-child(n+3){
    margin-top: 10px;
  }
  .home_gallery .item:nth-child(n+9){
    display: none;
  }
}
@media(min-width:768px){
  .gallery_items{
    margin: 0 -10px;
  }
  .gallery_items .item{
    width: 50%;
  }
  .gallery_items .item:nth-child(n+2){
    margin-top: 0;
  }
  .gallery_items .item:nth-child(-n+2){
    padding-top: 30px;
    margin-top: -30px;
  }
  .gallery_items .item:nth-child(n+3){
    padding-top: 30px;
  }
  .gallery_items .item .inner{
    padding: 0 10px;
  }

  .gallery_sns {
    margin-top: 100px;
  }
  .sns_list {
    margin: 55px -15px 0;
    display: flex;
  }
  .sns_list .item{
    width: 50%;
    padding: 0 15px;
  }

  .home_gallery {
    margin: 42px 0 60px;
    padding: 0 15px;
  }
  .home_gallery .item {
    width: 33.33%;
  }
  .home_gallery .item:nth-child(n+4){
    margin-top: 10px;
  }
  .home_gallery .item:nth-child(n+10){
    display: none;
  }
}
@media(min-width:1024px){
  .gallery_items{
    margin: 0 -15px;
  }
  .gallery_items .item{
    width: 50%;
  }
  .gallery_items .item:nth-child(-n+2){
    padding-top: 50px;
    margin-top: -50px;
  }
  .gallery_items .item:nth-child(n+3){
    padding-top: 50px
  }
  .gallery_items .item .inner{
    padding: 0 15px;
  }

  .gallery_sns .text {
    padding-left: 9px;
  }
  .gallery_sns .min {
    padding-left: 5px;
  }

  .home_gallery {
    padding: 0 30px;
  }
  .home_gallery .item {
    width: 20%;
  }
  .home_gallery .item:nth-child(n+4){
    margin-top: 0;
  }
  .home_gallery .item:nth-child(n+6){
    margin-top: 10px;
  }
  .home_gallery .item:nth-child(n+10){
    display: block;
  }
}
@media(min-width:1200px){
  .gallery_items{
    margin: 0 -30px;
  }
  .gallery_items .item{
    width: 50%;
  }
  .gallery_items .item:nth-child(-n+2){
    padding-top: 70px;
    margin-top: -70px;
  }
  .gallery_items .item:nth-child(n+3){
    padding-top: 70px;
  }
  .gallery_items .item .inner{
    padding: 0 30px;
  }

  .home_gallery {
    padding: 0 60px;
  }
  .home_gallery .item {
    width: 16.66%;
  }
  .home_gallery .item:nth-child(n+6){
    margin-top: 0;
  }
  .home_gallery .item:nth-child(n+7){
    margin-top: 10px;
  }
}
