@charset "UTF-8";
/* ------------------------------------------------------------------
   lucifer.css — 株式会社ルシファー 追加スタイル
   母体テーマの上に載せる差分。母体CSSは直接いじらずここへ集約する。
   読み込み順は common.css → 各ページCSS → lucifer.css（最後）。
------------------------------------------------------------------ */

/* 下層ページの見出し・パンくず ----------------------------------
   母体の #title は背景に実写写真を敷く前提だったので自前で定義し直す。 */
body.lower #title {
  width: 100%;
  padding: 86px 0 0;
  text-align: center;
  background: none;
  height: auto;
}
body.lower #title .h_ttl {
  font-size: 34px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.5;
  letter-spacing: .06em;
}
body.lower #title .h_ttl .en {
  display: block;
  margin-top: 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: .14em;
}
body.lower #title .line {
  display: block;
  width: 40px;
  height: 2px;
  margin: 28px auto 0;
  background-color: var(--c-accent);
}

body.lower #content_body {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  /* 母体は #content_body に白背景と内向きの影を敷いていた。
     白基調では影が矩形に浮いて見えるので消す。 */
  background: none;
  box-shadow: none;
}
body.lower #breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-top: 30px;
  font-size: 12px;
  color: var(--c-sub);
  letter-spacing: .04em;
}
body.lower #breadcrumb li + li::before {
  content: "／";
  margin: 0 .7em;
  color: var(--c-line);
}
body.lower #breadcrumb a { color: var(--c-sub); }
body.lower #breadcrumb a:hover { color: var(--c-accent); }

@media print, screen and (max-width: 1023px) {
  body.lower #title { padding-top: 9.5rem; }
  body.lower #title .h_ttl { font-size: 2.3rem; }
  body.lower #title .h_ttl .en { margin-top: 1.2rem; font-size: 1.3rem; }
  body.lower #title .line { margin-top: 2rem; }
  body.lower #content_body { width: 88%; }
  body.lower #breadcrumb { margin-top: 2.4rem; font-size: 1.1rem; }
}

/* SP追従CTAバー ------------------------------------------------- */
.spCta { display: none; }

@media print, screen and (max-width: 1023px) {
  .spCta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: 6.4rem;
    box-shadow: 0 -0.2rem 1.2rem rgba(0, 0, 0, .12);
  }
  .spCta a {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .04em;
    line-height: 1.3;
  }
  .spCta__tel { background-color: var(--c-accent-dark); }
  .spCta__tel b {
    display: block;
    margin-top: .2rem;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .06em;
  }
  .spCta__form { background-color: var(--c-accent); }

  /* CTAバーの分だけ地の余白を確保する */
  body { padding-bottom: 6.4rem; }
  #totop { bottom: 7.4rem; }

  /* 母体ヘッダーの残り物（カタログ枠を流用した電話ボタン）はSPでは出さない。
     ヘッダー直下に居座ってFVのコピーを隠すため。 */
  #nav-catalog-btn { display: none; }

  /* スライダーの左右矢印はSPでは指に当たるだけなので落とす（ドットは残す） */
  #mv .slick-arrow { display: none !important; }

  /* ドットが母体設定(bottom:-3.5rem)のままだとMVの外へ出て
     次セクションの見出しに重なるので、MV内に余白を作って収める */
  #mv { padding-bottom: 4.5rem; }
  #mv .slick-dots { bottom: 1.4rem; }
}

/* LPは末尾に専用CTAを持つので、フッターの汎用CTAは重複になる。LPだけ落とす。 */
body.lp_page footer #contact { display: none; }

/* ヘッダー ------------------------------------------------------
   母体は rgba(255,255,255,.9) の半透明。白基調では下の文字が透けて
   にごって見えるので不透明にする。 */
header { background-color: #fff !important; }

@media print, screen and (max-width: 1023px) {
  /* ロゴが 63px あり、ヘッダー高さ 60px から上下にはみ出していた。
     下層ページはロゴが h1 ではなく p.home（h1の重複を避けるため）なので、
     両方に当てないとトップだけ小さく、下層だけ大きくなる。 */
  header h1 img,
  header .home img { max-height: 4.4rem; width: auto; }
  header h1,
  header .home { display: flex; align-items: center; height: 6rem; padding-left: 1.2rem; }
}

/* FVを持つページはパンくずをFVに寄せる（母体の余白のままだと空きすぎる） */
.lpFv ~ #content_body #breadcrumb { margin-top: 20px; }

/* ==================================================================
   下層ページのヒーロー（#title の置き換え）
   トップ・LPと同じ光条の意匠でページの顔をつくる。
================================================================== */
.pgHero { position: relative; overflow: hidden; background-color: #fff; }
.pgHero__deco { position: absolute; right: -180px; top: -220px; width: 720px; height: 720px; z-index: 1; }
.pgHero__deco span { position: absolute; border: 1px solid var(--c-line); border-radius: 50%; }
.pgHero__deco span:nth-child(1) { inset: 0; }
.pgHero__deco span:nth-child(2) { inset: 124px; }
.pgHero__deco span:nth-child(3) { inset: 238px; }
.pgHero__in {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 56px;
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 0 56px;
}
.pgHero.is-plain .pgHero__in { padding-bottom: 48px; }
.pgHero__body { flex: 1 1 auto; min-width: 0; }
.pgHero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: .14em;
}
.pgHero__eyebrow::before { content: ""; display: block; width: 36px; height: 1px; background-color: var(--c-accent); }
.pgHero__ttl {
  margin-top: 20px;
  font-size: 40px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
  letter-spacing: .04em;
}
.pgHero__en {
  display: block;
  margin-top: 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-sub);
  letter-spacing: .16em;
}
.pgHero__lead { margin-top: 24px; font-size: 16px; line-height: 2.05; letter-spacing: .04em; }
.pgHero__fig { flex: 0 0 320px; }
.pgHero__fig svg { display: block; width: 100%; height: auto; }

