:root {
  --home-edge: clamp(28px, calc(5.56 * var(--pdc-design-unit)), 96px);
  --home-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}
.pdc-home {
  margin: 0;
  color: #2d2d2d;
  font: 400 16px/1.8 "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  letter-spacing: .1em;
}
.pdc-home *, .pdc-home *::before, .pdc-home *::after { box-sizing: border-box; }
:where(.pdc-home) :where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) { margin: 0; }
:where(.pdc-home) :where(ul, ol) { padding: 0; list-style: none; }
:where(.pdc-home) :where(img) { max-width: 100%; display: block; }
.pdc-home a { color: inherit; }
.pdc-home :focus-visible { outline: 3px solid #1e4c91; outline-offset: 3px; }
.home-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  color: #3d3d3d;
  font-size: clamp(16px, calc(1.4 * var(--pdc-design-unit)), 20px);
  font-weight: 500;
  line-height: 1.45;
}
.home-heading [lang="en"] {
  font: 400 clamp(36px, calc(3.48 * var(--pdc-design-unit)), 54px)/1 var(--home-serif);
  letter-spacing: .1em;
}
.home-media, .home-feature {
  max-width: var(--pdc-design-width);
  margin-inline: auto;
}
.home-hero {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 2;
  background: white url("../images/home/hero-background.webp") center / 100% 100% no-repeat;
  text-align: center;
}
.home-art-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-hero-copy {
  position: absolute;
  top: 24.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 47%;
}
.home-hero #home-title img { width: 91.4%; height: auto; margin: auto; }
.home-hero-promise {
  margin-top: 1.45cqw;
  font: 700 2.15cqw/1.55 var(--home-serif);
  letter-spacing: .12em;
}
.home-hero-summary {
  margin-top: .6cqw;
  font: 600 1.5cqw/1.73 "YuGothic", "Yu Gothic", "Noto Sans JP", sans-serif;
  letter-spacing: .07em;
}
.home-badges {
  /* Scale the complete PC badge set to 83% of the capped design size. */
  --badge-unit: min(calc(83cqw / 1440), .83px);
  --badge-disc-size: 160.33;
  --badge-disc-x: 4.3;
  --badge-disc-y: 5.2;
  position: absolute;
  bottom: 4.3%;
  left: 49.5%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: calc(16.848 * var(--badge-unit));
}
.home-badges li {
  --badge-size: calc(162 * var(--badge-unit));
  --badge-stroke: max(1px, calc(1.728 * var(--badge-unit)));
  position: relative;
  width: var(--badge-size);
  aspect-ratio: 1;
  border: var(--badge-stroke) solid var(--pdc-blue);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(7.488 * var(--badge-unit));
  font: 600 calc(25.2 * var(--badge-unit))/1.27 "YuGothic", "Yu Gothic", "Noto Sans JP", sans-serif;
  letter-spacing: .055em;
}
.home-badges li:nth-child(3) { --badge-disc-x: 4.4; }
/* The white disc is slightly smaller and offset from the blue outline in Figma. */
.home-badges li::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(50% - var(--badge-size) / 2 + var(--badge-disc-x) * var(--badge-unit));
  top: calc(50% - var(--badge-size) / 2 + var(--badge-disc-y) * var(--badge-unit));
  width: calc(var(--badge-disc-size) * var(--badge-unit));
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 .65em .16em #fff;
  pointer-events: none;
}
.home-badge-icon {
  flex: none;
  width: calc(43.2 * var(--badge-unit));
  height: calc(37.44 * var(--badge-unit));
  background: var(--pdc-blue);
  -webkit-mask: var(--badge-image) center / calc(var(--icon-width) * var(--badge-unit)) calc(var(--icon-height) * var(--badge-unit)) no-repeat;
  mask: var(--badge-image) center / calc(var(--icon-width) * var(--badge-unit)) calc(var(--icon-height) * var(--badge-unit)) no-repeat;
}
/* The local PNGs are trimmed: match the visible artwork inside Figma's padded icons. */
.home-badge-icon--train { --badge-image: url("../images/home/badge-train.png"); --icon-width: 28.32; --icon-height: 33.984; }
.home-badge-icon--calendar { --badge-image: url("../images/home/badge-calendar.png"); --icon-width: 27.984; --icon-height: 27.984; }
.home-badge-icon--parking { --badge-image: url("../images/home/badge-parking.png"); --icon-width: 31.2; --icon-height: 25.2; }
/* Retain each image's alt text while the alpha mask supplies the exact brand color. */
.home-badges img { width: 100%; height: 100%; opacity: 0; }
.home-badges small { font-size: .78em; }

