/* ========================================
   FOOTER
   ======================================== */
/* footer.png（1920px）基準。SNS・ロゴは支給SVG。リンク先URL支給待ち。 */
.footer {
  padding-block: 10rem 3.5rem;
  background: #172c57;
  color: #fff;
}

.footer__inner {
  width: 92.3076923077%;
  max-width: 120rem;
  margin-inline: auto;
}

.footer__contact {
  text-align: center;
}
.footer__heading {
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1.35;
}
.footer__intro {
  margin-top: 3rem;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.8;
}
.footer__buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}
.footer__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 35.6rem;
  min-height: 7.4rem;
  padding: 1.4rem 2rem;
  border-radius: 100vmax;
  color: #fff;
  text-decoration: none;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.5;
}
.footer__button--line {
  background: #06c044;
}
.footer__button--line img {
  width: 5.1rem;
}
.footer__button--phone {
  background: #0281cd;
}
.footer__button--phone img {
  width: 3.2rem;
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 2.8rem;
  list-style: none;
  margin: 6rem 0 0;
  padding: 0;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
}
.footer__social img {
  width: auto;
  max-width: 4rem;
  height: auto;
  max-height: 4rem;
}
.footer a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
@media (hover: hover) {
  .footer a:hover {
    opacity: 0.75;
  }
}
.footer a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 59fr) minmax(0, 48.6fr);
  gap: 12.4rem;
  margin-top: 7rem;
  align-items: start;
}
.footer__logo {
  width: 31.4696rem;
}
.footer__card {
  margin-top: 1.8rem;
  padding: 3rem 3.3rem;
  border-radius: 3rem;
  background: #fff;
  color: #3f3f3f;
}
.footer__schedule {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1.5rem;
  line-height: 1.6;
}
.footer__schedule th,
.footer__schedule td {
  height: 4.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e4e4e4;
  text-align: center;
  font-weight: 400;
  white-space: nowrap;
}
.footer__schedule th:first-child {
  width: 22.5%;
}
.footer__schedule thead th:first-child {
  text-align: left;
}
.footer__schedule thead th:last-child {
  width: 12%;
}
.footer__schedule tbody th {
  background: #e5f3fa;
  font-family: "Roboto", sans-serif;
}
.footer__schedule td {
  color: #e4e4e4;
}
.footer__open {
  color: #0281cd;
}
.footer__clock {
  display: inline-block;
  position: relative;
  width: 1.8rem;
  height: 1.8rem;
  margin-right: 0.7rem;
  border: 1px solid #0281cd;
  border-radius: 50%;
  vertical-align: -0.3rem;
}
.footer__clock::after {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0.7rem;
  width: 0.5rem;
  height: 0.6rem;
  border-left: 1px solid #0281cd;
  border-bottom: 1px solid #0281cd;
}
.footer__location {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 1.4rem;
  color: #7e7e7e;
  font-size: 1.4rem;
  line-height: 1.8;
}
.footer__location a {
  flex-shrink: 0;
  padding-inline: 1.4rem;
  border: 1px solid #0281cd;
  border-radius: 100vmax;
  color: #0281cd;
  font-size: 1.2rem;
  line-height: 1.5;
}
.footer address {
  font-style: normal;
}
.footer__note {
  margin-top: 1.6rem;
  color: #7e7e7e;
  font-size: 1.5rem;
  line-height: 1.8;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.footer__nav-heading {
  margin: 0 0 1.5rem;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid rgb(255 255 255 / 30%);
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.5;
}
.footer__nav ul {
  display: grid;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.6;
}
.footer__nav li > ul {
  margin-top: 1.2rem;
}
.footer__nav li > ul a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: fit-content;
}
.footer__nav li > ul a::before {
  content: "";
  flex: 0 0 0.7em;
  height: 1px;
  background: currentColor;
}
.footer__bottom {
  margin-top: 5.4rem;
  padding-top: 3.4rem;
  border-top: 1px solid rgb(255 255 255 / 30%);
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.8;
}

@media (min-width: 768px) and (max-width: 1056.25px) {
  .footer__main {
    gap: 4rem;
    grid-template-columns: minmax(0, 59fr) minmax(0, 48.6fr);
  }
  .footer__card {
    padding-inline: 2rem;
  }
  .footer__location {
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
  }
}

