/* =========================================
   fw-label
========================================= */

.fw-label {
  background-color: #eef3f6;
  padding: 80px 0 40px;
}

.fw-label__inner {
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.fw-label__text {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 999px;
  background-color: #7b7f82;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.15em;
  line-height: 1;
}

/* =========================================
   fw-features（縦書き3ブロック＋左サイド帯）
========================================= */

.fw-features {
  background-color: #eef5f7;
  padding: 80px 0 140px;
}

.fw-features__container {
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 48px;
  align-items: flex-start;
}

/* 左の縦ロゴ帯 */
.fw-features__side {
  padding-top: 0;
}

.fw-features__stripe {
  width: 80px;              /* index.html の features__stripe と合わせる */
  display: block;
}

/* 右側コンテンツ */
.fw-features__inner {
  position: relative;
}

/* ブロック共通 */
.fw-feature {
  position: relative;
  padding: 120px 0;
  color: #333;
}

/* 背景の丸 */
.fw-feature::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background-color: #fff3df;
  z-index: 0;
  opacity: 0.95;
}

.fw-feature--top::before {
  top: 48%;
}

.fw-feature--middle::before {
  top: 50%;
}

.fw-feature--bottom::before {
  top: 52%;
}

/* テキストは前面 */
.fw-feature__title,
.fw-feature__text {
  position: relative;
  z-index: 1;
}

.fw-feature__title {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.fw-feature__title-main {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.6;
}

.fw-feature__text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  line-height: 2;
}

/* =========================================
   型枠工事の流れ（画像版）
========================================= */

.fw-flow {
  background-color: #f7fafc;
  padding: 80px 0 120px;
}

.fw-flow__inner {
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.fw-flow__title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 40px;
  color: #333;
}

.fw-flow__image {
  display: flex;
  justify-content: center;
}

.fw-flow__image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* formwork-carpenter.html 専用：インライン置き換え（見た目維持） */
.page-hero__title--no-margin {
  margin: 0;
}

/* CTAの余白/並び（インライン置き換え） */
.page-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 768px) {

  .fw-label {
    padding: 40px 0 24px;
  }

  .fw-label__text {
    font-size: 14px;
  }

  .fw-features {
    padding: 60px 0 80px;
  }

  .fw-features__container {
    display: block;
  }

  .fw-features__side {
    display: none;          /* SPではサイド帯非表示（indexと同じ思想） */
  }

  .fw-feature {
    padding: 80px 0;
  }

  .fw-feature::before {
    width: 320px;
    height: 320px;
  }

  .fw-feature__title-main {
    font-size: 20px;
  }

  .fw-feature__text {
    font-size: 13px;
  }

  .fw-flow {
    padding: 60px 0 80px;
  }

  .fw-flow__title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .fw-flow__image img {
    max-width: 95%;
  }
}
