/* ========================================================================== */
/*  【XS帯スマホ向け】480px以下の画面に適用                                */
/* ========================================================================== */
@media screen and (max-width: 480px) {
/* ===== 全セクション共通：見出し<h2>下の余白を縮める ===== */
  /* ====== セクション共通 ====== */
  /* 見出し<h2>のフォントサイズ */
  body .section-heading {
    font-size: 22px !important;
  }

  /* セクション内のh2の下の余白だけを縮める */
  .section-heading {
    margin-bottom: 0.25rem !important;
  }

  /* h2直下のコンテンツの上余白を強制縮小 */
  .section-heading + .spcs-process-item,
  .section-heading + .spcs-price-area-inner,
  .section-heading + .spcs-case-inner,
  .section-heading + .spcs-flow-inner,
  .section-heading + .spcs-voice-inner,
  .section-heading + .spcs-faq-inner,
  .section-heading + .spcs-contact-inner,
  .section-heading + .spcs-cta-altclean-inner {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
/* ====== ヒーローセクション ====== */
  /* ヒーロー内コンテンツのパディングと最小高さ */
  body .spcs-hero .spcs-hero-contents {
    padding: 80px 20px 5px !important;
    min-height: 300px !important;
  }

  /* 斜め帯の高さ、位置、背景色 */
  body .spcs-hero-slantband {
    height: 250px !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: 130px !important;
    bottom: 65px !important;
    left: -43px !important;
    transform: rotate(-6deg) !important;
  }

  /* Circle背景の大きさと位置 */
  body .spcs-hero-copy.has-circle-bg::before {
    display: block;
    width: 260px !important;
    height: 260px !important;
    top: -77px !important;
    left: 49.5%;
  }

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

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

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

/* ====== mainの調整 ====== */
  main::before {
    width: 101vw !important;
    margin-left: -10px;
  }
  
/* ====== 施工内容セクション ====== */
  /* 横並び維持 */
  body .spcs-process-item {
    flex-wrap: nowrap;
  }
  
  /* ラベル枠の幅を画像にフィットさせる */
  body .spcs-process-label {
    width: 40px !important; 
    padding-right: 0.3rem !important;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  
  /* 「壱〜肆」ラベル画像サイズ調整 */
  body .spcs-process-label img {
    width: 40px !important;
    height: auto !important;
    display: block;
    transform: rotate(-3deg) !important;
    margin: 0 auto 0.5em;
  }

  /* 念のためテキスト側にmin-width保険 */
  body .spcs-process-text {
    min-width: 0;
  }
  
/* ===== 料金紹介セクション（480px以下）===== */
  .spcs-price-area-section .section-intro,
  .section-intro,
  .spcs-price-notice,
  .price-note,
  .spcs-area-note p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    max-width: 95% !important;
    margin: 0.3rem auto 0.8rem !important;
  }
  .spcs-price-notice {
    padding: 1rem !important;
  }
  .spcs-price-notice li {
    margin-bottom: 0.5rem !important;
    line-height: 1.6 !important;
  }
  .price-conditions {
    padding-left: 1em !important;
    margin-left: 0 !important;
  }
  .spcs-price-list {
    display: block !important;
    margin: 1.5rem 0 !important;
  }
  .price-item {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 1.5rem !important;
    padding: 16px !important;
  }
  .price-item h3 {
    font-size: 1rem !important;
    margin-bottom: 0.3rem !important;
  }
  .price-item-table {
    font-size: 0.9rem !important;
  }

/* ===== 施工事例セクション（480px以下）===== */
.spcs-case-pair.case-left,
.spcs-case-pair.case-right {
  flex-direction: column !important;
  width: 100% !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  box-sizing: border-box;
}

.case-images-horizontal {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;  /* 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: 0.75rem 0;
}

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



/* ========================================================================== */
/*  【① 極小スマホ】375px以下（例：iPhone 12 mini 縦）                   */
/* ========================================================================== */
@media screen and (max-width: 375px) and (orientation: portrait) {
/* ====== セクション共通 ====== */
  /* 見出し<h2>のフォントサイズ */
  body .section-heading {
  font-size: 18px !important;
  }
  
/* ====== ヒーローセクション ====== */
  /* ヒーロー内コンテンツのパディングと最小高さ */
  body .spcs-hero .spcs-hero-contents {
    padding: 70px 18px 5px !important;
    min-height: 290px !important;
  }

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

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

  /* Circle背景の大きさと位置 */
  body .spcs-hero-copy.has-circle-bg::before {
    display: block;
    width: 245px !important;
    height: 245px !important;
    top: -77px !important;
    left: 49.5%;
  }

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

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

  /* 右の縦書き文字の位置とサイズ調整 */
  body .spcs-hero-tategaki {
    top: -52px !important;
    right: 18px !important;
    font-size: 0.8rem !important;
    padding-top: 0 !important;
    line-height: 1.0;
  }
  
/* ====== 施工内容セクション ====== */
  /* 横並び維持 */
  body .spcs-process-item {
    flex-wrap: nowrap;
  }
  
  /* ラベル枠の幅を画像にフィットさせる */
  body .spcs-process-label {
    width: 25px !important;
    padding-right: 0.25rem !important;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  
  /* 「壱〜肆」ラベル画像サイズ調整 */
  body .spcs-process-label img {
    width: 25px !important;
    height: auto !important;
    display: block;
    margin: 0 auto 0.15em;
  }

  /* 念のためテキスト側にmin-width保険 */
  body .spcs-process-text {
    min-width: 0;
  }
  
}