@media print, screen and (max-width: 1080px) {
  .pgHero__in { gap: 36px; padding: 76px 0 48px; }
  .pgHero__ttl { font-size: 33px; }
  .pgHero__fig { flex: 0 0 240px; }
}
@media print, screen and (max-width: 1023px) {
  .pgHero__in { flex-direction: column; align-items: flex-start; gap: 2.4rem; width: 88%; padding: 4.4rem 0 3.2rem; }
  .pgHero__eyebrow { font-size: 1.2rem; }
  .pgHero__eyebrow::before { width: 2.4rem; }
  .pgHero__ttl { margin-top: 1.4rem; font-size: 2.5rem; }
  .pgHero__en { margin-top: 1rem; font-size: 1.2rem; }
  .pgHero__lead { margin-top: 1.6rem; font-size: 1.5rem; line-height: 1.95; }
  .pgHero__fig { display: none; }
  .pgHero__deco { right: -20rem; top: -16rem; width: 44rem; height: 44rem; }
  .pgHero__deco span:nth-child(2) { inset: 7.6rem; }
  .pgHero__deco span:nth-child(3) { inset: 14.4rem; }
}

/* ヒーロー直後の余白を詰める（母体の #content_body は余白が大きい） */
.pgHero ~ #content_body #breadcrumb { margin-top: 16px; }
.pgHero ~ #content_body { padding-bottom: 0; }
body.lower .pg > section:first-child { padding-top: 54px; }
@media print, screen and (max-width: 1023px) {
  .pgHero ~ #content_body #breadcrumb { margin-top: 1.4rem; }
  body.lower .pg > section:first-child { padding-top: 4rem; }
}

/* ページ内リンクは固定ヘッダーの分だけ手前で止める */
/* scroll-behavior:smooth はスクロール出現アニメの発火を妨げるため使わない */
[id] { scroll-margin-top: 100px; }
@media print, screen and (max-width: 1023px) { [id] { scroll-margin-top: 7rem; } }

/* ==================================================================
   リッチ化 第2弾（2026-08-21）
   写真素材が無いぶん、余白・階調・タイポで密度を出す。
================================================================== */

/* --- 見出しの上に大きな英字を置く ------------------------------
   背後に敷くと日本語と干渉して読みにくいので、見出しの上に出す。
   その代わり、下に置いていた小さな英字は隠す（同じ語の重複を避ける）。 */
.pgTtl, .lpTtl { position: relative; z-index: 0; }
.pgTtl[data-en]::before,
.lpTtl[data-en]::before {
  content: attr(data-en);
  display: block;
  margin-bottom: -4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .08em;
  color: var(--c-ink);
  opacity: .08;
  pointer-events: none;
}
.pgTtl[data-en] > span,
.lpTtl[data-en] > span { display: none; }
.is-dark .pgTtl[data-en]::before,
.lpRisk .lpTtl[data-en]::before { color: #fff; opacity: .16; }

/* --- ヒーローを大きく、背景に階調をつける ---------------------- */
.pgHero {
  background: linear-gradient(180deg, #F5FAF8 0%, #FFFFFF 68%);
  border-bottom: 1px solid var(--c-line);
}
.pgHero__in { padding: 108px 0 76px; }
.pgHero.is-plain .pgHero__in { padding-bottom: 64px; }
.pgHero__ttl { font-size: 44px; }
.pgHero__fig { flex: 0 0 380px; }
/* 斜めのアクセント */
.pgHero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent) 0%, rgba(11, 122, 85, 0) 100%);
  z-index: 3;
}
/* ドットのテクスチャ */
.pgHero__deco::after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background-image: radial-gradient(var(--c-line) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: .8;
}

