.w-beforeToc,
.widget_swell_ad_widget{
  display: block;
  width: 100%;
}
.w-beforeToc{
  margin-block-end: 1rem;
}
.widget_swell_ad_widget > *{
  width: 100%;
}
.widget_swell_ad_widget ins.adsbygoogle,
.widget_swell_ad_widget iframe,
.post_content ins.adsbygoogle[data-ad-layout="in-article"],
.post_content ins.adsbygoogle[data-full-width-responsive="true"],
.entry-content ins.adsbygoogle[data-ad-layout="in-article"],
.entry-content ins.adsbygoogle[data-full-width-responsive="true"],
.nettoge-ad-slot > ins.adsbygoogle{
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: var(--nettoge-manual-ad-min-height);
  box-sizing: border-box;
}
.widget_swell_ad_widget ins.adsbygoogle:not([data-adsbygoogle-status]),
.post_content ins.adsbygoogle[data-ad-layout="in-article"]:not([data-adsbygoogle-status]),
.post_content ins.adsbygoogle[data-full-width-responsive="true"]:not([data-adsbygoogle-status]),
.entry-content ins.adsbygoogle[data-ad-layout="in-article"]:not([data-adsbygoogle-status]),
.entry-content ins.adsbygoogle[data-full-width-responsive="true"]:not([data-adsbygoogle-status]){
  background: var(--surface-ad-loading, rgba(17, 17, 17, 0.04));
}
.c-infeedAd{
  min-height: var(--nettoge-infeed-ad-min-height);
  contain: layout style;
  overflow: hidden;
}
.c-infeedAd--pc{
  --nettoge-infeed-ad-min-height: 250px;
}
.c-infeedAd__inner,
.c-infeedAd ins.adsbygoogle,
.c-infeedAd iframe{
  display: block;
  width: 100%;
  min-height: var(--nettoge-infeed-ad-min-height);
  contain: layout paint;
}
.c-infeedAd__inner{
  position: relative;
  background: var(--surface-ad-loading, rgba(17, 17, 17, 0.03));
}
.widget_swell_ad_widget.is-ad-unfilled, .w-beforeToc.is-ad-unfilled .widget_swell_ad_widget, .c-infeedAd.is-ad-unfilled .c-infeedAd__inner, .post_content .is-ad-unfilled:not(.ntg-h2-section, .nettoge-ad-slot, ins):not([class*="ntg-h2-section"]), .entry-content .is-ad-unfilled:not(.ntg-h2-section, .nettoge-ad-slot, ins):not([class*="ntg-h2-section"]){
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--nettoge-manual-ad-min-height);
  background-color: var(--nettoge-ad-placeholder-bg, #f3f3f3);
  background-image: none;
  border: 2px dashed var(--nettoge-ad-placeholder-border, #d8d8d8);
}
.c-infeedAd.is-ad-unfilled .c-infeedAd__inner{
  min-height: var(--nettoge-infeed-ad-min-height);
}
.widget_swell_ad_widget.is-ad-unfilled ins.adsbygoogle,
.w-beforeToc.is-ad-unfilled ins.adsbygoogle,
.c-infeedAd.is-ad-unfilled ins.adsbygoogle,
.post_content .is-ad-unfilled:not(.nettoge-ad-slot) > ins.adsbygoogle:not(.is-ad-unfilled),
.entry-content .is-ad-unfilled:not(.nettoge-ad-slot) > ins.adsbygoogle:not(.is-ad-unfilled){
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  min-height: 0;
  height: 0;
  margin: 0;
  padding: 0;
}
.post_content .nettoge-ad-slot.is-ad-unfilled,
.entry-content .nettoge-ad-slot.is-ad-unfilled,
.post_content ins.adsbygoogle.is-ad-unfilled,
.entry-content ins.adsbygoogle.is-ad-unfilled{
  position: relative;
  clip-path: inset(0); /* 高さ 0 の ins で「AD」の文字をはみ出させない。overflow: hidden だと上下の余白の相殺が変わって高さが変わる */
  background-color: var(--nettoge-ad-placeholder-bg, #f3f3f3);
  background-image: none;
  outline: 2px dashed var(--nettoge-ad-placeholder-border, #d8d8d8);
  outline-offset: -2px;
}
.nettoge-ad-slot.is-ad-unfilled > ins.adsbygoogle{
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.post_content ins.adsbygoogle.is-ad-unfilled,
.entry-content ins.adsbygoogle.is-ad-unfilled{
  opacity: 1;
  pointer-events: none;
  visibility: visible;
}
.widget_swell_ad_widget.is-ad-unfilled::after,
.w-beforeToc.is-ad-unfilled .widget_swell_ad_widget::after,
.c-infeedAd.is-ad-unfilled .c-infeedAd__inner::after,
.post_content .nettoge-ad-slot.is-ad-unfilled::after,
.entry-content .nettoge-ad-slot.is-ad-unfilled::after,
.post_content ins.adsbygoogle.is-ad-unfilled::after,
.entry-content ins.adsbygoogle.is-ad-unfilled::after{
  content: "AD\A Advertisement";
  white-space: pre-line;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem;
  color: var(--nettoge-ad-placeholder-fg, #9a9a9a);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
}
.nettoge-ad-slot{
  clear: both;
  contain: layout style;
  display: block;
  margin: clamp(2rem, 5vw, 3rem) auto;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  width: 100%;
}
.nettoge-ad-slot--expand{
  margin: 1.5rem auto;
}
.ncg > .nettoge-ad-slot{
  margin: 1rem auto 1.5rem;
}
.nettoge-ad-slot--side{
  flex: none;
  width: 300px;
  margin: 12px 0;
  overflow: visible;
}
.nettoge-ad-slot--side > ins.adsbygoogle{
  display: inline-block;
  width: 300px;
  height: 250px;
  min-height: 250px;
}
.nettoge-ad-slot__label{
  color: var(--color_text, #333);
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 16px;
  min-height: 16px;
  opacity: 0.55;
  text-align: center;
}
.w-beforeToc::before{
  color: var(--color_text, #333);
  content: "スポンサーリンク";
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 16px;
  min-height: 16px;
  opacity: 0.55;
  text-align: center;
}
.nettoge-ad-slot > ins.adsbygoogle{
  margin-inline: auto;
}
@media (max-width: 599px){
.w-beforeToc ins.adsbygoogle[data-full-width-responsive="true"],
  .nettoge-ad-slot > ins.adsbygoogle[data-full-width-responsive="true"]{
    min-height: min(368px, calc(100vw - 22px));
  }
.w-beforeToc.is-ad-unfilled .widget_swell_ad_widget{
    min-height: min(368px, calc(100vw - 22px));
  }
}
