@charset "utf-8";
/* CSS Document */

/*==================================
 masonry
===================================*/
#masonry {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}	
#masonry:after {content:''; display:block; clear:both;}

.grid-sizer,
.grid-item {
	width:24%;
}
.gutter-sizer {
	width:1%;
}

.grid-item {
overflow:hidden;
margin-bottom: 10px;
xpadding:4px;
background:#fff;
float:left;
text-align:left;
xborder-radius:4px;
  border: solid 4px #000;
  box-sizing: border-box;
}
.grid-item:nth-child(odd) {
  xtransform: rotate(5deg);
}
.grid-item:nth-child(even) {
  xtransform: rotate(-5deg);
}

/* hover */
#masonry figure {
  position: relative;
  overflow: hidden;
  width: 100%;
}
#masonry figure img {
	width: 100%;
	height: auto;
	xmargin-bottom: -7px;
	transform: scale(1, 1);
  -webkit-transition: .3s;
  transition: .3s;
}

#masonry figure figcaption {
  position: absolute;
  left: -100%;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.6);
  -webkit-transition: .3s;
  transition: .3s;
  opacity: 0;
  color: #FFF;
}
#masonry figure figcaption h3,
#masonry figure figcaption p {
  xposition: absolute;
  line-height: 1.4;
  display: block;
  xleft: -100%;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  -webkit-transition: .3s;
  transition: .3s;
}
#masonry figure figcaption h3 {
  margin-top: 20px;
  font-weight: bold;
  font-size: 16px;
}
#masonry figure figcaption p {
  margin-top: 10px;
  font-size: 16px;
}

#masonry figure:hover img {
	transform: scale(1.1, 1.1);
}
#masonry figure:hover figcaption {
  opacity: 1;
  left: 0%;
}
#masonry figure:hover figcaption h3,
#masonry figure:hover figcaption p {
  left: 5%;
}
#masonry figure:hover figcaption h3 {
  -webkit-transition-delay: .2s;
  transition-delay: .2s;
}
#masonry figure:hover figcaption p {
  -webkit-transition-delay: .5s;
  transition-delay: .5s;
}

/*-----------------------------------------------------	*/
/*	for - 1100px以下の記述　*/
/*-----------------------------------------------------	*/

@media screen and (max-width:1100px) {
	
#masonry {
	width: 96%;
}
}

/*-----------------------------------------------------	*/
/*	for - 700px以下の記述　*/
/*-----------------------------------------------------	*/

@media screen and (max-width:700px) {
	
#masonry {
	width: 96%;
}
	.grid-sizer,
	.grid-item {width:32%;}
	.gutter-sizer {width:2%;}

.grid-item.big {
	width:66%;
}

}

@media screen and (max-width:640px) {
	.grid-sizer,
	.grid-item {width:49%;}
	.gutter-sizer {width:2%;}
	
.grid-item.big {
	width:100%;
}
	
}


