@charset "UTF-8";
/* =========================================================
   害獣トラブル解決ナビ（Cocoon Child / フロントページ専用）
   front-page.php でのみ読み込み。クラスは Cocoon との衝突回避のため gn- 接頭辞
   Breakpoints: 1024px（タブレット） / 900px（ナビ切替） / 767px（SP）
========================================================= */

/* ---------- Variables ---------- */
:root {
  --c-green: #1f8a63;
  --c-green-dark: #17694c;
  --c-green-deep: #1d6b52;
  --c-navy: #1c3a54;
  --c-text: #2b3d4f;
  --c-muted: #6b7a88;
  --c-line: #e3ebef;
  --c-bg-tint: #f3f8fa;
  --c-orange: #f28c28;
  --c-footer: #1b3a3f;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(28, 58, 84, .06);
  --container: 1200px;
  --gutter: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.gn-front {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, "Noto Sans JP", sans-serif; /* 2026-11-17 Web フォントをやめ、端末のフォントで表示 */
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background: #fff;
  letter-spacing: .04em;
}
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
a, a:hover { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
em { font-style: normal; }
body.gn-is-locked { overflow: hidden; }

.gn-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.gn-container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   Header
========================================================= */
.gn-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--c-line);
}
.gn-header__inner {
  max-width: calc(var(--container) + var(--gutter) * 2);
  height: 72px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.gn-logo { display: flex; align-items: center; gap: 10px; }
.gn-logo__icon { width: 44px; height: 40px; flex-shrink: 0; }
.gn-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.gn-logo__name { font-size: 24px; font-weight: 900; color: var(--c-navy); letter-spacing: .06em; }
.gn-logo__name em { color: var(--c-green); }
.gn-logo__tagline { font-size: 11px; font-weight: 500; color: var(--c-navy); margin-top: 3px; }

.gn-gnav { display: flex; align-items: center; gap: 40px; }
.gn-gnav__list { display: flex; gap: 28px; }
.gn-gnav__list a {
  position: relative; display: block;
  font-size: 14px; font-weight: 500; color: var(--c-navy);
  padding: 6px 0;
  transition: color .2s;
}
.gn-gnav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--c-green);
  transform: scaleX(0); transition: transform .25s;
}
.gn-gnav__list a:hover { color: var(--c-green); }
.gn-gnav__list a:hover::after,
.gn-gnav__list a.gn-is-current::after,
.gn-gnav__list .current-menu-item > a::after { transform: scaleX(1); }
.gn-search-toggle { display: block; width: 26px; height: 26px; color: var(--c-navy); }
.gn-search-toggle svg { width: 100%; height: 100%; }

.gn-menu-btn { display: none; }

/* =========================================================
   Hero
========================================================= */
.gn-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #eaf4fa 0%, #f2f8fb 45%, #e3eff5 100%);
}
.gn-hero__img {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 46%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}
.gn-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.gn-hero__inner {
  position: relative;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 50px var(--gutter) 40px;
  min-height: 380px;
}
.gn-hero__lead {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--c-navy);
}
.gn-hero__lead::before, .gn-hero__lead::after {
  content: ""; width: 1px; height: 18px; background: var(--c-navy);
}
.gn-hero__lead::before { transform: rotate(-35deg); }
.gn-hero__lead::after { transform: rotate(35deg); }
.gn-hero__title {
  margin-top: 6px;
  font-size: 52px; font-weight: 900; line-height: 1.22;
  color: var(--c-navy); letter-spacing: .06em;
}
.gn-hero__title span { color: var(--c-green); }
.gn-hero__catch {
  position: absolute; top: 90px; left: calc(var(--gutter) + 470px);
  font-size: 20px; font-weight: 700; line-height: 1.6;
  color: var(--c-green); text-align: center;
  transform: rotate(-12deg);
}
.gn-hero__catch::before, .gn-hero__catch::after {
  content: ""; position: absolute; top: 20%;
  width: 1px; height: 64px; background: var(--c-green);
}
.gn-hero__catch::before { left: -18px; transform: rotate(-30deg); }
.gn-hero__catch::after { right: -24px; transform: rotate(30deg); }
.gn-hero__text {
  margin-top: 14px;
  font-size: 15px; font-weight: 500; line-height: 1.85;
  color: var(--c-navy);
}
.gn-search {
  position: relative;
  display: flex; align-items: center;
  max-width: 600px;
  margin-top: 22px;
  padding: 5px 5px 5px 54px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(28, 58, 84, .1);
}
.gn-search__icon {
  position: absolute; left: 20px; top: 50%;
  width: 22px; height: 22px; margin-top: -11px;
  color: var(--c-navy);
}
.gn-search__icon svg { display: block; width: 100%; height: 100%; }
.gn-search .gn-search__input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 14px; padding: 8px 0; min-height: 44px; /* タップ目標 44px（2026-11-04） */
}
.gn-search .gn-search__input::placeholder { color: #8a98a5; }
.gn-search__btn {
  flex-shrink: 0;
  min-width: 92px;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--c-green-dark);
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .1em;
  transition: background .2s;
}
.gn-search__btn:hover { background: var(--c-green); }

