@charset "UTF-8";
/* 全ページで読み込む：グローバルメニュー「環境対策製品」の葉っぱのマーク（2026-11 追加） */

/* PC：メニュー項目の CSS クラスに kp-nav-leaf（文字の左に小さな葉っぱ） */
.kp-nav-leaf::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 4px;
  vertical-align: -0.12em;
  background: url("../images/kankyo/icon-leaf.svg") center / contain no-repeat;
}

/* スマホ：ほかの項目（.base-icon など）と同じ薄い透かしのアイコン */
.kp-leaf-icon {
  background-image: url("../images/kankyo/icon-leaf-sp.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px;
}

/* 項目が1つ増えたので、992〜1165px でメニューがロゴの下に折り返さないよう詰める
   （テーマ style.css の 992〜1165px：15px・間隔25px、768〜991px：14px・間隔10px を上書き） */
@media screen and (min-width: 992px) and (max-width: 1165px) {
  #pc-menu .global-nav li a {
    font-size: 14px;
  }
  #pc-menu ul li, #pc-menu2 ul li {
    margin-right: 14px;
  }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
  #pc-menu .global-nav li a {
    font-size: 12px;
  }
  #pc-menu ul li {
    margin-right: 5px;
  }
  .kp-nav-leaf::before {
    margin-right: 2px;
  }
}

/* スマホ：上の段のメニューは 25% ×4 項目の作りだったので、5 項目（環境対策製品を追加）で 1 列に収める
   英語版（menu-header-en-sp-container）はそのまま */
#sp-menu .menu-main-menu-sp-container > ul > li {
  width: 20%;
}
#sp-menu .menu-main-menu-sp-container > ul > li > a {
  font-size: min(12px, calc((100vw - 30px) / 31)) !important; /* 項目の幅＝(画面幅－左右余白30px)×20%。6 文字が 1 行で入る大きさ */
  letter-spacing: 0;
  white-space: nowrap;
}
