@charset "UTF-8";
/* =========================================================
   下層ページ（対策・駆除方法／お役立ちコラム／よくある質問）
   search.css（検索結果ページの部品）の後に読み込み。ここには差分だけを書く。
   Breakpoints: 1024px / 900px / 767px（style.css と同じ）
========================================================= */

.gn-lower-page .gn-footer { margin-top: 0; }

/* 見出しの説明文は記事一覧の入口として少し広めに */
.gn-lp .gn-page-hero__text { max-width: 640px; }

/* ---------- サイドバー：ほかのページ ---------- */
.gn-lp-nav {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--c-line);
}
.gn-lp-nav__title { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--c-navy); }
.gn-lp-nav ul { margin: 0; padding: 0; list-style: none; }
.gn-lp-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 40px; padding: 4px 4px 4px 2px;
  border-bottom: 1px dashed var(--c-line);
  font-size: 13px; color: var(--c-navy);
}
.gn-lp-nav li:last-child a { border-bottom: 0; }
.gn-lp-nav a::after {
  content: ""; flex-shrink: 0; width: 6px; height: 6px;
  border-top: 2px solid var(--c-green); border-right: 2px solid var(--c-green);
  transform: rotate(45deg);
}
.gn-lp-nav a:hover { color: var(--c-green); }

/* 0件のときのボタンを横並び */
.gn-lp-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.gn-lp-empty__actions .gn-btn { margin-top: 0; }
.gn-lp .gn-sr__empty-hints { margin-top: 4px; }

/* 種類アイコンの下の見出しとの間 */
.gn-lp .gn-sr__types + .gn-sr__head { margin-top: 30px; }

