.ntg-ihub{
  --ihub-line: var(--ntg2-line, #e3e0dc);
  --ihub-line2: var(--ntg2-line-2, #d3cec7);
  --ihub-paper: var(--ntg2-paper, #f6f5f3);
  --ihub-bg: var(--ntg2-bg, #fff);
  --ihub-text: var(--ntg2-text, #1a1714);
  --ihub-sub: var(--ntg2-sub, #5f5a55);
  --ihub-muted: var(--ntg2-muted, #8a847d);
  --ihub-accent: var(--ntg2-accent, #b72305);
  --ihub-radius: var(--ntg2-radius, 6px);
  /* タブを留める高さ = 管理バー＋ヘッダーの下端（--nettoge-floating-heading-top。tokens-nettoge.css）＋ 追従見出しバーが出ている間はその高さ
     （--ihub-bar。frontend.js がこの枠自身に書く。item-db の絞り込み欄と同じ）。
     前は「ヘッダー＋46px」の決め打ちで、管理バーと 2 段の見出しバーの分だけタブの上が見出しバーの下に潜った（2026-10-18 依頼主「かぶる」） */
  --ihub-top: calc(var(--swl-adminbarH, 0px) + var(--nettoge-floating-heading-top, 57px) + var(--ihub-bar, 0px));
  /* 本文の幅（サイドバーで PC でも 560〜820px）に合わせて、新着の列とタブの大きさを決める */
  container-type: inline-size;
  display: grid;
  /* 横に流す新着が枠ごと広がらないように（列の幅を本文の幅に留める） */
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 4px 0 2em;
  color: var(--ihub-text);
  line-height: 1.6;
}
.ntg-ihub a{
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}
.ntg-ihub p,
.ntg-ihub ul,
.ntg-ihub li{
  margin: 0;
  padding: 0;
}
.ntg-ihub ul{
  list-style: none;
}
.ntg-ihub li::before{
  content: none;
}
.ntg-ihub img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  max-width: none;
}
.ntg-ihub picture{
  display: contents;
}
.ntg-ihub [hidden]{
  display: none;
}
.ntg-ihub a:focus-visible,
.ntg-ihub button:focus-visible{
  outline: 2px solid var(--ihub-accent);
  outline-offset: 2px;
}
.ntg-ihub .ntg-ihub__sq{
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--ihub-paper);
}
.ntg-ihub .is-new .ntg-ihub__sq::after,
.ntg-ihub .is-new .ntg-ihub__ec::after{
  content: "NEW";
  position: absolute;
  top: -5px;
  right: -6px;
  padding: 0 3px;
  border-radius: 3px;
  background: var(--ihub-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
}
.ntg-ihub .ntg-ihub__h{
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ihub-sub);
}
.ntg-ihub .ntg-ihub__nlist{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 6px;
}
.ntg-ihub .ntg-ihub__nlist > li{
  flex: 0 0 168px;
  scroll-snap-align: start;
}
.ntg-ihub .ntg-ihub__ni{
  display: grid;
  gap: 6px;
}
.ntg-ihub .ntg-ihub__ec{
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--ihub-radius);
  background: var(--ihub-paper);
}
.ntg-ihub .ntg-ihub__ec img{
  border-radius: var(--ihub-radius);
}
.ntg-ihub .ntg-ihub__nl{
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ihub-muted);
}
.ntg-ihub .ntg-ihub__nd{
  color: var(--ihub-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ntg-ihub .ntg-ihub__nt{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.ntg-ihub a:hover .ntg-ihub__nt,
.ntg-ihub a:hover .ntg-ihub__t{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ntg-ihub .ntg-ihub__in{
  position: relative;
  display: block;
  margin: 0;
}
.ntg-ihub .ntg-ihub__in svg{
  position: absolute;
  top: 13px;
  left: 13px;
  color: var(--ihub-muted);
  pointer-events: none;
}
.ntg-ihub .ntg-ihub__in input{
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px 0 40px;
  border: 1px solid var(--ihub-line2);
  border-radius: var(--ihub-radius);
  background: var(--ihub-paper);
  color: var(--ihub-text);
  font: inherit;
  box-shadow: none;
  appearance: none;
}
.ntg-ihub .ntg-ihub__in input:focus{
  outline: 2px solid var(--ihub-accent);
  outline-offset: -1px;
}
.ntg-ihub .ntg-ihub__tabs{
  position: sticky;
  top: var(--ihub-top);
  z-index: 3;
  display: flex;
  gap: 6px;
  margin: -8px 0;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--ihub-bg);
}
.ntg-ihub .ntg-ihub__tabs::-webkit-scrollbar{
  display: none;
}
.ntg-ihub .ntg-ihub__tab{
  flex: none;
  height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--ihub-line2);
  border-radius: 16px;
  background: none;
  color: var(--ihub-sub);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.ntg-ihub .ntg-ihub__tab .ntg-ihub__n{
  display: none;
}
.ntg-ihub .ntg-ihub__tab.is-active{
  border-color: var(--ihub-text);
  background: var(--ihub-text);
  color: var(--ihub-bg);
}
.ntg-ihub .ntg-ihub__idx{
  display: flex;
  flex-direction: column;
}
.ntg-ihub .ntg-ihub__col{
  display: contents;
}
.ntg-ihub .ntg-ihub__cat{
  break-inside: avoid;
  margin: 0 0 22px;
  padding-top: 8px;
  border-top: 2px solid var(--ihub-text);
  scroll-margin-top: calc(var(--ihub-top) + 56px);
}
.ntg-ihub .ntg-ihub__cn{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-weight: 700;
}
.ntg-ihub .ntg-ihub__cn .ntg-ihub__n{
  font-size: 12px;
  font-weight: 400;
  color: var(--ihub-muted);
}
.ntg-ihub .ntg-ihub__lead,
.ntg-ihub .ntg-ihub__gh,
.ntg-ihub .ntg-ihub__d{
  display: none;
}
.ntg-ihub .ntg-ihub__row{
  display: block;
}
.ntg-ihub .ntg-ihub__it{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  line-height: 1.5;
}
.ntg-ihub .ntg-ihub__tx{
  display: grid;
  flex: 1;
  min-width: 0;
}
.ntg-ihub.is-one .ntg-ihub__cat{
  display: none;
}
.ntg-ihub.is-one .ntg-ihub__cat.is-sel{
  display: block;
  padding-top: 0;
  border-top: 0;
}
.ntg-ihub.is-one .ntg-ihub__cn{
  display: none;
}
.ntg-ihub.is-one .ntg-ihub__lead{
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ihub-sub);
}
.ntg-ihub.is-one .ntg-ihub__list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  column-gap: 24px;
}
.ntg-ihub.is-one .ntg-ihub__row{
  border-bottom: 1px solid var(--ihub-line);
}
.ntg-ihub.is-one .ntg-ihub__it{
  padding: 9px 0;
}
.ntg-ihub.is-one .ntg-ihub__sq{
  width: 44px;
  height: 44px;
}
.ntg-ihub.is-one .ntg-ihub__d{
  display: block;
  font-size: 12px;
  color: var(--ihub-muted);
}
.ntg-ihub.is-mod .ntg-ihub__d{
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ihub-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ntg-ihub.is-mod .ntg-ihub__t{
  font-weight: 700;
}
.ntg-ihub.is-mod .ntg-ihub__it .ntg-ihub__sq{
  width: 40px;
  height: 40px;
}
.ntg-ihub.is-search .ntg-ihub__new{
  display: none;
}
.ntg-ihub.is-search .ntg-ihub__tabs{
  opacity: .45;
  pointer-events: none;
}
.ntg-ihub.is-search .ntg-ihub__cat:not(.has-hit),
.ntg-ihub.is-search .ntg-ihub__cat .ntg-ihub__row:not(.is-hit){
  display: none;
}
.ntg-ihub.is-search .ntg-ihub__cat .ntg-ihub__row.is-hit{
  display: block;
}
.ntg-ihub .ntg-ihub__none{
  padding: 20px 0;
  color: var(--ihub-sub);
  text-align: center;
}
@media (min-width: 600px){
.ntg-ihub .ntg-ihub__tabs{
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 10px 12px;
    overflow: visible;
    border: 1px solid var(--ihub-line2);
    border-radius: var(--ihub-radius);
    background: var(--ihub-paper);
  }
.ntg-ihub .ntg-ihub__tabs::before{
    content: "分類で絞る";
    margin-right: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ihub-sub);
    white-space: nowrap;
  }
.ntg-lang-en .ntg-ihub .ntg-ihub__tabs::before{
    content: "Filter";
  }
.ntg-ihub .ntg-ihub__tab{
    height: 34px;
    padding: 0 14px;
    border-radius: 17px;
    background: var(--ihub-bg);
    color: var(--ihub-text);
    font-size: 14px;
  }
.ntg-ihub .ntg-ihub__tab:hover{
    border-color: var(--ihub-text);
  }
.ntg-ihub .ntg-ihub__tab .ntg-ihub__n{
    display: inline;
    margin-left: 5px;
    font-size: 12px;
    font-weight: 400;
    color: var(--ihub-muted);
  }
.ntg-ihub .ntg-ihub__tab.is-active{
    border-color: var(--ihub-accent);
    background: var(--ihub-accent);
    color: #fff;
    font-weight: 700;
  }
.ntg-ihub .ntg-ihub__tab.is-active .ntg-ihub__n{
    color: inherit;
    opacity: .85;
  }
.ntg-ihub .ntg-ihub__it{
    padding: 5px 0;
    font-size: 14px;
  }
.ntg-ihub .ntg-ihub__it .ntg-ihub__sq{
    width: 32px;
    height: 32px;
  }
.ntg-ihub.is-one .ntg-ihub__it .ntg-ihub__sq{
    width: 44px;
    height: 44px;
  }
.ntg-ihub.is-one .ntg-ihub__it{
    padding: 9px 0;
    font-size: 15px;
  }
}
@container (min-width: 680px){
.ntg-ihub .ntg-ihub__nlist{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
    overflow: visible;
    padding-bottom: 0;
  }
}
@media (min-width: 600px){
@container (max-width: 679px){
.ntg-ihub .ntg-ihub__tab{
      padding: 0 11px;
      font-size: 13px;
    }
}
}
@container (min-width: 840px){
.ntg-ihub:not(.is-one) .ntg-ihub__idx{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    align-items: start;
  }
.ntg-ihub:not(.is-one) .ntg-ihub__col{
    display: block;
  }
}
