/* =========================================================
   南日本消毒｜サービスページ共通CSS 完成版
   対象：
   - シロアリ（1095）
   - ハチ（1245）
   - 害虫（1273）
   - 害獣（1107）
   - 床下調湿・防カビ（1274）
   - 床下換気扇（1275）
   前提：
   - 各ページの本文HTMLは .mn-page.mn-service 構造で統一
   - 施工事例は [mn_case_list ...] を使用
   ========================================================= */

/* =========================
   共通変数
========================= */
body.single-service{
  --mn-green:#009834;
  --mn-deep:#0f5a2b;
  --mn-bg:#f6f7f6;
  --mn-line:rgba(0,0,0,.06);
  --mn-text:rgba(0,0,0,.78);
  --mn-sec-gap:96px;
  --mn-sec-gap-sp:72px;
}

/* =========================
   サービスページ全体
========================= */
body.single-service .post_content,
body.single-service .entry-content{
  color:var(--mn-text);
  line-height:1.75 !important;
  letter-spacing:.02em;
}

body.single-service .post_content p,
body.single-service .entry-content p{
  margin:0 0 .6em !important;
  line-height:1.75 !important;
}

body.single-service .post_content p:last-child,
body.single-service .entry-content p:last-child{
  margin-bottom:0 !important;
}

body.single-service .post_content li,
body.single-service .entry-content li{
  line-height:1.75 !important;
  margin:0 0 .25em !important;
}

body.single-service .post_content ul,
body.single-service .post_content ol,
body.single-service .entry-content ul,
body.single-service .entry-content ol{
  margin:0 0 .85em !important;
}

/* =========================
   セクション余白
========================= */
body.single-service .mn-sec{
  padding-top:var(--mn-sec-gap);
}

body.single-service .mn-sec--first{
  padding-top:0;
}

/* =========================
   見出し
========================= */
body.single-service .post_content h2,
body.single-service .entry-content h2,
body.single-service .post_content .custom_h2,
body.single-service .entry-content .custom_h2,
body.single-service .mn-h2{
  color:var(--mn-deep) !important;
  text-align:center !important;
  font-weight:700 !important;
  letter-spacing:.06em !important;
  line-height:1.25 !important;
  margin:0 0 22px !important;
  font-size:clamp(24px, 2.2vw, 34px) !important;
}

body.single-service .post_content h2::after,
body.single-service .entry-content h2::after,
body.single-service .post_content .custom_h2::after,
body.single-service .entry-content .custom_h2::after,
body.single-service .mn-h2::after{
  content:"";
  display:block;
  width:72px;
  height:3px;
  background:var(--mn-green);
  border-radius:999px;
  margin:14px auto 0;
}

/* 見出しライン下と本文の間 */
body.single-service .mn-h2{
  margin-bottom:42px !important;
}

body.single-service .mn-h2::after{
  margin-top:14px !important;
}

/* =========================
   テキスト幅
========================= */
body.single-service .mn-lead,
body.single-service .mn-centerText,
body.single-service .mn-center,
body.single-service .mn-olist,
body.single-service .mn-centerText--tight{
  max-width:54em !important;
  width:92% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* リード */
body.single-service .mn-lead{
  text-align:left;
  margin:0 auto 22px;
}

body.single-service .mn-lead p{
  margin:0 0 .45em !important;
}

body.single-service .mn-lead__ttl{
  font-weight:700;
  margin-bottom:.75em !important;
}

/* 中央説明ブロック */
body.single-service .mn-centerText,
body.single-service .mn-center{
  text-align:center;
  line-height:1.75;
  letter-spacing:.01em;
  text-wrap:pretty;
}

body.single-service .mn-centerText p,
body.single-service .mn-center p{
  margin:0 0 .55em !important;
}

body.single-service .mn-centerText p:last-child,
body.single-service .mn-center p:last-child{
  margin-bottom:0 !important;
}

/* 小さい説明文 */
body.single-service .mn-small,
body.single-service .mn-note,
body.single-service .mn-property__note{
  line-height:1.7 !important;
  font-size:13px;
}

/* リスト */
body.single-service .mn-olist{
  text-align:left;
  margin-top:14px;
  padding-left:1.2em;
}

body.single-service .mn-olist li{
  margin:0 0 .4em;
}

/* =========================
   対応物件
========================= */
body.single-service .mn-property{
  max-width:760px !important;
  width:88% !important;
  margin:28px auto 0 !important;
  background:var(--mn-bg);
  border:1px solid var(--mn-line);
  border-radius:12px;
  padding:16px 18px;
  box-sizing:border-box;
  text-align:center;
}

body.single-service .mn-property__ttl{
  margin:0 0 10px !important;
  text-align:center !important;
  font-weight:600;
  font-size:14px !important;
  letter-spacing:.04em;
  color:var(--mn-green);
}

body.single-service .mn-property__list{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  gap:8px !important;
  align-items:center !important;
  font-size:0 !important;
  line-height:0 !important;
}

body.single-service .mn-property__list > li{
  margin:0 !important;
  padding:6px 12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid rgba(0,152,52,.55) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:var(--mn-deep) !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:500 !important;
  white-space:nowrap !important;
}

/* =========================
   画像＋テキスト
========================= */
body.single-service .mn-media{
  max-width:920px;
  margin:0 auto;
  display:flex;
  gap:22px;
  align-items:flex-start;
}

body.single-service .mn-media__text{
  flex:1;
}

body.single-service .mn-media__img{
  flex:0 0 44%;
  margin:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--mn-line);
  background:#fff;
  aspect-ratio:4/3;
}