/* --- カードを作り込む ------------------------------------------ */
.pgCard { position: relative; overflow: hidden; }
.pgCard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background-color: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.pgCard:hover::before { transform: scaleX(1); }
.pgCard svg {
  padding: 21px;
  background-color: var(--c-accent-pale);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  box-sizing: border-box;
}
.pgCard__more::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-top: 1px solid var(--c-accent);
  border-right: 1px solid var(--c-accent);
  transform: rotate(45deg) translateY(-1px);
  transition: transform .25s;
}
.pgCard:hover .pgCard__more::after { transform: rotate(45deg) translate(3px, -4px); }

/* --- アイコンカードも同様に ------------------------------------ */
.pgIcon svg {
  padding: 20px;
  background-color: var(--c-accent-pale);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  box-sizing: border-box;
}

/* --- テーブルの見出し列にアクセント ---------------------------- */
.pgTable th { position: relative; }
.pgTable th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--c-accent);
  opacity: .55;
}

/* --- 本文の見出しに番号のような罫 ------------------------------ */
.pgProse h3 {
  position: relative;
  padding-left: 20px;
  border-bottom: 1px solid var(--c-line);
}
.pgProse h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 4px;
  height: 1.05em;
  background-color: var(--c-accent);
}

/* --- ステップの番号を大きく ------------------------------------ */
.pgSteps__item::before { font-size: 38px; opacity: .9; }
.pgSteps__item dt { position: relative; }

/* --- 数字ブロックに区切りの光 ---------------------------------- */
.pgStats { position: relative; overflow: hidden; }
.pgStats::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
}
.pgStats::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -50px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}
.pgStats.is-gray::before, .pgStats.is-gray::after { border-color: var(--c-line); }

/* --- 中間CTA帯にも光条 ----------------------------------------- */
.pgBand, .lpBand { position: relative; overflow: hidden; }
.pgBand::before, .lp > section.lpBand::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
}
.pgBand__in, .lpBand__in { position: relative; z-index: 2; }

/* --- 図版の枠に余白と背景 -------------------------------------- */
.pgFig, .lpApproach__fig {
  padding: 36px 30px;
  background-color: #fff;
  border: 1px solid var(--c-line);
}
.is-gray .pgFig { background-color: #fff; }

/* --- 一覧の項目に矢印 ------------------------------------------ */
.pgList__item a { position: relative; padding-right: 34px; }
.pgList__item a::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 1px solid var(--c-sub);
  border-right: 1px solid var(--c-sub);
  transform: rotate(45deg);
  transition: right .25s, border-color .25s;
}
.pgList__item a:hover::after { right: 2px; border-color: var(--c-accent); }

/* --- FAQ の帯に淡い下地 ---------------------------------------- */
.pgFaq__item[open], .lpFaq__item[open] { background-color: var(--c-base-sub); }
.pgFaq__item[open] .pgFaq__q, .lpFaq__item[open] .lpFaq__q { color: var(--c-accent); }

/* --- LPのFV：背景に階調 ---------------------------------------- */
.lpFv { background: linear-gradient(180deg, #F5FAF8 0%, #FFFFFF 62%); }
.lpFv::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent) 0%, rgba(11, 122, 85, 0) 100%);
  z-index: 3;
}

/* --- LPのカードにも上線 ---------------------------------------- */
.lpTrouble__item { position: relative; overflow: hidden; }

/* ------------------------------------------------------------------
   SP
------------------------------------------------------------------ */
@media print, screen and (max-width: 1080px) {
  .pgTtl[data-en]::before, .lpTtl[data-en]::before { font-size: 50px; }
  .pgHero__fig { flex: 0 0 280px; }
}

@media print, screen and (max-width: 1023px) {
  .pgTtl[data-en]::before, .lpTtl[data-en]::before { font-size: 3.4rem; opacity: .085; }
  .pgHero__in { padding: 5.6rem 0 3.6rem; }
  .pgHero__ttl { font-size: 2.6rem; }
  .pgHero::after, .lpFv::after { width: 52%; height: 2px; }
  .pgHero__deco::after { display: none; }
  .pgCard svg, .pgIcon svg { width: 6rem; height: 6rem; padding: 1.7rem; }
  .pgFig, .lpApproach__fig { padding: 2rem 1.6rem; }
  .pgTable th::before { width: 2px; }
  .pgProse h3 { padding-left: 1.4rem; }
  .pgStats::before { right: -14rem; top: -16rem; width: 34rem; height: 34rem; }
  .pgStats::after { display: none; }
}
/* 幅も他セクション（1100px）に揃える。母体は2カラム前提の520px固定だった */
@media print, screen and (min-width: 1024px) {
  #infoArea div { width: 100%; max-width: 1100px; }
}

/* NEWSの行：母体は幅520pxの2カラム前提で日付11%・カテゴリ20%だった。
   幅を1100pxに広げたぶん間延びするので、下層の一覧と同じ詰め方に揃える。 */
