/* ========================================================================== */
/*  【MD帯タブレット横・小型PC】768〜979px                                  */
/* ========================================================================== */
@media screen and (min-width: 768px) and (max-width: 979px) {
/* ＝＝＝＝＝＝ ヒーローセクションの調整 ＝＝＝＝＝＝ */
  body .spcs-hero {
    padding-bottom: 80px; /* 現在より+20〜40px程度 */
  }
  
  body .spcs-hero .spcs-hero-contents {
    padding: 120px 40px 10px !important;
    min-height: 350px !important;
  }

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

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

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

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

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

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

  /* ===== 施工内容セクション（768〜979px）===== */
/* md帯域はスマホ寄りの横並び（ラベル左・テキスト右）を基本に調整 */
.spcs-process-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;  /* ラベルとテキスト間の余白を少し狭め */
}

.spcs-process-label {
  flex: 0 0 auto !important;
  width: 50px !important;       /* ラベル幅を小さめに調整（PCより控えめ） */
  margin-right: 12px !important;
}

.spcs-process-label img {
  width: 50px !important;       /* ラベル画像を小さくして傾ける */
  height: auto !important;
  transform: rotate(-4deg) !important;  /* 傾き強調 */
}

.spcs-process-text {
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

.spcs-process-description {
  font-size: 1rem;              /* テキストは読みやすい標準サイズ */
  line-height: 1.6;
}

/* ===== 施工事例セクション（768〜979px）===== */
/* 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: 1rem;  /* 適度な写真間の余白 */
  }

  .spcs-case-item {
    width: 40% !important;   /* 写真幅は控えめ */
    text-align: center;
  }

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

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

  .case-textbox {
    padding: 1rem !important;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  
}




/* ========================================================================== */
/*  【SM帯スマホ横・小型タブレット】768〜830pxの補足調整                      */
/* ========================================================================== */
@media screen and (min-width: 768px) and (max-width: 830px) {
  /* 右の縦書き文字の位置とサイズ調整 */
  body .spcs-hero-tategaki {
    top: -40px !important;
    right: 20px !important;
    font-size: 1.1rem !important;
    padding-top: 0 !important;
    line-height: 1.0;
  }
}