/* =========================================================
   Common
========================================================= */
.gn-section { padding: 18px 0; }
.gn-section--types { padding-top: 22px; }

.gn-panel {
  border-radius: 14px;
  background: linear-gradient(135deg, #f1f8f9 0%, #edf6f2 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 138, 99, .06);
}

/* セクション見出し */
.gn-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.gn-head__icon { flex-shrink: 0; width: 34px; height: 34px; color: var(--c-green); }
.gn-head__icon svg { display: block; width: 100%; height: 100%; }
.gn-head__icon--book { width: 40px; height: 32px; }
.gn-head__body { flex: 1; min-width: 0; }
.gn-head__title { font-size: 21px; font-weight: 700; line-height: 1.4; color: var(--c-navy); }
.gn-head__text { font-size: 12px; color: var(--c-muted); line-height: 1.6; }

.gn-more-link {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  font-size: 13px; font-weight: 700; color: var(--c-green);
}
.gn-more-link::after { content: "→"; transition: transform .2s; }
.gn-more-link:hover::after { transform: translateX(4px); }
.gn-more-link--pill {
  padding: 6px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gn-tag {
  display: inline-block;
  padding: 0 10px;
  border-radius: 4px;
  background: #13806a;
  color: #fff; font-size: 10px; font-weight: 700; line-height: 1.8;
  letter-spacing: .06em;
}
.gn-pill {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f8a63, #45b04f);
  color: #fff; font-size: 12px; font-weight: 700;
}

/* 丸い矢印 */
.gn-circle-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f8a63, #127a74);
  transition: transform .2s;
}
.gn-circle-arrow::before {
  content: ""; width: 7px; height: 7px; margin-left: -3px;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
  transform: rotate(45deg);
}

/* ボタン */
.gn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 11px 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #136b4a 0%, #1f8a63 60%, #2a9a86 100%);
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(19, 107, 74, .2);
  transition: filter .2s, box-shadow .2s;
}
.gn-btn::after { content: "→"; transition: transform .2s; }
.gn-btn:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 6px 16px rgba(19, 107, 74, .28); }
.gn-btn:hover::after { transform: translateX(4px); }
.gn-btn--sm { padding: 8px 26px; font-size: 13px; }
.gn-btn--block { display: flex; width: 100%; }
.gn-btn--lg { padding: 16px 44px; font-size: 17px; }
.gn-btn__icon { display: block; width: 30px; height: 24px; }
.gn-btn__icon svg { display: block; width: 100%; height: 100%; color: #fff; }
.gn-btn__icon svg path:last-child { stroke: #1f8a63; }

/* =========================================================
   害獣の種類から探す
========================================================= */
.gn-section--types .gn-panel { padding: 18px 16px 20px; }
.gn-section--types .gn-head { padding: 0 8px; }
.gn-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.gn-type-card {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  padding: 6px 6px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(28, 58, 84, .08);
  transition: transform .2s, box-shadow .2s;
}
.gn-type-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(28, 58, 84, .14); }
.gn-type-card__img { display: block; aspect-ratio: 161 / 90; overflow: hidden; border-radius: 7px; }
.gn-type-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gn-type-card:hover .gn-type-card__img img { transform: scale(1.05); }
.gn-type-card__name { margin: 12px 8px 0; font-size: 17px; font-weight: 700; color: var(--c-navy); }
.gn-type-card__text { margin: 4px 40px 0 8px; font-size: 11px; line-height: 1.7; color: var(--c-muted); }
.gn-type-card .gn-circle-arrow { position: absolute; right: 10px; bottom: 16px; }
.gn-type-card:hover .gn-circle-arrow { transform: translateX(3px); }

/* =========================================================
   このメディアについて ＋ お役立ちコラム
========================================================= */
.gn-media-row { display: grid; grid-template-columns: 1fr 420px; gap: 18px; align-items: stretch; }

.gn-about {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 20px 20px 26px;
}
.gn-about__main, .gn-features { width: 100%; }
.gn-about__main { display: grid; grid-template-columns: 36% 1fr; gap: 24px; align-items: center; }
.gn-about__img { aspect-ratio: 200 / 152; overflow: hidden; border-radius: 8px; }
.gn-about__img img { width: 100%; height: 100%; object-fit: cover; }
.gn-about__title { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.55; color: var(--c-navy); }
.gn-about__text { margin-top: 12px; font-size: 12px; line-height: 2; color: var(--c-muted); }

.gn-features {
  display: grid;
  gap: 12px; margin: 24px 0 22px;
}
@media screen and (max-width:767px) {
  .gn-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gn-features li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 19px;
  font-weight: 700; line-height: 1.6; color: var(--c-navy);
}
@media screen and (max-width:767px) {
  .gn-features li {
    font-size: 13px;
  }
}

.gn-features svg { width: 36px; height: 38px; flex-shrink: 0; }

.gn-side {
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f8f5 0%, #f5faf9 100%);
  box-shadow: inset 0 0 0 1px #cfe6dd;
}
.gn-head--side { align-items: flex-start; padding: 0 4px; margin-bottom: 12px; }
.gn-head--side .gn-head__title { font-size: 18px; }
.gn-head--side .gn-head__text { font-size: 11px; }
.gn-side__list { display: grid; gap: 8px; margin-bottom: 12px; }
.gn-side-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 6px 30px 6px 6px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(28, 58, 84, .06);
  transition: box-shadow .2s;
}
.gn-side-card::after {
  content: "→"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--c-navy);
}
.gn-side-card:hover { box-shadow: 0 4px 14px rgba(28, 58, 84, .12); }
.gn-side-card__img { flex: 0 0 84px; aspect-ratio: 84 / 52; overflow: hidden; border-radius: 5px; }
.gn-side-card__img img { width: 100%; height: 100%; object-fit: cover; }
.gn-side-card__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.45; }
.gn-side-card__title { margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--c-navy); }
.gn-side-card:hover .gn-side-card__title { color: var(--c-green); }
.gn-side-card time { font-size: 10px; color: var(--c-muted); }

