@charset "UTF-8";

/* CONTACT院長確認用スマートフォンUI */
.contact-reservation-buttons,
.contact-mobile-review {
  display: none;
}

.contact-main {
  display: contents;
}

.contact-legacy-banner-links {
  display: contents;
}

@media screen and (max-width: 959px) {
  body.hpb-layoutset-02#hpb-template-03-03b-03 #hpb-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "nav"
      "main"
      "aside";
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #hpb-wrapper {
    display: contents;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #hpb-title {
    grid-area: title;
    min-width: 0;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-main > .contact-mobile-review {
    display: block;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 16px auto 16px;
    padding: 10px 12px;
    box-sizing: content-box;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    background-color: #8b99d9;
    border-radius: 6px;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-mobile-review img {
    display: none;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-main > .contact-mobile-review::before {
    content: "患者さまの声はこちら";
    display: block;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-main > .contact-mobile-review::after {
    content: "（外部サイト：しんきゅうコンパス）";
    display: block;
    font-size: 12px;
    font-weight: normal;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #hpb-nav {
    grid-area: nav;
    min-width: 0;
    margin-top: 8px;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-main {
    display: block;
    grid-area: main;
    min-width: 0;
    max-width: 100%;
  }

  body.contact-page form.contact-form > p:nth-of-type(4) > input[name="e-mail"] {
    display: block;
    margin-top: 6px;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #hpb-aside {
    grid-area: aside;
    min-width: 0;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-reservation-buttons {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    gap: 6px;
    background-color: #ffffff;
    border-top: 1px solid #d9ddea;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #hpb-container {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-reservation-buttons a {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 6px 3px;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    border-radius: 5px;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-reservation-web {
    background-color: #ff8000;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-reservation-compass {
    background-color: #526bc5;
    flex-direction: column;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-reservation-compass .contact-reservation-label-main,
  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-reservation-compass .contact-reservation-label-sub {
    display: block;
    white-space: nowrap;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-reservation-phone {
    background-color: #8EC298;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-legacy-reservation {
    display: none;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-legacy-banner-links,
  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-desktop-review {
    display: none;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #pagetop {
    padding-left: 0;
    text-align: center;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #pagetop a {
    margin-right: auto;
    margin-left: auto;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > h3:nth-of-type(4) {
    margin-bottom: 0;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #hpb-headerExtra1 > font[color="#ff8000"] {
    font-size: 130% !important;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #hpb-headerExtra1 > font[color="#333333"][size="+2"] {
    display: none;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo .contact-mobile-phone-only {
    display: none !important;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo .contact-hours-flow-indent,
  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo .contact-hours-flow-break,
  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo .contact-hours-leading-break {
    display: none;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type > font[color="#8b99d9"][size="+1"] > b,
  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type > b > font[size="+1"]:not([color]),
  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type > b > font[color="#8b99d9"][size="+1"] {
    position: static;
    left: auto;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
    text-align: center;
    text-indent: 0;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type {
    margin-bottom: 4px;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:nth-of-type(2) {
    margin-top: 0;
  }
}

@media screen and (min-width: 481px) and (max-width: 959px) {
  body.contact-page form.contact-form textarea[name="お問い合わせ"] {
    box-shadow: inset 0 1px 0 #767676;
  }
}

@media screen and (max-width: 400px) {
  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-main > .contact-mobile-review {
    margin-right: -12px;
    margin-left: -12px;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-main {
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 .contact-main > p {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box;
  }
}

@media screen and (width: 960px) {
  body.hpb-layoutset-02#hpb-template-03-03b-03 #hpb-headerExtra1 > font[color="#333333"][size="+2"] {
    font-size: 0 !important;
    line-height: 0;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type > .contact-mobile-phone-only {
    display: none;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type > font[color="#8b99d9"][size="+1"],
  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type > b > font[color="#8b99d9"][size="+1"] {
    display: block;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
    text-align: center;
  }

  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type > font[color="#8b99d9"][size="+1"] .contact-hours-flow-indent,
  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type > .contact-hours-flow-indent:has(+ b > font[color="#8b99d9"][size="+1"]),
  body.hpb-layoutset-02#hpb-template-03-03b-03 #shopinfo > p:first-of-type > b > font[color="#8b99d9"][size="+1"] > .contact-hours-flow-indent {
    display: none;
  }
}