@media print, screen and (min-width: 1024px) {
  #infoArea #news li { align-items: center; gap: 22px; }
  #infoArea #news li .date { width: auto; flex: 0 0 auto; color: var(--c-sub); }
  #infoArea #news li .cate {
    width: auto;
    flex: 0 0 auto;
    min-width: 96px;
    padding: 5px 12px;
    background-color: var(--c-accent-pale);
    color: var(--c-accent-dark) !important;
    font-size: 12px;
    font-weight: 700;
  }
  #infoArea #news li .txt { flex: 1 1 auto; }
}

/* ==================================================================
   サービスのドロップダウン（組み直し版）
   母体は22項目をひとつの ul に入れて4列で折り返していたため、
   グループ見出しと項目が混ざっていた。3カラムのグループ構成にする。

   注意：母体の `.gNav .menu_box div { position:absolute; display:none }` は
   子孫セレクタなので、中に入れ子にした div にも当たってしまう。
   そのため以下はすべて `.gNav .menu_box.sub > div` を基点にして詳細度で上回る。
================================================================== */
@media print, screen and (min-width: 1024px) {
  .gNav .menu_box.sub > div {
    padding: 0;
    background-color: #fff;
    border-top: 2px solid var(--c-accent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
  }

  .gNav .menu_box.sub > div .subNav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 42px 0 46px;
    background: none;
    box-shadow: none;
  }
  /* ドロップダウン先頭の「サービス」見出しの p は使わない（ヘッダーに被る） */
  .gNav .menu_box.sub > div > p { display: none; }

  .gNav .menu_box.sub > div .subNav__col {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    padding: 0 40px 0 0;
    background: none;
    box-shadow: none;
  }
  .gNav .menu_box.sub > div .subNav__col + .subNav__col {
    padding-left: 40px;
    border-left: 1px solid var(--c-line);
  }
  .gNav .menu_box.sub > div .subNav__col:last-child { padding-right: 0; }

  .gNav .menu_box.sub > div .subNav__cat {
    display: block;
    align-self: stretch;
    width: auto;
    margin: 0 0 18px;
    padding: 0 0 12px;
    border: none;
    border-bottom: 1px solid var(--c-line);
    font-size: 14px;
    font-weight: 700;
    color: var(--c-accent);
    letter-spacing: .08em;
    line-height: 1.4;
  }

  /* 母体の ul（flex・幅1000px・中央寄せ）を打ち消す */
  .gNav .menu_box.sub > div .subNav .sub_menu {
    display: block;
    align-self: stretch;
    width: auto;
    margin: 0;
    padding: 0;
  }
  .gNav .menu_box.sub > div .subNav .sub_menu li {
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  .gNav .menu_box.sub > div .subNav .sub_menu li::after { display: none; }
  .gNav .menu_box.sub > div .subNav .sub_menu li a {
    position: relative;
    display: block;
    padding: 9px 0 9px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    letter-spacing: .03em;
    line-height: 1.5;
    transition: color .2s, padding-left .2s;
  }
  .gNav .menu_box.sub > div .subNav .sub_menu li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 1px;
    background-color: var(--c-line);
    transition: width .2s, background-color .2s;
  }
  .gNav .menu_box.sub > div .subNav .sub_menu li a:hover {
    color: var(--c-accent);
    padding-left: 22px;
  }
  .gNav .menu_box.sub > div .subNav .sub_menu li a:hover::before {
    width: 12px;
    background-color: var(--c-accent);
  }

  .gNav .menu_box.sub > div .subNav__all {
    flex: 0 0 auto;
    align-self: stretch;
    justify-content: center;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 11px 22px;
    background-color: var(--c-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    transition: opacity .2s;
  }
  .gNav .menu_box.sub > div .subNav__all::after {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
  }
  .gNav .menu_box.sub > div .subNav__all:hover { opacity: .85; }

  /* 開いているときの親タブ */
  .gNav .menu_box:hover.sub { background-color: var(--c-accent); }
  .gNav .menu_box:hover.sub > p a { color: #fff; }
}

/* --- SP：縦積み --------------------------------------------------- */
@media print, screen and (max-width: 1023px) {
  /* SPでは見出し行の背景が透けるので、サブメニュー全体に白を敷く */
  .gNav .menu_box.sub > div { background-color: #fff; padding: 1.6rem 0 2rem; }
  .gNav .menu_box.sub > div .subNav { position: static; display: block; padding: 0 1.6rem; }
  .gNav .menu_box.sub > div .subNav__col { position: static; display: block; }
  .gNav .menu_box.sub > div .subNav__col + .subNav__col { margin-top: 2.4rem; }
  .gNav .menu_box.sub > div .subNav__cat {
    display: block;
    margin: 0 0 .8rem;
    padding: 0 0 .8rem;
    border: none;
    border-bottom: 1px solid var(--c-line);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--c-accent);
  }
  .gNav .menu_box.sub > div .subNav .sub_menu li a { padding: 1.1rem 0 1.1rem 1.4rem; font-size: 1.4rem; }
  .gNav .menu_box.sub > div .subNav__all {
    display: block;
    margin-top: 1.6rem;
    padding: 1.2rem;
    background-color: var(--c-accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
  }
}

/* ==================================================================
   アイコン（game-icons.net / CC BY 3.0）
   塗りのシルエットなので、色は color で制御する（fill=currentColor）。
================================================================== */
.pgIcon svg, .pgCard svg { color: var(--c-accent); fill: currentColor; }
.pgIcon svg path, .pgCard svg path { fill: currentColor; }

/* 見出しが無く本文（prose/table）が続くセクションでは、リード文も左に揃える。
   中央→左と切り替わると読みの流れが途切れるため。 */
.pgSec:not(:has(.pgTtl)):has(.pgProse) .pgLead,
.pgSec:not(:has(.pgTtl)):has(.pgTable) .pgLead { text-align: left; }
/* パンくず直後の最初のセクションは余白を詰める。
   パンくずの下に既に26pxの余白があるため、ここで44px取ると空きすぎる。 */
body.lower .pg > section:first-child { padding-top: 16px; }
body.lower #breadcrumb { padding-bottom: 16px; }
@media print, screen and (max-width: 1023px) {
  body.lower .pg > section:first-child { padding-top: 1.4rem; }
}

/* 見出しもリードも無いセクションでは、本文の上マージンを消す（余白の二重取り） */
.pgSec > .pgIn > .pgProse:first-child,
.pgSec > .pgIn > .pgTable:first-child,
.pgSec > .pgIn > .pgList:first-child,
.pgSec > .pgIn > .pgForm:first-child { margin-top: 0; }

/* ==================================================================
   読み物ページの行長
   1150px幅のまま流すと1行60文字を超えて読みづらいので、
   本文とそのリード文だけ幅を絞って中央に置く。
================================================================== */
@media print, screen and (min-width: 1024px) {
  .pgProse { max-width: 880px; margin-left: auto; margin-right: auto; }
  .pgSec:not(:has(.pgTtl)):has(.pgProse) .pgLead {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==================================================================
   お悩みリストの横に置くスタッフ写真（トップ）
   「テキストと同じ高さ」で並べたい。flex のままだと、画像の高さが
   親の高さを押し上げてしまい height:100% が解決できない（循環する）。
   grid にして行の高さをリスト側で決め、写真は絶対配置で流し込む。
================================================================== */
@media print, screen and (min-width: 1024px) {
  .qa .qa_flex {
    display: grid;
    grid-template-columns: 680px minmax(0, 1fr);
    align-items: stretch;
    column-gap: 20px;
  }
  /* gridアイテムは min-width:auto が既定で、中身より小さくならない。
     0 を明示し、はみ出しは切って列幅に収める。 */
  .qa .qa_flex .qa_staff { position: relative; margin: 0; min-width: 0; width: 100%; overflow: hidden; }
  .qa .qa_flex .qa_staff picture { display: block; height: 100%; }
  .qa .qa_flex .qa_staff img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom right;
  }
}
/* 横幅が足りなくなったら写真は下げる（文字を優先する） */
@media print, screen and (max-width: 1023px) {
  .qa .qa_flex .qa_staff { display: none; }
}

/* ==================================================================
   フッターの緊急連絡先はタップできるようにする
   母体テーマが `footer #f_body #f_home+p a { pointer-events: none }` で
   住所ブロック内のリンクを一律に無効化していた。そのため休業日・時間外の
   緊急連絡先がスマホからかけられない状態になっていた。
   電話リンクだけ有効に戻す（詳細度を1つ上げて勝たせる）。
================================================================== */
footer #f_body #f_home + p a[href^="tel:"] {
  pointer-events: auto;
  color: var(--c-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==================================================================
   SPのハンバーガーメニュー
   母体は「見出し p → ul」の繰り返しを前提にしていたが、こちらは
   サービスのドロップダウンを subNav（col > ul）の入れ子にしたため、
   SPでは `header .gNav .menu_box ul { display:none }` に当たって
   中のリンクが1本も出ていなかった。開いても見出しだけが並び、
   押しても何も起きない＝「メニューから各ページに飛べない」状態。
================================================================== */
@media print, screen and (max-width: 1023px) {
  /* SPでは折りたたみが既定。母体はPC用に div を absolute+none にしていたが
     SPにはその指定が無く、div が最初から見えている。ここで閉じておく。 */
  header .gNav .menu_box.sub > div { display: none; }
  /* 開閉は sp-nav.js の slideDown/Up が inline style で行う。
     ここで display を決めるとアニメーションと食い違うので指定しない。 */

  /* 開いたカテゴリの中のリストを出す。
     母体の  と、JSが ul に付ける
     .active クラスが絡んで詳細度だけでは安定して勝てなかったため important で確定させる。 */
  header .gNav .menu_box .sp_only.active + div ul,
  header .gNav .menu_box .sp_only.active + div .sub_menu { display: block !important; }

  /* カテゴリ見出し（法人のお客様／個人のお客様／ご依頼の前に）はSPでも見せる */
  header .gNav .menu_box .subNav__cat {
    display: block !important;
    margin: 0;
    padding: 1.4rem 2rem .6rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--c-accent);
    border-left: none;
  }
  header .gNav .menu_box .subNav { padding: 0; }
  header .gNav .menu_box .subNav__col + .subNav__col { margin-top: 0; }
  header .gNav .menu_box .subNav__all {
    display: block;
    width: auto;
    margin: 1.2rem 2rem 1.6rem;
    padding: 1.2rem 0;
    text-align: center;
  }

  /* 「＋」は開閉する項目にだけ出す。リンクの項目に出ていると
     「押すと開く」と誤解され、実際は遷移するので挙動がちぐはぐになる */
  header .gNav .gNav_menu.sp_only:has(a)::before { content: none !important; }
}

/* ==================================================================
   SPのフッターCTA（CONTACT US）
   390px幅に3つ横並びだと「お電話でのご相談 046-281-9922」が3行に折れ、
   「お問い合わせフォーム」も「フォ／ーム」で不自然に切れていた。
   縦積みにして1つずつゆとりを持たせる。
================================================================== */
@media print, screen and (max-width: 1023px) {
  footer #contact ul {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 86%;
    margin: 2.4rem auto 0;
  }
  footer #contact ul li {
    width: 100%;
    height: auto;
    min-height: 5.4rem;
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.5;
  }
  footer #contact ul li a {
    padding: 1.2rem 1.6rem;
    white-space: nowrap;
  }
  footer #contact ul li i { margin-right: .6rem; }
}

/* ==================================================================
   トップ「こんなお悩み」のバッジ（SP）
   幅100px固定に対して「ゴキブリ駆除」「害獣の駆除」は110px必要で、
   文字が矢印部分にはみ出していた。内容に合わせて伸ばす。
================================================================== */
@media print, screen and (max-width: 1023px) {
  .qa li a {
    /* flexアイテムなので、指定しないと親の都合で縮められて文字が切れる */
    flex: 0 0 auto;
    width: auto;
    padding: 0 1.2rem;
    white-space: nowrap;
  }
  /* バッジが伸びる分、テキスト側は縮んでよい */
  .qa li p { flex: 1 1 auto; min-width: 0; }
}

/* ==================================================================
   PEST CONTROL の下に余白がなかった
   .top_products は padding-bottom が 0 で、リストの直下から
   次の黒帯（実績）が始まっていた。白地側に余白を入れて区切る。
================================================================== */
.top_products { padding-bottom: 72px; }
@media print, screen and (max-width: 1023px) {
  .top_products { padding-bottom: 4rem; }
}

/* ==================================================================
   見出しの改行位置
   SPで「…確認したい3つの場／所」「…見えるようにす／る。」のように
   最終行に1〜2文字だけ取り残されるケースが14か所あった。
   text-wrap: balance は行の長さを揃えるので、この取り残しが消える。
   （word-break: auto-phrase はChromium専用でSafariが崩れるため使わない。
     balance / pretty は非対応ブラウザでは単に無視されるだけで安全。）
================================================================== */
h1, h2, h3, h4,
.pgHero__ttl, .lpFv__ttl,
.pgTtl b, .lpTtl b,
.pestCard__ttl,
.pgSteps__item dt,
.lpReason__item h3,
/* お困りごとの1行コピーも短いので balance のほうが収まりがよい */
.lpTrouble__item p {
  text-wrap: balance;
}

/* 本文・リードは行数が多いので、最終行の孤立だけ避ける */
.pgLead, .lpFv__lead, .lpLead,
.pgProse p,
.pgCard__txt, .pestCard__txt {
  text-wrap: pretty;
}

/* ==================================================================
   769〜1219px（タブレット横・小型ノート）で右側が切れていた
   母体は body と header に min-width:1200px を敷いており、
   画面がそれより狭いと横スクロールが出て、中身が左に寄って見える。
   ヘッダーの「お問い合わせ」ボタン、CONTACT USの3つ目のボタン、
   フッターナビの右列が画面外に出ていた。
   固定幅をやめ、内側のコンテナを画面幅に合わせる。
================================================================== */
@media print, screen and (min-width: 1024px) {
  body, header { min-width: 0; }
}

@media print, screen and (min-width: 1024px) and (max-width: 1219px) {
  /* 1100px前後で固定されているコンテナを画面に収める */
  .pgIn, .pgHero__in, .pgBand__in, .lpIn, .lpFv__in,
  #f_body, #breadcrumb, .wrap, footer #contact > div {
    width: auto;
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* 母体は content_body を負のマージンで左にずらしている。
     1200px を切ると計算が破綻するので、素直に全幅にする。 */
  #content_body {
    width: 100%;
    margin-left: 0;
    padding-right: 0;
  }

  /* ヘッダー：右端の固定ボタン2つ分を空けていた余白を実測に合わせる */
  /* 右端のボタン2つ（電話・お問い合わせ）は絶対配置。幅を詰めたら
     right の位置も合わせないと、ナビと重なって文字が隠れる。 */
  header #nav-catalog-btn { width: 175px; right: 135px; font-size: 12px; }
  header #nav-contact-btn { width: 135px; right: 0; font-size: 12px; }
  header nav { margin-right: 320px; }
  header .gNav .gNav_menu { font-size: 13px; }
  header .gNav .gNav_menu a { padding: 0 9px; }
  header h1, header .home { width: 200px; padding-left: 20px; }

  /* ドロップダウンの中身も画面幅に合わせる */
  header .gNav .menu_box div p,
  header .gNav .menu_box ul { width: auto; max-width: calc(100% - 48px); }

  /* フッターのCONTACT USは横並びのまま幅を詰める */
  footer #contact ul { width: auto; max-width: 640px; }
}