body.single-service .mn-media__img img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* =========================
   料金ボックス
========================= */
body.single-service .mn-pricebox{
  max-width:920px;
  margin:0 auto;
  padding:18px 22px;
  background:var(--mn-bg);
  border:1px solid var(--mn-line);
  border-radius:12px;
}

body.single-service .mn-pricebox__lead{
  margin-bottom:.6em !important;
}

body.single-service .mn-pricelist{
  margin:12px 0 0;
  padding-left:1.2em;
}

body.single-service .mn-pricelist li{
  margin:0 0 10px;
}

body.single-service .mn-pricelist li:last-child{
  margin-bottom:0;
}

/* =========================
   施工事例ショートコード
========================= */
body.single-service .mn-case-shortcode{
  max-width:1180px;
  margin:0 auto;
}

body.single-service .mn-case-shortcode__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top:26px;
}

body.single-service .mn-case-shortcode__card{
  margin:0;
  border:1px solid #d9d9d9;
  background:#fff;
  height:100%;
}

body.single-service .mn-case-shortcode__link{
  display:flex;
  flex-direction:column;
  height:100%;
  text-decoration:none;
  color:inherit;
}

body.single-service .mn-case-shortcode__thumb{
  margin:0;
  aspect-ratio:4 / 2.35;
  overflow:hidden;
  background:#f3f4f3;
}

body.single-service .mn-case-shortcode__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

body.single-service .mn-case-shortcode__link:hover .mn-case-shortcode__thumb img{
  transform:scale(1.03);
}

body.single-service .mn-case-shortcode__noimage{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#777;
  font-size:13px;
  letter-spacing:.08em;
}

body.single-service .mn-case-shortcode__body{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:18px 18px 16px;
}

body.single-service .mn-case-shortcode__title{
  margin:0 0 16px;
  min-height:5.6em;
  font-size:20px;
  line-height:1.7;
  font-weight:700;
  color:#009834;
  transition:color .25s ease;
}

body.single-service .mn-case-shortcode__link:hover .mn-case-shortcode__title,
body.single-service .mn-case-shortcode__link:focus-visible .mn-case-shortcode__title{
  color:#6fc28a;
}

body.single-service .mn-case-shortcode__meta{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid #e3e3e3;
  color:#333;
  font-size:15px;
  line-height:1.7;
  text-align:center;
}

body.single-service .mn-case-shortcode__more{
  margin-top:24px;
  text-align:center;
}

body.single-service .mn-case-shortcode__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:240px;
  padding:13px 22px;
  border:1px solid #009834;
  background:#fff;
  color:#009834;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  transition:all .25s ease;
}

body.single-service .mn-case-shortcode__btn:hover{
  background:#009834;
  color:#fff;
}

body.single-service .mn-case-shortcode-empty{
  text-align:center;
  color:#666;
  font-size:15px;
  line-height:1.9;
}

/* =========================
   CTA
========================= */
body.single-service .mn-sec--cta{
  padding-top:56px !important;
}

body.single-service .mn-sec--cta .mn-btnrow{
  display:flex;
  gap:14px !important;
  flex-wrap:wrap;
  justify-content:center;
}

body.single-service .mn-sec--cta .mn-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:220px !important;
  padding:16px 24px !important;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  font-size:16px !important;
  line-height:1.2 !important;
  border:1px solid rgba(0,0,0,.12);
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .18s ease;
}

body.single-service .mn-sec--cta .mn-btn--primary{
  background:var(--mn-green);
  border-color:var(--mn-green);
  color:#fff;
}

body.single-service .mn-sec--cta .mn-btn--ghost{
  background:#fff;
  color:var(--mn-deep);
  border-color:rgba(0,152,52,.55);
}

body.single-service .mn-sec--cta .mn-btn--primary:hover,
body.single-service .mn-sec--cta .mn-btn--primary:focus-visible{
  background:#0b7f32 !important;
  border-color:#0b7f32 !important;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(0,152,52,.18);
  transform:translateY(-1px);
}

