/* Reproduce the original background and image alignment in standards mode. */
:where(.clinic-page) {
  margin-top: 5px;
  background-image: url("../../image/share/back.jpg");
}

.mobile-home,
.clinic-notice,
.clinic-http .notice-local {
  display: none;
}

.clinic-http .clinic-notice {
  display: block;
}

@media (max-width: 900px) {
  .site-frame-home {
    display: none;
  }

  body:has(.mobile-home) {
    margin: 0;
    background: #bff7eb url("../../image/share/bg.jpg");
  }

  .mobile-home {
    display: block;
    color: #183637;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .mobile-home-header {
    background: url("../../image/share/bg.jpg");
    border-bottom: 3px solid #00778f;
    padding: 8px clamp(8px, 3vw, 24px) 12px;
  }

  .mobile-brand {
    display: grid;
    grid-template-columns: minmax(0, 264fr) minmax(0, 456fr);
    max-width: 720px;
    margin: 0 auto 8px;
  }

  .mobile-brand img {
    width: 100%;
  }

  .mobile-image-heading img {
    margin-inline: 0;
  }

  .mobile-service-links[data-image-menu] a {
    padding: 2px 4px;
    background: transparent;
  }

  .mobile-home-header nav,
  .mobile-service-links {
    display: grid;
    gap: 8px;
  }

  .mobile-home-header nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-home-header a,
  .mobile-service-links a,
  .mobile-call {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 8px;
    box-sizing: border-box;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-home-header a {
    justify-content: center;
    color: #fff;
    background: #00778f;
    text-align: center;
  }

  .mobile-home main {
    max-width: 640px;
    margin: auto;
    padding: 12px;
  }

  .mobile-home section {
    margin: 0 0 12px;
    padding: clamp(12px, 4vw, 24px);
    background: #fff;
    border: 1px solid #aadbd4;
    border-radius: 12px;
  }

  .mobile-home h2 {
    margin: 0 0 12px;
    color: #006879;
  }

  .mobile-home p {
    margin: 10px 0;
  }

  .mobile-hours-grid {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    text-align: center;
  }

  .mobile-hours-grid th,
  .mobile-hours-grid td {
    padding: 8px 2px;
    border: 1px solid #aadbd4;
  }

  .mobile-hours-grid thead {
    background: #006879;
    color: #fff;
  }

  .mobile-hours-grid th:first-child {
    width: 36%;
  }

  .mobile-hours-grid tbody th {
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #006879;
    background: #f4faf9;
  }

  .mobile-hours-note {
    line-height: 1.5;
  }

  .mobile-hours-grid .hours-open {
    background: #e4fbf5;
    color: #006879;
    font-weight: 700;
  }

  .mobile-hours-grid .hours-closed {
    background: #fff4e8;
    color: #6a3512;
  }

  .mobile-hours-note + .mobile-call {
    margin-top: 12px;
  }

  .mobile-call,
  .mobile-service-links a {
    color: #006879;
    background: #e4fbf5;
  }

  .mobile-call {
    justify-content: center;
  }

  .mobile-service-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-home img {
    display: block;
    margin: auto;
    max-width: 100%;
    height: auto;
  }

  .mobile-home .clinic-notice {
    width: 100%;
    height: 220px;
    border: 0;
  }
}

@media (max-width: 900px) {
  .mobile-home .mobile-call {
    background: #006879;
    color: #fff;
    text-decoration: none;
    min-height: 48px;
  }

  .mobile-home .mobile-service-links a {
    min-height: 48px;
    line-height: 1.45;
  }
}

@media (max-width: 360px) {
  .mobile-home main { padding: 8px; }
  .mobile-home section { padding: 10px; }
  .mobile-home .mobile-service-links:not([data-image-menu]) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  #mobile-hours .mobile-image-heading img {
    margin-inline: auto;
    clip-path: inset(2px 14px 4px round 14px);
  }
}

.mobile-hours-grid td > span,
.schedule-table .schedule-symbol {
  display: inline-block;
  font-size: clamp(22px, 5.5vw, 26px);
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 0.35px currentColor;
}

.schedule-table .schedule-symbol {
  color: #00596b;
}

.site-frame-home .clinic-notice {
  width: 100%;
  min-height: 180px;
  border: 0;
}

.mobile-clinic-footer {
  padding: 16px 12px;
  border-top: 3px solid #00778f;
  background: #bff7eb;
  color: #00596b;
  text-align: center;
}

.mobile-clinic-footer address {
  font-style: normal;
}

.mobile-home .mobile-clinic-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #00596b;
  font-weight: 700;
}