/* =========================================================
   対応エリア
========================================================= */
.gn-area-row { display: grid; grid-template-columns: 1fr 420px; gap: 18px; align-items: stretch; }
.gn-area {
  position: relative;
  overflow: hidden;
  padding: 20px 24px 22px;
}
.gn-area__body { position: relative; z-index: 1; padding-right: 36%; }
.gn-area__title { margin-right: -36%; }
.gn-area__title {
  display: flex; align-items: center; gap: 12px;
  font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--c-navy);
}
.gn-area__pin { flex-shrink: 0; width: 20px; height: 27px; color: var(--c-green); }
.gn-area__pin svg { display: block; width: 100%; height: 100%; }
.gn-area__text { margin-top: 10px; padding-left: 32px; font-size: 13px; line-height: 1.85; color: var(--c-text); }
.gn-area__box {
  display: flex; align-items: center; gap: 14px;
  max-width: 420px;
  margin-top: 16px; padding: 6px 16px 6px 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.gn-area__badge {
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 20px 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #136b4a, #2a9a86);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; text-align: center;
}
.gn-area__badge span { font-size: 13px; }
.gn-area__badge b { font-size: 20px; font-weight: 900; margin-right: 1px; }
.gn-area__prefs { font-size: 13px; font-weight: 500; line-height: 1.9; color: var(--c-navy); }
.gn-area__prefs span { white-space: nowrap; }
.gn-area__note { margin: 8px 0 12px; font-size: 11px; color: var(--c-muted); }
.gn-area__map {
  position: absolute; top: 14px; bottom: 10px; right: 2%;
  width: 36%; max-width: 300px;
}
/* 画像の縦横比に関係なく、枠内に全体が収まるように表示 */
.gn-area__map img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: left bottom;
}

