@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/noto-sans-jp.woff2") format("woff2"), url("../fonts/noto-sans-jp.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans.woff2") format("woff2"), url("../fonts/albert-sans.woff") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* The artwork, type and layout share the same maximum design width. */
  --pdc-design-width: 1440px;
  --pdc-design-unit: min(1vw, calc(var(--pdc-design-width) / 100));
  --pdc-design-gutter: max(0px, calc((100% - var(--pdc-design-width)) / 2));
  /* Homepage palette shared by static subpages and the blog. */
  --pdc-ink: #3d3d3d;
  --pdc-text: #2d2d2d;
  --pdc-gold: #a58658;
  --pdc-gold-dark: #866b44;
  --pdc-rule: #d6c9a8;
  --pdc-blue: #1e4c91;
  --pdc-cream: #faf6f0;
  --pdc-cream-light: #fffcf7;
  --pdc-cream-deep: #f4ede3;
  --pdc-neutral-rule: #d7d6d6;
}

:is(.pdc-header, .pdc-footer, .pdc-menu, .pdc-consult, .pdc-hours, .pdc-contacts) {
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-feature-settings: normal;
  color: var(--pdc-ink);
  text-align: left;
  letter-spacing: .08em;
}
:is(.pdc-header, .pdc-footer, .pdc-menu, .pdc-consult, .pdc-hours, .pdc-contacts),
:is(.pdc-header, .pdc-footer, .pdc-menu, .pdc-consult, .pdc-hours, .pdc-contacts) * { box-sizing: border-box; }
:is(.pdc-header, .pdc-footer, .pdc-menu, .pdc-consult) a { color: inherit; text-decoration: none; }
:is(.pdc-header, .pdc-footer, .pdc-menu, .pdc-consult) :is(a, summary):hover {
  color: var(--pdc-gold);
  text-decoration: underline;
  text-underline-offset: .25em;
}
:is(.pdc-header, .pdc-footer, .pdc-menu, .pdc-consult, .pdc-contacts) :focus-visible {
  outline: 2px solid var(--pdc-blue);
  outline-offset: 3px;
}
.pdc-logo { display: block; width: min(279px, 100%); }
.pdc-logo img { display: block; width: 100%; height: auto; }

/* Keep linked announcements visible below the sticky header. */
.news_text [id^="nw"] { scroll-margin-top: 145px; }

/* Shared header */
.pdc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 6px 18px;
  width: min(100%, 100vw);
  min-width: 0;
  margin: 0;
  padding: 15px calc(24px + var(--pdc-design-gutter)) 18px calc(30px + var(--pdc-design-gutter));
  background: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}
