@charset "utf-8";

/* 事業紹介ページ専用 CSS。共通(pc_*.css/sp_*.css)の後に読み込む前提。 */

/*=================================================================
  ページタイトル（Hero に似た構造、非スライダー）
=================================================================*/
.page-title {
  position: relative;
  width: 100%;
  height: 445px;
  overflow: hidden;
  background: var(--color-white);
}
.page-title-service .page-title-gradient {
  display: none;
}

/* Layer 1: 背景写真 */
.page-title-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.page-title-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Layer 2: 左からの白グラデ */
.page-title-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.6) 30%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0) 80%
  );
  pointer-events: none;
}

/* Layer 3: 下部の波線 */
.page-title-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}
.page-title-wave img {
  width: 100%;
  height: auto;
  display: block;
}

/* Layer 4: コピー */
.page-title-copy {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
}
.page-title-copy .content {
  padding-left: 0;
}
.page-title .h2-outer {
  display: flex;
  align-items: baseline;
  gap: 25px;
  margin-bottom: 10px;
}
.page-title h2 {
  font-size: 4.0rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.page-title .eng {
  font-family: "Damion", cursive;
  font-weight: 400;
  display: inline-block;
  transform: rotate(-5deg);
  transform-origin: left center;
  font-size: 3.0rem;
  color: #FE8BA7;
  letter-spacing: 0.03em;
}
.page-title .lead {
  font-size: 1.5rem;
  color: #231815;
  line-height: 1.8;
  font-weight: 500;
}

/*=================================================================
  Our Services（白背景の事業リスト、実測: #FFFFFF）
=================================================================*/
.our-services {
  /* 最初の項目のアイコンが -95px で上へ張り出すため、その分を確保する。 */
  --section-lead-content-gap: 130px;
  position: relative;
  padding: 105px 0 100px;
  background: var(--color-white);
  color: #231815;
  overflow: hidden;
}
.service-kazari {
  position: absolute;
  z-index: 2;
  display: block;
  height: auto;
  pointer-events: none;
}
.service-kazari-01 {
  top: 35px;
  left: calc(50% - 600px);
  width: 130px;
}
.our-services > .wrap,
.our-services > .wrap > .content {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.our-services .h2-outer {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
}
.our-services .h2-outer h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.our-services .h2-outer .eng {
  font-family: "Damion", cursive;
  font-weight: 400;
  display: inline-block;
  transform: rotate(-5deg);
  transform-origin: left center;
  font-size: 2.4rem;
  color: #FE8BA7;
}
.our-services > .wrap > .content > .lead {
  text-align: center;
  font-size: 1.4rem;
  color: #231815;
  margin-bottom: var(--section-lead-content-gap);
  line-height: 1.8;
}
/* サービスリスト（交互配置） */
.service-items.box-outer {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 90px;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
}
.service-item {
  display: grid;
  align-items: center;
  gap: 0;
  width: 100%;
  list-style: none;
}
.service-item.item-photo-right {
  grid-template-columns: 56% 44%;
}
.service-item.item-photo-left {
  grid-template-columns: 44% 56%;
}
.service-item .item-body {
  --service-body-edge-gap: clamp(60px, 6.6667vw, 100px);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 25px;
  width: 520px;
  max-width: calc(100% - var(--service-body-edge-gap));
  min-width: 0;
  padding: 0;
}
.service-item.item-photo-right .item-body {
  justify-self: end;
  margin-right: var(--service-body-edge-gap);
}
.service-item.item-photo-left .item-body {
  justify-self: start;
  margin-left: var(--service-body-edge-gap);
}
.service-item .num {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
  display: inline-block;
  position: relative;
  font-size: 2.8rem;
  color: #1C5E33;
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: 0.05em;
  padding-bottom: 14px;
  align-self: start;
}
.service-item .num::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 35px;
  height: 2px;
  background: #FE3867;   /* デザイン準拠のピンク */
  transform: translateX(-50%);
}
.service-item h3 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
  margin: 0;
  display: block;
  line-height: 1.1;
  align-self: start;
}
.service-item h3 .icon {
  position: absolute;
  top: -95px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 160px;
}
.service-item h3 .icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.service-item .desc {
  grid-column: 1 / -1;
  font-size: var(--section-body-font-size);
  line-height: 1.9;
  color: #231815;
  letter-spacing: 0.03em;
  margin: 35px 0 15px;
}
.service-item .projects {
  grid-column: 1 / -1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-item .projects li {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #231815;
  padding-left: 20px;
  position: relative;
}
.service-item .projects li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.8em - 5px);
  width: 10px;
  height: 10px;
  background: #39b54a;
}
.service-item .item-photo {
  width: 100%;
  aspect-ratio: 1320 / 740;
  height: auto;
  overflow: hidden;
  box-shadow: none;
}
.service-item.item-photo-right .item-photo {
  border-radius: 20px 0 0 20px;
}
.service-item.item-photo-left .item-photo {
  border-radius: 0 20px 20px 0;
}
.service-item .item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2000px超では写真が画面端から離れるため、4角を揃えて丸める */
@media screen and (min-width: 2001px) {
  .service-item.item-photo-right .item-photo,
  .service-item.item-photo-left .item-photo {
    border-radius: 20px;
  }
}

