/* LINE固定ボタン */
.line-fixed-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #06C755;
  border-radius: 50%;
  z-index: 9999;
	/* サービスアイコン全体（丸） */
.service-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

/* 中のアイコン画像 */
.service-icon-wrap img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
	/* LINE固定ボタン：iOS Safari対策 完全版 */
.line-fixed-btn {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #06C755;
  border-radius: 50%;
  z-index: 2147483647; /* Safari最強値 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 画像サイズ */
.line-fixed-btn img {
  width: 26px;
  height: 26px;
}

/* 親要素の影響を無視 */
body {
  overflow-x: visible !important;
}
	/* LINE固定ボタン */
.line-fixed-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #06C755;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.line-fixed-btn img {
  width: 32px;
  height: 32px;
}
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.line-fixed-btn img {
  width: 36px;
  height: 36px;
}
/* LINEボタン内の画像サイズ調整 */
.line-fixed-btn img {
  width: 28px;
  height: 28px;
}
/* 解体工事の流れ：スマホ最適化 */
@media (max-width: 768px) {

  /* セクション全体 */
  .flow-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 縦ラインを消す（スマホでは不要） */
  .flow-section::before,
  .flow-section::after {
    display: none !important;
  }

  /* アイコンサイズ調整 */
  .flow-section img {
    width: 64px;
    height: auto;
    margin: 0 auto 8px;
    display: block;
  }

  /* 見出し */
  .flow-section h2,
  .flow-section h3 {
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
  }

  /* 説明文 */
  .flow-section p {
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
  }
}
/* スマホ横ズレ防止（最重要） */
html, body {
  overflow-x: hidden;
}
/* スマホだけ：見出しの暴れを抑える */
@media (max-width: 600px) {
  /* 1) H1を適正サイズに（自動で伸び縮み） */
  h1 {
    font-size: clamp(26px, 6.2vw, 34px);
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin-top: 12px;
    margin-bottom: 14px;
  }

  /* 2) H2も少し整える（必要なら） */
  h2 {
    font-size: clamp(20px, 5.2vw, 26px);
    line-height: 1.35;
  }
}
/* モバイルの見出しを整える（Cultivate + ブロック想定） */
@media (max-width: 768px){
  h1{
    font-size: 30px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em;
    margin-top: 18px !important;
    margin-bottom: 14px !important;
  }
  h2{
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin-top: 18px !important;
    margin-bottom: 10px !important;
  }
  h3{
    font-size: 19px !important;
    line-height: 1.4 !important;
  }
  p{
    line-height: 1.8 !important;
  }
}
@media (max-width: 768px){

  /* 上の一文 */
  .wp-block-heading:first-of-type{
    font-size: 22px !important;
    line-height: 1.4 !important;
  }

  /* メイン見出し */
  h1{
    font-size: 28px !important;
    line-height: 1.25 !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
  }

  /* 本文 */
  p{
    line-height: 1.8 !important;
  }

}
@media (max-width: 768px){

  /* 見出しと本文の間を整える */
  h2, h3{
    margin-bottom: 10px !important;
  }

  p{
    margin-top: 8px !important;
    margin-bottom: 16px !important;
  }

  /* セクションごとの余白を少しだけ詰める */
  .wp-block-group{
    margin-bottom: 28px !important;
  }

  /* 固定LINEボタンが被らないように */
  body{
    padding-bottom: 90px;
  }

}
@media (max-width:768px){
  h2{
    font-size: 22px !important;
    line-height: 1.4 !important;
    margin-bottom: 14px !important;
  }
}
@media (max-width:768px){
  p{
    line-height: 1.9 !important;
    font-size: 16px !important;
  }
}
@media (max-width:768px){
  .wp-block-heading{
    font-weight:600 !important;
  }
}
@media (max-width:768px){
  body{
    padding-bottom:110px !important;
  }
}
.has-background{
  background-color:#f7f7f7 !important;
}
h1, h2{
  font-weight:600 !important;
}
/* ========== Mobile readability tuning (Cultivate / RankMath pages) ========== */
@media (max-width: 768px){

  /* 見出し：太すぎ＆大きすぎを抑える */
  h1{
    font-size: 30px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
  }
  h2{
    font-size: 22px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
  }
  h3{
    font-size: 18px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
  }

  /* 本文：読みやすい標準に */
  p, li{
    font-size: 16px !important;
    line-height: 1.9 !important;
  }

  /* 引用・強調の太字を少しだけ柔らかく */
  strong{
    font-weight: 700 !important;
  }

  /* セクションの余白：詰まりすぎ防止 */
  .wp-block-group, .wp-block-columns, .wp-block-cover{
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
}
@media (max-width: 768px){
  .wp-block-button__link{
    font-size: 16px !important;
    padding: 16px 18px !important;
    border-radius: 10px !important;
  }
}
@media (max-width: 768px){
  /* 画面右下の固定LINEボタンが被るのを軽減 */
  .line_btn, .line-button, .floating-line, .sp-line, .line-floating{
    transform: scale(0.88);
    transform-origin: right bottom;
    bottom: 14px !important;
    right: 12px !important;
  }
}
/* スマホだけ：追従LINEを邪魔しないサイズに */
@media (max-width: 768px){

  /* よくある追従ボタン候補（どれかに当たれば効く） */
  .line_btn, .floating-line, .sp-line, .line-button,
  .fixed-line, .floating-btn, .sticky-cta, .cta-floating {
    transform: scale(0.82);
    transform-origin: right bottom;
    right: 14px !important;
    bottom: 14px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16) !important;
  }

  /* 本文が隠れないように下に余白を作る */
  body{ padding-bottom: 120px !important; }
}
@media (max-width: 768px){

  body{
    padding-bottom: 120px !important;
  }

}

/* デスクトップは無効にする */
@media (min-width: 769px){
  body{
    padding-bottom: 0 !important;
  }
}
@media (max-width: 768px){
  .line_btn, .floating-line, .sp-line, .line-button{
    width: 80% !important;
    max-width: 260px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 
  "Hiragino Kaku Gothic ProN", "Yu Gothic", 
  "Noto Sans JP", sans-serif !important;
}