@charset "utf-8";

/* 施工事例ページ専用 CSS
   (page_service.css で page-title 共通スタイル定義済み) */

/*=================================================================
  事例一覧 List
=================================================================*/
.page-title-works {
  height: 445px;
}
.page-title-works .page-title-bg img {
  object-position: center center;
}
.page-title-works .page-title-gradient {
  background: none;
}
.page-title-works .page-title-copy .content {
  padding-left: 0;
}
.page-title-works h2 {
  font-size: 4.0rem;
}

.works-list {
  padding: 85px 0 100px;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}
.works-kazari {
  position: absolute;
  z-index: 2;
  display: block;
  height: auto;
  pointer-events: none;
}
/* 共通の背面レイヤー指定より前へ出し、各セクション背景の上に表示する。 */
.works-list .works-kazari,
.flow .works-kazari {
  z-index: 3 !important;
}
.works-list > .wrap > .content {
  z-index: 4 !important;
}
.works-list .works-kazari-01 {
  right: calc(50% - 600px);
  bottom: -25px;
  width: 340px;
}
.works-list > .wrap > .content,
.flow > .wrap > .content {
  max-width: 1120px;
}
.works-list .h2-outer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.works-list h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.works-list .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;
}
.works-list > .wrap > .content > .lead {
  text-align: center;
  font-size: 1.4rem;
  color: #231815;
  margin-bottom: 55px;
  line-height: 1.8;
}

/*--- カテゴリフィルター（サブメニュー） ---*/
.works-filter {
  list-style: none;
  padding: 0;
  margin: 0 auto 60px;
  max-width: 1000px;
  display: flex;
  gap: 0;
  background: var(--color-white);
  border: 1px solid #1C5E33;
  border-radius: 40px;
  justify-content: space-between;
}
.works-filter li {
  flex: 1;
  list-style: none;
}
.filter-btn {
  display: block;
  width: 100%;
  padding: 10px 15px;
  background: transparent;
  border: none;
  border-radius: 30px;
  font-size: 1.5rem;
  font-weight: 500;
  color: #231815;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.filter-btn:hover {
  color: #1C5E33;
}
.filter-btn.is-active {
  background: #1C5E33;
  color: var(--color-white);
  font-weight: 700;
}

