/* Shonan site foundation 1.3.1 — shared non-home presentation. */

#access-hours .schedule-table thead small,
#access-hours .schedule-time-note {
  display: block;
  margin-top: 4px;
  color: #9b4938;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

#access-hours .schedule-table thead small {
  color: rgba(24, 53, 77, .72);
  font-weight: 600;
}

.shonan-foundation-enabled .page-index__list a {
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.shonan-foundation-enabled .page-index__list a[aria-current="location"] {
  color: #18354d;
  background: #e7f0ec;
  box-shadow: inset 0 -2px 0 #a8523b;
}

.shonan-foundation-enabled .page-index-target,
.shonan-foundation-enabled [id^="clinic-guide-"] {
  scroll-margin-top: 132px;
}

/* Keep all useful header destinations visible from portrait tablet upward. */
@media (min-width: 768px) {
  .shonan-foundation-enabled.nav-is-open { overflow: auto; }
  .shonan-foundation-enabled .site-header__inner { gap: clamp(10px, .9vw, 15px); }
  .shonan-foundation-enabled .site-branding {
    flex: 0 0 210px;
    min-width: 0;
    margin-right: clamp(20px, 2vw, 30px);
  }
  .shonan-foundation-enabled .site-branding__logo-image,
  .shonan-foundation-enabled .custom-logo {
    width: auto;
    max-width: 210px;
    max-height: 48px;
    object-fit: contain;
  }
  .shonan-foundation-enabled .nav-toggle,
  .shonan-foundation-enabled .nav-backdrop { display: none !important; }
  .shonan-foundation-enabled .primary-navigation,
  .shonan-foundation-enabled .primary-navigation.is-open {
    position: static;
    z-index: auto;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    max-height: none;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1vw, 16px);
    overflow: visible;
    color: #18354d;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    overscroll-behavior: auto;
  }
  .shonan-foundation-enabled .primary-navigation::before { display: none; }
  .shonan-foundation-enabled .primary-navigation__list {
    display: flex;
    flex-direction: row;
    gap: clamp(8px, .9vw, 14px);
  }
  .shonan-foundation-enabled .primary-navigation__list > li,
  .shonan-foundation-enabled .primary-navigation__list > li:first-child { border: 0; }
  .shonan-foundation-enabled .primary-navigation__list a {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    padding: 0;
    align-items: center;
    color: #18354d;
    border-radius: 0;
    font-family: inherit;
    font-size: clamp(11px, .85vw, 13px);
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
  }
  .shonan-foundation-enabled .primary-navigation__list a::before { display: none; }
  .shonan-foundation-enabled .primary-navigation__list .current-menu-item > a,
  .shonan-foundation-enabled .primary-navigation__list .current-menu-ancestor > a {
    color: #18354d;
    background: transparent;
    text-decoration: underline;
    text-decoration-color: #a8523b;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
  }
  .shonan-foundation-enabled .primary-navigation__priority {
    position: static;
    display: block;
    align-self: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .shonan-foundation-enabled .primary-navigation__priority > p { display: none; }
  .shonan-foundation-enabled .primary-navigation__priority > div {
    display: flex;
    gap: 4px;
    padding-left: 8px;
    border-left: 1px solid rgba(24, 53, 77, .15);
  }
  .shonan-foundation-enabled .primary-navigation__priority a,
  .shonan-foundation-enabled .primary-navigation__priority a:nth-child(n + 4) {
    display: inline-flex;
    min-height: 40px;
    padding: 5px clamp(9px, .75vw, 12px);
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #18354d;
    border: 0;
    border-radius: 999px;
    background: #e9f0ed;
    font-size: clamp(10px, .74vw, 11px);
    white-space: nowrap;
  }
  .shonan-foundation-enabled .primary-navigation__priority a:hover,
  .shonan-foundation-enabled .primary-navigation__priority a:focus-visible { background: #dce9e4; }
  .shonan-foundation-enabled .header-reservation {
    display: inline-flex;
    min-width: clamp(150px, 12vw, 170px);
    min-height: 44px;
    margin-left: 0;
    padding: 8px 15px;
    align-items: center;
    justify-content: center;
    border-color: #2f6658;
    border-radius: 999px;
    color: #fff;
    background: #2f6658;
    font-size: clamp(11px, .8vw, 12px);
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .shonan-foundation-enabled .site-header__inner {
    display: grid;
    width: calc(100% - 24px);
    min-height: 118px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px 46px;
    column-gap: 18px;
    row-gap: 0;
  }
  .shonan-foundation-enabled .site-branding {
    grid-column: 1;
    grid-row: 1;
    flex: none;
    margin: 0;
  }
  .shonan-foundation-enabled .site-branding__logo-image,
  .shonan-foundation-enabled .custom-logo { max-width: 190px; max-height: 44px; }
  .shonan-foundation-enabled .header-reservation {
    grid-column: 2;
    grid-row: 1;
    min-width: 148px;
    min-height: 40px;
    padding: 7px 13px;
    font-size: 10px;
  }
  .shonan-foundation-enabled .primary-navigation,
  .shonan-foundation-enabled .primary-navigation.is-open {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    align-self: stretch;
    gap: 12px;
    border-top: 1px solid rgba(24, 53, 77, .12);
  }
  .shonan-foundation-enabled .primary-navigation__list {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: clamp(13px, 2.3vw, 22px);
  }
  .shonan-foundation-enabled .primary-navigation__list a {
    min-height: 45px;
    font-size: clamp(10px, 1.3vw, 11px);
  }
  .shonan-foundation-enabled .primary-navigation__priority { flex: 0 0 auto; }
  .shonan-foundation-enabled .primary-navigation__priority > div { gap: 3px; padding-left: 10px; }
  .shonan-foundation-enabled .primary-navigation__priority a,
  .shonan-foundation-enabled .primary-navigation__priority a:nth-child(n + 4) {
    min-height: 34px;
    padding: 4px clamp(7px, 1.25vw, 10px);
    font-size: 9px;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .shonan-foundation-enabled .site-header__inner { width: calc(100% - 24px); gap: 6px; }
  .shonan-foundation-enabled .site-branding {
    flex-basis: clamp(166px, 17vw, 190px);
    margin-right: clamp(8px, 1vw, 12px);
  }
  .shonan-foundation-enabled .site-branding__logo-image,
  .shonan-foundation-enabled .custom-logo { max-width: clamp(166px, 17vw, 190px); max-height: 44px; }
  .shonan-foundation-enabled .primary-navigation,
  .shonan-foundation-enabled .primary-navigation.is-open { gap: 5px; }
  .shonan-foundation-enabled .primary-navigation__list { gap: clamp(5px, .65vw, 8px); }
  .shonan-foundation-enabled .primary-navigation__list a { font-size: clamp(9px, .92vw, 11px); }
  .shonan-foundation-enabled .primary-navigation__priority > div { gap: 2px; padding-left: 5px; }
  .shonan-foundation-enabled .primary-navigation__priority a,
  .shonan-foundation-enabled .primary-navigation__priority a:nth-child(n + 4) {
    min-height: 38px;
    padding: 4px clamp(5px, .65vw, 8px);
    font-size: 9px;
  }
  .shonan-foundation-enabled .header-reservation {
    min-width: clamp(126px, 13vw, 148px);
    padding: 7px 10px;
    font-size: 10px;
  }
}

/* Re-skin imported article callouts without rewriting clinical copy. */
.shonan-foundation-enabled.single-post .entry-content div[style*="background:#f0f9ff"],
.shonan-foundation-enabled.single-post .entry-content div[style*="background: #f0f9ff"] {
  color: #18354d !important;
  border: 1px solid #bfd3ca !important;
  border-radius: 14px !important;
  background: #edf5f2 !important;
  box-shadow: 0 14px 34px rgba(24, 53, 77, .06) !important;
}
.shonan-foundation-enabled.single-post .entry-content div[style*="background:#ffffff"],
.shonan-foundation-enabled.single-post .entry-content div[style*="background: #ffffff"] {
  border: 1px solid #d7e0dc !important;
  border-radius: 14px !important;
  background: #fbfaf6 !important;
  box-shadow: 0 12px 28px rgba(24, 53, 77, .05) !important;
}
.shonan-foundation-enabled.single-post .entry-content div[style*="background:#f8f9fa"],
.shonan-foundation-enabled.single-post .entry-content div[style*="background: #f8f9fa"] {
  border: 0 !important;
  border-left: 3px solid #2f6658 !important;
  border-radius: 0 12px 12px 0 !important;
  background: #f2f5f1 !important;
}
.shonan-foundation-enabled.single-post .entry-content div[style*="background:#fff7ed"],
.shonan-foundation-enabled.single-post .entry-content div[style*="background: #fff7ed"] {
  color: #473b28 !important;
  border: 1px solid #dec896 !important;
  border-radius: 14px !important;
  background: #f6f0df !important;
}
.shonan-foundation-enabled.single-post .entry-content div[style*="background:#fef2f2"],
.shonan-foundation-enabled.single-post .entry-content div[style*="background: #fef2f2"] {
  border-color: #d8a99b !important;
  background: #f8efeb !important;
}
.shonan-foundation-enabled.single-post .entry-content [style*="color:#64748b"],
.shonan-foundation-enabled.single-post .entry-content [style*="color: #64748b"] { color: #607078 !important; }

/* Replace the broad site-wide reservation panel with a focused article CTA. */
.shonan-foundation-enabled.single-post .reservation-panel { display: none; }

.shonan-foundation-enabled.single-post .shonan-blog-cta {
  position: relative;
  width: min(1120px, calc(100vw - 40px));
  margin: clamp(56px, 8vw, 96px) 0 24px 50%;
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.18fr);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  background: #18354d;
  box-shadow: 0 28px 70px rgba(24, 53, 77, .2);
  overflow: hidden;
  transform: translateX(-50%);
}

.shonan-foundation-enabled.single-post .shonan-blog-cta::after {
  position: absolute;
  right: -140px;
  bottom: -190px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.shonan-blog-cta__media { position: relative; min-height: 100%; overflow: hidden; }
.shonan-blog-cta__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(10, 32, 47, .78));
  content: "";
  pointer-events: none;
}
.shonan-blog-cta__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 53% center;
}
.shonan-blog-cta__media p {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 24px;
  left: 26px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.shonan-blog-cta__media p span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  font-family: ui-serif, Georgia, serif;
  font-size: 11px;
}

.shonan-blog-cta__content {
  position: relative;
  z-index: 1;
  padding: clamp(38px, 5.4vw, 68px);
  align-self: center;
}
.shonan-blog-cta__eyebrow {
  margin: 0 0 18px !important;
  color: #e7a58f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
}
.shonan-foundation-enabled.single-post .entry-content .shonan-blog-cta h2 {
  margin: 0 0 22px;
  padding: 0;
  color: #fff;
  border: 0;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(28px, 3.2vw, 43px);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: .025em;
}
.shonan-blog-cta__lead {
  max-width: 610px;
  margin: 0 0 28px !important;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 2;
}
.shonan-blog-cta__assurance {
  margin: 0 0 30px !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  list-style: none !important;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 15px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.shonan-blog-cta__assurance li {
  margin: 0 !important;
  padding: 16px 14px;
  display: grid;
  gap: 5px;
  background: rgba(24, 53, 77, .8);
  text-align: center;
}
.shonan-blog-cta__assurance li::marker { content: ""; }
.shonan-blog-cta__assurance strong { color: #f0b29e; font-size: 14px; letter-spacing: .06em; }
.shonan-blog-cta__assurance span { color: rgba(255, 255, 255, .72); font-size: 10px; line-height: 1.55; }

.shonan-blog-cta__actions { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.shonan-blog-cta__actions a { text-decoration: none !important; }
.shonan-blog-cta__primary,
.shonan-blog-cta__phone {
  min-height: 62px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.shonan-blog-cta__primary {
  gap: 14px;
  color: #fff !important;
  background: #bc624c;
  box-shadow: 0 12px 30px rgba(8, 25, 36, .22);
  font-size: 13px;
  font-weight: 800;
}
.shonan-blog-cta__primary span { font-size: 20px; transition: transform .2s ease; }
.shonan-blog-cta__phone {
  flex-direction: column;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .42);
  font-size: 10px;
  line-height: 1.3;
}
.shonan-blog-cta__phone strong { font-size: 14px; letter-spacing: .03em; }
.shonan-blog-cta__primary:hover,
.shonan-blog-cta__primary:focus-visible { background: #a9513d; transform: translateY(-2px); }
.shonan-blog-cta__primary:hover span,
.shonan-blog-cta__primary:focus-visible span { transform: translateX(4px); }
.shonan-blog-cta__phone:hover,
.shonan-blog-cta__phone:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.shonan-blog-cta__note {
  margin: 16px 0 0 !important;
  color: rgba(255, 255, 255, .56);
  font-size: 10px;
  line-height: 1.75;
}
.shonan-blog-cta__note a { margin-left: 8px; color: rgba(255, 255, 255, .84) !important; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .shonan-foundation-enabled.single-post .shonan-blog-cta { grid-template-columns: 1fr; }
  .shonan-blog-cta__media img { min-height: 330px; max-height: 430px; }
  .shonan-blog-cta__content { padding: clamp(30px, 7vw, 48px); }
}

@media (max-width: 560px) {
  .shonan-foundation-enabled.single-post .shonan-blog-cta {
    width: calc(100vw - 28px);
    margin-top: 52px;
    border-radius: 22px;
  }
  .shonan-blog-cta__media img { min-height: 245px; max-height: 300px; }
  .shonan-blog-cta__media p { right: 18px; bottom: 16px; left: 18px; font-size: 10px; }
  .shonan-blog-cta__content { padding: 28px 22px 30px; }
  .shonan-foundation-enabled.single-post .entry-content .shonan-blog-cta h2 { font-size: clamp(24px, 8vw, 31px); }
  .shonan-blog-cta__lead { font-size: 13px; line-height: 1.9; }
  .shonan-blog-cta__assurance { grid-template-columns: 1fr; }
  .shonan-blog-cta__assurance li { grid-template-columns: 56px 1fr; align-items: center; text-align: left; }
  .shonan-blog-cta__actions { grid-template-columns: 1fr; }
  .shonan-blog-cta__primary,
  .shonan-blog-cta__phone { min-height: 58px; }
  .shonan-blog-cta__note { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .shonan-foundation-enabled .page-index__list a { scroll-behavior: auto; transition: none; }
  .shonan-blog-cta__primary,
  .shonan-blog-cta__phone,
  .shonan-blog-cta__primary span { transition: none; }
}