/* ==================================================================
   SPレイアウトの上限を1023pxに広げたので、700〜1023px では
   1カラムのまま横幅だけが伸びて間延びする。最大幅を決めて中央に置く。
================================================================== */
@media print, screen and (min-width: 700px) and (max-width: 1023px) {
  footer #contact ul { max-width: 520px; }
  footer #f_body { max-width: 760px; margin-left: auto; margin-right: auto; }
  .pgIn, .lpIn, .pgHero__in, .lpFv__in, .pgBand__in { max-width: 720px; margin-left: auto; margin-right: auto; }
  .qa .qa_body { max-width: 720px; margin: 0 auto; }
  .top_products ul, .solution > div, .top_support ul { max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* ==================================================================
   トップに足したセクション
   ・SERVICE  … LP10本の入口（法人5／個人5）
   ・COLUMN   … 最新3件。中身はWordPressが差し込む
================================================================== */
.top_service { padding: 90px 0; background-color: var(--c-base-sub); }
.top_service__cat {
  margin-top: 56px;
  padding-left: 14px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-ink);
  border-left: 4px solid var(--c-accent);
}
.top_service__cat + .pgCards { margin-top: 26px; }
.top_service .pgCard { background-color: #fff; }

.top_column { padding: 90px 0; }
/* 見出しが中央なので、リード文も中央に揃える */
.top_column .pgLead, .top_service .pgLead { text-align: center; }

/* 「一覧を見る」リンク */
.pgMore { margin-top: 48px; text-align: center; }
.pgMore a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  border: 1px solid var(--c-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-accent);
  transition: background-color .25s, color .25s;
}
.pgMore a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.pgMore a:hover { background-color: var(--c-accent); color: #fff; }

/* コラム記事のアイキャッチ */
.pgArticle__eyecatch { margin: 32px 0 8px; }
.pgArticle__eyecatch img { display: block; width: 100%; height: auto; }

@media print, screen and (max-width: 1023px) {
  .top_service { padding: 5.6rem 0; }
  .top_column { padding: 5.6rem 0; }
  .top_service__cat { margin-top: 4rem; font-size: 1.7rem; }
  .pgMore { margin-top: 3.6rem; }
  .pgMore a { padding: 1.4rem 3.2rem; font-size: 1.4rem; }
  .pgArticle__eyecatch { margin: 2.4rem 0 .8rem; }
}

/* ==================================================================
   フッターCTA（PC）
   母体は li を 32% 固定にしていて、「お問い合わせフォーム」が
   「お問い合わせフォ／ーム」と2行に折れていた。
   幅を内容に合わせて、折り返さないようにする。
================================================================== */
@media print, screen and (min-width: 1024px) {
  footer #contact ul {
    width: auto;
    max-width: none;
    justify-content: center;
    gap: 14px;
    margin-left: 24px;
  }
  footer #contact ul li {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }
  footer #contact ul li a {
    padding: 0 28px;
    white-space: nowrap;
  }
  /* 電話は2行（見出し＋番号）なので、その分だけ左右を詰める */
  footer #contact ul li.catalog_btn a { padding: 0 24px; }
}

