

/*ファーストビュー*/


/*コンテンツワッパー*/
.content-wrapper{
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 1.39%;
  padding-right: 1.39%;
  overflow: hidden;
}
/*サービス紹介*/
.service-description-title{
  width: 57.29%;
  margin: 1.125rem auto 3.438rem;
}
.service-content{
  /*幅１１０６px*/
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2カラム */
  grid-template-rows: auto 1fr; /* 1行目は自動高、2行目は残り全部 */
  grid-template-areas:
    "text image"   /* 1行目: テキスト、画像 */
    "button image"; /* 2行目: ボタン、画像 */
  gap: 2rem 4.33%; /* 行と列の間のスペース */
  align-items: start; /* 全体を上揃えで開始 */
  width: 100%;
  max-width: 1106px;
  max-height: 564px;
  margin: 0 auto;
}
.service-content:nth-child(even) {
  margin-top: 5rem;
  margin-bottom: 5rem;
    grid-template-areas:
    "image text"
    "image button";
}

.service-name{
  position: relative;
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 3%;
  margin-bottom: 4.6rem;
}
.service-text-content{
  position: relative;
   grid-area: text; /* "text"エリアに配置 */
  width: 100%;
  max-width: 553px;
  line-height: 1;
}
.service-text-content::before{
  content: "";
  position: absolute;
  display: block;
  background-image: url(../img/service-text-content_bg-image@2x.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 888px;
  height: 564px;
  top: 1rem;
  left: -24rem;
  z-index: -1;
}
.service-content:nth-child(even) .service-text-content::before{
  left: 0rem;
}
.service-name::after{
  content: "";
  position: absolute;
  display: block;
  left: 0;
  bottom: -0.363em;
  background-color: #187D4F;
  width: 1.5em;
  height: 0.1em;
  border-radius: 5px;
}
.service-name_numbering{
  font-size: 1.25rem;
  font-family: bebas-neue-pro, sans-serif;
  font-style: normal;
  font-weight: Expanded ExtraBold;
}
.service-description-text{
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.94;
}
.head-sentence{
  display: inline-block;
  margin-bottom: 7.04%;
  font-size: 1.563rem;
  font-family: 'ヒラギノ明朝 ProN W6','Hiragino Mincho ProN','游明朝体', 'Yu Mincho', 'YuMincho','HG明朝E','ＭＳ Ｐ明朝', 'MS PMincho';
}

.detail-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17.25rem;
  font-size: 1.063em;
  line-height: 1.17647;
  color: #fff;
  font-weight: bold;
  padding-top: 0.938em;
  padding-bottom: 0.938em;
  background-color: #187D4F;
  border-radius: 10rem;
  transition: all 0.3s ease;
  grid-area: button; /* "button"エリアに配置 */
  margin-top: 0; /* Gridで配置するためマージンをリセット */
}
.detail-btn::after{
  content: "";
  position: absolute;
  display: inline-block;
  width: 1.938em;
  height: 1.938em;
  right: 0.813em;
  background-image: url(../img/detail-btn_arrow@2x.png);
  background-repeat: no-repeat;
  background-size: contain;
}

.service-image{
  display: block;
  width: 100%;
  max-width: 581px;
  height: auto;
  grid-area: image; /* "image"エリアに配置 */
  align-self: center; /* 画像は垂直方向中央に配置 */
}

@media (max-width: 899px){
  .service-description-title{
    width: 80.49%;
    margin-top: 1.863rem;
  }

  .service-content,
  .service-content:nth-child(even){
    display: flex;
    flex-direction: column;
    max-height: none;
    grid-template-areas: none;
  }

  .service-name::after{
    width: 3.1em;
  }

  .service-text-content{
    max-width: 100%;
  }
  .service-content:nth-child(even){
    margin-top: 3.313rem;
    margin-bottom: 3.313rem;
  }

  .service-text-content::before{
    width: 375px;
    height: 239px;
    top: 5rem;
    left: 0;
  }


  .service-name{
    font-size: 1.25rem;
    margin-bottom: 2.25rem;
  }

  .service-name_numbering{
    font-size: 0.875rem;
  }

  .service-description-text{
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 2.142;
  }

  .head-sentence{
    font-size: 1rem;
    margin-bottom: 1.563rem;
  }
  
  .detail-btn{
    margin: 0 auto;
  }

  .service-image{
    max-width: 331.71px;
  }

}


