/* ========================================================================== */
/*  【SM帯スマホ横・小型タブレット】481〜767px                             */
/* ========================================================================== */
@media screen and (min-width: 481px) and (max-width: 767px) {
/* セクション共通 */
  /* 見出し<h2>のフォントサイズ */
  body .section-heading {
  font-size: 25px !important;
  }
  
  /* ヒーロー内コンテンツのパディングと最小高さ */
  body .spcs-hero .spcs-hero-contents {
    padding: 100px 30px 10px !important;
    min-height: 330px !important;
  }

  /* 斜め帯の高さ、位置、背景色 */
  body .spcs-hero-slantband {
    height: 290px !important;
    left: -5%;
    width: 110%;
    top: 0;
    transform: rotate(-2deg);
    border-top: 12px solid rgba(32, 55, 68, 0.75);
    border-bottom: 12px solid rgba(32, 55, 68, 0.75);
  }

  /* 左の短冊（タテ札）のサイズと位置調整 */
  body .spcs-hero .tanzaku-decoration {
    width: 165px !important;
    bottom: 45px !important;
    left: -40px !important;
    transform: rotate(-6deg) !important;
  }

  /* Circle背景の大きさと位置 */
  body .spcs-hero-copy.has-circle-bg::before {
    display: block;
    background-size: contain;
    width: 300px !important;
    height: 300px !important;
    top: -75px !important;
    left: 50%;
    transform: translateX(-50%);
  }

  /* 見出し文字サイズ・行間調整 */
  body .spcs-hero-copy.has-circle-bg h2 {
    font-size: 1.8rem !important;
    line-height: 1.4 !important;
    text-align: center;
    margin-top: -1.15em !important;
  }

  /* リード文文字サイズ・行間調整 */
  body .spcs-hero-copy.has-circle-bg p {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    text-align: center;
    margin-top: -1.0em;
  }

  /* 右の縦書き文字の位置とサイズ調整 */
  body .spcs-hero-tategaki {
    top: -72.5px !important;
    right: 20px !important;
    font-size: 1rem !important;
    padding-top: 0 !important;
    line-height: 0.9;
  }


  /* main */
  main {
    margin-top: -1px !important;
  }

 

  /* 施工内容セクション */
  .spcs-process-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .spcs-process-label {
    flex: 0 0 auto !important;
    width: 60px !important;
    margin-right: 12px !important;
  }
  .spcs-process-label img {
    width: 60px !important;
    height: auto !important;
    margin-left: 0 !important;
    transform: rotate(-2deg) !important;
  }
  .spcs-process-text {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding-left: 0 !important;
  }
  .spcs-process-description {
    font-size: 1rem;
  }

/* ===== 施工事例セクション（481〜767px）===== */
/* sm帯域はmdと同様、スマホ寄り → 写真群→テキスト群の縦並びに強制 */
.spcs-case-pair.case-left,
.spcs-case-pair.case-right {
  flex-direction: column !important;  /* 縦並び */
  width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  box-sizing: border-box;
}

.case-images-horizontal {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem; /* mdより少し狭めの間隔 */
}

.spcs-case-item {
  width: 45% !important;  /* mdよりやや小さめ */
  text-align: center;
}

.spcs-case-item img {
  width: 100% !important;
  height: auto !important;
}

.case-textgroup {
  width: 100% !important;
  padding: 1rem 0;
}

.case-textbox {
  width: 85%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0.75rem !important;
  font-size: 0.9rem;
  line-height: 1.6;
}

}

/* ========================================================================== */
/*  【⑦ タブレット以下 共通】～767px                                      */
/* ========================================================================== */
@media screen and (max-width: 767px) {
  .spcs-case-pair {
    flex-direction: column;
    align-items: center;
  }
  .spcs-case-images {
    display: flex;
    flex-direction: column;
  }
  .case-before,
  .case-after,
  .case-textbox {
    width: 100%;
    padding: 0.5rem 1rem;
  }
  .case-textbox {
    margin-top: 1rem;
  }
  .case-left,
  .case-right {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .case-images-vertical {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .case-textgroup {
    width: 100%;
    padding: 1rem 0;
  }
  .spcs-case-item img {
    width: 80px;
  }
}