@media (max-width: 767px) {
  .footer {
    padding-block: 8rem 3rem;
  }
  .footer__heading {
    font-size: clamp(2.4rem, calc(0.4867346939rem + 5.1020408163vw), 4.4rem);
    line-height: 1.6;
    letter-spacing: -0.03em;
  }
  .footer__intro {
    margin: 2rem auto 0;
    font-size: 1.4rem;
  }
  .footer__buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
  }
  .footer__button {
    width: 100%;
    max-width: 50rem;
    min-height: 6.4rem;
    font-size: 2.2rem;
  }
  .footer__button--line img {
    width: 4.2rem;
  }
  .footer__button--phone img {
    width: 2.8rem;
  }
  .footer__social {
    gap: 2rem;
    margin-top: 3rem;
  }
  .footer__social img {
    max-width: 3.2rem;
    max-height: 3.2rem;
  }
  .footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
    margin-top: 4rem;
  }
  .footer__clinic {
    width: 100%;
    max-width: 59rem;
    margin-inline: auto;
  }
  .footer__logo {
    width: 28rem;
    max-width: 100%;
  }
  .footer__card {
    margin-top: 1.8rem;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
  }
  .footer__schedule {
    font-size: 1.2rem;
  }
  .footer__schedule th:first-child {
    width: 28%;
  }
  .footer__schedule th,
  .footer__schedule td {
    height: 4rem;
  }
  .footer__clock {
    width: 1.4rem;
    height: 1.4rem;
    margin-right: 0.4rem;
  }
  .footer__clock::after {
    top: 0.2rem;
    left: 0.5rem;
    width: 0.4rem;
    height: 0.5rem;
  }
  .footer__location {
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 1.4rem;
  }
  .footer__note {
    font-size: 1.4rem;
    line-height: 1.8;
  }
  .footer__nav {
    gap: 1rem;
  }
  .footer__nav-heading {
    font-size: 1.6rem;
    padding-bottom: 1.2rem;
  }
  .footer__nav ul {
    font-size: 1.4rem;
  }
  .footer__bottom {
    margin-top: 4rem;
    padding-top: 2.5rem;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer a[href] {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer a {
    transition: none;
  }
}

/* ========================================
   COPYRIGHT
   ======================================== */
.copyright {
  display: grid;
  place-items: center;
  min-height: 4.6rem;
  padding: 1.2rem 3.8461538462%;
  background: #fff;
  color: #3f3f3f;
  text-align: center;
}

.copyright small {
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ========================================
   SP FLOATING CTA
   ======================================== */
.sp-floating-cta {
  display: none;
}

@media (max-width: 767px) {
  /* 最下部のcopyrightが固定CTAに隠れないよう余白を確保する。 */
  body {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }

  .sp-floating-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    opacity: 0;
    visibility: hidden;
    transform: translateY(1.2rem);
    transition:
      opacity 0.3s,
      transform 0.3s,
      visibility 0.3s;
  }

  .sp-floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .sp-floating-cta__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: calc(4rem + env(safe-area-inset-bottom, 0px));
    padding: 0.8rem 0.4rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0.8rem 0.8rem 0 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s;
  }

  .sp-floating-cta__link--phone {
    background: #0281cd;
  }
  .sp-floating-cta__link--line {
    background: #06c044;
  }
  .sp-floating-cta__link--reservation {
    background: #172c57;
  }
  .sp-floating-cta__link img {
    flex: 0 0 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
  }
  .sp-floating-cta__link--reservation img {
    filter: brightness(0) invert(1);
  }
  .sp-floating-cta__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }
  .sp-floating-cta__link:active {
    filter: brightness(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-floating-cta,
  .sp-floating-cta__link {
    transition: none;
  }
}

/* XD照合（PC） */
@media (min-width: 768px) {
  .footer__intro {
    margin-top: 2.2rem;
    font-weight: 600;
  }
  .footer {
    padding-bottom: 1.5rem;
  }
  .footer__main {
    margin-top: 6.4rem;
  }
  .footer__nav-heading {
    font-weight: 500;
  }
  .footer__schedule thead th {
    font-weight: 500;
  }
  .footer__schedule thead th:last-child {
    font-size: 1.4rem;
  }
  .footer__schedule tbody th {
    font-family: "Noto Sans JP", sans-serif;
  }
  .footer__location,
  .footer__bottom {
    font-size: 1.5rem;
  }
}