/*--- 施工事例カードグリッド ---*/
.works-grid.box-outer {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.work-card {
  list-style: none;
}
.work-card > a {
  display: block;
  color: #231815;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: zoom-in;   /* ライトボックスであることを示唆 */
}
.work-card:hover > a {
  opacity: 0.85;
  transform: translateY(-3px);
}
/* ホバー時に拡大アイコンを表示 */
/* GLightbox キャプションのカスタム（画像下部に表示） */
.gslide-description.description-bottom {
  padding: 20px 40px !important;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}
.gslide-title {
  font-family: "Noto Sans JP", sans-serif !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  font-size: 2.0rem !important;
  letter-spacing: 0.05em;
  margin: 0 0 6px !important;
}
.gslide-desc {
  font-family: "Noto Sans JP", sans-serif !important;
  color: #FE8BA7 !important;
  font-size: 1.4rem !important;
  letter-spacing: 0.05em;
}
.work-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 34 / 23;
  border-radius: 12px;
  overflow: visible;
  margin-bottom: 25px;
}
.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
/* タグ（top page の works スライダーと同じスタイル） */
.work-card .tag {
  position: absolute;
  bottom: -15px;
  left: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 135px;
  padding: 5px 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1C5E33;
  background: var(--color-white);
  border: 1px solid #1C5E33;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.work-card .title {
  font-size: 1.5rem;
  color: #231815;
  line-height: 1.5;
  margin-bottom: 8px;
  font-weight: 500;
}
.work-card .meta {
  font-size: 1.3rem;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.works-empty {
  text-align: center;
  font-size: 1.4rem;
  color: #231815;
  padding: 40px 0;
}

/*=================================================================
  施工の流れ Flow
=================================================================*/
.flow {
  position: relative;
  margin-top: 0;
  padding: 0;
  background: var(--color-white);
  overflow: hidden;
}
.flow .works-kazari-02 {
  top: 35px;
  left: calc(50% - 600px);
  width: 130px;
}
.flow > .wrap {
  position: relative;
  z-index: 1;
  padding: 200px 0 160px;
  background:
    url('../images/border_back.png') no-repeat top center / 100% auto,
    linear-gradient(180deg, #EFF7EC 0%, #EFF7EC 20%, #FFFFFF 100%) no-repeat 0 calc(100vw / 3 - var(--wave-fill-overlap)) / 100% calc(100% - 100vw / 3 + var(--wave-fill-overlap));
}
.flow .h2-outer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}
.flow h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1C5E33;
  letter-spacing: 0.05em;
}
.flow .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;
}
.flow > .wrap > .content > .lead {
  text-align: center;
  font-size: 1.4rem;
  color: #231815;
  margin-bottom: 80px;
  line-height: 1.8;
}
/* 5 ステップを横並び。ステップ間にピンク矢印 */
.flow-steps.box-outer {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 35px;
  position: relative;
}
.flow-step {
  list-style: none;
  position: relative;
}
/* 矢印は疑似要素で。最後のステップは矢印なし */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 61px;
  right: -24px;
  width: 14px;
  height: 14px;
  border-top: 4px solid #FE8BA7;
  border-right: 4px solid #FE8BA7;
  transform: rotate(45deg);
  z-index: 2;
}
.step-inner {
  background: transparent;
  padding: 0;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flow-step .icon {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.flow-step .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.flow-step .num {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #1C5E33;
  position: relative;
  z-index: 2;
  margin-top: -14px;
  margin-bottom: 8px;
}
.flow-step h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1C5E33;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}
.flow-step p {
  font-size: var(--section-body-font-size);
  line-height: 1.9;
  color: #231815;
}
.flow-step .step-inner > p:not(.num) {
  align-self: stretch;
  padding: 0 10px;
  text-align: left;
}
.flow-step .num {
  line-height: 1.3;
}

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

.page-title-works {
  height: 200px;
}
.page-title-works .page-title-copy .content {
  padding-left: 15px;
  padding-right: 15px;
}
.page-title-works h2 {
  font-size: 32px;
}

.works-kazari {
  display: none;
}

.works-list {
  padding: 50px 15px 70px;
}
.works-list > .wrap > .content,
.flow > .wrap > .content {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
.works-list .h2-outer {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}
.works-list h2 {
  font-size: 26px;
  display: inline-block;
  margin-right: 8px;
}
.works-list .h2-outer .eng {
  font-size: 19px;
  display: inline-block;
}
.works-list > .wrap > .content > .lead {
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
  margin-bottom: 30px;
  padding: 0;
}

/* フィルターは2行に折り返して表示 */
.works-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}
.filter-btn {
  min-height: 45px;
  padding: 8px 4px;
  font-size: 14px;
  border-radius: 0;
}

/* グリッドは1列 or 2列 */
.works-grid.box-outer {
  grid-template-columns: repeat(2, 1fr);
  gap: 35px 15px;
}
.work-card .thumb {
  margin-bottom: 18px;
  border-radius: 8px;
}
.work-card .thumb img {
  border-radius: 8px;
}
.work-card .tag {
  min-width: 65px;
  padding: 3px 10px;
  font-size: 11px;
  left: -5px;
  bottom: -10px;
}
.work-card .title {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 5px;
}
.work-card .meta {
  font-size: 11px;
  line-height: 1.5;
}

/* Flow */
.flow {
  padding: 0;
}
.flow > .wrap {
  padding: 110px 15px 75px;
  background:
    url('../images/border_back.png') no-repeat top center / 100% auto,
    linear-gradient(180deg, #EFF7EC 0%, #EFF7EC 20%, #FFFFFF 100%) no-repeat 0 calc(100vw / 3 - var(--wave-fill-overlap)) / 100% calc(100% - 100vw / 3 + var(--wave-fill-overlap));
}
.flow .h2-outer {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}
.flow h2 {
  font-size: 26px;
  display: inline-block;
  margin-right: 8px;
}
.flow .h2-outer .eng {
  font-size: 19px;
  display: inline-block;
}
.flow-kazari {
  width: 60px;
}
.flow > .wrap > .content > .lead {
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
  margin-bottom: 40px;
}
/* SP は縦積み。矢印は下向きに */
.flow-steps.box-outer {
  grid-template-columns: 1fr;
  gap: 35px;
}
.flow-step:not(:last-child)::after {
  top: auto;
  bottom: -23px;
  right: 50%;
  width: 12px;
  height: 12px;
  border-top: none;
  border-right: 3px solid #FE8BA7;
  border-bottom: 3px solid #FE8BA7;
  transform: translateX(50%) rotate(45deg);
}
.step-inner {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  column-gap: 20px;
  align-items: center;
  padding: 15px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 10px rgba(96, 145, 101, 0.12);
  text-align: left;
}
.flow-step .icon {
  grid-row: 1 / span 3;
  width: 85px;
  height: 85px;
  margin: 0;
}
.flow-step .num {
  grid-column: 2;
  margin: 0 0 2px;
  font-size: 16px;
  text-align: left;
}
.flow-step h3 {
  grid-column: 2;
  font-size: 18px;
  margin: 0 0 5px;
  text-align: left;
}
.flow-step p {
  grid-column: 2;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}
.flow-step .step-inner > p:not(.num) {
  padding: 0;
  text-align: left;
}

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

/* 1200px基準の飾りを中間幅では画面比率に合わせる。 */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  .page-title-works { height: 37.0833vw; }
  .page-title-works h2 { font-size: 3.3333vw; }
  .works-list { padding: 7.0833vw 0 8.3333vw; }
  .works-list > .wrap > .content,
  .flow > .wrap > .content { max-width: 93.3333vw; }
  .works-list .h2-outer,
  .flow .h2-outer { gap: 1.6667vw; }
  .works-list h2,
  .flow h2 { font-size: 2.6667vw; }
  .works-grid { gap: 3.3333vw 2.5vw; }
  .works-filter { width: 83.3333vw; margin-bottom: 5vw; border-radius: 3.3333vw; }
  .filter-btn { padding: 0.8333vw 1.25vw; font-size: calc(12px + 0.25vw); }
  .work-card .thumb { margin-bottom: 2.0833vw; border-radius: 1vw; }
  .work-card .thumb img { border-radius: 1vw; }
  .work-card .tag { bottom: -1.25vw; left: -0.8333vw; min-width: 11.25vw; padding: 0.4167vw 1.6667vw; font-size: calc(10px + 0.25vw); }
  .work-card .title { font-size: calc(12px + 0.25vw); margin-bottom: 0.6667vw; }
  .work-card .meta { font-size: calc(10px + 0.25vw); }
  .flow > .wrap { padding: 16.6667vw 0 13.3333vw; }
  .flow-steps.box-outer { gap: 2.9167vw; }
  .flow-step .icon { width: 11.6667vw; height: 11.6667vw; }
  .flow-step:not(:last-child)::after { top: 5.0833vw; right: -2vw; width: 1.1667vw; height: 1.1667vw; border-width: 0.3333vw; }
  .flow-step .num { font-size: 1.5vw; margin-top: -1.1667vw; margin-bottom: 0.6667vw; }
  .flow-step h3 { font-size: 1.5vw; margin-bottom: 1.25vw; }
  .flow-step p { font-size: calc(12px + 0.1667vw); }
  .works-list .works-kazari-01 {
    right: 0;
    width: 20vw;
  }
  .flow .works-kazari-02 {
    left: 2.5%;
    width: 8.125vw;
  }
}