/* =========================================================
   よくある質問
========================================================= */
/* サイドバー（質問のグループ） */
.gn-faq-side {
  position: sticky; top: 90px;
  padding: 12px 14px 16px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.gn-faq-nav__title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; padding: 10px 12px;
  border-radius: 8px;
  background: #eef5f9;
  font-size: 14px; font-weight: 700; color: var(--c-navy);
}
.gn-faq-nav__title svg { width: 18px; height: 18px; color: var(--c-green); }
.gn-faq-nav ul { margin: 0; padding: 0; list-style: none; }
.gn-faq-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px; font-weight: 700; color: var(--c-navy);
  transition: background .15s, color .15s;
}
.gn-faq-nav a span {
  flex-shrink: 0;
  min-width: 24px; padding: 0 6px;
  border-radius: 999px;
  background: #e8f4ef;
  font-size: 12px; font-weight: 700; line-height: 1.7; text-align: center; color: var(--c-green-dark);
}
.gn-faq-nav a:hover, .gn-faq-nav a.is-current { background: #f0f7f4; color: var(--c-green); }
.gn-faq-side .gn-lp-nav { margin-top: 12px; }

/* 件数・すべて開く */
.gn-faq-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.gn-faq-tools__count { font-size: 14px; font-weight: 700; color: var(--c-navy); }
.gn-faq-tools__toggle {
  min-height: 36px; padding: 0 14px;
  border: 1px solid #cfe0e6; border-radius: 999px;
  background: #fff;
  font-size: 12px; font-weight: 700; color: var(--c-green);
}
.gn-faq-tools__toggle:hover { border-color: var(--c-green); }

/* グループ */
.gn-faq-group { margin-bottom: 30px; scroll-margin-top: 90px; }
.gn-faq-group[hidden] { display: none; }
.gn-faq-list { display: grid; gap: 10px; }

/* 質問と答え */
.gn-faq-item {
  background: #fff;
  border: 1px solid #e3edf1;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(28, 58, 84, .05);
  transition: border-color .2s, box-shadow .2s;
}
.gn-faq-item[hidden] { display: none; }
.gn-faq-item[open] { border-color: #c7e0d4; box-shadow: 0 4px 16px rgba(28, 58, 84, .08); }
.gn-faq-item__q {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 52px 12px 16px;
  font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--c-navy);
  list-style: none; cursor: pointer;
}
.gn-faq-item__q::-webkit-details-marker { display: none; }
.gn-faq-item__q::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--c-green); border-bottom: 2px solid var(--c-green);
  transform: rotate(45deg);
  transition: transform .2s, margin-top .2s;
}
.gn-faq-item[open] > .gn-faq-item__q::after { transform: rotate(-135deg); margin-top: -2px; }
.gn-faq-item__q:hover .gn-faq-item__qtext { color: var(--c-green); }
.gn-faq-item__q:focus-visible { outline-offset: -3px; border-radius: 10px; }
.gn-faq-item__mark {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #136b4a, #1f8a63);
  color: #fff; font-size: 15px; font-weight: 900; font-family: Arial, sans-serif;
}
.gn-faq-item__mark--a { background: #fff; border: 2px solid #e8833a; color: #e8833a; }
.gn-faq-item__a {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0 16px; padding: 14px 4px 18px;
  border-top: 1px dashed #dbe6ec;
}
.gn-faq-item__a p { margin: 3px 0 0; font-size: 14px; line-height: 1.95; color: var(--c-text); }
.gn-faq-item__a strong { color: var(--c-navy); background: linear-gradient(transparent 62%, #fff2a8 62%); }
.gn-faq-item__a a { color: var(--c-green); text-decoration: underline; font-weight: 700; }

.gn-faq-empty { margin-bottom: 24px; }
.gn-faq-empty .gn-btn { margin-top: 14px; }

/* 固定ページ本文 */
.gn-faq-extra__body { font-size: 14px; line-height: 1.95; color: var(--c-text); }
.gn-faq-extra__body p { margin: 0 0 1em; }
.gn-faq-extra__body a { color: var(--c-green); text-decoration: underline; }
.gn-faq-extra__body ul, .gn-faq-extra__body ol { margin: 0 0 1em; padding-left: 1.4em; }
.gn-faq-extra__body ul li { list-style: disc; }
.gn-faq-extra__body ol li { list-style: decimal; }

.gn-lp--faq .gn-sr-consult { margin-top: 8px; }

/* =========================================================
   Tablet (〜1024px)
========================================================= */
@media (max-width: 1024px) {
  .gn-faq-nav a { font-size: 12px; }
}

/* =========================================================
   SP (〜767px)
========================================================= */
@media (max-width: 767px) {
  /* 記事一覧：検索窓だけで見出しが長くならないように */
  .gn-lp .gn-page-hero__text { max-width: none; }

  /* ほかのページ：絞り込みシートの外（一覧の下）には出さない */
  .gn-filter .gn-lp-nav { display: none; }

  /* よくある質問：グループは横スクロールのタブ */
  .gn-faq-side {
    align-self: stretch; min-width: 0; /* 横スクロールのタブが画面幅を押し広げないように */
    position: sticky; top: 64px; z-index: 5;
    margin: 0 -16px 14px; padding: 8px 0;
    border: 0; border-radius: 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 8px rgba(28, 58, 84, .08);
  }
  .admin-bar .gn-faq-side { top: 110px; }
  .gn-faq-nav__title, .gn-faq-side .gn-lp-nav { display: none; }
  .gn-faq-nav ul {
    display: flex; gap: 8px;
    padding: 0 16px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gn-faq-nav ul::-webkit-scrollbar { display: none; }
  .gn-faq-nav li { flex-shrink: 0; }
  .gn-faq-nav a {
    min-height: 44px; padding: 4px 8px 4px 14px;
    border: 1px solid #cfe0e6; border-radius: 999px;
    background: #fff;
    white-space: nowrap;
  }
  .gn-faq-nav a.is-current { border-color: var(--c-green); }
  .gn-faq-group { scroll-margin-top: 130px; }

  .gn-faq-item__q { min-height: 60px; padding: 12px 44px 12px 12px; font-size: 14px; gap: 10px; }
  .gn-faq-item__q::after { right: 16px; }
  .gn-faq-item__mark { width: 28px; height: 28px; font-size: 14px; }
  .gn-faq-item__a { margin: 0 12px; padding: 12px 0 16px; gap: 10px; }
  .gn-faq-item__a p { font-size: 14px; line-height: 1.9; }
}

/* =========================================================
   第6段階（2026-11-04）：コラムの定義・テーマ絞り込み・まず読む3本・説明文・候補・計測
========================================================= */
/* 薄い文字（12px）のコントラスト：#6b7a88 は白地で 4.41:1 と AA（4.5:1）に届かないので、検索結果の型を使うページでは 1段濃く（5.17:1） */
.gn-sr, .gn-lp { --c-muted: #5f6f7e; }

/* テーマ・ほかのページのナビに本数 */
.gn-lp-nav__n { font-size: 12px; font-weight: 500; color: var(--c-muted); margin-left: auto; }
.gn-lp-nav a[aria-current="page"] { color: var(--c-green); font-weight: 700; }
.gn-lp-themes { margin-top: 0; padding-top: 0; border-top: 0; }
.gn-lp-themes + .gn-lp-nav { margin-top: 16px; }
/* 絞り込みの項目に本数 */
.gn-check .gn-check__n { display: inline; margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--c-muted); }
.gn-check .gn-check__n::before { content: none; display: none; } /* 入れ子の span に擬似チェックボックスが出ないように */

/* 「まず読む3本」の見出し（検索結果の型の gn-sr__picks を流用。見出しだけここで） */
.gn-sr__picks-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--c-navy); }
.gn-sr__picks-title::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--c-green); }
.gn-sr__list--picks { margin: 0; }

