@charset "utf-8";

/*====================================================================================================

 施工例

====================================================================================================*/
.pg-title-img{
	background-repeat: no-repeat;
	background-position: top center;
	background-image: url("../image/title.jpg");
}

html,body{
	overflow-x: hidden;
}

@media screen and (min-width:641px) {
  .pg-title-img{
    height: 200px;
  }
}

@media screen and (max-width:640px) {
  .pg-title-img{
    height: 160px;
    background-size: cover;
    background-position: 50%;
  }	
}

/*----------------------------------------------------------------------------
   post-content
------------------------------------------------------------------------------*/

#works .inner .works-box{
	display: grid;
	width: 100%;
	margin-bottom: 30px;
	max-width: 823.3px;
}

@media screen and (min-width: 641px) {
  #works .inner .works-box{
    grid-template-columns: repeat(3,1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
  }	
}

@media screen and (max-width: 640px) {
  #works .inner .works-box{
    grid-template-columns: repeat(2,1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
  }	
}


@media screen and (min-width: 641px) {
  #works .inner main{
    padding-right:40px;
    width: 840px;
    box-sizing: border-box;
  }	
}

@media screen and (max-width: 640px) {
  #works .inner main{
    padding-right:0px;
  }
}

#works .side {
  width: 314px;
  border-left: 1px solid #E5E5E5;
  border-right: none;
  padding-left: 40px;
  box-sizing: border-box;
}

@media screen and (max-width: 640px) {
  #works .side {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
    left: inherit;
    right: inherit;
    border-left: none;
  }
}

#works .post {
  background-color: #fff;
  /*margin-bottom: 50px;*/
}

#works .post > a{
  height: 100%;
  display: inline-block;
}

#works h3 {
	background-color: #8EB809;
    margin: 0;
    padding: 0;
    padding-top: 13px;
    padding-bottom: 13px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 18px;
    /*border-radius: 10px;*/
}

@media screen and (max-width: 750px) {
  #works h3 {
    font-size: 24px;
  }
}

#works .post h4 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: normal;
  padding-bottom: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid #96b945;
}

#works .post h4 span:not(:last-child) {
  /*display: block;*/
  font-size: 15px;
  margin-right: 10px;
  color: #777777;
}

#works .post span.ttl {
  display: block;
  font-weight:bold;
  padding: 0.05em 0.5em;
  text-align: center;
  position: relative;
  word-break:break-all; 
}

#works .post span.ttl {
  margin: 10px 0;
}

#works .post a .cate{
  font-size: 15px;
}

#works .post p:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

#works .post img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  font-family: "object-fit:cover;";
}

#works .post img.aligncenter {
  padding-bottom: 0 !important;
}

#works .post .content-set:nth-of-type(n+2) {
  display: none;
}
@media screen and (min-width: 641px) {
  .works .inner{
    display: flex;
  }
}

/*------------------------------------------------------------------------------------------------------------------
　img align for wordpress
-------------------------------------------------------------------------------------------------------------------*/

.aligncenter {
    display: block;
    margin: 0 auto;
	padding-bottom:25px;
	max-width:100%;
}
.alignright { float: right; margin-left:30px; margin-bottom:25px; max-width:100%; }
.alignleft { float: left; margin-right:30px; margin-bottom:25px; max-width:100%; }

.aligncenter img, .alignright img, .alignleft img {
	max-width:100%;
	height:auto;
}

@media screen and (max-width: 1140px) {
	.aligncenter {
		display: block;
		margin: 0 auto;
		padding-bottom:25px;
		max-width:100%;
		text-align:center;
	}
	.alignright { float: none; margin: 0 auto; margin-bottom:0; padding-bottom:0; max-width:100%; text-align:center; display: block; }
	.alignleft { float: none; margin: 0 auto; margin-bottom:0; padding-bottom:0; max-width:100%; text-align:center; display: block; }
}

div:after, section:after, article:after, ul:after {
    content: "";
    display: block;
    clear: both;
}

.cate {
  display: inline-block;
  padding: 0.05em 0.25em;
  /*margin-right: 1em;*/
  /*background-color: #738D37;
  color: #fff;*/
  width: 130px;
  text-align: center;
  box-sizing: border-box;
}


@media screen and (max-width: 640px) {
  .cate {
    width: 100%;
  }
}
.cate-list{
  list-style: none;
}

.cate-list li:not(:last-child){
  margin-bottom: 20px;
}

.cate-list li .cate{
  width: 100%;
  padding: 16px 0;
}

.works{
  margin-bottom: 60px;
}

.main-cate-list {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding-bottom: 20px;
}

.main-cate-list li {
  line-height: 1;
  margin-bottom: 5px;
}

.main-cate-list li a {
  display: block;
  padding: 0.5em;
}

.main-cate-list li a,
.main-cate-list li a:hover {
  color: #FFF;
}

@media screen and (max-width: 640px) {
  .works .inner{
    display: block!important;
  }
}

#works .post span.d-ttl {
  font-size: 24px;
  display: block;
  font-weight:bold;
  text-align: center;
  position: relative;
}
#works .post span.d-ttl::before, #works .post span.d-ttl::after {
  content: "";
  top: 0;
  position: absolute;
  display: inline-block;
  height: 100%;
  width: 5px;
  border: 1px solid #E8E8E8;
}

#works .post span.d-ttl::before {
  left: 0;
  border-right: 0;
}

#works .post span.d-ttl::after {
  right: 0;
  border-left: 0;
}

#works .post span.d-ttl {
  margin: 10px 0;
}

.fancybox-list{
  display: grid;
}

.fancybox-list img{
  height: 200px;
  object-fit: cover;
  font-family: "object-fit: cover;";
}

.fancybox-list a{
  text-align: center;
}

@media screen and (min-width: 641px) {
  .fancybox-list{
    grid-template-columns: repeat(3,1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px; 	
  }
}

@media screen and (max-width: 640px) {
  .fancybox-list{
    grid-template-columns: repeat(2,1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
  }
}

.gallery-hdline{
  background-color: #efefef;
  border-left: 3px solid #abc210;
  /*height: 65px;*/
  color: #484848;
  font-size: 18px;
  margin: 0;
  padding: 0;
  padding-left: 25px;
  padding-right: 25px;
  line-height: 63px;
  font-weight: normal;
  margin-bottom: 30px;
}

.txt-box{
  margin-bottom: 60px;
}

.fancybox-title-outside-wrap, .fancybox-title-over-wrap {
  text-align: center;
  text-shadow: 0 0px rgb(0 0 0 / 50%)!important;
  font-weight: bold!important;
  color: #3F3F3F!important;
}

.fancybox-title {
  background-color: #f9f9f9;
  padding: 10px;
  padding-bottom: 20px;
  color: #000000;
  font-size: 16px!important;
  text-align: center;
  margin-top: 0 !important;
  width: calc(100% + 10px);
  margin-left: -15px;
}