/* 1024〜1279px はテキストとボタンを横に並べると文章が折れるので、上下に積む */
@media print, screen and (min-width: 1024px) and (max-width: 1279px) {
  footer #contact > div {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  footer #contact > div p { text-align: center; }
  footer #contact ul { margin-left: 0; }
}

/* ==================================================================
   LP最終CTAの文言が左に寄っていた
   `.lp p, .lp dd, .lp dt, .lp td, .lp th, .lp li { text-align: left }`
   （詳細度 0,1,1）が、lp.css の `.lpCta__ttl { text-align: center }`
   （0,1,0）に勝っていたため。ボタンだけ中央で文言が左、という状態だった。
   帯（lpBand / pgBand）は「左に文言・右にボタン」の並びなので触らない。
================================================================== */
.lp .lpCta__ttl,
.lp .lpCta__txt,
.lp .lpCta__hours { text-align: center; }

/* 注記の両端揃えは日本語だと字間が開いて読みにくい */
.lp .lpFv__note { text-align: left; }


/* ==================================================================
   使用機材の写真グリッド（2026-08-27 先方支給の実機材写真）
   下層ページ（.pg）とLP（.lp）の両方で使うため、共通クラスで持つ。
   `.lp p { text-align:left }`（0,1,1）に負けないよう、キャプションの
   中央寄せは使わずすべて左揃えで組んでいる。
================================================================== */
.photoGrid { display: grid; gap: 24px; margin-top: 44px; }
.photoGrid--1 { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
.photoGrid--2 {
  grid-template-columns: repeat(2, 1fr);
  /* 2枚のときは1枚あたりが大きくなりすぎるので、幅を抑えて中央に置く */
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.photoGrid--3 { grid-template-columns: repeat(3, 1fr); }
.photoGrid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.photoCard {
  margin: 0;
  background-color: #fff;
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.is-gray .photoCard, .lpEquip.is-gray .photoCard { background-color: #fff; }

.photoCard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--c-base-sub);
}
.photoCard__cap { display: block; padding: 22px 24px 26px; }
.photoCard__cap b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.6;
  letter-spacing: .04em;
  text-align: left;
}
.photoCard__cap span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: .03em;
  color: var(--c-text);
  text-align: left;
}