/*=================================================================
  今泉造園土木の強み（3カラム）
=================================================================*/
.strength {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.strength .service-kazari-02 {
  top: 45px;
  right: calc(50% - 300px);
  width: 110px;
}
/* TOP service と同じパターン: 波飾り(border_back.png) + 薄緑塗り */
.strength .wrap {
  padding-top: 200px;
  padding-bottom: 80px;
  background:
    url('../images/border_back.png') no-repeat top center / 100% auto,
    linear-gradient(#EFF7EC, #EFF7EC) no-repeat 0 calc(100vw / 3 - var(--wave-fill-overlap)) / 100% calc(100% + var(--wave-fill-overlap));
}
.strength .h2-outer {
  text-align: center;
  margin-bottom: 15px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
}
.strength h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.strength .h2-outer .eng {
  font-family: "Damion", cursive;
  font-weight: 400;
  display: inline-block;
  transform: rotate(-5deg);
  transform-origin: left center;
  font-size: 2.4rem;
  color: #FE8BA7;
}
.strength .lead {
  text-align: center;
  font-size: 1.4rem;
  color: #231815;
  margin-bottom: 50px;
  line-height: 1.8;
}
.strength-items.box-outer {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  max-width: 1050px;
  margin: 0 auto;
}
.strength-item {
  flex: 1;
  max-width: none;
  padding: 0 40px;
  text-align: center;
  list-style: none;
}
.strength-item + .strength-item {
  border-left: 1px solid #B7BDB7;
}
.strength-item .icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strength-item .icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.strength-item h3 {
  font-size: 2.7rem;
  font-weight: 700;
  color: #1C5E33;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.strength-item p {
  font-size: var(--section-body-font-size);
  line-height: 1.9;
  color: #231815;
}

/*=================================================================
  車両・設備・機材（濃色背景）
=================================================================*/
.equipment {
  padding: 90px 0 100px;
  background: var(--color-white);
  color: #231815;
  position: relative;
}
.equipment .service-kazari-03 {
  top: 35px;
  left: calc(50% - 660px);
  width: 280px;
}
.equipment > .wrap > .content {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.equipment .h2-outer {
  text-align: center;
  margin-bottom: 45px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
}
.equipment h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.equipment .h2-outer .eng {
  font-family: "Damion", cursive;
  font-weight: 400;
  display: inline-block;
  transform: rotate(-5deg);
  transform-origin: left center;
  font-size: 2.4rem;
  color: #FE8BA7;
}
/* Equipment 写真 - キャプション付き。3列 × 2段 */
.equipment > .wrap > .content > .lead {
  text-align: center;
  font-size: 1.4rem;
  color: #231815;
  margin-bottom: 40px;
  line-height: 1.8;
}
.equipment-photos.box-outer {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  column-gap: 35px;
  row-gap: 45px;
  justify-content: center;
  width: calc(100% - 40px);
  max-width: 1210px;
  margin: 0 auto 55px;
}
.equipment-photos li {
  list-style: none;
  text-align: center;
}
.equipment-photos .thumb {
  width: 100%;
  aspect-ratio: 760 / 480;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: none;
}
.equipment-photos .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.equipment-photos .caption {
  font-size: 1.5rem;
  color: #231815;
  font-weight: 500;
  letter-spacing: 0.05em;
}
/* 6枚は 3列 × 2行の均等グリッド（すべて同サイズ） */
/* テーブル */
.equipment-table-wrap {
  width: calc(100% - 40px);
  max-width: 1080px;
  margin: 0 auto;
  overflow-x: auto;
}
.equipment-table {
  width: 100%;
  border-collapse: collapse;
  color: #231815;
  font-size: var(--section-body-font-size);
}
.equipment-table thead th {
  background: #1C5E33;
  color: var(--color-white);
  padding: 12px 20px;
  text-align: center;
  font-weight: 700;
}
.equipment-table tbody tr {
  border-bottom: 1px solid #B7BDB7;
}
.equipment-table tbody td {
  padding: 15px 20px;
  line-height: 1.6;
}
.equipment-table tbody td:first-child {
  width: 45%;
  color: #1C5E33;
  font-weight: 500;
  text-align: center;
}
.equipment-table tbody tr:nth-child(even) {
  background: #EFF5ED;
}
/* 一覧ボタン */
.equipment-more {
  display: none;
  text-align: center;
}
.btn-dark-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 50px;
  background: transparent;
  border: 2px solid #1C5E33;
  color: #1C5E33;
  border-radius: 30px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-dark-pill:hover {
  background: #1C5E33;
  color: var(--color-white);
  opacity: 1;
}

/*=================================================================
  中間幅対応（769px - 1200px）
  1200px時のPCレイアウトを基準に、各要素の相対比を維持する。
  1200px超のPC版、およびSP版（768px以下）には影響させない。
=================================================================*/
@media screen and (min-width: 769px) and (max-width: 1200px) {

  .page-title {
    height: 37.0833vw; /* 445px / 1200px */
  }
  .page-title h2 {
    font-size: 3.3333vw;
  }
  .page-title .eng {
    font-size: 2.5vw;
  }

  .service-kazari-01 {
    left: 2.5%;
    width: 8.125%;
  }
  .our-services {
    padding-top: 8.75vw;
    padding-bottom: 8.3333vw;
    --section-lead-content-gap: 10.8333vw;
  }
  .our-services .h2-outer h2,
  .strength h2,
  .equipment h2 {
    font-size: 2.6667vw;
  }
  .our-services .h2-outer .eng,
  .strength .h2-outer .eng,
  .equipment .h2-outer .eng {
    font-size: 2vw;
  }
  .service-items.box-outer {
    gap: 7.5vw;
  }
  .service-item.item-photo-right {
    grid-template-columns: 56% 44%;
  }
  .service-item.item-photo-left {
    grid-template-columns: 44% 56%;
  }
  .service-item .item-body {
    --service-body-edge-gap: 13.8889%;
    width: 72.2222%;
    max-width: calc(100% - var(--service-body-edge-gap));
    column-gap: 4.8077%;
  }
  .service-item .num,
  .service-item h3 {
    font-size: 2.3333vw;
  }
  .service-item .desc,
  .strength-item p,
  .equipment-table {
    font-size: calc(13px + 0.1667vw);
  }
  .service-item .projects li {
    font-size: calc(14px + 0.1667vw);
  }
  .service-item h3 .icon {
    top: -7.9167vw;
    width: 38.4615%;
    height: auto;
    aspect-ratio: 5 / 4;
  }
  .service-item.item-photo-right .item-photo {
    border-radius: 1.6667vw 0 0 1.6667vw;
  }
  .service-item.item-photo-left .item-photo {
    border-radius: 0 1.6667vw 1.6667vw 0;
  }

  .strength .wrap {
    padding-top: 16.6667vw;
    padding-bottom: 6.6667vw;
  }
  .strength .service-kazari-02 {
    right: 25%;
    width: 6.875%;
  }
  .strength-items.box-outer {
    width: 87.5%;
  }
  .strength-item {
    padding-right: 3.8095%;
    padding-left: 3.8095%;
  }
  .strength-item .icon {
    width: 42.8572%;
    height: auto;
    aspect-ratio: 1;
  }
  .strength-item h3 {
    font-size: 2.25vw;
  }

  .equipment {
    padding-top: 7.5vw;
    padding-bottom: 8.3333vw;
  }
  .equipment .service-kazari-03 {
    left: 0;
    width: 17.5%;
  }
  .equipment-photos.box-outer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2.9167%;
    row-gap: 3.75%;
    width: 96.6667%;
    max-width: none;
  }
  .equipment-table-wrap {
    width: 90%;
  }
}

/*=================================================================
  SP 対応（≤ 768px）
=================================================================*/
@media screen and (max-width: 768px) {

.service-kazari {
  display: none;
}

.page-title-copy {
  transform: none;
}

.page-title {
  height: 200px;
}
.page-title-copy .content {
  padding-left: 15px;
}
.page-title .h2-outer {
  gap: 12px;
  margin-bottom: 10px;
}
.page-title h2 {
  font-size: 32px;
}
.page-title .eng {
  font-size: 24px;
}
.page-title .lead {
  font-size: 16px;
  line-height: 1.75;
}
.page-title h2,
.page-title .eng,
.page-title .lead {
  text-shadow:
    -1px -1px 2px rgba(255, 255, 255, 0.98),
     1px -1px 2px rgba(255, 255, 255, 0.98),
    -1px  1px 2px rgba(255, 255, 255, 0.98),
     1px  1px 2px rgba(255, 255, 255, 0.98),
     0 0 6px rgba(255, 255, 255, 0.95),
     0 0 12px rgba(255, 255, 255, 0.72);
}
/* Our Services */
.our-services {
  padding: 50px 15px 60px;
  /* 共通CSSが参照するPC用130pxを、SPの標準余白へ差し替える。 */
  --section-lead-content-gap: 30px;
}
.our-services .h2-outer {
  display: block;
  text-align: center;
  margin-bottom: 40px;
}
.our-services .h2-outer h2 {
  font-size: 26px;
  display: inline-block;
  margin-right: 8px;
}
.our-services .h2-outer .eng {
  font-size: 19px;
  display: inline-block;
}
#our-services > .wrap > .content > .lead {
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}
.service-items.box-outer {
  gap: 0;
}
.service-item {
  padding: 35px 0;
}
.service-item:first-child {
  padding-top: 0;
}
.service-item + .service-item {
  border-top: 1px solid #B7BDB7;
}
.service-item,
.service-item.item-photo-right,
.service-item.item-photo-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-item .item-body {
  display: grid;
  grid-template-columns: auto 1fr;
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 5px;
}
.service-item .num {
  font-size: 22px;
}
.service-item h3 {
  font-size: 22px;
  gap: 10px;
  margin-bottom: 20px;
}
.service-item h3 .icon {
  position: absolute;
  top: -95px;
  right: 0;
  display: flex;
  width: 135px;
  height: 135px;
  margin: 0;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.98))
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.82));
}
.service-item .desc {
  font-size: 15px;
  line-height: 1.8;
  margin-top: 10px;
}
.service-item .projects li {
  font-size: 15px;
  line-height: 1.7;
}
.service-item .projects li::before {
  top: calc(0.8em - 4px);
  width: 8px;
  height: 8px;
}
.service-item .item-photo {
  width: 100%;
  height: 180px;
  order: 1;
  margin-bottom: 15px;
  border-radius: 8px !important;
}
.service-item .item-body {
  order: 2;
}

