/* KCOM 0.2.4: one clearly labeled ad only beside 募集内容 in grant details.
 * All styles require a JS-added class; search results and home remain unchanged.
 */
.kcom-ad-funding-section { position: relative !important; box-sizing: border-box !important; }
.kcom-ad-funding-banner[hidden] { display: none !important; }
.kcom-ad-funding-banner {
  box-sizing: border-box;
  width: 214px;
  max-width: 100%;
  padding: 12px 0 0;
  margin: 0;
  border-top: 1px solid #dfe8e6;
  color: #52696b;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.kcom-ad-funding-banner .kcom-ad-placement__label {
  display: block; margin: 0 0 8px; font-size: 10px; color: #718582;
  font-weight: 600; letter-spacing: .07em;
}
.kcom-ad-funding-banner a.kcom-ad-campaign { display: block; text-decoration: none; }
.kcom-ad-funding-banner a.kcom-ad-campaign:focus-visible {
  outline: 2px solid #ad8e00; outline-offset: 3px;
}
.kcom-ad-funding-banner .kcom-ad-campaign__image {
  display: block; width: auto; max-width: 100%; height: auto;
  margin: 0; border: 1px solid #e4e9e7; border-radius: 0; box-shadow: none;
}
.kcom-ad-funding-banner .kcom-ad-campaign__name {
  display: block; font-size: 12px; font-weight: 600; color: #26383a; margin-top: 8px;
}
@media (min-width: 1100px) {
  .kcom-ad-funding-section:not(.kcom-ad-funding-section--compact) {
    --kcom-funding-ad-width: 214px;
    --kcom-funding-ad-gap: 26px;
    padding-right: calc(var(--kcom-funding-original-padding, 0px) + var(--kcom-funding-ad-width) + var(--kcom-funding-ad-gap)) !important;
    min-height: var(--kcom-funding-ad-height, 0px);
  }
  .kcom-ad-funding-section:not(.kcom-ad-funding-section--compact) > .kcom-ad-funding-banner {
    position: absolute !important; top: 8px; right: var(--kcom-funding-original-padding, 0px);
    float: none !important; clear: none !important; margin: 0;
    width: var(--kcom-funding-ad-width); max-width: var(--kcom-funding-ad-width);
  }
}
@media (max-width: 1099px) {
  .kcom-ad-funding-section > .kcom-ad-funding-banner {
    position: static !important; float: none !important; clear: both !important;
    width: min(214px, 100%); margin: 24px 0 5px;
  }
}
@media (min-width: 1100px) {
  .kcom-ad-funding-section--compact > .kcom-ad-funding-banner {
    position: static !important; float: none !important; clear: both !important;
    width: min(214px, 100%); margin: 24px 0 5px;
  }
}