body.single-service .mn-sec--cta .mn-btn--ghost:hover,
body.single-service .mn-sec--cta .mn-btn--ghost:focus-visible{
  background:#009834 !important;
  border-color:#009834 !important;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(0,152,52,.14);
  transform:translateY(-1px);
}

body.single-service .mn-sec--cta .mn-btn:active{
  transform:translateY(0);
  box-shadow:none;
}

/* =========================
   テーマ側自動「サービス一覧」
========================= */
body.single-service main.l-main{
  row-gap:24px !important;
  gap:24px !important;
}

body.single-service section.p-single-bottom__service.p-recent-service{
  padding:36px 0 60px !important;
  gap:32px !important;
}

/* =========================
   スマホ
========================= */
@media (max-width: 991px){
  body.single-service .mn-case-shortcode__grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 900px){
  body.single-service .mn-sec{
    padding-top:var(--mn-sec-gap-sp);
  }

  body.single-service .mn-media{
    flex-direction:column;
    gap:14px;
  }

  body.single-service .mn-media__img{
    width:100%;
  }

  body.single-service .mn-lead,
  body.single-service .mn-centerText,
  body.single-service .mn-center,
  body.single-service .mn-olist,
  body.single-service .mn-centerText--tight{
    width:100%;
    max-width:none;
  }
}

@media (max-width: 767px){

  /* CTAボタン */
  body.single-service .mn-sec--cta .mn-btnrow{
    flex-direction:column !important;
    align-items:center !important;
    gap:14px !important;
  }

  body.single-service .mn-sec--cta .mn-btn{
    width:240px !important;
    min-width:240px !important;
    max-width:240px !important;
    justify-content:center !important;
    text-align:center !important;
    margin:0 !important;
  }

  /* 施工事例カード */
  body.single-service .mn-case-shortcode__grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  body.single-service .mn-case-shortcode__body{
    padding:20px 18px 18px;
  }

  body.single-service .mn-case-shortcode__title{
    min-height:auto;
    font-size:17px;
    line-height:1.75;
    margin-bottom:18px;
  }

  body.single-service .mn-case-shortcode__meta{
    font-size:14px;
  }

  /* サービス一覧を1列化 */
  body.single-service section.p-single-bottom__service.p-recent-service{
    padding-top:24px !important;
    gap:20px !important;
  }

  body.single-service section.p-single-bottom__service.p-recent-service .inner{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:0 !important;
  }

  body.single-service section.p-single-bottom__service.p-recent-service .inner > *{
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:100% !important;
  }

  body.single-service section.p-single-bottom__service.p-recent-service h3,
  body.single-service section.p-single-bottom__service.p-recent-service [class*="title"]{
    font-size:16px !important;
    line-height:1.6 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    word-break:keep-all !important;
    overflow-wrap:anywhere !important;
  }
}

/* =========================================================
   ページ個別の微調整エリア
   ここから下だけ必要に応じて postid 指定で追加
   ========================================================= */

/* 1095：シロアリ */
body.postid-1095{}

/* 1245：ハチ */
body.postid-1245{}

/* 1273：害虫 */
body.postid-1273{}

/* 1107：害獣 */
body.postid-1107{}

/* 1274：床下調湿・防カビ */
body.postid-1274{}

/* 1275：床下換気扇 */
body.postid-1275{}

/* =========================================================
   全サービス共通：
   「こんなお悩みはご相談ください」直後の余白を詰める
   線は残す
   ========================================================= */
body.single-service .service_list_contents{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.single-service .p-single__content_service{
  margin-top: 0 !important;
  padding-top: 65px !important; /* ← 線の下の余白 */
}

body.single-service .p-single__content_service .mn-page.mn-service{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.single-service .p-single__content_service .mn-sec--lead{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.single-service .p-single__content_service .mn-h2{
  margin-top: 0 !important;
}

/* =========================================================
   全サービス共通：本文を左寄せ・1行約60文字・
   本文と対応物件の間隔を詰める
   ========================================================= */

/* 本文幅を約60文字にそろえる */
body.single-service .mn-lead,
body.single-service .mn-centerText,
body.single-service .mn-center,
body.single-service .mn-olist,
body.single-service .mn-centerText--tight{
  max-width: 60em !important;
  width: 92% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* テキストを左寄せにする */
body.single-service .mn-centerText,
body.single-service .mn-center{
  text-align: left !important;
}

/* 全サービス共通：リード本文と対応物件の間の空白を詰める */
body.single-service .mn-sec--lead{
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.single-service .mn-sec:has(.mn-property){
  padding-top: 24px !important;
  margin-top: 0 !important;
}

body.single-service .mn-property{
  margin-top: 0 !important;
}