/* A zero-height parent keeps the slot measurable at its real breakpoint width.
   A delayed provider signal restores normal flow without probing its iframe. */
.ah-detail-ad { clear: both; width: 100%; min-height: 0; margin: 0; padding: 0; }
.ah-detail-ad[data-ah-state="waiting"],
.ah-detail-ad[data-ah-state="empty"] { height: 0; overflow: hidden; overflow: clip; }
.ah-detail-ad ins[data-ad-status="unfilled"] { display: none !important; }
.ah-detail-ad[data-ah-state="filled"] { margin: 8px 0; }
.ah-detail-ad-row, .ah-detail-ad-col, .ah-detail-ad-row > div { min-height: 0; padding-block: 0; margin-block: 0; }
.ah-detail-ad-row { margin-inline: 0; }

.ah-detail-body .appChars2 > div { margin-bottom: 4px; }
.ah-detail-body .appChars2 .hitbutton { width: auto !important; max-width: 100%; margin: 0 0 4px !important; }
.ah-detail-body .appChars2 .takkenText, .ah-detail-body .appChars2 .takken { position: static; margin: 0; }
.ah-detail-body .takken .ya-share2 { margin: 0; }
.ah-detail-body .video-fluid { height: auto; margin: 0 0 8px; }
.ah-detail-body .video-fluid > .youtube { height: auto; aspect-ratio: 16 / 9; }
.ah-detail-body .video-fluid > .youtube:empty { aspect-ratio: auto; }
.ah-detail-body .video-fluid > iframe { position: static; display: block; width: 100%; height: auto !important; aspect-ratio: 16 / 9; border: 0; }
.ah-detail-body .detsidetitle .swiper-container { height: auto; margin: 0; }
.ah-detail-body .detsidetitle .media-object { display: block; width: auto; height: auto; max-width: 100%; max-height: min(70vh, 600px); margin: auto; }
.ah-detail-body .detsidetitle .swiper-container:not(.swiper-container-horizontal) { overflow-x: auto; scroll-snap-type: x mandatory; }
.ah-detail-body .detsidetitle .swiper-container:not(.swiper-container-horizontal) .swiper-wrapper { display: flex; }
.ah-detail-body .detsidetitle .swiper-container:not(.swiper-container-horizontal) .swiper-slide { flex: 0 0 100%; scroll-snap-align: start; }
.ah-detail-body .detsidetitle .swiper-container:not(.swiper-container-horizontal) [class*="swiper-button"] { display: none; }
.ah-detail-body .detsidetitle .swiper-slide { height: auto; }
.ah-detail-body .compReveiw p { margin: 0 0 10px; }
.ah-detail-body .compReveiw p > img:only-child { display: block; }
.ah-detail-body .compReveiw p:last-child { margin-bottom: 0; }

.ah-legacy-card { display: flow-root; width: 100%; max-width: 100%; box-sizing: border-box; }
.ah-legacy-card .imgNoRadius { float: left; width: min(100%, 748px); padding: 12px 10px; box-sizing: border-box; background: #fff; }
.ah-legacy-card .listGame2, .ah-legacy-card .listGame { display: flow-root; }
.ah-legacy-card img, .ah-legacy-card iframe { max-width: 100%; }
.ah-legacy-card iframe[allowfullscreen] { height: auto; aspect-ratio: 16 / 9; }
.ah-legacy-card .ah-detail-share { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
@media (max-width: 767px) {
    .ah-legacy-card .listImage, .ah-legacy-card .listContent { width: 100%; max-width: 100%; float: none; }
    .ah-legacy-card .side2, .ah-legacy-card .side22 { max-width: 100%; float: none; clear: both; }
}