/* LPの機材セクション。見出し・リードは他セクションと同じ体裁 */
.lpEquip { padding: 96px 0; }
.lpEquip.is-gray { background-color: var(--c-base-sub); }

@media print, screen and (max-width: 1023px) {
  .photoGrid { gap: 2rem; margin-top: 3rem; }
  /* SPは1列。3枚を横に並べると写真が小さくなりすぎて機材が判別できない */
  .photoGrid--2, .photoGrid--3 { grid-template-columns: 1fr; }
  /* 4枚は1列にすると縦に長くなりすぎるのでSPでも2列を保つ */
  .photoGrid--4 { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .photoGrid--4 .photoCard__cap { padding: 1.4rem 1.4rem 1.8rem; }
  .photoGrid--4 .photoCard__cap b { font-size: 1.4rem; }
  .photoGrid--4 .photoCard__cap span { margin-top: .8rem; font-size: 1.2rem; line-height: 1.8; }
  .photoCard__cap { padding: 1.8rem 2rem 2.2rem; }
  .photoCard__cap b { font-size: 1.6rem; }
  .photoCard__cap span { margin-top: 1rem; font-size: 1.4rem; }
  .lpEquip { padding: 6rem 0; }
}

/* トップの「使用する機材」。前後（PEST CONTROL / サービス）に合わせて白地 */
.top_equipment { padding: 90px 0 0; background-color: #fff; }
.top_equipment .pgLead { text-align: center; }
.top_equipment .link { margin: 40px auto 0; }
/* 4枚並びは1枚が小さいので、キャプションを一段落とす */
.photoGrid--4 .photoCard__cap { padding: 18px 18px 22px; }
.photoGrid--4 .photoCard__cap b { font-size: 15px; }
.photoGrid--4 .photoCard__cap span { margin-top: 9px; font-size: 13px; line-height: 1.85; }
/* 出所の注記（メーカーのパッケージ写真である旨）は本文より小さく、色を落とす */
.photoCard__cap small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-sub);
}

