@charset "utf-8";

/* typography
----------------------------------------------- */
h2 {
  text-align: center;
  margin: 1.5em 0 2em;
  padding: 0;
  font-size: 1.3em;
  background: none;
  color: #252525;
}
h2.title01 {
  position: relative;
}
h2.title01:before {
  content: "";
  position: absolute;
  bottom: -15px;
  display: inline-block;
  width: 5em;
  height: 2px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #c8b280;
}
h3 {
  text-align: center;
  margin: 1.5em 0 1em;
  padding: 0;
  font-size: 1.2em;
  border: none;
}
footer h3 {
  text-align: left;
}
h4 {
  text-align: center;
  margin: 1.5em 0 1em;
  padding: 0;
  font-size: 1.2em;
  border: none;
}

#wrapper.frontpage .post {
  padding: 0;
}
.frontpage #content #main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 0;
}
.frontpage #content #main .inner {
  width: 92%;
  max-width: 100%;
  margin: 0 auto 0;
}
#read {
  -webkit-clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
  background-color: #faf7f2;
  padding: 25px 0 25px 0;
}

#merit h2 span.top {
  background: url("../images/common/heading_bg01.png") no-repeat center 100%;
  background-size: 100%;
  display: inline-block;
  padding: 0 0 1.25em;
  margin: 0 0 1em;
  font-size: 0.9em;
  color: #252525;
}
#merit h2 {
  color: #252525;
}
#merit .merititem img {
  width: 100%;
}
#merit .merititem .container {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px 3% 15px;
  margin: -70px 3% 20px;
  position: relative;
  border-radius: 10px;
}
#merit .merititem h3 {
  position: relative;
  text-align: left;
  padding: 0 12px;
  font-size: 1.3rem;
}
#merit .merititem h3 span.no {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-weight: 200;
  font-size: 90px;
  line-height: 1;
  position: absolute;
  top: -90px;
  left: 5px;
  color: #df6b3a;
  opacity: 0.8;
}

#special {
  -webkit-clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
  background-color: #f2f2f2;
  padding: 25px 0 25px 0;
}

#message {
  background: linear-gradient(
    to bottom,
    #faf7f2 0%,
    #faf7f2 30%,
    #ffffff 100%
  );
  padding: 20px 0 40px;
}

/* 768px～ メディアクエリ開始 */
@media screen and (min-width: 768px) {
  /* typography
----------------------------------------------- */
  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.6em;
    margin: 2em 0 2.5em;
  }
  h3 {
    font-size: 1.3em;
  }

  h4 {
    font-size: 1.3em;
  }
  #merit .merititem .container {
    padding: 20px 5% 15px;
    margin: -150px 3% 20px;
  }
  #merit .merititem h3 {
    font-size: 1.5rem;
  }
  #merit .merititem h3 span.no {
    font-size: 120px;
    top: -120px;
    left: 0;
  }
}

/* 992px～ メディアクエリ開始 */
@media screen and (min-width: 992px) {
  #wrapper.frontpage {
    width: 100%;
    max-width: 100%;
  }
  .frontpage #content #main .inner {
    width: 800px;
  }
  /* typography
  ----------------------------------------------- */
  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.8em;
  }

  h3 {
    font-size: 1.3em;
  }

  h4 {
    font-size: 1.3em;
  }

  #read {
    -webkit-clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 100%);
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    padding: 60px 0 30px 0;
  }

  #merit .merititem img {
    width: 100%;
  }
  #merit .merititem {
    display: flex;
    max-width: 1400px;
    margin: 0 auto 0;
  }
  #merit .merititem .itemright {
    width: 50%;
    order: 2;
  }
  #merit .merititem .itemleft {
    width: 50%;
    order: 1;
  }
  #merit .merititem .container {
    padding: 80px 3% 20px;
    margin: 20px 0 20px;
    position: relative;
    border-radius: 10px;
  }

  #merit .merititem h3 {
    position: relative;
    text-align: left;
    padding: 0 12px;
    font-size: 1.4rem;
  }

  #merit .merititem h3 span.no {
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-weight: 200;
    font-size: 90px;
    line-height: 1;
    position: absolute;
    top: -90px;
    left: 5px;
    color: #df6b3a;
    opacity: 0.8;
  }

  #special {
    -webkit-clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
    padding: 25px 0 25px 0;
  }
  .frontpage #content #special .inner {
    width: auto;
    max-width: 1280px;
    padding: 0 2%;
  }

  #message {
    padding: 30px 0 20px;
  }
}

/* 1024px～ メディアクエリ終了 */

#customer-gallery .layout2 {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

#customer-gallery .layout2 .item,
#customer-gallery .layout2 .item:nth-child(even) {
  width: calc((100% - 10px) / 2);
  margin-left: 0;
}

#customer-gallery .layout2 img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) {
  #customer-gallery .layout2 {
    display: flex;
    gap: 4%;
  }

  #customer-gallery .layout2 .item {
    width: 48%;
  }

  #customer-gallery .layout2 img {
    display: block;
    width: 100%;
    height: auto;
  }
}