/* Reception, access and the clinic's live news feed. */
.home-info {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  padding-inline: var(--pdc-design-gutter);
  /* Continue only the map panel’s color beyond its right edge. */
  background: linear-gradient(to left, #fffcf7 var(--pdc-design-gutter), transparent var(--pdc-design-gutter));
}
.home-info-content, .home-location { padding: var(--home-edge); }
.home-info-content { padding-bottom: 32px; }
.home-info .pdc-hours { margin-top: 24px; }
.home-location { background: #fffcf7; border-radius: 0 0 0 32px; }
.home-location-map { position: relative; display: block; aspect-ratio: 560 / 462; overflow: hidden; border-radius: 12px; }
.home-location-map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.home-location p { margin-top: 15px; font-size: clamp(13px,calc(1.12 * var(--pdc-design-unit)),17px); }
.home-location p span { margin-left: .8em; }
.home-location p a { color: #866b44; text-underline-offset: .2em; }
.home-news { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 15px 4px; margin-top: clamp(40px,calc(5.55 * var(--pdc-design-unit)),80px); }
.home-news-more { position: relative; grid-area: 1 / 2; padding-left: 30px; font-size: 15px; font-weight: 500; text-decoration: none; }
.home-news-more::before, .home-news-more::after { content: ""; position: absolute; top: 50%; color: #b7a784; }
.home-news-more::before { left: 0; width: 18px; border-top: 1px solid; }
.home-news-more::after { left: 9px; width: 9px; height: 9px; border: solid; border-width: 1px 1px 0 0; transform: translateY(-45%) rotate(45deg); }
.home-news-more:hover { text-decoration: underline; }
.home-news-list, .home-news-status { grid-column: 1 / -1; }
.home-news-list li {
  display: flex; align-items: baseline; gap: 15px;
  padding: 14px 0; border-top: 1px solid #d6c9a8; line-height: 1.7;
}
.home-news-list li:last-child { border-bottom: 1px solid #d6c9a8; }
.home-news-list time { color: #806842; white-space: nowrap; }
.home-news-list a { text-underline-offset: .15em; }
.home-news-list a:hover { color: #1e4c91; }
.home-news-status { font-size: .9em; }
.home-media { padding: clamp(40px,calc(4 * var(--pdc-design-unit)),72px) var(--home-edge) clamp(65px,calc(6.94 * var(--pdc-design-unit)),115px); }
.home-media-list { display: grid; grid-template-columns: 1fr 1fr; gap: calc(2.78 * var(--pdc-design-unit)); margin-top: 32px; }
.home-media-card {
  position: relative;
  display: grid;
  grid-template-columns: 40% 1fr;
  overflow: hidden;
  border: 1px solid #1e4c91;
  border-radius: 10px;
  text-decoration: none;
  min-height: clamp(145px,calc(13.2 * var(--pdc-design-unit)),208px);
}
.home-media-card::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #1e4c91; }
.home-media-photo { width: 100%; height: 100%; object-fit: cover; }
.home-media-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: clamp(8px,var(--pdc-design-unit),18px); padding: 16px clamp(14px,calc(2.65 * var(--pdc-design-unit)),40px) 23px; }
.home-media-logo { width: min(100%,calc(11.12 * var(--pdc-design-unit))); height: auto; }
.home-media-copy p { font-size: clamp(13px,calc(1.38 * var(--pdc-design-unit)),21px); font-weight: 500; line-height: 1.6; }
.home-media-more {
  position: absolute; bottom: 0; right: 0; padding: 4px 18px; background: #1e4c91;
  border-radius: 8px 0 0; color: white; font-size: clamp(11px,var(--pdc-design-unit),16px);
}
.home-media-card:hover, .home-media-card:focus-visible { box-shadow: 0 4px 16px #1e4c9122; background: #fafcff; }

/* Each image sequence includes its trailing gutter for a seamless loop. */
.home-gallery { overflow: hidden; padding-bottom: clamp(64px,calc(9 * var(--pdc-design-unit)),150px); }
.home-gallery-strip { display: flex; width: max-content; }
.home-gallery-sequence { --gap: clamp(14px,calc(2.08 * var(--pdc-design-unit)),32px); display: flex; flex: 0 0 auto; gap: var(--gap); padding-right: var(--gap); align-items: flex-start; }
.home-gallery img { flex: 0 0 auto; max-width: none; width: clamp(270px,calc(34.73 * var(--pdc-design-unit)),600px); height: auto; aspect-ratio: 500/360; border-radius: 6px; object-fit: cover; }
.home-gallery img:nth-child(even) { margin-top: clamp(18px,calc(2.78 * var(--pdc-design-unit)),45px); }
.home-gallery-strip.is-looping { animation: home-gallery-loop 58s linear infinite; }
@keyframes home-gallery-loop { to { transform: translateX(calc(-100% / var(--gallery-sequences))); } }
@media (prefers-reduced-motion: reduce) {
  .home-gallery-strip.is-looping { animation: none; }
  .home-gallery { overflow-x: auto; }
}
.home-treatment {
  position: relative;
  isolation: isolate;
  padding: var(--home-edge) calc(var(--home-edge) + var(--pdc-design-gutter)) 0;
  background: #f9f6f3;
}
.home-treatment::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1;
  height: clamp(315px,calc(28.5 * var(--pdc-design-unit)),480px);
  background: #806c50 url("../images/home/treatment-background.webp") center / cover no-repeat;
}
@media (min-width: 1440px) {
  .home-treatment::before { background-size: var(--pdc-design-width) 100%; }
}
.home-treatment .home-heading { color: white; }
.home-treatment-list {
  margin: 42px 0 0;
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px;
}
.home-treatment-list li { display: flex; }
.home-treatment-list a {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; padding: clamp(16px,calc(1.67 * var(--pdc-design-unit)),30px); padding-bottom: 28px;
  border-radius: 6px; color: #2d2d2d; background: white; text-decoration: none;
}
.home-treatment-list a:hover, .home-treatment-list a:focus-visible { background: #fffcf7; box-shadow: inset 0 0 0 1px #a58658; }
.home-treatment-list img { width: 60px; height: 60px; object-fit: contain; }
.home-treatment-list h3 { color: #937748; font: 600 clamp(17px,calc(1.4 * var(--pdc-design-unit)),21px)/1.55 var(--home-serif); letter-spacing: .075em; }
.home-treatment-list p { font-size: 14px; line-height: 1.8; letter-spacing: .08em; }
.home-mission { padding: clamp(85px,calc(8.3 * var(--pdc-design-unit)),140px) 0 clamp(70px,calc(6.94 * var(--pdc-design-unit)),125px) var(--home-edge); background: #f9f6f3; }
.home-mission {
  padding-inline: calc(var(--home-edge) + var(--pdc-design-gutter)) var(--pdc-design-gutter);
}
.home-mission h2 { color: #a58658; font: 600 clamp(31px,calc(3.33 * var(--pdc-design-unit)),54px)/1.5 var(--home-serif); }
.home-mission-content { display: grid; grid-template-columns: minmax(0,1fr) 47.06%; gap: var(--home-edge); align-items: start; margin-top: 32px; }
.home-mission h3 { font: 600 clamp(20px,calc(1.67 * var(--pdc-design-unit)),26px)/1.7 var(--home-serif); letter-spacing: .15em; margin-bottom: 24px; }
.home-mission p { font-size: clamp(15px,calc(1.12 * var(--pdc-design-unit)),18px); }
.home-mission p + p { margin-top: 16px; }
.home-mission strong { color: #1e4c91; }
.home-mission img { width: 100%; height: auto; aspect-ratio: 640/460; object-fit: cover; border-radius: 16px 0 0; }
.home-feature { padding: var(--home-edge); }
.home-feature .home-heading { align-items: center; flex-direction: column; gap: 20px; text-align: center; }
.home-feature-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(15px,calc(2.22 * var(--pdc-design-unit)),34px); margin-top: 44px; }
.home-feature-list li { display: flex; flex-direction: column; align-items: center; padding: 0 clamp(16px,calc(2.22 * var(--pdc-design-unit)),36px) 38px; border: 1px solid #a58658; border-top-width: 3px; border-radius: 8px; }
.home-feature-no { min-width: 95px; padding: 7px 15px 10px; border-radius: 0 0 50px 50px; background: #a58658; color: white; text-align: center; font: 500 20px/1.5 "Inter",sans-serif; }
.home-feature h3 { margin: 17px 0 18px; color: #967a50; text-align: center; font: 600 clamp(18px,calc(1.52 * var(--pdc-design-unit)),24px)/1.6 var(--home-serif); }
.home-feature img { width: 100%; height: auto; aspect-ratio: 337/223; object-fit: cover; border-radius: 8px; }
.home-feature li:last-child img { object-position: 70% center; }
.home-feature p { margin-top: 18px; line-height: 1.65; }

@media (min-width: 769px) {
  /* Center the badges in the space between the copy and the bottom of the hero. */
  .home-hero { display: grid; grid-template-rows: 24.2% auto minmax(0, 1fr); }
  .home-hero-copy { position: static; inset: auto; transform: none; grid-row: 2; justify-self: center; }
  .home-badges { position: static; inset: auto; transform: translateX(-.5cqw); grid-row: 3; place-self: center; }
}
@media (min-width: 769px) and (max-width: 1200px) {
  .home-hero { margin-top: max(0px,calc(145px - 9.6vw)); }
  .home-info-content, .home-location { padding-inline: 3.3vw; }
  .home-info .pdc-contacts { gap: 8px; }
  .home-info .pdc-contact { gap: 5px; padding-inline: 6px; }
  .home-info .pdc-contact img { width: 26px; }
  .home-info .pdc-contact strong { font-size: 18px; }
  .home-treatment-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --home-edge: clamp(15px,4vw,30px); }
  .pdc-home { font-size: 14px; }
  .home-heading { gap: 16px; font-size: 14px; }
  .home-heading [lang="en"] { font-size: 32px; }
  .home-hero {
    --u: min(1vw,5.35px);
    --photo-height: calc(74 * var(--u));
    aspect-ratio: auto;
    height: calc(70px + 171.2 * var(--u));
    background-image: linear-gradient(to bottom, #fff 0 66px, #ffffff99 78px), url("../images/home/hero-foliage.webp");
    background-size: 100% 100%, auto calc(100% - 68px);
    background-position: center, center bottom;
    overflow: hidden;
  }
  .home-hero::before, .home-hero::after {
    position: absolute; z-index: -1; content: "";
    top: calc(70px + 63 * var(--u));
    height: var(--photo-height);
    background-image: url("../images/home/hero-background.webp");
    background-size: auto calc(88.5 * var(--u)); background-repeat: no-repeat;
  }
  .home-hero::before { left: 0; width: 54%; background-position: left bottom; }
  .home-hero::after { right: 0; width: 52%; background-position: right bottom; mask-image: linear-gradient(to right, transparent,black 10%); }
  .home-hero-copy { top: calc(70px + 12.35 * var(--u)); width: 100%; }
  .home-hero #home-title img { width: calc(81.5 * var(--u)); }
  .home-hero-promise { margin-top: calc(2.8 * var(--u)); font-size: calc(4.1 * var(--u)); }
  .home-hero-summary { margin-top: calc(2.2 * var(--u)); font-size: calc(3.35 * var(--u)); line-height: 1.8; letter-spacing: .045em; }
  .home-badges { --badge-unit: calc(100 * var(--u) / 375); --badge-disc-size: 105.7162; --badge-disc-x: 2.8351; --badge-disc-y: 3.4287; bottom: calc(5.3 * var(--u)); left: 50%; gap: calc(3.2 * var(--u)); }
  .home-badges li { --badge-size: calc(28.5 * var(--u)); --badge-stroke: 1px; font-size: calc(4.05 * var(--u)); gap: calc(1.5 * var(--u)); }
  .home-badges li:nth-child(3) { --badge-disc-x: 2.901; }
  .home-badge-icon { width: calc(7 * var(--u)); height: calc(6.5 * var(--u)); }
  .home-badge-icon--train { --icon-width: 18.6732; --icon-height: 22.4079; }
  .home-badge-icon--calendar { --icon-width: 18.4517; --icon-height: 18.4517; }
  .home-badge-icon--parking { --icon-width: 20.5722; --icon-height: 16.616; }
  .home-info { display: block; }
  .home-info-content { padding: 23px var(--home-edge) 40px; }
  .home-info .pdc-contacts { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .home-info .pdc-contact { position: relative; }
  .home-info .pdc-contact > img { position: absolute; left: 20px; }
  .home-info .pdc-hours { margin-top: 15px; }
  .home-news { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 34px; }
  .home-news-list li { display: grid; gap: 4px; padding: 12px 0; }
  .home-news-more { order: 1; align-self: flex-end; }
  .home-location { border-radius: 0 0 0 24px; padding: 30px var(--home-edge); }
  .home-location-map { aspect-ratio: 345/200; border-radius: 8px; }
  .home-location p { font-size: 14px; margin-top: 16px; }
  .home-location p span { margin: 0; }
  .home-location p span::before { content: ""; display: block; }
  .home-media { padding: 56px var(--home-edge) 60px; }
  .home-media-list { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .home-media-card { grid-template-columns: 41% 1fr; min-height: 108px; border-radius: 6px; }
  .home-media-copy { gap: 5px; padding: 10px 14px 17px 18px; }
  .home-media-logo { width: clamp(85px,22.7vw,122px); }
  .home-media-copy p { font-size: clamp(11px,3.36vw,15px); line-height: 1.5; letter-spacing: .07em; }
  .home-media-photo { position: absolute; inset: 0; width: 41%; }
  .home-media-copy { grid-column: 2; }
  .home-media-card::after { width: 5px; height: 5px; top: 7px; right: 7px; }
  .home-media-more { font-size: 10px; padding: 1px 8px; border-radius: 4px 0 0; }
  .home-gallery { padding-bottom: 60px; }
  .home-gallery-sequence { --gap: 12px; }
  .home-gallery img { width: clamp(190px,56vw,300px); }
  .home-gallery img:nth-child(even) { margin-top: 16px; }
  .home-treatment { padding: 72px var(--home-edge) 0; }
  .home-treatment::before { height: 320px; }
  .home-treatment-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-top: 30px; }
  .home-treatment-list a { padding: 20px 14px; gap: 10px; }
  .home-treatment-list h3 { font-size: clamp(15px,3.75vw,18px); }
  .home-treatment-list p { font-size: 12px; }
  .home-mission { padding: 45px 0 60px var(--home-edge); }
  .home-mission h2 { font-size: clamp(21px,6.3vw,32px); line-height: 1.6; padding-right: 8px; letter-spacing: .07em; }
  .home-mission-content { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; }
  .home-mission-content > div { padding-right: var(--home-edge); }
  .home-mission h3 { font-size: clamp(18px,4.6vw,22px); margin-bottom: 24px; }
  .home-mission p { font-size: 14px; }
  .home-feature { padding: 60px var(--home-edge); }
  .home-feature .home-heading { gap: 12px; }
  .home-feature-list { grid-template-columns: 1fr; gap: 15px; margin-top: 44px; }
  .home-feature-list li { padding: 0 15px 24px; }
  .home-feature-no { min-width: 75px; font-size: 16px; padding: 5px 12px 7px; }
  .home-feature h3 { margin: 17px 0 15px; font-size: 18px; }
  .home-feature h3 br { display: none; }
  .home-feature img { aspect-ratio: 313/223; }
  .home-feature p { margin-top: 15px; line-height: 1.75; }
}

@media (max-width: 560px) {
  /* Keep the photo's white caption area beyond the fading left edge. */
  .home-hero::after { width: 58%; }
}
