/*写真パネル*/
#fh5co-page {
  position: relative;
  -webkit-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -moz-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -ms-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -o-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  background: #fff;
}
.menu-show #fh5co-page {
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
  transform: scale(0.9);
}
.ri-grid ul li {
  background: transparent !important;
}
/*
.ri-grid ul li:nth-child(13),.ri-grid ul li:nth-child(14),.ri-grid ul li:nth-child(15),.ri-grid ul li:nth-child(16),.ri-grid ul li:nth-child(17),.ri-grid ul li:nth-child(18),.ri-grid ul li:nth-child(19),.ri-grid ul li:nth-child(20),.ri-grid ul li:nth-child(21),.ri-grid ul li:nth-child(22),.ri-grid ul li:nth-child(23),.ri-grid ul li:nth-child(24) {
  display:none;
}*/
.ri-grid ul li a .desc {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: rgba(250, 126, 10, 0.8);
  opacity: 0;
  padding-top: 35%;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.ri-grid ul li a .desc h4 {
	font-size: 15px;
	color: white;
	margin-top:15px;
	text-decoration: none;
	line-height:1.1;
  -webkit-transition: 0.6s;
  -o-transition: 0.6s;
  transition: 0.6s;
	font-weight: bold !important;
}
.ri-grid ul li a .desc h4 span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.ri-grid ul li a:hover .desc, .ri-grid ul li a:focus .desc {
  opacity: 1;
}
.ri-grid ul li a:hover img, .ri-grid ul li a:focus img {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  border: 1px solid red;
}

.grid-photo {
  position: relative;
  width: 100%;
  height: 350px;
  float: left;
  margin-bottom: 30px;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  -ms-border-radius: 7px;
  border-radius: 7px;
}
.grid-photo .desc {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(250, 126, 10, 0.8);
  padding-top: 140px;
  opacity: 0;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  -ms-border-radius: 7px;
  border-radius: 7px;
}
.grid-photo .desc h3 {
  color: white;
  text-decoration: none;
  margin-bottom: 5px;
}
.grid-photo .desc span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.grid-photo:hover .desc, .grid-photo:focus .desc {
  opacity: 1;
}
.container:before,.container:after{
    content: " ";
    display: table;
}
@media screen and (max-width:500px){
.ri-grid ul li a .desc h4 {
  font-size: 13px;
}
.ri-grid ul li a .desc h4 span {
  font-size: 10px;
}
}
