@charset "utf-8";

.housing {
  margin: 0 auto;
  width: calc(100% - 140px);
}

.housing__top-img {
  position: relative;
 }
 
 .housing__top-img > h1 {
   position: absolute;
   top: 50%;
   left: 6%;
   color: #fff;
  font-size: 1.5rem;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  transform: translate(0%, -50%);
  -webkit-transform: translate(0%,-50%);
 }
 
.housing__top-img > h1 > span {
   display: block;
   font-size: 3.2rem;
   font-size: 32px;
  font-weight: 700;
 }
 
.housing__links {
  /*margin-bottom: 20px; */
  -js-display: flex;
  display: flex;
}

.housing__links-body {
  position: relative;
  width: 33.333%;
}

.housing__links-body > div {
  filter: brightness(82%);
  transition: all 0.4s;
}

.housing__links-body > div:hover {
  filter: brightness(100%);
}
 
.housing__links-body > p > a,
.housing__links-body > p > a > span {
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s;
}

.housing__links-body > p > a {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  color: #fff;
  font-size: 1.8rem;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0px 0px 2px #444, 0px 0px 2px #444;
  transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
} 
 
.housing__links-body > p > a > span {
   display: block;
   font-size: 24px;
   font-size: 2.4rem;
}
 
.housing__links-body > p > a:hover,
.housing__links-body > p > a > span:hover {
  text-shadow: 0px 0px 2px #444, 0px 0px 2px #444, 0px 0px 2px #444, 0px 0px 2px #444;
}

.recomend {
  margin: auto;
  padding: 100px 0;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
}

.recomend__head {
  margin: -42px 60px 0px 0px;
  font-size: 28px;
  font-size: 2.8rem;
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  line-height: 1.4;
}

.recomend__head > span {
  display: block;
  font-family: 'Bitter',"游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", YuGothic, ヒラギノ角ゴシック ProN W3, 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 22px;
  font-size: 2.2rem;
  font-weight: 200;
}

.recomend__head,
.recomend__head > span {
  letter-spacing: 0.3rem;
}

.recomend__container {
  width: 100%;
  max-width: 584px;
}

.recomend__body a {
  position: relative;
  width: 584px;
  height: 180px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}

.recomend__body:nth-child(-n+2) a {
  border-top: 1px solid #9f9f9f;
}

.recomend__body:nth-child(2) a {
  border-bottom: 1px solid #9f9f9f;
}

.recomend__body > a,.recomend__body > a.recomend__img {
  transition: background 0.5s;
}

.recomend__body > a.border {
  border: 1px solid #bfbfbf;
  height: auto;
}

.recomend__body > a:hover,.recomend__body > a.recomend__img:hover {
  background: rgb(255,255,255,0.3);
}

.recomend__text,
.recomend__text--forest {
  margin-left: 1%;
}

