/* ========================================
   abilumi advertisement slot layout

   Empty ad placeholders are hidden by default.
   ads-loader.js reveals only placements that have:
   - ads-config.js enabled: true
   - a valid AdSense publisher ID
   - a valid ad unit ID for the placement
======================================== */
.site-ad-slot {
    display: none;
    width: min(970px, calc(100% - 32px));
    margin: 36px auto;
    text-align: center;
    clear: both;
}

/* Reveal only a slot that ads-loader.js successfully initialized. */
.site-ad-slot[data-ad-active="true"] {
    display: block;
}

.site-ad-slot--content { max-width: 900px; }
.site-ad-slot--compact { max-width: 728px; }
.site-ad-label {
    display: block;
    margin: 0 0 7px;
    color: #7c7f84;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
}
.site-ad-reserved {
    width: 100%;
    min-height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e2de;
    border-radius: 6px;
    background: #f6f5f2;
}
.site-ad-slot--compact .site-ad-reserved { min-height: 100px; }
.site-ad-reserved:empty::before {
    content: "広告スペース";
    color: #a1a1a1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}
@media (max-width: 650px) {
    .site-ad-slot {
        width: min(100% - 24px, 970px);
        margin: 28px auto;
    }
    .site-ad-reserved,
    .site-ad-slot--compact .site-ad-reserved {
        min-height: 100px;
    }
}
@media (max-width: 390px) {
    .site-ad-slot { margin: 24px auto; }
    .site-ad-reserved,
    .site-ad-slot--compact .site-ad-reserved { min-height: 92px; }
}
