@charset "utf-8";
/* ==================================================
   FOOTER / Access
   ================================================== */
.footer {
  width: 100%;
  background: #FDFCF8;
  color: #404040;
  font-family: "Noto Sans JP", sans-serif;
}
.footer * { box-sizing: border-box; }
.footer__inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 110px;
}
.footer-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 390px;
  background: #fff;
}
.footer-access__map { position: relative; min-height: 390px; overflow: hidden; background: #f0f0f0; }
.footer-access__map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.footer-access__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; padding: 28px 24px 22px; }
.footer-access__info > :not(.footer-access__address):not(.footer-access__more) { grid-column: 1 / -1; }
.footer-access__info::after { content: ""; grid-column: 1 / -1; height: 1px; margin-top: 4px; background: #C5B367; }
.footer-access__logo { display: block; width: min(100%, 295px); margin: 0 auto 24px; }
.footer-access__logo img { display: block; width: 100%; height: auto; }
.footer-access__heading { margin: 0 0 7px; color: #A78F18; font-size: 12px; font-weight: 500; }
.footer-access__text { margin: 0; font-size: 12px; line-height: 1.65; }
.footer-hours { width: 100%; margin: 12px 0 14px; border-collapse: collapse; table-layout: fixed; font-size: 12px; text-align: center; }
.footer-hours th, .footer-hours td { padding: 7px 2px; border: 1px solid #A78F18; font-weight: 400; }
.footer-hours thead th { background: #A78F18; color: #fff; }
.footer-hours thead th:first-child { width: 22%; font-size: 12px; }
.footer-hours tbody th { white-space: nowrap; font-size: 12px; }
.footer-hours tbody td { color: #A78F18; }
.footer-access__notes { margin-top: 2px; }
.footer-access__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.footer-access__address { grid-column: 1; align-self: end; min-width: 0; margin: 14px 0 0; font-size: 12px; line-height: 1.6; }
.footer-access__more { grid-column: 2; display: inline-flex; align-self: end; align-items: center; gap: 8px; margin: 14px 0 0; padding: 0; color: #404040; font-size: 12px; white-space: nowrap; text-decoration: none; }
.footer-access__more p { margin: 0; }
.footer-access__more::after { content: "›"; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #A78F18; color: #fff; font: 14px/1 Arial, sans-serif; }
.footer-access__more img { display: none; }
.footer-access__more:hover { color: #A78F18; }
@media (max-width: 767px) {
  .footer__inner { width: min(520px, calc(100% - 32px)); padding: 30px 0 72px; }
  .footer-access { grid-template-columns: 1fr; }
  .footer-access__map { min-height: 300px; }
  .footer-access__info { padding: 28px 20px 24px; }
  .footer-access__logo { margin-bottom: 22px; }
  .footer-hours { font-size: 12px; }
  .footer-hours th, .footer-hours td { padding: 7px 1px; }
}
/* ==================================================
   FOOTER / Reservation
   ================================================== */
.footer-reservation {
  width: 100%;
  padding: 0 20px 40px;
  background: linear-gradient(135deg, #F2E6EA 0%, #F8F3E7 50%, #E5EAF9 100%) center bottom / 100% calc(100% - 28px) no-repeat;
  text-align: center;
}
.footer-reservation__inner { width: min(760px, 100%); margin: 0 auto; }
.footer-reservation__title { margin: 0; color: #A78F18; font-family: "Playfair Display", Georgia, serif; font-size: clamp(40px, 5vw, 56px); font-weight: 400; line-height: 1.1; }
.footer-reservation__subtitle { margin: 3px 0 14px; color: #A78F18; font-size: 14px; }
.footer-reservation__hours { margin: 0 0 25px; font-size: 12px; line-height: 1.6; }
.footer-reservation__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-reservation__button { display: flex; align-items: center; min-height: 72px; gap: 14px; padding: 12px 20px; border-radius: 10px; background: #fff; color: #404040; font-family: "Shippori Mincho", serif; font-size: clamp(15px, 1.7vw, 20px); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.footer-reservation__button p{ color: #404040; font-family: "Shippori Mincho", serif; font-size: clamp(15px, 1.7vw, 20px); text-decoration: none; }
.footer-reservation__button:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgb(64 64 64 / 10%); }
.footer-reservation__icon { display: block; flex: 0 0 auto; width: 30px; height: 30px; object-fit: contain; }
.footer-reservation__arrow { display: grid; flex: 0 0 auto; place-items: center; width: 16px; height: 16px; margin-left: auto; color: #A78F18; }
.footer-reservation__arrow::before { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.footer-reservation__button:first-child .footer-reservation__arrow { color: #319A2E; }
@media (max-width: 767px) {
  .footer-reservation { padding: 0 16px 52px; background-size: 100% calc(100% - 22px); }
  .footer-reservation__buttons { grid-template-columns: 1fr; gap: 14px; width: min(420px, 100%); margin: 0 auto; }
  .footer-reservation__button { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-reservation__button { transition: none; }
}
/* ==================================================
   FOOTER / Site links and copyright
   ================================================== */
.footer-main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 16px; }
.footer-main__grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 42px; }
.footer-main__brand > a > img { display: block; width: min(100%, 150px); height: auto; }
.footer-main__contact { margin-top: 13px; font-size: 12px; line-height: 1.7; }
.footer-main__contact > div { display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin: 5px 0; text-align: left; }
.footer-main__contact p { margin: 0; }
.footer-main__contact img { display: block; flex: 0 0 auto; width: 12px; height: 12px; margin: 0; object-fit: contain; }
.footer-main__contact > div:has(> a[href^="tel:"]) > img { width: 21px; height: 21px; }
.footer-main__contact a { color: inherit; text-decoration: none; }
.footer-main__contact a[href^="tel:"] { font-family: "Playfair Display", "Shippori Mincho", serif; font-size: 16px; line-height: 1.25; }
.footer-main__links { display: grid; grid-template-columns: 100px 105px minmax(0, 1fr); gap: 20px; }
.footer-main__menu, .footer-main__medical-list { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-main__menu a, .footer-main__medical-list a { display: inline-block; padding: 2px; color: #A78F18 !important; font-size: 12px; line-height: 1.4; text-decoration: none; }
.footer-main__menu a p, .footer-main__medical-list a p { margin: 0; color: inherit !important; }
.footer-main__menu a:hover, .footer-main__medical-list a:hover { text-decoration: underline; }
.footer-main__medical-title { margin: 0 0 12px; color: #A78F18; font-size: 12px; font-weight: 400; }
.footer-main__medical-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, 1.8fr) minmax(0, .8fr); gap: 18px; }
.footer-main__medical-list { gap: 4px; }
.footer-main__medical-list a { max-width: 100%; color: #404040 !important; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.footer-main__medical-label { max-width: 100%; margin: 0 0 2px; color: #A78F18; font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.footer-main__copyright { margin: 85px 0 0; font-size: 12px; text-align: center; }
@media (max-width: 900px) {
  .footer-main__grid { grid-template-columns: 150px minmax(0, 1fr); gap: 26px; }
  .footer-main__links { grid-template-columns: 90px 95px minmax(0, 1fr); gap: 12px; }
  .footer-main__medical-grid { gap: 10px; }
}
@media (max-width: 767px) {
  .footer-main { width: min(520px, calc(100% - 32px)); padding-top: 44px; }
  .footer-main__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-main__brand > a > img { width: 140px; }
  .footer-main__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .footer-main__medical { grid-column: 1 / -1; }
  .footer-main__medical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer-main__copyright { margin-top: 70px; }
}
@media (max-width: 400px) {
  .footer-main__medical-grid { grid-template-columns: 1fr; }
}


/* SP footer: centered brand and compact navigation */
@media (max-width: 767px) {
  .footer-main { width: min(520px, calc(100% - 32px)); padding-top: 32px; }
  .footer-main__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-main__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-main__brand > a { display: block; margin: 0 auto; }
  .footer-main__brand > a > img { display: block; width: 120px; height: auto; margin: 0 auto; }
  .footer-main__contact { display: flex; flex-direction: column; align-self: center; align-items: flex-start; gap: 2px; margin-top: 8px; text-align: left; }
  .footer-main__contact > div { justify-content: flex-start; }
  .footer-main__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .footer-main__menu, .footer-main__medical-list { gap: 2px; }
  .footer-main__menu a, .footer-main__medical-list a { padding: 2px; line-height: 1.3; }
  .footer-main__medical { grid-column: 1 / -1; }
  .footer-main__medical-title { margin-bottom: 6px; }
  .footer-main__medical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .footer-main__medical-list { min-width: 0; }
  .footer-main__medical-label { margin-bottom: 1px; line-height: 1.3; }
  .footer-main__copyright { margin-top: 28px; }
}
@media (max-width: 400px) {
  .footer-main__medical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 8px; }
  .footer-main__links { gap: 12px 8px; }
  .footer-main__grid { gap: 16px; }
  .footer-main__brand > a > img { width: 112px; }
  .footer-main__copyright { margin-top: 24px; }
}


/* Tablet footer: stack the brand above a two-column link layout to prevent overlap */
@media (min-width: 768px) and (max-width: 1024px) {
  .footer-main { width: min(760px, calc(100% - 48px)); }
  .footer-main__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-main__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-main__brand > a { display: block; margin: 0 auto; }
  .footer-main__brand > a > img { width: 132px; margin: 0 auto; }
  .footer-main__contact { display: flex; flex-direction: column; align-self: center; align-items: flex-start; margin-top: 8px; text-align: left; }
  .footer-main__contact > div { justify-content: flex-start; }
  .footer-main__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  .footer-main__medical { grid-column: 1 / -1; min-width: 0; }
  .footer-main__medical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
  .footer-main__medical-list { min-width: 0; }
  .footer-main__medical-label, .footer-main__medical-list a { overflow-wrap: anywhere; }
  .footer-main__copyright { margin-top: 48px; }
}

/* Keep footer columns and labels inside their own tracks at every width. */
.footer-main__grid > *,
.footer-main__links > *,
.footer-main__medical-grid > * { min-width: 0; }
.footer-main__menu a,
.footer-main__medical-list a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }


/* Circular arrow buttons: keep the circle and chevron large enough to align cleanly. */
.footer-access__more::after {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  font-size: 0;
  line-height: 1;
  background: #A78F18;
  position: relative;
}
.footer-access__more {
  position: relative;
}
.footer-access__more::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}


/* Limit the medical heading link to its text width. */
.footer-main__medical > a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 12px;
  vertical-align: top;
}
.footer-main__medical > a > .footer-main__medical-title {
  margin: 0;
}
@media (max-width: 767px) {
  .footer-main__medical > a { margin-bottom: 6px; }
}

/* Give the orthodontics column enough room for long treatment names. */
@media (min-width: 1025px) {
  .footer-main__medical-grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1.7fr) minmax(0, .75fr);
    column-gap: 16px;
  }
}
