/* 配信前から高さを確保し、広告が遅れて届いても後ろのコンテンツを押し下げない。 */
.amg-ad {
  --ad-height: 250px;
  margin: 2rem auto;
  text-align: center;
}

.amg-ad[hidden] { display: none; }
.amg-ad[data-admax-wide] { --ad-height: 90px; }
.amg-ad[data-admax-wide][data-ad-device="sp"] { --ad-height: 100px; }
/* 幅320pxの端末でも、一覧の左右の余白を広告に限って使えるようにする。 */
.sec > .amg-ad { margin-inline: calc(-1 * var(--gutter)); }

.amg-ad-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted, #6b6252);
  font: 0.75rem/1.4 system-ui, sans-serif;
}

.amg-ad > .admax-switch {
  display: inline-block;
  min-height: var(--ad-height);
  vertical-align: top;
}