/*会社紹介*/
.company-introduction{
  position: relative;
  margin-top: 10rem;
  padding-top: 5.031rem;
  padding-bottom: 10rem;
  background-color: #F5FAEE;
  overflow: hidden;
}

.company-introduction .title-back-text{
  margin-top: -5rem;
  font-size: 10.063rem;
  color: rgba( 255, 255, 255, 0.5);
  font-family: "Bebas Neue", sans-serif;
  font-weight: bold;
  font-style: normal;
  white-space: nowrap;

}

.company-introduction p{
  color: #374453;
  line-height: 1.94;
}

.company-introduction .logo{
  margin: -8rem auto 2.188rem;
  text-align: center;
}

.company-introduction-title{
  margin: 0 auto;
  font-size: 3.438rem;
  color: #197C4F;
  font-weight: bold;
  text-align: center;
}
.company-introduction > .lead{
  display: block;
  margin: 4.938rem auto 0;
  text-align: center;
  font-size: 1.563rem;
  color: #374453;
  font-weight: 600;
  font-family: 'ヒラギノ明朝 ProN W6','Hiragino Mincho ProN','游明朝体', 'Yu Mincho', 'YuMincho','HG明朝E','ＭＳ Ｐ明朝', 'MS PMincho';
  line-height: 1.56;
}

.approach-list{
  display: flex;
  justify-content: center;
  margin-top: 2.625rem;
}
.approach-list li{
  padding: 0.2em 1.5em;
  font-size: 1.563rem;
  color: #197C4F;
  font-weight: 600;
  border: #197C4F 2px solid;
  border-radius: 5rem;
  background-color: #fff;
}
.approach-list li:nth-of-type(2){
  margin-left: -1rem;
  margin-right: -1rem;
}
.approach-list + p{
  margin: 2.125rem auto 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.94;
  text-align: center;
}

.service-card-introduction{
  width: 100%;
  height: 14.875rem;
  max-width: 1106px;
  margin: 4.063rem auto 22rem;
  padding-top: 2.813rem;
  border-radius: 1.25rem 1.25rem 0 0;
  background-color: #197C4F;
}
.service-card-introduction-text{
  font-size: 1.875rem;
  font-weight: bold;
  color: #fff;
  margin: 0 auto;
  text-align: center;
}

.service-card-list{
  display: flex;
  justify-content: center;
  gap: 1.063rem;
  margin-top: 1.6rem;
  margin-bottom: 4.063rem;
}
.card-top{
  /*幅３４４px*/
  position: relative;
  width: 21.5rem;
  max-height: 4.063rem;
  background-color: #44B480;
  border-radius: 1.25rem 1.25rem 0 0;
}
.card-title{
  padding-top: 1.167em;
  padding-bottom: 1.444em;
  font-size: 1.125rem;
  color: #fff;
  font-weight: bold;
  text-align: center;
}
.card-top-image{
  position: absolute;
  width: 22%;
  bottom: 0;
  left: 0.611em;
}
.service-card-list li:nth-child(3) .card-top-image{
  width: 18%;
}
.card-body{
  background-color: #fff;
  width: 21.5rem;
  padding: 1.389em;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.19);
}
.card-body > p{
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.66;
  text-align: left;
}
.card-body-image{
  margin-top: 1.389em;
}

.service-card-list + p{
  margin: 0 auto;
  text-align: center;
}

.sales-message{
  width: 100%;
  text-align: center;
  font-weight: 600;
  }
.text-green{
  color: #17794D;
}