@media print, screen and (max-width: 1023px) {
  .top_equipment { padding: 6rem 0 0; }
  .photoCard__cap small { margin-top: .6rem; font-size: 1.1rem; }
}

/* ==================================================================
   お問い合わせフォーム（送信の配線に伴う追加）
================================================================== */
/* ハニーポット。人には見せず、支援技術にも読ませない。
   display:none だと埋めないボットがいるため、画面外へ逃がす。 */
.pgForm__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 固定ヘッダーの下に隠れないよう、#form の着地点をずらす */
.pgForm__anchor { display: block; height: 0; scroll-margin-top: 120px; }

/* 送信できなかったときの通知 */
.pgForm__alert {
  margin: 44px auto 0;
  padding: 20px 24px;
  background-color: #FDF3F3;
  border: 1px solid #E0B4B4;
  border-left-width: 4px;
}
.pgForm__alert b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #A3423C;
  line-height: 1.6;
  letter-spacing: .04em;
}
.pgForm__alert span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--c-text);
}

@media print, screen and (max-width: 1023px) {
  .pgForm__anchor { scroll-margin-top: 7rem; }
  .pgForm__alert { margin-top: 3rem; padding: 1.6rem 1.8rem; }
  .pgForm__alert b { font-size: 1.5rem; }
  .pgForm__alert span { margin-top: .8rem; font-size: 1.3rem; }
}