.pdc-home .pdc-header { position: fixed; inset: 0 0 auto; }
.pdc-home .pdc-header:not(.is-scrolled) { background: transparent; }
.pdc-header.is-scrolled { box-shadow: 0 2px 12px #0001; }
.pdc-header > .pdc-logo { grid-area: 1 / 1 / 3 / 2; }
.pdc-tagline {
  grid-area: 1 / 2;
  margin: 0;
  text-align: right;
  font: 500 12px/1.5 "Yu Gothic", sans-serif;
  letter-spacing: .08em;
}
.pdc-header .pdc-tagline { width: auto; height: auto; }
.pdc-primary {
  grid-area: 3 / 1;
  display: flex;
  align-items: center;
  gap: clamp(18px, calc(2.08 * var(--pdc-design-unit)), 30px);
  padding: 0;
  margin: 0;
  background: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
/* Keep neighboring links in place while the web font becomes available. */
.pdc-primary > :is(a, .pdc-services) { flex: 0 0 4.32em; min-width: 0; }
.pdc-primary > a:first-child { flex-basis: 3.32em; }
.pdc-primary > a, .pdc-services summary { white-space: nowrap; }
.pdc-services summary { list-style: none; cursor: pointer; }
.pdc-services summary::-webkit-details-marker { display: none; }
.pdc-services[open] > summary { color: var(--pdc-gold); text-decoration: underline; text-underline-offset: .25em; }
.pdc-mega {
  position: absolute;
  top: 100%;
  left: calc(var(--pdc-design-gutter) + clamp(14px, 21.32 * var(--pdc-design-unit), 100% - 860px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 6px;
  width: min(840px, calc(100vw - 28px));
  padding: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 8px #0001;
  border-radius: 6px;
  font-weight: 500;
}
.pdc-mega a { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border-bottom: 1px solid var(--pdc-rule); }
.pdc-mega a::before { content: ""; flex: none; width: 7px; height: 7px; border: solid var(--pdc-rule); border-width: 1px 1px 0 0; transform: rotate(45deg); }
.pdc-menu-button, .pdc-fallback, .pdc-menu:not([open]) { display: none; }

/* Reused in the header, visit information and menu. */
.pdc-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}
.pdc-header > .pdc-contacts {
  grid-area: 2 / 2 / 4 / 3;
  grid-template-columns: 240px 203px;
  column-gap: 9px;
}
.pdc-contacts .pdc-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  padding: 7px 10px;
  border-radius: 5px;
  background: var(--pdc-blue);
  color: white;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.pdc-contacts .pdc-book { gap: 15px; background: var(--pdc-gold); }
.pdc-contacts .pdc-contact:hover { color: white; text-decoration: none; filter: brightness(1.08); }
.pdc-contact > img { display: block; flex: none; width: 38px; height: auto; }
.pdc-contacts .pdc-book { position: relative; }
.pdc-contacts .pdc-book::after { content: ""; position: absolute; right: 6%; width: 11px; height: 8px; color: white; border: 1px solid; border-radius: 2px; box-shadow: -2px 2px 0 -1px var(--pdc-gold), -2px 2px 0 0 white; }
.pdc-header .pdc-book::after { display: none; }
.pdc-book > img { width: 37px; }
.pdc-contact-copy { display: grid; justify-items: center; gap: 3px; white-space: nowrap; }
.pdc-contact-copy small { font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.pdc-contact-copy small::before, .pdc-contact-copy small::after {
  content: ""; display: inline-block; height: .85em; width: 1.5px; margin: 0 .55em; background: currentColor;
}
.pdc-contact-copy small::before { transform: rotate(-32deg); }
.pdc-contact-copy small::after { transform: rotate(32deg); }
.pdc-contact-copy strong { font: 600 21px/1.2 "Albert Sans", Arial, "Noto Sans JP", sans-serif; letter-spacing: .06em; }
.pdc-book .pdc-contact-copy strong { font: 700 24px/1.2 "Yu Gothic", sans-serif; letter-spacing: .12em; }
.pdc-contact-copy > span { font-size: 10px; letter-spacing: .10em; }

/* Opening hours */
.pdc-hours { font-size: 16px; line-height: 1.6; }
.pdc-hours table { width: 100%; border-collapse: collapse; table-layout: fixed; font: inherit; letter-spacing: inherit; color: inherit; }
.pdc-hours tr { border-bottom: 1px solid var(--pdc-rule); }
.pdc-hours :is(th, td) { border: 0; padding: 13px 0; text-align: center; font-size: inherit; font-weight: 400; vertical-align: middle; }
.pdc-hours tr > :first-child { width: 23%; text-align: left; }
.pdc-hours thead th { white-space: nowrap; }
.pdc-hours thead th:last-child { width: 3.4em; }
.pdc-hours th small { display: block; font-size: .88em; }
.pdc-day { color: var(--pdc-gold); font-size: .66em; }
.pdc-day-off { color: #999; }
.pdc-hours > p { margin: 12px 0 0; text-align: left; }

/* Home consultation */
.pdc-consult { padding: 86px var(--pdc-design-gutter) 0; background: #f9f7f4; }
.pdc-consult > h2 { margin: 0; color: var(--pdc-gold); text-align: center; font: 600 32px/1.65 "Hiragino Mincho ProN", "Yu Mincho", serif; letter-spacing: .12em; }
.pdc-consult > h2 span { display: inline-block; }
.pdc-consult-intro { margin: 22px 20px 34px; text-align: center; font-size: 16px; line-height: 1.8; }
.pdc-consult-columns {
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 716fr);
  gap: clamp(28px, calc(5.8 * var(--pdc-design-unit)), 84px);
  padding-left: max(calc((100% - 1280px) / 2), 5.55%);
}
.pdc-consult-hours .pdc-contacts { margin-bottom: 23px; }
.pdc-consult-map { position: relative; display: block; aspect-ratio: 716/500; overflow: hidden; border-radius: 20px 0 0 0; }
.pdc-consult-map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.pdc-consult-location > p { display: none; }

/* Footer */
.pdc-footer {
  width: min(100%,100vw);
  min-width: 0;
  margin: 0;
  padding: 80px max(calc((100% - 1280px) / 2), 5.55%) 56px;
  background: white;
  color: var(--pdc-ink);
}
.pdc-footer-upper, .pdc-footer-bottom { display: flex; justify-content: space-between; gap: 40px; }
.pdc-footer-clinic .pdc-logo { width: min(390px, 100%); }
.pdc-footer-clinic p { margin: 32px 0 0; font-size: 16px; line-height: 1.8; }
.pdc-footer-nav { display: flex; gap: clamp(35px,6vw,86px); padding: 11px 0 0; background: none; font-size: 16px; }
.pdc-footer-main, .pdc-footer-services, .pdc-service-links { display: grid; gap: 13px; align-content: start; }
.pdc-footer-main > a, .pdc-footer-services > a { font-weight: 700; }
.pdc-service-links { grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 36px; }
.pdc-service-links a::before { content: "•"; margin-right: 8px; color: var(--pdc-rule); }
.pdc-footer-bottom {
  align-items: center;
  border-top: 1px solid #e8e2d6;
  margin-top: 54px;
  padding-top: 52px;
  font-size: 14px;
  line-height: 1.5;
}
.pdc-footer-bottom small, .pdc-menu-information > small { font-size: inherit; color: var(--pdc-gold); }
.pdc-footer-bottom a { white-space: nowrap; }
.pdc-footer-bottom a::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 10px; border-radius: 50%; background: var(--pdc-rule); }

@media (max-width: 1099px) {
  .news_text [id^="nw"] { scroll-margin-top: 80px; }
  .pdc-header { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0; padding: 8px 15px 9px; }
  .pdc-header > .pdc-logo { grid-area: 2 / 1; width: 223px; }
  .pdc-tagline { grid-area: 1 / 1; text-align: left; margin-left: 4px; font-size: 7px; }
  .pdc-primary { display: none; }
  .pdc-menu-button:not([hidden]), .pdc-fallback, .pdc-menu-close {
    grid-area: 1 / 2 / 3 / 3;
    display: grid;
    place-content: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    margin-right: -7px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--pdc-ink);
    cursor: pointer;
  }
  :is(.pdc-menu-button, .pdc-menu-close) i { display: block; position: relative; width: 30px; height: 16px; }
  :is(.pdc-menu-button, .pdc-menu-close) i::before, :is(.pdc-menu-button, .pdc-menu-close) i::after {
    content: ""; display: block; position: absolute; width: 100%; height: 1px; background: currentColor;
  }
  .pdc-menu-button i::before { top: 4px; }
  .pdc-menu-button i::after { top: 12px; }
  .pdc-menu-close i::before { top: 8px; transform: rotate(30deg); }
  .pdc-menu-close i::after { top: 8px; transform: rotate(-30deg); }
  .pdc-header > .pdc-contacts {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    z-index: 1;
  }
  .pdc-header .pdc-contact { border-radius: 9px 9px 0 0; min-height: 52px; gap: 9px; padding: 5px 6px max(6px,env(safe-area-inset-bottom)); }
  .pdc-header .pdc-contact > img { width: 23px; }
  .pdc-header .pdc-contact-copy { gap: 1px; }
  .pdc-header .pdc-contact-copy small { font-size: 8px; }
  .pdc-header .pdc-contact-copy strong { font-size: 16px; }
  .pdc-header .pdc-contact-copy > span { font-size: 6.5px; }
  .pdc-header + #mainvisual { margin-top: 0; }
  .pdc-menu {
    position: fixed; inset: 0;
    border: 0; padding: 0; margin: 0;
    width: 100%; height: 100%; max-width: none; max-height: none;
    overflow: auto; overscroll-behavior: contain;
    background: #fffcf7;
  }
  .pdc-menu::backdrop { background: #fffcf7; }
  html:has(.pdc-menu[open]) { overflow: hidden; }
  .pdc-menu-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; }
  .pdc-menu-bar .pdc-logo { width: 223px; }
  .pdc-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 20px auto 16px; padding: 0 20px; background: none; max-width: 640px; font-size: 14px; }
  .pdc-menu-links > div { display: grid; align-content: start; gap: 16px; }
  .pdc-menu-links > div > a { font-weight: 700; }
  .pdc-menu-links .pdc-service-links { grid-auto-flow: row; grid-template-rows: none; gap: 10px; }
  .pdc-menu-information { border-radius: 10px; padding: 15px 15px 20px; background: white; }
  .pdc-menu-information > * { max-width: 610px; margin-inline: auto; }
  .pdc-menu-information .pdc-contacts { grid-template-columns: 1fr; gap: 6px; margin-top: 15px; }
  .pdc-menu-information .pdc-contact { position: relative; min-height: 72px; }
  .pdc-menu-information .pdc-contact > img { position: absolute; left: 20px; }
  .pdc-menu-information > small { display: block; margin-top: 36px; text-align: center; font-size: 12px; }
  .pdc-footer { padding-bottom: max(80px,calc(65px + env(safe-area-inset-bottom))); }
  .pdc-footer-nav { gap: 28px; }
  .pdc-service-links { column-gap: 15px; }
  .pdc-footer-clinic .pdc-logo { max-width: 280px; }
}
@media (max-width: 768px) {
  .pdc-hours { font-size: 12px; }
  .pdc-hours :is(th, td) { padding: 7px 0; }
  .pdc-hours tr > :first-child { width: 23%; }
  .pdc-hours > p { margin-top: 10px; }
  .pdc-consult { padding: 32px 15px 34px; }
  .pdc-consult > h2 { font-size: 22px; line-height: 1.5; }
  .pdc-consult > h2 span, .pdc-consult-intro span { display: block; }
  .pdc-consult-intro { margin: 18px 0 28px; font-size: 14px; line-height: 1.72; }
  .pdc-consult-columns { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 0; }
  .pdc-consult-hours .pdc-contacts { display: none; }
  .pdc-consult-map { aspect-ratio: 345/200; border-radius: 10px; }
  .pdc-consult-location > p { display: block; margin: 16px 0 0; font-size: 14px; line-height: 1.72; }
  .pdc-consult-location > p a { color: var(--pdc-gold); }
  .pdc-footer { padding: 55px 15px calc(115px + env(safe-area-inset-bottom)); }
  .pdc-footer-upper { display: block; }
  .pdc-footer-clinic p { margin-top: 17px; font-size: 12px; line-height: 1.8; }
  .pdc-footer-nav { display: none; }
  .pdc-footer-nav:target { display: grid; gap: 16px; }
  .pdc-footer-bottom { gap: 8px; margin-top: 19px; padding-top: 19px; font-size: 11px; }
  .pdc-footer-bottom small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
}
@media print {
  .pdc-header, .pdc-home .pdc-header { position: static; }
  .pdc-header > .pdc-contacts, .pdc-menu-button, .pdc-menu { display: none; }
}
