/* 下地第２脳神経外科 B — WordPress runtime only. Not part of the SHIMOJI2 B Static Final.
   Logged-in viewers get the WordPress admin bar (fixed, 32px; 46px at ≤782px; it scrolls away at ≤600px).
   Keep the sticky page index, the open-menu header and its drawer below it. body.admin-bar is absent for
   visitors, so the Static Final rendering is unchanged. */
@media screen and (min-width: 783px) {
  html:has(> body.admin-bar) { scroll-padding-top: 116px; }
  body.admin-bar .pnav { top: 32px; }
  body.admin-bar .hd.is-open { top: 32px; }
  body.admin-bar .drawer { top: calc(var(--hd-h) + 32px); }
}
@media screen and (min-width: 768px) and (max-width: 782px) {
  html:has(> body.admin-bar) { scroll-padding-top: 130px; }
  body.admin-bar .pnav { top: 46px; }
}
@media screen and (min-width: 601px) and (max-width: 782px) {
  body.admin-bar .hd.is-open { top: 46px; }
  body.admin-bar .drawer { top: calc(var(--hd-h) + 46px); }
}

/* D1: retain the existing menu/JS boundary; allocate room before the phone overflows. */
@media (min-width:1024px) and (max-width:1199px){
 .hd__in{padding-inline:12px}.hd__brand img{width:180px}
 .hd__nav a{padding-inline:5px}.hd__search{margin-inline:4px 8px}
 .hd__tel{padding-inline:12px;gap:8px}
}
