#home-ad-banner .golmy-affiliate-list {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: pan-y;
}

#home-ad-banner[data-ad-source="affiliate"] .golmy-affiliate-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 468x120の実寸比率を保ち、INFO幅いっぱいに表示する。 */
#home-ad-banner[data-ad-source="affiliate"],
#home-ad-banner[data-ad-source="affiliate"] .home-mygo-info {
  flex-basis: 122px !important;
  height: 122px !important;
  min-height: 122px !important;
  max-height: 122px !important;
}

#home-ad-banner[data-ad-source="affiliate"] .home-mygo-info {
  padding: 6px 10px !important;
}

#home-ad-banner[data-ad-source="affiliate"] .home-mygo-info .dash-eyebrow {
  flex-basis: 16px !important;
  min-height: 16px !important;
  margin-bottom: 2px !important;
}

#home-ad-banner[data-ad-source="affiliate"] .mygo-info-ad-wrap {
  height: 90px !important;
  min-height: 90px !important;
  max-height: 90px !important;
}

#home-ad-banner .golmy-affiliate-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  will-change: opacity;
}

#home-ad-banner .golmy-affiliate-link.is-auto-enter {
  animation: golmyAffiliateAutoEnter .24s ease both;
}

@keyframes golmyAffiliateAutoEnter {
  from { opacity: .28; }
  to { opacity: 1; }
}

#home-ad-banner .golmy-affiliate-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

#home-ad-banner .golmy-affiliate-link--compact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #fff;
}

#home-ad-banner .golmy-affiliate-link--compact .golmy-affiliate-banner {
  flex: 0 0 auto;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 468 / 60;
  object-fit: contain !important;
  object-position: center !important;
}

#home-ad-banner .golmy-affiliate-details {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 6px 12px;
  border-top: 1px solid rgba(26, 22, 18, .08);
  background: #fffaf3;
}

#home-ad-banner .golmy-affiliate-list.has-compact-card .golmy-affiliate-position {
  top: 4px;
  bottom: auto;
}

#home-ad-banner .golmy-affiliate-copy {
  min-width: 0;
  overflow: hidden;
  color: #241f1a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#home-ad-banner .golmy-affiliate-cta {
  flex: 0 0 auto;
  color: #ef5b18;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

#home-ad-banner .golmy-affiliate-link:focus-visible {
  outline: 3px solid #ff6200;
  outline-offset: -3px;
}

#home-ad-banner .golmy-affiliate-tracker {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: .01;
  pointer-events: none;
}

#home-ad-banner .golmy-affiliate-position {
  display: none !important;
}

#home-ad-banner .golmy-affiliate-position i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

#home-ad-banner .golmy-affiliate-position i.is-active {
  width: 10px;
  border-radius: 4px;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  #home-ad-banner .golmy-affiliate-link.is-auto-enter { animation: none; }
  #home-ad-banner .golmy-affiliate-position { display: none; }
}