.representative-message{
  width: 42.99%;
  margin-left: 11.6%;
}
.representative-message-title{
  position: relative;
  width: 100%;
  max-width: 619px;
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 6.5rem;
  margin-bottom: 3.281rem;
}
.representative-message-title::after{
  content: "";
  position: absolute;
  display: block;
  left: 0;
  bottom: -0.363em;
  background-color: #187D4F;
  width: 1.5em;
  height: 0.1em;
  border-radius: 5px;
}

.representative-message-text{
  width: 38.688rem;
}
.representative-name{
  font-size: 2.5rem;
  font-family: tegaki, sans-serif;
  font-style: normal;
  font-weight: 400;
}

.representative-message-image{
  position: absolute;
  width: 28.26%;
  max-width: 407px;
  bottom: 29rem;
  right: 11.6%;
}

.representative-message-end-text{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  width: 100%;
  margin-top: 3.688rem;
}
.representative-message-end-text p{
  margin: 0;
  display: inline-block;
  width: 100%;
  font-size: 1.563rem;
}
.bg-highlight{
  background-color: #197C4F;
  padding-top: 0.778em;
  padding-bottom: 0.778em;
  padding-left: 11.6%;
  padding-right: 1.667em;
  color: #fff;
}

.representative-message-end-text .representative-name{
  margin-left: 1.25rem;
  font-size: 1.688rem;
  font-family: tegaki, sans-serif;
  font-style: normal;
  font-weight: 400;
}

@media (max-width: 899px){
  .content-wrapper{
    padding: 0 5.33%;
  }

  .company-introduction .title-back-text{
    font-size: 7.5rem;
  }

  .company-introduction{
    margin-top: 3.938rem;
    padding-bottom: 4.25rem;
  }
  .company-introduction .logo{
    width: 100%;
    max-width: 67.25px;
    margin: -6rem auto 0.969rem;
  }

  .company-introduction-title{
    font-size: 1.25rem;
  }

  .company-introduction > .lead{
    margin-top: 1.75rem;
    font-size: 1rem;
    line-height: 1.6875;
  }
  .company-introduction > .lead > .text-wrap{
    display: block;
  }

  .approach-list{
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.563rem;
  }
  .approach-list li{
    width: 55.29%;
    padding: 0.2em 0.8em;
    font-size: 1rem;
    text-align: center;
  }

  .approach-list + p{
    margin-top: 1.563rem;
    font-weight: 300;
  }
  .approach-list + p > .text-wrap{
    display: block;
  }

  .service-card-introduction{
    height: 73rem;
    margin-top: 1.875rem;
    margin-bottom: 1.875rem;
    padding-top: 0.938rem;
    padding-bottom: 1px;
    border-radius: 0.625em 0.625rem 0 0;
  }

  .service-card-introduction-text{
    font-size: 1rem;
  }
  .service-card-introduction-text > .text-wrap{
    display: block;
  }

  .service-card-list{
    flex-direction: column;
    align-items: center;
    gap: 1.181rem;
    margin-top: 0.7rem;
  }

  .card-top{
    width: 19.375rem;
    max-height: 2.438rem;
    border-radius: 0.625em 0.625rem 0 0;
  }
  .card-title{
    padding-top: 0.643em;
    padding-bottom: 1.143em;
    font-size: 0.875rem;
  }
  .card-top-image{
    width: 14.5%;
    left: 1.086em;
  }
  .service-card-list li:nth-child(3) .card-top-image{
    width: 12%;
  }

  .card-body{
     width: 19.375rem;
     padding: 1.429em 1.071em;
  }
  .card-body > p{
    font-size: 0.875rem;
    text-align: left;
  }
  .card-body-image{
    margin-top: 1.071em;
  }

  .sales-message p{
    font-size: 0.875rem;
    font-weight: 300;
    text-align: left;
    line-height: 2.142;
  }
  .sales-message:nth-of-type(2) p{
    margin: 1.875rem 0;
  }
  .text-green{
    color: #374453;
  }
 
  .representative-message{
    width: 100%;
    margin: 0 auto;
    text-align: inherit;
  }

  .representative-message-title{
    margin-bottom: 5.313rem;
    margin-bottom: 1.563rem;
    font-size: 1.25rem;
  }
  .representative-message-title::after{
    width: 3.8rem;
  }

  .representative-message-text{
    width: 100%;
    font-size: 0.875rem;
    font-weight: 300;

  }

  .representative-message .head-sentence{
    text-align: center;
  }
  .representative-message  .text-wrap{
    display: block;
  }

  .representative-name{
    text-align: 1.438rem;
    font-size: 2rem;
  }


  .representative-message-image{
    position: static;
    width: 89.33%;
    margin: 2.5rem auto 0;
  }

  .representative-message-end-text{
    margin-top: 1.25rem;
  }
  .representative-message-end-text p{
    font-size: 1rem;
  }
  .bg-highlight{
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 5.33%;
    padding-right: 0.625em;
  }
  .representative-message-end-text .representative-name{
    margin-top: 5.33%;
    margin-right: 5.33%;
    font-size: 1rem;
    text-align: right;
  }
  .representative-message-end-text .text-wrap{
    display: block;
  }
}