/* 「害獣の種類から探す」を一覧の下へ移したときの余白 */
.gn-lp-types-bottom { margin-top: 8px; }
.gn-lp-types-bottom .gn-sr__types { margin-bottom: 28px; }

/* タップ対象 44px：検索窓・並び替え・公式サイトボタン・「ほかのページ」・「すべて開く」 */
.gn-lp .gn-search__input { min-height: 44px; }
.gn-lp .gn-sort select { min-height: 44px; }
.gn-lp .gn-sr-consult__site { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.gn-lp-nav a { min-height: 44px; }
.gn-faq-tools__toggle { min-height: 44px; }

/* よくある質問：答えの下の「詳しくは」 */
.gn-faq-item__body { flex: 1; min-width: 0; }
.gn-faq-item__more { margin-top: 10px !important; font-size: 13px !important; color: var(--c-muted); }
.gn-faq-item__more a { font-weight: 700; }

@media (max-width: 767px) {
  .gn-lp-types-bottom .gn-sr__types { margin-bottom: 20px; }
  .gn-sr__picks-title { font-size: 15px; }
}

/* =========================================================
   2026-11-17：お役立ちコラムを「困りごと別」に並べる（大竹承認）
   見出しの階層：まとまり（h2）＝緑の帯＋本数／小見出し（h3）＝丸印＋点線／記事カード（h3・h4）
========================================================= */
/* 困りごとから選ぶ（ページ内の移動ボタン） */
.gn-col-jump { margin: 0 0 28px; padding: 16px 16px 18px; background: #f1f7f4; border-radius: 12px; }
.gn-col-jump__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: 700; color: var(--c-navy); }
.gn-col-jump__title::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--c-green); }
.gn-col-jump__note { margin: 4px 0 12px; font-size: 14px; color: var(--c-muted); }
.gn-col-jump__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gn-col-jump__list a {
  display: flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 10px 14px;
  background: #fff; border: 1.5px solid #bcd9cb; border-radius: 10px;
  font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--c-navy); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.gn-col-jump__list a:hover { border-color: var(--c-green); color: var(--c-green); }
