/* 上下のバナーと予定一覧・操作領域に、それぞれ専用スペースを確保する。 */
.home-ad[hidden] { display: none !important; }
.home-ad { width: calc(100% - 40px); max-width: 240px; margin: 16px auto 20px; text-align: center; box-sizing: border-box; }
.home-ad-label { color: #94a3b8; font-size: 9px; line-height: 12px; margin-bottom: 4px; letter-spacing: .08em; }
.home-ad-content { width: 100%; min-height: 50px; }
.home-ad-preview { display: flex; align-items: center; justify-content: center; gap: 8px; width: 240px; max-width:100%; margin:0 auto; height: 50px; border: 1px solid #2b3645; background: #111923; color: #94a3b8; font-size: 10px; line-height: 1.5; box-sizing: border-box; }
.home-ad-preview::before { content: ''; width: 20px; height: 14px; border: 1px solid #3d4b60; border-radius: 2px; background: linear-gradient(145deg, transparent 50%, #26354b 50%); }
.home-ad .adsbygoogle { display: inline-block; width: 240px; height: 50px; }
.home-ad-bottom { position:fixed; left:50%; transform:translateX(-50%); bottom:calc(max(16px, env(safe-area-inset-bottom,16px)) + 82px); margin:0; z-index:190; }
body.has-home-ad:not(.is-focus-view):not(.is-in-progress-view) .main-slider-wrapper { height:calc(100dvh - 400px); min-height:88px; overflow:hidden; }
body.has-home-ad:not(.is-focus-view):not(.is-in-progress-view) .main-slides { height:100%; }
body.has-home-ad:not(.is-focus-view):not(.is-in-progress-view) .main-slide-page:first-child { height:100%; min-height:0; padding:0 16px 100px; overflow:hidden; }
body.has-home-ad:not(.is-focus-view):not(.is-in-progress-view) #scheduleListOverview { height:100%; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
body.has-home-ad .fab-group { bottom:calc(max(16px, env(safe-area-inset-bottom,16px)) + 174px); }
/* 横向きなど高さが足りない画面では下部バナーを文書の流れに戻す。 */
@media(max-height:599px) {
 .home-ad-bottom { position:static; transform:none; margin:24px auto; }
 body.has-home-ad { padding-bottom:220px; }
 body.has-home-ad:not(.is-focus-view):not(.is-in-progress-view) .main-slider-wrapper { height:180px; }
 body.has-home-ad .fab-group { bottom:88px; }
}
/* 非ホームではJavaScriptの処理前にも枠を出さない。 */
body.is-focus-view .home-ad,body.is-in-progress-view .home-ad { display: none !important; }
