.rakuten-top-ad {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(100% - 32px, 1180px);
  margin: 16px auto;
  padding: 10px 16px 14px;
  border: 1px solid #edd5d5;
  border-top: 3px solid #bf0000;
  border-radius: 12px;
  background: #fff;
  color: #675757;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.rakuten-top-ad .rakuten-top-ad__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
}

.rakuten-top-ad .rakuten-top-ad__link {
  display: block;
  width: 468px;
  max-width: 100%;
  line-height: 0;
}

.rakuten-top-ad .rakuten-top-ad__link:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

.rakuten-top-ad .rakuten-top-ad__link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rakuten-top-ad .rakuten-top-ad__pixel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rakuten-ad-timer-page {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 16px;
}

.rakuten-ad-timer-page .rakuten-top-ad {
  width: min(100%, 520px);
  margin: 0;
}

.rakuten-top-ad__banners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.rakuten-top-ad__banners > .rakuten-top-ad__link {
  flex: 0 1 468px;
  min-width: 0;
}

.rakuten-top-ad__banners > .rakuten-top-ad__link--square {
  width: 125px;
  flex: 0 0 125px;
}

.rakuten-top-ad__banners > .rakuten-top-ad__link--compact {
  width: 120px;
  flex: 0 0 120px;
}
