@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ============================================================
   LP テンプレート共通 — SWELL 本文ラッパー (.l-content) の
   padding / margin / max-width をリセット
   :has() で LP ラッパーを内包する .l-content だけを狙うので、
   通常の固定ページ・投稿には影響しない。
   ============================================================ */
.l-content:has(> .kg-top-lp),
.l-content:has(> .hiv-lp),
.l-content:has(> .hiv-prep-lp),
.l-content:has(> .hiv-pep-lp),
.l-content:has(> .hiv-test-lp) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: none !important;
}

/* LP ページでは横スクロール防止（装飾 blob のはみ出し対策） */
html:has(.kg-top-lp),
html:has(.hiv-lp),
html:has(.hiv-prep-lp),
html:has(.hiv-pep-lp),
html:has(.hiv-test-lp),
body:has(.kg-top-lp),
body:has(.hiv-lp),
body:has(.hiv-prep-lp),
body:has(.hiv-pep-lp),
body:has(.hiv-test-lp) {
  overflow-x: clip !important;
}

/* LP ラッパー直前の .l-content / .l-mainContent も含めて clip */
.l-content:has(> .kg-top-lp),
.l-content:has(> .hiv-lp),
.l-content:has(> .hiv-prep-lp),
.l-content:has(> .hiv-pep-lp),
.l-content:has(> .hiv-test-lp),
.l-mainContent:has(.kg-top-lp),
.l-mainContent:has(.hiv-lp),
.l-mainContent:has(.hiv-prep-lp),
.l-mainContent:has(.hiv-pep-lp),
.l-mainContent:has(.hiv-test-lp) {
  overflow-x: clip !important;
}

/* LP ラッパー自身も念押しで clip */
.kg-top-lp,
.hiv-lp,
.hiv-prep-lp,
.hiv-pep-lp,
.hiv-test-lp {
  overflow-x: clip !important;
}
