
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 150px
}


@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
  .tab_only {
    display: none;
  }
}

@media screen and (min-width: 980px) {
  .tab {
    display: none;
  }
  .tab_only {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .sp {
    display: none;
  }
}

/*common
----------------------------------------------------------------------*/

.wrap {
  max-width: 957px;
  margin: 67px auto 0;
  padding: 0 25px;
}

.inner {
  max-width: 957px;
  width: 90%;
  margin: 0 auto;
}

main {
  color: #4D4D4D;
  background: url('../img/bg.jpg') no-repeat center / cover;
}

picture {
  display: block;
}
figure {
  position: relative;
} 
img {
  width: 100%;
}

.cap_Txt {
position: absolute;
font-size: 10px;
bottom: 5px;
transform: rotate(.028deg);
}
.cap_R { right: 5px;}
.cap_L { left: 5px;}
.cap_W { color: #fff;}
.cap_B { color: #333;}
.cap_Shw { text-shadow: 3px 0 3px #fff, -3px 0 3px #fff, 0 3px 3px #fff, 0 -3px 3px #fff;}
.cap_ShW { text-shadow: 2px 0 2px #fff, -2px 0 2px #fff, 0 2px 2px #fff, 0 -2px 2px #fff;}
.cap_ShB { text-shadow: 2px 0 2px #000, -2px 0 2px #000, 0 2px 2px #000, 0 -2px 2px #000;}

.mv {
  background-image: url("../img/mv.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
  height: 19.1666666667vw;
  min-height: 230px;
}

.mv figure {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
}
.multiply {
  mix-blend-mode: multiply
}

.flex,.inner_flex,.inner__flex {
  display: flex;
}

.flex {
  gap: 35px;
}

.inner_flex {
  gap: 20px;
}

.inner__flex {
  gap: 10px;
}


/*タブメニュー
-----------------------------------------*/

.tab {
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 70px auto 80px auto;
}

.tab li {
  font-size: 20px;
  font-size: 1.25rem;
  line-height: 1.875rem;
  font-weight: 500;
  border-top: 1px solid #a89f70;
  border-bottom: 1px solid #a89f70;
}

.tab li:not(:last-child) {
  margin-right: 18px;
}

.tab li a {
  padding: 3px 14px;
  position: relative;
  font-size: 16px;
  letter-spacing: 1px;
  color: #a89f70;
}

.tab li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 9;
  top: 120%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0px 0px 0 0px;
  border-color: #a89f70 transparent transparent transparent;
  transition: 0.25s;
}

.tab li a:hover::after,
.tab li a.active::after {
  border-width: 8px 8px 0 8px;
}


.sec_ttl {
  height: 28px;
  margin: 0 auto 20px auto;
  text-align: center;
  margin-bottom: 40px;
}

.sec_ttl img {
  width: auto;
  height: 100%;
}

.sec_lead {
    font-size: 24px;
    line-height: 2.25rem;
    margin: 0 auto 60px;
    letter-spacing: 0.15em;
    text-align: center;
}

.content {
  margin-bottom: 40px;
}

.content h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding: 3px 0;
  text-align: center;
  letter-spacing: .2em;
  line-height: 1.4;
}

.content h4,.content h5 {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.content h5 {
  font-size: 16px;
}

.content p {
  font-size: 14px;
  line-height: 1.5;
}

p.attention {
  font-size: 10px;
  text-indent: -1em;
  padding-left: 1em;
  margin-top: 1em;
}
p.mb-s {
  margin-bottom: 15px;
}
p.mb-xs {
  margin-bottom: .8em
}

/* STRUCTURE
----------------------------------------------------*/

.content h3 {
  background: #e9dddd;
  mix-blend-mode: multiply;
}

.kihon .flex .item_left{
  width: calc((100% - 30px) - 29%);
}
.kihon .flex .item_right{
  width: calc((100% - 30px) - 71%);
}

.kihon .cap_R {
  right: 23.5%;
}

/* QUALITY
----------------------------------------------------*/

/*seinou*/

.seinou .item_left figure {
  margin-bottom: 15px;
}

.seinou .grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px 10px;
}

.seinou .flex .item_left {
  width: 25%;
}
.seinou .flex .item_right {
  width: 75%;
}
.seinou .flex {
  gap: 20px;
}
.seinou .inner_flex {
  gap: 10px;
}
.seinou .inner_flex h5 {
  margin-bottom: 5px;
  font-size: 14px;
}
.seinou .inner_flex p {
  font-size: 12px;
}
.seinou .inner_flex .item_img {
  width: 30%;
}
.seinou .inner_flex .item_text {
  width: 70%;
}

/*hoken*/

.hoken .item_top.flex {
  margin-bottom: 15px;
}

.hoken .item_top.flex .item_left {
  width: 45%;
}

.hoken .item_top.flex .item_right {
  width: 55%;
}

.hoken .item_bottom.flex .item_img {
  width: 40%;
}

.hoken .item_bottom.flex .item_text {
  width: 60%;
}

.hoken p.attention {
  margin: 0;
}

/* SECURITY
----------------------------------------------------*/

/*keibi*/

.keibi h3 {
  background: #d8dad5;
}

/*tebura*/

.tebura h3 {
  background: #adc4db;
  color: #fff;
}


.tebura h4, .tebura h5 {
  color: #5f7d9e;
}

.tebura > h4 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
}

.tebura .flex {
  flex-wrap: wrap;
  gap: 40px 20px;
}

.tebura .flex > div {
  width: calc((100% - 20px) / 2);
}

.tebura .inner_flex > div {
  width: 50%;
}

.u-cap-up {
  bottom: 22%;
  right: 10px;
}

/*elevator*/

.elevator h3 {
  background: #bacfa1;
  color: #fff;
}

.elevator h4 {
  font-size: 18px;
  letter-spacing: .4em;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #85a366;
}
.elevator h4,.elevator h5 {
    color: #85a366;
}

.elevator .item_left figure {
  width: 65%;
  margin: 0 auto;
}

.elevator .item_left .cap_Txt {
  bottom: 10px;
}

.elevator .item_left .cap_R {
  right: -5.5em;
}

.elevator .flex .item_left {
  width: 38%;
}
.elevator .flex .item_right {
  width: 62%;
}

.elevator .inner_flex {
  flex-wrap: wrap;
}

.elevator .inner_flex .flex_item {
  width: calc(50% - 10px);
}

.elevator .inner__flex .item_img {
  width: 25%;
}
.elevator .inner__flex .item_text {
  width: 75%;
}

/*genkan*/

.genkan h3 {
  background: #dab1b0;
  color: #fff;
}

.genkan .wrapper{
  width: 90%;
  margin: 0 auto;
}

.genkan h4, .genkan h5 {
  color: #c17d80;
}

.genkan .item_top figure {
  width: 80%;
  margin: 0 auto 30px auto;
}

.genkan .item_top p {
  margin-bottom: 40px;
}

.genkan .item_top h5 {
  text-align: center;
}

.genkan .item_bottom figure {
  margin-bottom: 15px;
  aspect-ratio: 1 / 1;
}

.genkan .item_bottom h5 {
  text-align: center;
}

.bouhan .cap_Txt {
  bottom: -12px;
}

/*bouhan*/


.bouhan h3 {
  background: #d6c591;
  color: #fff;
}

.bouhan h5 {
  color: #ae9954;
  text-align: center;
  margin-bottom: 20px
}

.bouhan .flex {
  gap: 0;
}

.bouhan .flex_item {
  padding: 30px 10px;
  border: 1px solid #ae9954;
  border-right: none;
}

.bouhan .flex_item:last-child {
  border-right: 1px solid #ae9954;
}

.bouhan .flex_item figure {
  width: 55%;
  margin: 0 auto 40px auto;
}

.bouhan .flex_item:last-child figure {
  margin-bottom: 0;
}

.bouhan .flex_item:last-child p {
  margin-bottom: 15px;
} 



/*注釈-----------*/


.notes p {
  color: #000;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.065em;
  line-height: 12px;
}
.notes {
    padding-bottom: 48px;
}


.notes.inner {
  padding: 10px 0 60px 0;
}


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


.notes {
    padding-bottom: 0px;
}

.notes p {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.065em;
  line-height: 12px;
  margin: 0;
}

footer .entry {
    padding: 34px 0 0;
}

  .notes.inner {
    padding: 60px 0;
  }

  }

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

  /*微調整*/

  .content .fs-60 {
    font-size: 80%;
  }


  /*common
  ----------------------------------------------------------------------*/

  .wrap {
    margin-top: 0;
  }

  .flex,.inner_flex,.inner__flex {
    flex-direction: column;
  }

  .flex {
    gap: 20px;
  }

  .inner_flex {
    gap: 10px;
  }

  .inner__flex {
    gap: 10px;
  }

  .u-gap0 {
    gap: 0;
  }

  .mv {
    min-height: 67px;
  }

  .mv figure {
    width: clamp(129px, 36.8571428571vw, 246px);
  }

  .sec_ttl {
    margin: 40px 0 20px;
  }

  .sec_ttl h2 {
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    margin: 33px 0 20px;
  }
    .sec_lead p {
      text-align: left;
      padding: 0 50px;
      line-height: 26px;
      letter-spacing: 0.09em;
    }

    .intro {
        text-align: center;
        margin-bottom: 20px;
    }

    .sec_ttl {
      height: 20px;
    }
    .sec_lead {
      font-size: 20px;
      font-size: 1.1rem;
      line-height: 1.875rem;
      margin: 0 0 20px 0;
      letter-spacing: 0em;
    }

    .content {
      margin-bottom: 30px;
    }

    /* tab
  ------------------------------------------------------------*/

    section {
        scroll-margin-top: 70px
      }
    .tab li a::after {
      top: 114%;
    }

    .tab {
      margin: 70px auto 80px auto;
      gap: 4%;
      justify-content: center;
      flex-wrap: wrap;
    }

    .tab li {
      font-size: 14px;
      font-size: 0.875rem;
      line-height: 1.8;
      width: 48%;
      margin-bottom: 7.5%;
      text-align: center;
    }

    .tab li:last-child {
      margin-bottom: 0;
    }

    .tab li:not(:last-child) {
      margin-right: 0px;
    }

    .tab li a {
      padding: 4px 0px;
      font-size: 14px;

    }

  /* STRUCTURE
  ----------------------------------------------------*/
   .kihon .flex {
    gap: 20px;
   }
  .kihon .flex .item_left{
    width: 100%;
  }
  .kihon .flex .item_right{
    width: 80%;
    margin: 0 auto;
  }


  /* QUALITY
  ----------------------------------------------------*/

  /*seinou*/

  .seinou .flex .item_left {
    width: 100%;
  }
  .seinou .flex .item_right {
    width: 100%;
  }

  .seinou .grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px 15%;
  }

  .seinou .inner_flex .item_img {
    width: 100%;
  }
  .seinou .inner_flex .item_text {
    width: 100%;
  }
  /*hoken*/

  .hoken .item_top.flex,
  .hoken .item_bottom.flex {
    gap: 20px;
  }
  .hoken .item_top.flex .item_left {
    width: 100%;
  }

  .hoken .item_top.flex .item_right {
    width: 100%;
  }

  .hoken .item_bottom.flex .item_img {
    width: 100%;
  }

  .hoken .item_bottom.flex .item_text {
    width: 100%;
  }

  /* SECURITY
  ----------------------------------------------------*/

  /*keibi*/

  .tebura .flex > div {
    width: 100%
    }

  .tebura .inner_flex > div {
    width: 100%;
  }

  .u-cap-up {
    bottom: 22%;
    right: 22px;
  }


  /*elevator*/
  .elevator .item_left figure {
    width: 100%;
    margin: 0 auto;
  }

  .elevator .flex .item_left {
    width: 100%;
  }
  .elevator .flex .item_right {
    width: 100%;
  }

  .elevator .inner_flex .flex_item {
    width: 100%;
  }
  .elevator .inner__flex {
    flex-direction: row;
  }
  .elevator .item_left .cap_R {
    right: 0;
}

.elevator .item_left .cap_Txt {
    bottom: -10px;
}

  /*genkan*/

  .genkan .item_top figure {
    width: 100%;
    margin: 0 auto 30px auto;
  }

  /*bouhan*/

  .bouhan .flex_item figure {
    width: 70%;
    margin: 0 auto 40px auto;
  }

  .bouhan .flex_item {
    border-right: 1px solid #ae9954;
    border-bottom: none;
  }

  .bouhan .flex_item:last-child {
    border-bottom: 1px solid #ae9954;
  }


    .notes.inner {
      padding: 0px 0 50px 0;
    }

}

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

      /* SUB MENU
  ------------------------------------------------------------*/

    section {
      scroll-margin-top: 60px
    }

    .tab li a::after {
      top: 114%;
    }

    .tab {
      margin: 50px auto 60px auto;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0;
    }

    .tab li {
      font-size: 14px;
      font-size: 0.875rem;
      line-height: 1.8;
      width: 100%;
      margin-bottom: 7.5%;
      text-align: center;
    }

    .tab li:not(:last-child) {
      margin-right: 0px;
    }

    .tab li a {
      padding: 4px 0px;
      font-size: 14px;

    }

}