/*=======================================================================*/
/* 写真館 */
/*=======================================================================*/
/*ギャラリートップ*/
.gallery{
    margin-bottom: 30px;
}
.photo_index{
	margin-top: 30px; 
}
.photo_cat{
    float: left;
    width: 50%;
}
.photo_index:before,
.photo_index:after {
	content: "\0020";
	display: block;
	height: 0;
	overflow: hidden;
  clear: both;
}
.photo_cat a{
    display: block;
    width: 90%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
    transition:.5s;
}
.photo_cat.keikan a{
    background-image : url(/img/sight/photo_cat_back_keikan.jpg);
}
.photo_cat.seasons a{
    background-image : url(/img/sight/photo_cat_back_seasons.jpg);
}
.photo_cat a:hover{
    background-size:auto 110%
}
#document.catdoc .photo_cat h2{
    background-color: rgba(255,255,255,0.7);
    border-style: solid;
    border-width: 2px;
    text-shadow: 1px 1px 0 #455A64;
    text-align: center;
}
#document.catdoc .photo_cat p{
    width: 90%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

/*フィールド*/
.gallery_field:before, .gallery_field:after {
	content: "\0020";
	display: block;
	height: 0;
	overflow: hidden;
    clear: both;
}
.gallery_thumbnail{
    float: left;
    width: 210px;
    margin: 3px;	
}
@media screen and (max-width: 440px) {
  .gallery_thumbnail{
      width: 46%;	
  }
}

.gallery_thumbnail a{
    display: block;
    background-image: none !important;
    background-color: #FAFAFA;
    padding: 5px;
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    text-align: center;
    overflow: hidden;
    transition:.5s;
}
.gallery_thumbnail a:hover{
    background-color: #fff8e1;
    border: 1px solid #ffa84a;
}
.gallery_thumbnail img{
    width: auto;
    max-width: 160px;
    width: auto;
    max-height: 120px !important;
    height: auto;
    margin: 0 auto 0 auto;
    -moz-transition: -moz-transform 0.2s linear;
    -webkit-transition: -webkit-transform 0.2s linear;
    -o-transition: -o-transform 0.2s linear;
    -ms-transition: -ms-transform 0.2s linear;
    transition: transform 0.2s linear;
}
@media screen and (max-width: 440px) {
  .gallery_thumbnail img{
      width: 100%;
      max-width: auto;	
  }
}

.gallery_thumbnail img:hover {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}



#document.catdoc .gallery_thumbnail p{
    line-height: 1.0em;
    font-size: 0.8em;
    color: #666666;
	padding: 5px 10px;
}
.gallery_more{
	text-align: center;
}
.gallery_more a{
    background-color: #43987C;
    color: #fff;
    padding: 5px 20px;
    border-radius: 5px;
  	-webkit-transition: 0.3s ease-in-out;
	-moz-transition: 0.3s ease-in-out;
	transition: 0.3s ease-in-out;
}

.gallery_more a:hover {
    background-color: #987643;
      padding: 5px 40px;
}

/*カラーボックス調整 */
body #cboxTitle {
    bottom: 25px;
    background-color: #000;
    padding: 5px;
    color: #fff;
}

/*ページネーション*/
.pagination {
    padding: 0;
    margin: 20px 0px;
}

.pagination:before,
.pagination:after {
	content: "\0020";
	display: block;
	height: 0;
	overflow: hidden;
  clear: both;
}

.pagination span.current,
.pagination a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 0 4px;
  transition: background-color .3s;
}


.pagination span.current {
    background-color: #4CAF50;
    color: white;
}
.pagination a:hover{
    background-color: #ddd;
}