.recomend__text,
.recomend__text--forest {
  color: #000;
  font-size: 18px;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.recomend__text > span {
  font-size: 1.4rem;
  font-size: 14px;
  font-weight: 400;
  display: block;
}

.recomend__img a > img {
  width: 100%;
  max-width: 288px;
  transition: all 0.4s;
}

.recomend__img a:hover > img {
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
    
  .housing {
    margin: 66px auto 0;
    width: 100%;
  }

  .housing__top-img {
    overflow: hidden;
  }

  .housing__top-img img {
    width: 1100px;
    height: 334px;
  }

  .recomend {flex-direction: column;}
  .recomend__container {margin: auto;}


  .recomend__head {
    margin: 0px auto 20px;
    -ms-writing-mode: lr-tb;
    -webkit-writing-mode: horizontal-tb;
    writing-mode: horizontal-tb;
  }
  
  .recomend__body {margin: auto;}

}


@media screen and (max-width: 600px) {

  .housing__top-img > h1 {
     top: 50%;
     left: 50%;
     text-align: justify;
     transform: translate(-50%, -50%);
     -webkit-transform: translate(-50%,-50%);
     width: 84%;
   }
   
  .housing__top-img > h1 br {
    display: none;
  }
 
  .housing__top-img > h1 > span {
    display: block;
    font-size: 2.8rem;
    font-size: 28px;
   }

  .housing__links {
    flex-direction: column;
  }

  .housing__links-body {
    position: relative;
    width: 100%;
  }
  
  .recomend {
    padding: 30px 5%;
    align-items: center;
  }
  

  .recomend__head {
    font-size: 22px;
    font-size: 2.2rem;
    width: 100%;
  }
  
  .recomend__body:nth-child(n+3) a {border-bottom: 1px solid #9f9f9f;}

  .recomend__body a {
    padding: 20px 0;
    width: 100%;
    height: auto;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
  }
  
  .recomend__body > a.border {
    border: none;
    border-bottom: 1px solid #bfbfbf;
  }
  
  .recomend__text,
  .recomend__text--forest {
    margin-left: 0;
    margin-bottom: 10px;
  }
  
  .recomend__text--forest {
    margin-bottom: 0;
  }

}


.contents {
  margin: 0 auto 60px;
  padding-bottom: 60px;
  width: calc(100% - 140px);
  max-width: 1140px;
  background: #f7f7f7;
}

.contents__head {
  -js-display: flex;
  display: flex;
}

.contents__head--text {
  padding: 50px 30px 0px;
  width: 327px;
  height: 327px;
}

.contents__head--text > h1 {
  margin-bottom: 10px;
  font-size: 30px;
  font-size: 3.0rem;
  font-weight: 700;
}

.contents__head--text > h1 > span {
  margin-left: 10px;
  font-size: 24px;
  font-size: 2.4rem;
  display: inline-block;
}

.contents__head--text > p {
  font-size: 15px;
  font-size: 1.5rem;
  line-height: 2.0;
  text-align: justify;
}

.contents__head--img {
  width: 71.3157894%;
  max-width: 813px;
  overflow: hidden;
}

.contents__head--img img {
  width: 813px;
  height: 327px;
}

.contents__body {
  margin: 60px auto 0px;
  width: 750px;
  height: auto;
  -js-display: flex;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.contents__body > div {
  position: relative;
  width: 360px;
}

.contents__body > div::before {
  position: absolute;
  content: '+';
  bottom: 12px;
  right: 12px;
  padding: 5px 6.83px;
  color: #fff;
  font-size: 16px;
  font-weight: 100;
  border: 1px solid #fff;
  border-radius: 50%;
  z-index: 100;
  transition: all 0.5s;
}
    

.contents__body > div:hover::before {
  background: rgb(255,255,255,0.85);
  color: #000;
}

.contents__body > div::after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0,0,0,0.07);
  transition: background 0.5s;
  z-index: 1;
}

.contents__body > div:hover::after {
  background: rgb(0,0,0,0);
}

.contents__body > div > p {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  color: #fff;
  font-size: 21px;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  -ms-transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  transition: all 0.5s;
  text-shadow: 1px 1px 2px #555,0px 1px 2px #555;
  z-index: 1;
}

.contents__body > div > div > img {
  position: relative;
}

.contents__btn a {
  margin: 30px auto 0;
  padding: 10px 0px;
  width: 312px;
  color: #000;
  font-size: 18px;
  font-size: 1.8rem;
  text-align: center;
  text-decoration: none;
  background: #fff;
  display: block;
  transition: all 0.5s;
}

.contents__btn a:hover {
  color: #fff;
  background: #000;
}


@media screen and (max-width: 768px) {

  .contents {
    margin: 60px auto 50px;
    padding-bottom: 48px;
    width: 100%;
  }

  .contents__head--img {
    overflow: hidden;
    height: 327px;
  }
  
  .contents__head--img img {
    /* max-width: 477px; */
  }
  
  .contents__body {
    margin: 50px auto 0;
    width: 734px;
  }

}

@media screen and (max-width: 600px) {

  .contents__head {
    flex-direction: column-reverse;
    padding: 0;
  }
  
  .contents__head--text {
    margin: 0 auto;
    padding: 20px 0px 0px;
    width: 90%;
    height: auto;
  }
    
  .contents__head--img {
    overflow: hidden;
    width: 100%;
    height: 327px;
  }
  
  .contents__head--img img {
    overflow: hidden;
  }

  .contents__body {
    margin: 30px auto 0px;
    width: 90%;
    height: 100%;
    flex-direction: column;
  }
  
  .contents__body > div {
    margin-bottom: 20px;
    width: 100%;
  }
  
  .contents__body > div:nth-child(4) {
    margin-bottom: 0px;
  }
  
  .contents__btn a {
    margin: 30px auto 0;
    padding: 10px 0px;
  }
  
}


/* かながわ県産木材ページ works-block */

.contents__works {
  margin: 50px auto 0;
  max-width: calc(100% - 60px);
}

.contents__works > h1 {
  margin-bottom: 10px;
  font-size: 20px;
  font-size: 2.0rem;
}

.contents__works--inner {
  width: 100%;
  -js-display: flex;
  display: flex;
  justify-content: space-between;
}

.works-block {
  width: 24%;
}

.works-block > a img {
  filter:  brightness(0.85);
  transition: all 0.4s;
}

.works-block > a img:hover {
  filter: brightness(1.0);
}

.works-block > p {
  margin-top: 10px;
  font-size: 18px;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.works-block > p > span {
  display: block;
  font-size: 14px;
  font-size: 1.4rem;
  font-family: 'Bitter',"游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", YuGothic, sans-serif;
}


@media screen and (max-width: 600px) {

  .contents__works {
    margin: 20px auto 0;
    width: 84%;
  }
  
  .contents__works--inner {
    margin: 0 auto;
    width: 100%;
    flex-direction: column;
    justify-content: center;
  }

  .works-block {
    margin-top: 18px;
    width: 100%;
  }
  
  .works-block:first-child {
    margin-top: 0;
  }

}


/* /かながわ県産木材ページ works-block */


.links-wrap {
  margin: 0 auto 80px;
  width: calc(100% - 60px);
  max-width: 970px;
  -js-display: flex;
  display: flex;
  justify-content: space-between;
}

.links-wrap__body {
  width: 31.95876288%;
  max-width: 310px;
  border-top: 1px solid #9f9f9f;
  border-bottom: 1px solid #9f9f9f;
}

.links-wrap__body a {
  -js-display: flex;
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
  transition: all 0.5s;
}

.links-wrap__body a:hover {
  color: #777;
}

.links-wrap__body a.current,
.links-wrap__body a.current:hover {
  color: #000;
}

.links-wrap__body a > img {
  max-width: 39.3548387%;/*122px*/
}

.links-wrap__body a > p {
  margin-left: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.links-wrap__body a > p > span {
  display: block;
  margin-left: 1px;
  font-size: 13px;
  font-weight: 400;
}

@media screen and (max-width: 768px) {

  .links-wrap {
    margin: 0 auto 60px;
    width: 96%;
  }
  
  .links-wrap__body a > p {
    font-size: 15px;
  }

}


@media screen and (max-width: 600px) {

  .links-wrap {
    margin: 0 auto 80px;
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }

  .links-wrap__body {
    margin: 0 auto;
    width: 100%;
    max-width: 90%;
    border-bottom: none;
  }

  .links-wrap__body:nth-child(3) {
    border-bottom: 1px solid #9f9f9f;
  }
  
  .links-wrap__body a > img {
    max-width: 146px;
  }
  
  .links-wrap__body a > p {
    font-size: 20px;
  }

}


