
#mori-home-head .mori-weekly-tools > a[hidden],
.post_content:has(#inyou-mts-week) :is(h2.wp-block-heading, figure.wp-block-image)[hidden] { display: none !important; }
#mori-home-head .mori-weekly-tools .mori-weekly-contact { text-decoration: none; }
#mori-home-head .mori-weekly-tools .mori-weekly-email-link { color: #fff; }
#mori-home-head .mori-weekly-tools .mori-weekly-line-link { color: #07527f; }
.mori-weekly-tools .mori-weekly-contact {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 110px; min-height: 54px; gap: 6px; padding: 8px;
  border: 1px solid #1c6090; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.mori-weekly-tools .mori-weekly-contact svg { width: 21px; height: 21px; }
.mori-weekly-tools .mori-weekly-contact img { display: block; width: 25px; height: 25px; object-fit: contain; }
.mori-weekly-tools .mori-weekly-email-link {
  background-color: #00b3ea;
  background-image: linear-gradient(rgb(0 0 0 / 34%), rgb(0 0 0 / 41%));
  border-color: #007699;
  box-shadow: inset 0 1px 0 #ffffff36, 0 3px #00627e, 0 5px 10px #00627e30;
}
.mori-weekly-tools .mori-weekly-line-link {
  color: #07527f; background: #edf8fd; border-color: #8ca9bb;
  box-shadow: 0 3px #8ca9bb, 0 5px 10px #12496b24;
}
#mori-home-head .mori-weekly-tools .mori-weekly-contact:focus-visible { outline: 2px solid #08629a; outline-offset: 3px; }
.mori-weekly-tools .mori-weekly-contact:active { transform: translateY(2px); box-shadow: 0 1px #8ca9bb; }
#mori-weekly-email { margin: 12px auto; max-width: 850px; scroll-margin-top: 85px; }
#mori-weekly-email[open] { padding: 12px; border: 1px solid #d2e6f1; border-radius: 6px; }
@media (min-width: 960px) {
  #mori-home-head .tools.mori-weekly-tools { gap: 10px; }
  .mori-weekly-tools .mori-weekly-contact::after {
    content: ""; flex: 0 0 6px; height: 6px;
    border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
  }
}
@media (max-width: 959px) {
  #mori-home-head:has(.mori-weekly-tools) .brand { flex-basis: min(44vw, 176px); }
  #mori-home-head .tools.mori-weekly-tools { gap: 0; }
  #mori-home-head .mori-weekly-tools > :is(.tool, .mori-weekly-contact) {
    display: flex; flex: 0 0 52px; width: 52px; min-width: 52px; min-height: 44px;
    flex-direction: column; align-items: center; justify-content: center;
    margin: 0; padding: 0; gap: 2px; font-size: 10px; line-height: 1.15;
  }
  #mori-home-head .mori-weekly-tools > :is(.tool, .mori-weekly-contact) svg { width: 18px; height: 18px; }
  #mori-home-head .mori-weekly-tools .mori-weekly-contact {
    flex-direction: column; border: 0; box-shadow: none; background: transparent;
    color: #14475a;
  }
  .mori-weekly-tools .mori-weekly-contact img { width: 40px; height: 40px; }
  .mori-weekly-tools .mori-weekly-line-link span { display: none; }
}

/* Keep the booking masthead visible and the date row just below it. */
#body_wrap.page-id-13:has(#inyou-mts-week) {
  --mori-reserve-sticky-top: var(--swl-adminbarH, 0px);
}
#body_wrap.page-id-13:has(#inyou-mts-week) > #mori-home-head:not([hidden]) {
  position: sticky;
  top: var(--mori-reserve-sticky-top) !important;
}
#body_wrap.page-id-13 #inyou-mts-week {
  --iw-sticky-top: calc(var(--mori-reserve-sticky-top, 0px) + var(--mori-reserve-header-height, 0px));
}
#body_wrap.page-id-13 #mori-weekly-email {
  scroll-margin-top: calc(var(--mori-reserve-sticky-top, 0px) + var(--mori-reserve-header-height, 0px) + 12px);
}
@media (max-width: 600px) {
  #body_wrap.page-id-13:has(#inyou-mts-week) { --mori-reserve-sticky-top: 0px; }
}