/*会社概要*/
.about-us{
  padding: 0 1.39%;
}
.about-us-title{
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
  max-width: 326px;
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 6.5rem;
  margin-bottom: 3.281rem;
  margin-left: 11.6%;
}
.about-us-title::after{
  content: "";
  position: absolute;
  display: block;
  left: 0;
  bottom: -0.363em;
  background-color: #187D4F;
  width: 1.5em;
  height: 0.1em;
  border-radius: 5px;
}
.about-us-title-ruby{
  font-size: 1.25rem;
    font-family: bebas-neue-pro, sans-serif;
    font-style: normal;
    font-weight: 300;
}

.company-profile {
  width: 76.81%;
  max-width: 1106px; /*ご指定の幅 */
  margin-top: 3.969rem;   /* 上下の余白を60px、左右は自動で中央揃え */
  margin-bottom: 9.406rem;
  margin-left: 11.6%;
  margin-right: 11.6%;
}
.profile-list {
  margin: 0;
  border-top: 1px solid #E0E0E0; /* 上にだけ線を入れる */
}
.profile-row {
  display: flex; /* 項目名と内容を横並びにする */
  align-items: center; /* 中央揃え（垂直方向） */
  border-bottom: 1px solid #E0E0E0; /* 各項目の下に区切り線 */
  padding: 1.594rem 0; /* ご指定の上下の余白 */
}
.profile-term {
  font-size: 1.125rem; /* ご指定の文字サイズ */
  font-weight: 600; /* ご指定のフォントの太さ */
  color: #374453;
  flex: 0 0 15rem; /* 横幅を240pxで固定（この値はデザインに合わせて調整） */
}
.profile-description {
  font-size: 1.125rem; /* ご指定の文字サイズ */
  font-weight: 600; /* ご指定のフォントの太さ */
  color: #374453;
  line-height: 1.94; /* 行間を調整 */
  flex: 1; /* 残りの幅をすべて使う */
}

@media (max-width: 899px){
  .about-us-title{
    font-size: 1.25rem;
    margin-top: 4.563rem;
    margin-bottom: 2.594rem;
    margin-left: 5.33%;
  }
  .about-us-title::after{
    width: 3.8rem;
  }
  .about-us-title-ruby{
    font-size: 0.875rem;
  }

  .company-profile{
    width: 89.2%;
    max-width: 334.5px;
    margin-top: 0;
    margin-bottom: 4.406rem;
    margin-left: 5.33%;
    margin-right: 5.33%;
  }
  .profile-row{
    padding: 1.179em 0;
  }
  .profile-term{
    font-size: 0.875rem;
        flex: 0 0 7rem
  }
  .profile-description{
    font-size: 0.875rem;
    font-weight: 300;
  }
}