/* Strength */
.strength {
  padding: 0;
}
.strength .wrap {
  width: 100%;
  padding: 110px 0 60px;
  background:
    url('../images/border_back.png') no-repeat top center / 100% auto,
    linear-gradient(#EFF7EC, #EFF7EC) no-repeat 0 calc(100vw / 3 - var(--wave-fill-overlap)) / 100% calc(100% + var(--wave-fill-overlap));
}
.strength .content {
  width: 100%;
  max-width: none !important;
  padding: 0 15px;
}
.strength .h2-outer {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}
.strength h2 {
  font-size: 26px;
  display: inline-block;
  margin-right: 8px;
}
.strength .h2-outer .eng {
  font-size: 19px;
  display: inline-block;
}
.strength .lead {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 30px;
  padding: 0 5px;
  text-align: left;
}
.strength-items.box-outer {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.strength-item {
  max-width: 100%;
  padding: 0;
}
.strength-item + .strength-item {
  border-left: 0;
  border-top: 1px solid #B7BDB7;
  padding-top: 30px;
}
.strength-item .icon {
  width: 105px;
  height: 105px;
  margin-bottom: 12px;
}
.strength-item h3 {
  font-size: 21px;
}
.strength-item p {
  font-size: 15px;
  line-height: 1.8;
}

/* Equipment */
.equipment {
  padding: 50px 15px 60px;
}
.equipment .h2-outer {
  display: block;
  text-align: center;
  margin-bottom: 30px;
}
.equipment h2 {
  font-size: 26px;
  display: inline-block;
  margin-right: 8px;
}
.equipment .h2-outer .eng {
  font-size: 19px;
  display: inline-block;
}
.equipment > .wrap > .content > .lead {
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}
.equipment-photos.box-outer {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 12px;
  row-gap: 25px;
  width: 100%;
  max-width: none;
  margin-bottom: 30px;
}
.equipment-photos li:nth-child(4),
.equipment-photos li:nth-child(5) {
  grid-column: auto;
}
.equipment-photos .thumb {
  margin-bottom: 5px;
}
.equipment-table {
  font-size: 14px;
}
.equipment-table-wrap {
  width: 100%;
  max-width: none;
}
.equipment-table thead th,
.equipment-table tbody td {
  padding: 10px 12px;
}
.btn-dark-pill {
  padding: 12px 35px;
  font-size: 1.25rem;
}

}  /* @media (max-width: 768px) */