.gn-col-jump__n { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--c-muted); white-space: nowrap; }
.gn-col-jump__list a::after {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; margin: -4px 2px 0 0;
  border-right: 2.5px solid var(--c-green); border-bottom: 2.5px solid var(--c-green);
  transform: rotate(45deg);
}

/* まとまり（h2）：緑の帯＋本数 */
.gn-col-group { margin: 0 0 44px; scroll-margin-top: 96px; }
.gn-col-group__title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 10px; padding: 12px 16px 12px 18px;
  background: #eaf5ef; border-left: 6px solid var(--c-green); border-radius: 8px;
  font-size: 21px; font-weight: 700; line-height: 1.45; color: var(--c-navy);
}
.gn-col-group__label { flex: 1; min-width: 0; }
.gn-col-group__n {
  flex-shrink: 0; padding: 2px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #bcd9cb;
  font-size: 14px; font-weight: 700; color: var(--c-green-dark);
}
.gn-col-group__lead { margin: 0 0 16px; font-size: 15px; line-height: 1.85; color: var(--c-text); }

/* 小見出し（h3）：丸印＋点線 */
.gn-col-sub {
  display: flex; align-items: center; gap: 10px;
  margin: 30px 0 14px; padding: 0 0 8px;
  border-bottom: 2px dashed #cfe3d8;
  font-size: 18px; font-weight: 700; line-height: 1.45; color: var(--c-navy);
  scroll-margin-top: 96px;
}
.gn-col-sub::before { content: ""; flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 4px #dcefe5; }
.gn-col-sub__n { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--c-muted); }

/* ほかの業者の口コミ：中立の灰（自社の強みではないので緑にしない） */
.gn-col-group--others .gn-col-group__title { background: #f1f4f6; border-left-color: #8a9aa8; }
.gn-col-group--others .gn-col-group__n { border-color: #d3dbe1; color: var(--c-muted); }
.gn-col-group__note {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 8px;
  background: #f7f9fa; border: 1px solid #e3e9ed;
  font-size: 14px; line-height: 1.85; color: var(--c-text);
}
.gn-col-group__note a { color: #0a58ca; font-weight: 700; text-decoration: underline; }

/* 相談の案内（最初のまとまりの後に1か所） */
.gn-col-cta { margin: -12px 0 44px; }

/* 記事カード：まとまりの中ではテーマのラベルを出さず、最初に読む1本だけ「まず読む」（黄） */
.gn-result-card .gn-tag.gn-tag--first { background: #fff2a8; color: var(--c-navy); }
.gn-sr__list--hub { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .gn-sr__list--hub .gn-result-card__link { flex-direction: row; }
  .gn-sr__list--hub .gn-result-card__img { flex: 0 0 42%; }
  .gn-sr__list--hub .gn-result-card__body { padding: 18px 20px 14px; }
  .gn-sr__list--hub .gn-result-card .gn-tag { margin-top: 0; }
  .gn-sr__list--hub .gn-result-card__title { font-size: 18px; }
  .gn-sr__list--hub .gn-result-card__text { font-size: 13px; -webkit-line-clamp: 3; }
}
@media (max-width: 1024px) {
  .gn-col-jump__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .gn-col-jump { margin: 0 -4px 24px; padding: 14px 12px; }
  .gn-col-jump__note { margin-bottom: 10px; font-size: 13px; }
  .gn-col-jump__list { gap: 8px; }
  .gn-col-jump__list a { min-height: 60px; padding: 8px 10px; font-size: 15px; }
  .gn-col-jump__n { display: none; }
  .gn-col-group { margin-bottom: 36px; scroll-margin-top: 76px; }
  .gn-col-group__title { gap: 8px; padding: 10px 12px 10px 14px; font-size: 19px; }
  .gn-col-group__n { padding: 1px 10px; font-size: 13px; }
  .gn-col-sub { margin-top: 26px; font-size: 17px; scroll-margin-top: 76px; }
  .gn-col-cta { margin-bottom: 36px; }
}
