@charset "UTF-8";
/* CSS Document */

/* ---------- .works ---------- */

  .pageNav {
    padding-top: 80px;
  }

  .pageNav a {
    display: block;
    width: 350px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    margin: 10px auto;
    border: 3px solid;
    border-color: #3673b0;
  }
  .pageNav a:hover{
    color: #fff;
    background: #3673b0;
  }

/* ---------- #house ---------- */

.before-after {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

#house, #build {
  padding-top: 100px;
}
#house h3 {
  width: 6em;
}
#build h3 {
  width: 11.5em;
}

.before01, .before02 {
  margin-bottom: 50px;
  position: relative;
}
.before01::after, .before02::after {
  content: "↓";
  font-size: 1.5em;
  font-weight: bold;
  position: absolute;
  top: 102%;
  left: 50%;
  transform: translateX(-50%);
}
.after01 {
  border-bottom: 1px #333 solid;
  padding-bottom: 50px;
  margin-bottom: 30px;
}
.after02 {
  margin-bottom: 70px;
}

.detail-box {
  max-width: 320px;
  margin: 0 auto;
}
.detail h4 {
  font-size: 2rem;
}
.detail h4 {
  width: 100px;
  height: 50px;
  line-height: 50px;
  padding-left: 20px;
  color: #fff;
  letter-spacing: 0.3em;
  background: #3673b0;
  position: relative;
  top:0;
  left:0;
}
.detail h4::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border: 30px transparent solid;
  border-top: 50px #3673b0 solid;
  position: absolute;
  right: -30%;
  top: 0;
}
.detail h4 span {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 9;
}
.detail h4 + p {
  margin-top: -50px;
}
.detail-txt {
  max-width: 320px;
  padding: 2rem 0;
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.works-btn {
  margin: 50px auto 100px;
}
.works-btn a {
  display: block;
  max-width: 300px;
  margin: 0 auto;
  padding: 15px 10px 15px 20px;
  background: #4dcee4;
  color:#fff;
  text-align: center;
  line-height: 1;
  border-radius: 25px;
}



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

  .pageNav a {
    width: 300px;
  }
  #build h3 {
    width: 10em;
    letter-spacing: 0.2em;
    padding-left: 0.2em;
  }



}



@media screen and (min-width: 750px) {

/* ---------- .works ---------- */
  
  .pageNav {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 100px;
    display: flex;
    justify-content: space-around;
  }



/* ---------- #house ---------- */

  .before-after {
    max-width: none;
    display: flex;
    justify-content: space-between;
  }
  .before-after01 {
    border-right: 1px #333 solid;
    padding-right: 2%;
  }
  .before-after02 {
    padding-left: 2%;
  }
  .before-after01, .before-after02 {
    display: flex;
    justify-content: center;
  }
  .before01, .before02 {
    margin-bottom: 0;
    padding-bottom: 0;
    margin-right: 40px;
  }
  .before01::after, .before02::after {
    content: "→";
    font-size: 1.5em;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 110%;
  }
  .after01, .after02 {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .detail-box {
    margin: 100px auto;
    max-width: none;
    width: 700px;
    display: flex;
    flex-wrap: wrap;
  }
  .detail-box .detail {
    width: 320px;
    margin-right: 5%;
  }
  .detail-box .detail:nth-child(2n) {
    margin-right: 0;
  }



}



@media screen and (min-width: 1100px) {

/* ---------- .works ---------- */

  .detail-box {
    width: auto;
  }
  .detail-box .detail:nth-child(2n) {
    margin-right: 5%;
  }
  .detail-box .detail:nth-child(3n) {
    margin-right: 0;
  }



}



@media screen and (min-width: 1200px) {

/* ---------- .works ---------- */

  .detail-box .detail, .detail-box .detail:nth-child(2n) {
    margin-right: 8.5%;
  }





/* ========== .page-works ========== */

.page-works .detail-box {
  max-width: none;
}
.page-works .detail-txt {
  max-width: none;
  font-size: 1.8rem;
  text-align: center;
  padding: 10px 0 30px;
}

.page-works .works-btn a {
  padding: 15px 10px 15px 40px;
  letter-spacing: 0.3em;
  position: relative;
}
.page-works .works-btn a::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border: 7px transparent solid;
  border-right: 12px #fff solid;
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translateY(-50%);
}



@media screen and (min-width: 750px) {

  .page-works .detail-box {
    justify-content: space-around;
    margin: 30px auto;
  }
  .page-works .detail,
  .page-works .detail:nth-child(2n),
  .detail:nth-child(3n) {
    width: auto;
    margin-right: 0;
  }
  .page-works p {
    text-align: center;
  }
  .page-works .detail-txt {
    max-width: none;
    width: auto;
  }

  .page-works .worksbutton a {
    letter-spacing: 0.5em;
  }



}