.gn-offices {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f3f8f9;
}
.gn-offices__title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  font-size: 15px; font-weight: 700; color: var(--c-navy);
}
.gn-offices__title svg { width: 24px; height: 24px; color: var(--c-green); }
.gn-offices__title span { font-size: 12px; font-weight: 500; }
.gn-offices__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 2px 10px;
  border-bottom: 1px solid #e1ebee;
  font-size: 12px; font-weight: 500; line-height: 1.9; color: var(--c-navy);
}
.gn-offices__list li:last-child { border-bottom: 0; }
.gn-offices__list li::before {
  content: ""; width: 11px; height: 14px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C5.4 0 0 5.3 0 11.9 0 20.8 12 32 12 32s12-11.2 12-20.1C24 5.3 18.6 0 12 0zm0 16.5a4.6 4.6 0 1 1 0-9.2 4.6 4.6 0 0 1 0 9.2z' fill='%231f8a63'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* =========================================================
   おすすめコラム
========================================================= */
.gn-section--pickup {
  margin-top: 6px;
  padding: 10px 0 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.2)),
    linear-gradient(100deg, #e7f2ec 0%, #eef6f8 40%, #e9f3ee 100%);
}
.gn-pickup {
  padding: 14px 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.gn-pickup .gn-head { padding: 0 6px; }
.gn-pickup__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gn-pickup-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(28, 58, 84, .08);
  transition: transform .2s, box-shadow .2s;
}
.gn-pickup-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(28, 58, 84, .14); }
.gn-pickup-card > a { display: flex; flex-direction: column; height: 100%; }
.gn-pickup-card__img { position: relative; display: block; aspect-ratio: 216 / 58; }
.gn-pickup-card__img img { width: 100%; height: 100%; object-fit: cover; }
.gn-pickup-card__img .gn-tag { position: absolute; left: 12px; bottom: -9px; }
.gn-pickup-card__body {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  padding: 18px 44px 12px 12px;
}
.gn-pickup-card__title { font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--c-navy); }
.gn-pickup-card:hover .gn-pickup-card__title { color: var(--c-green); }
.gn-pickup-card time { margin-top: auto; padding-top: 4px; font-size: 11px; color: var(--c-muted); }
.gn-pickup-card .gn-circle-arrow { position: absolute; right: 12px; bottom: 14px; }

