.home-notice {
    width:min(870px,calc(100% - 26px)); max-width:none; max-height:calc(100dvh - 28px);
    padding:0; border:1px solid #dfe3df; border-radius:14px; overflow:auto;
    background:var(--paper,#fff); color:var(--ink,#17191b);
    box-shadow:0 22px 65px #11171948;
}
.home-notice:has(.home-notice-content:not(.has-media)) { width:min(580px,calc(100% - 26px)); }
.home-notice[open] { overscroll-behavior:contain; }
.home-notice-bar {
    display:flex; justify-content:space-between; align-items:center; gap:10px;
    min-height:57px; padding:7px 13px 7px 18px; background:var(--paper,#fff);
    border-bottom:1px solid #e2e6e0;
}
.home-notice > .home-notice-bar { position:sticky; top:0; z-index:1; }
.home-notice-kind {
    display:inline-flex; align-items:center; min-height:27px; padding:4px 11px;
    border:1px solid #e6d58d; border-radius:30px; background:#fff4bd; color:#433600;
    font-size:11px; font-weight:800;
}
.home-notice-close {
    display:grid; place-items:center; width:42px; height:42px; flex:none;
    border:1px solid #e5e9e4; border-radius:8px; background:#f7f8f5; color:#17191b;
}
button.home-notice-close:hover { background:#fff0a8; }
.home-notice-close .icon { width:17px; height:17px; }
.home-notice-content.has-media {
    display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
    align-items:stretch;
}
.home-notice-media {
    display:grid; place-items:center; min-width:0;
    height:clamp(250px,47dvh,440px); background:#eff1ef;
}
.home-notice-media:has(video) { background:#1a1d1c; }
.home-notice-media img, .home-notice-media video {
    display:block; width:100%; height:100%; max-height:100%; min-height:0; object-fit:contain;
}
.home-notice-copy { align-self:center; min-width:0; padding:clamp(18px,4vw,40px); overflow-wrap:anywhere; }
.home-notice-copy h2, .home-notice-copy h4 {
    margin:0; font-family:var(--heading); font-size:clamp(32px,5.2vw,57px); line-height:.97;
}
.home-notice-copy p { margin:15px 0 0; color:#4b5752; font-size:14px; line-height:1.65; }
.home-notice-copy .button { margin-top:20px; white-space:normal; max-width:100%; min-height:44px; }
.home-notice-copy .button .icon { flex:none; }

@media (max-width:620px) {
    .home-notice-content.has-media { grid-template-columns:minmax(0,1fr); }
    .home-notice-media { height:clamp(145px,35dvh,335px); }
    .home-notice-copy .button { width:100%; }
}
@media (prefers-reduced-motion:reduce) { .home-notice[open] { animation:none; } }