/* =========================================================
   CTA
========================================================= */
.gn-cta {
  background: linear-gradient(100deg, #f3f9fb 0%, #eef7f2 50%, #e3f0e8 100%);
}
.gn-cta__inner { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.gn-cta__icon { width: 50px; height: 50px; flex-shrink: 0; margin-left: 20px; }
.gn-cta__text { flex: 1; }
.gn-cta__title { font-size: 18px; font-weight: 700; color: var(--c-navy); }
.gn-cta__sub { font-size: 11px; color: var(--c-muted); }
.gn-cta .gn-btn--lg { margin-right: 40px; }

/* =========================================================
   Footer
========================================================= */
.gn-footer { background: var(--c-footer); color: #fff; }
.gn-footer__inner {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 22px var(--gutter) 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "logo nav" "logo copy";
  align-items: center; column-gap: 40px;
}
.gn-footer__logo { grid-area: logo; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: .1em; }
.gn-footer__logo svg { width: 40px; height: 36px; }
.gn-footer__logo em { color: #5fc48e; }
.gn-fnav { grid-area: nav; justify-self: end; }
.gn-fnav ul { display: flex; flex-wrap: wrap; gap: 8px 44px; }
.gn-fnav a { font-size: 12px; opacity: .9; }
.gn-fnav a:hover { opacity: 1; text-decoration: underline; }
.gn-footer__copy { grid-area: copy; justify-self: end; margin-top: 14px; font-size: 10px; opacity: .8; }
.gn-footer__copy small { font-size: inherit; }

/* =========================================================
   Tablet (〜1024px)
========================================================= */
@media (max-width: 1024px) {
  .gn-gnav__list { gap: 18px; }
  .gn-gnav { gap: 20px; }
  .gn-gnav__list a { font-size: 13px; }

  .gn-hero__catch { display: none; }
  .gn-hero__img { width: 50%; }

  .gn-types { gap: 12px; }

  .gn-media-row,
  .gn-area-row { grid-template-columns: 1fr; }
  .gn-side__list { grid-template-columns: repeat(2, 1fr); }
  .gn-side .gn-btn--block { max-width: 360px; margin: 0 auto; }
  .gn-offices__list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
  .gn-offices__list li:nth-last-child(2) { border-bottom: 0; }

  .gn-pickup__list { grid-template-columns: repeat(2, 1fr); }

  .gn-cta__icon { margin-left: 0; }
  .gn-cta .gn-btn--lg { margin-right: 0; padding: 14px 30px; font-size: 15px; }
}

/* ナビをハンバーガーに切り替え ／ 種類カードは横スクロール */
@media (max-width: 900px) {
  .gn-header__inner { height: 64px; }
  .gn-menu-btn {
    position: relative; z-index: 110;
    display: block; width: 40px; height: 40px;
  }
  .gn-menu-btn span {
    position: absolute; left: 9px; width: 22px; height: 2px;
    background: var(--c-navy); border-radius: 1px;
    transition: transform .3s, opacity .3s;
  }
  .gn-menu-btn span:nth-child(1) { top: 13px; }
  .gn-menu-btn span:nth-child(2) { top: 19px; }
  .gn-menu-btn span:nth-child(3) { top: 25px; }
  .gn-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .gn-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .gn-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .gn-gnav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px var(--gutter) 40px;
    background: #fff;
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .gn-gnav.gn-is-open { opacity: 1; visibility: visible; transform: none; }
  .gn-gnav__list { flex-direction: column; gap: 0; }
  .gn-gnav__list a {
    padding: 16px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--c-line);
  }
  .gn-gnav__list a::after { display: none; }
  .gn-gnav__list a.gn-is-current,
  .gn-gnav__list .current-menu-item > a { color: var(--c-green); }
  .gn-search-toggle { display: none; }

  .gn-types {
    display: flex; gap: 12px;
    margin: 0 -16px; padding: 4px 16px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .gn-types li { flex: 0 0 200px; scroll-snap-align: start; }

  .gn-about__main { grid-template-columns: 200px 1fr; gap: 20px; }
  .gn-features { grid-template-columns: 1fr; gap: 8px; }
}

/* =========================================================
   SP (〜767px)
========================================================= */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body.gn-front { font-size: 14px; }
  .gn-pc-only { display: none; }

  .gn-logo__icon { width: 36px; height: 33px; }
  .gn-logo__name { font-size: 19px; }
  .gn-logo__tagline { font-size: 10px; }

  /* Hero */
  .gn-hero__img {
    position: relative;
    width: 100%; height: 220px;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .gn-hero__img img { object-position: 70% center; }
  .gn-hero__inner { min-height: 0; padding-top: 0; padding-bottom: 32px; margin-top: -30px; }
  .gn-hero__lead { font-size: 13px; }
  .gn-hero__title { font-size: 36px; }
  .gn-hero__text { font-size: 14px; }
  .gn-search { padding-left: 44px; }
  .gn-search__icon { left: 16px; width: 18px; height: 18px; margin-top: -9px; }
  .gn-search .gn-search__input { font-size: 13px; }
  .gn-search__btn { min-width: 72px; padding: 8px 16px; font-size: 14px; }

  /* 見出し：リンクは下段右寄せ */
  .gn-section { padding: 14px 0; }
  .gn-head { flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; }
  .gn-head__title { font-size: 19px; }
  .gn-head__body { flex: 1 1 calc(100% - 50px); }
  .gn-head .gn-more-link { margin-left: auto; }
  .gn-head__icon { width: 30px; height: 30px; }

  .gn-section--types .gn-panel { padding: 16px 12px 14px; }
  .gn-section--types .gn-head { padding: 0 4px; }
  .gn-types li { flex-basis: 46%; }
  .gn-type-card__name { font-size: 15px; margin-top: 10px; }

  .gn-about { padding: 16px 14px 20px; }
  .gn-about__main { grid-template-columns: 1fr; gap: 14px; }
  .gn-about__title { font-size: 19px; }
  .gn-about__title br { display: none; }
  .gn-features { margin: 18px 0; }
  .gn-about .gn-btn { display: flex; width: 100%; padding: 12px 16px; }

  .gn-side { padding: 16px 12px; }
  .gn-side__list { grid-template-columns: 1fr; }

  .gn-area { display: flex; flex-direction: column; padding: 18px 16px 20px; }
  .gn-area__body { padding-right: 0; }
  .gn-area__title { margin-right: 0; }
  .gn-area__title { font-size: 17px; align-items: flex-start; }
  .gn-area__text { padding-left: 0; }
  .gn-area__box { flex-direction: column; align-items: stretch; padding: 10px; gap: 8px; }
  .gn-area__badge { flex-direction: row; gap: 8px; padding: 6px 12px; clip-path: none; }
  .gn-area__prefs { padding: 0 4px; }
  .gn-area__map { position: static; order: -1; width: auto; max-width: none; margin: 0 auto 6px; }
  .gn-area__map img { width: auto; height: auto; max-width: 100%; max-height: 260px; margin: 0 auto; }
  .gn-area .gn-btn { display: flex; width: 100%; }
  .gn-offices__list { grid-template-columns: 1fr; }
  .gn-offices__list li:nth-last-child(2) { border-bottom: 1px solid #e1ebee; }

  .gn-pickup { padding: 14px 12px 16px; }
  .gn-pickup__list { grid-template-columns: 1fr; gap: 12px; }
  .gn-pickup-card__img { aspect-ratio: 216 / 70; }

  .gn-cta__inner { flex-direction: column; text-align: center; gap: 12px; padding-top: 26px; padding-bottom: 28px; }
  .gn-cta__title { font-size: 16px; }
  .gn-cta .gn-btn--lg { width: 100%; }

  .gn-footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "nav" "copy";
    justify-items: center; row-gap: 18px;
    padding: 28px var(--gutter) 20px;
  }
  .gn-fnav, .gn-footer__copy { justify-self: center; }
  .gn-fnav ul { justify-content: center; gap: 10px 20px; }
  .gn-footer__copy { margin-top: 0; }
}

/* =========================================================
   WordPress 管理バー表示時
========================================================= */
.admin-bar .gn-header { top: 32px; }
@media (max-width: 900px) {
  .admin-bar .gn-gnav { top: 96px; }
}
@media (max-width: 782px) {
  .admin-bar .gn-header { top: 46px; }
  .admin-bar .gn-gnav { top: 110px; }
}
@media (max-width: 600px) {
  .admin-bar .gn-header { top: 0; }
  .admin-bar .gn-gnav { top: 64px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   2026-11-05 グローバルナビ7項目化（大竹判断：全ページ7項目）
   7項目を1行に収めるには約1,140px必要 → 1,101〜1,279pxは文字13px、1,100px以下はハンバーガー
========================================================= */
.gn-logo { flex-shrink: 0; }
.gn-logo__name, .gn-logo__tagline, .gn-gnav__list a { white-space: nowrap; }
.gn-gnav__list a { letter-spacing: 0; } /* 記事ページと同じ字間（7項目を1,280pxで収める） */
@media (min-width: 1101px) and (max-width: 1279px) {
  .gn-gnav__list { gap: 16px; }
  .gn-gnav { gap: 18px; }
  .gn-gnav__list a { font-size: 13px; letter-spacing: 0; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .gn-header__inner { height: 64px; }
  .gn-menu-btn {
    position: relative; z-index: 110;
    display: block; width: 40px; height: 40px;
  }
  .gn-menu-btn span {
    position: absolute; left: 9px; width: 22px; height: 2px;
    background: var(--c-navy); border-radius: 1px;
    transition: transform .3s, opacity .3s;
  }
  .gn-menu-btn span:nth-child(1) { top: 13px; }
  .gn-menu-btn span:nth-child(2) { top: 19px; }
  .gn-menu-btn span:nth-child(3) { top: 25px; }
  .gn-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .gn-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .gn-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .gn-gnav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px var(--gutter) 40px;
    background: #fff;
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .gn-gnav.gn-is-open { opacity: 1; visibility: visible; transform: none; }
  .gn-gnav__list { flex-direction: column; gap: 0; }
  .gn-gnav__list a {
    padding: 16px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--c-line);
  }
  .gn-gnav__list a::after { display: none; }
  .gn-gnav__list a.gn-is-current,
  .gn-gnav__list .current-menu-item > a { color: var(--c-green); }
  .gn-search-toggle { display: none; }
  .gn-header__inner .gn-header-search { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px 4px -10px auto; color: var(--c-navy); }
  .gn-header__inner .gn-header-search svg { display: block; width: 24px; height: 24px; }
  .admin-bar .gn-gnav { top: 96px; }
}
@media (min-width: 768px) { .gn-fnav ul { gap: 8px 28px; } } /* フッターは7項目＋運営会社の8項目。PCで1行に収める */
@media (min-width: 768px) and (max-width: 1279px) { .gn-fnav ul { gap: 8px 18px; } }

/* 2026-11-05 トップにもハンバーガー時の検索アイコン（一覧の search.css と同じ見た目）。トップは search.css を読まないのでここに置く */
.gn-header-search { display: none; }
@media (max-width: 1100px) {
  .gn-header__inner .gn-header-search { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px 4px -10px auto; color: var(--c-navy); }
  .gn-header__inner .gn-header-search svg { display: block; width: 24px; height: 24px; }
}

/* 2026-11-05 ヘッダーの検索アイコン・ハンバーガーは押しやすい44px角（記事ページと同じ）。検索欄へ飛んだときにヘッダーで隠れないように */
@media (max-width: 1100px) {
  .gn-menu-btn { width: 44px; height: 44px; }
  .gn-menu-btn span { left: 11px; }
  .gn-menu-btn span:nth-child(1) { top: 15px; }
  .gn-menu-btn span:nth-child(2) { top: 21px; }
  .gn-menu-btn span:nth-child(3) { top: 27px; }
}
#gn-s, .gn-search, .gn-sr__search { scroll-margin-top: 96px; }
