/* Welcome, doctor and treatment philosophy on the home page. */
.pdc-mid {
  --mid-gold: #a58658;
  --mid-cream: #faf6f0;
  --mid-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  color: #2d2d2d;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .1em;
}
.pdc-mid *, .pdc-mid *::before, .pdc-mid *::after { box-sizing: border-box; }
.pdc-mid :where(h2, h3, h4, h5, p, dl, dd, ul, ol, figure) { margin: 0; }
.pdc-mid :where(h2, h3, h4) { font-family: var(--mid-serif); color: #3d3d3d; font-weight: 600; }
.pdc-mid :where(ul, ol) { list-style: none; padding: 0; }
.pdc-mid img { display: block; max-width: 100%; height: auto; }
.pdc-mid__sp { display: none; }
.pdc-mid__container { width: min(1140px, 89%); margin-inline: auto; }

/* Keep the asymmetric layouts inside the centered design area. */
.pdc-welcome, .pdc-doctor {
  padding-inline: var(--pdc-design-gutter);
}
.pdc-welcome { background: var(--mid-cream); }
.pdc-welcome__inner {
  display: grid;
  grid-template-columns: minmax(0, 643fr) minmax(0, 640fr);
  gap: 5.35%;
  margin-inline: auto;
  padding-left: max(5.5556%, calc((100% - 1280px) / 2));
}
.pdc-welcome__photo {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 640 / 579;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 0 0 0 20px;
}
.pdc-welcome__copy { grid-column: 1; grid-row: 1; padding-block: 84px 96px; }
.pdc-welcome h2 { color: var(--mid-gold); font-size: clamp(30px, calc(3.05 * var(--pdc-design-unit)), 44px); letter-spacing: .05em; line-height: 1.5; }
.pdc-welcome h3 { font-size: 24px; letter-spacing: .2em; line-height: 1.7; margin: 30px 0; }
.pdc-welcome strong { color: #1e4c91; }
.pdc-welcome__lead { font-weight: 700; margin: 29px 0 17px; }
.pdc-treatments { display: flex; flex-wrap: wrap; gap: 10px; }
.pdc-treatments li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 10px;
  border: 1px solid #d7d6d6;
  border-radius: 99px;
  background: white;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}
.pdc-treatments li::before { content: ""; width: 24px; height: 24px; background: url("../images/home/middle-check.svg") center / contain no-repeat; }

.pdc-doctor { overflow: hidden; background: white; padding-block: 99px 100px; }
.pdc-doctor__inner {
  position: relative;
  width: calc(100% * 1280 / 1440);
  margin-left: calc(100% * 51 / 1440);
  padding-top: 72px;
}
.pdc-doctor__english {
  position: absolute;
  right: -6.25%; /* The lettering extends 80px past the 1280px profile. */
  top: 0;
  font: 400 calc(8.88889 * var(--pdc-design-unit))/1 var(--mid-serif);
  letter-spacing: .1em;
  color: #efede3;
}
.pdc-doctor__profile { position: relative; display: grid; grid-template-columns: minmax(0, 570fr) minmax(0, 610fr); gap: 7.8125%; align-items: center; }
.pdc-doctor__portrait { width: 100%; aspect-ratio: 570 / 410; object-fit: cover; border-radius: 10px; }
.pdc-doctor__clinic { font: 600 20px/1.6 var(--mid-serif); }
.pdc-doctor__details { padding-right: 10px; }
.pdc-doctor__details h2 { display: flex; align-items: baseline; gap: 32px; font-size: 36px; letter-spacing: .1em; line-height: 1.5; margin-top: 6px; }
.pdc-doctor__details h2 small { font-size: 18px; }
.pdc-doctor__history { display: flex; gap: 24px; margin-top: 16px; padding-top: 24px; border-top: 1px solid #d6c9a8; position: relative; }
.pdc-doctor__history::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; border-top: 1px solid var(--mid-gold); }
.pdc-doctor__history h3 { font-size: 18px; letter-spacing: .2em; color: var(--mid-gold); margin-bottom: 7px; }
.pdc-doctor__history ul { line-height: 1.6; }
.pdc-doctor__history li { position: relative; padding-left: 12px; margin-bottom: 3px; }
.pdc-doctor__history li::before { position: absolute; left: 0; top: .7em; content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--mid-gold); }
.pdc-doctor__timeline li { padding-left: calc(5em + 12px); }
.pdc-doctor__timeline li span { position: absolute; left: 12px; }
.pdc-training { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 55px; }
.pdc-training article, .pdc-radical { background: #fff; border: 1px solid var(--mid-gold); border-top-width: 3px; border-radius: 10px; overflow: hidden; }
.pdc-training article > img { width: 100%; aspect-ratio: 622 / 316; object-fit: cover; object-position: center 32%; }
.pdc-training article:nth-child(2) > img { object-position: center 42%; }
.pdc-training__copy { padding: 32px 36px 35px; }
.pdc-training__copy p:first-child { font: 600 20px/1.65 var(--mid-serif); color: var(--mid-gold); }
.pdc-training__copy h3 { font-size: 28px; margin: 4px 0 10px; }
.pdc-training__copy p:last-child { line-height: 1.6; }

.pdc-support { position: relative; overflow-x: clip; padding: 78px 15px 80px; min-height: min(51vw, 734px); text-align: center; background: white; }
.pdc-support__copy { position: relative; z-index: 1; max-width: calc(var(--pdc-design-width) - 30px); margin: auto; }
.pdc-support__copy > img { margin: 0 auto 28px; width: 76px; }
.pdc-support__copy > p:first-of-type { font-size: 22px; font-weight: 500; }
.pdc-support h2 { font-size: clamp(38px, 4.1667vw, 60px); letter-spacing: .1em; line-height: 1.4; margin: 13px 0 30px; }
.pdc-support h2 span, .pdc-support h3 { color: var(--mid-gold); }
.pdc-support h3 { font-size: 28px; line-height: 1.6; margin-bottom: 17px; }
.pdc-support h3::before { content: ""; width: 40px; height: 1px; background: var(--mid-gold); display: block; margin: 0 auto 30px; }

/* Position the artwork against the design frame, letting it paint into the outer margins. */
.pdc-support__art {
  --circle-gold: #dfca94;
  position: absolute;
  inset: 0 0 auto;
  width: min(100%, var(--pdc-design-width));
  margin-inline: auto;
  container-type: inline-size;
  pointer-events: none;
}
/* Inside each group 1em represents 100px in the desktop artwork. */
.pdc-support__art > div { position: absolute; font-size: calc(100cqw / 14.4); }
.pdc-support__art > div::before,
.pdc-support__doctor::after,
.pdc-support__ct::after {
  content: "";
  position: absolute;
  border: 1px solid var(--circle-gold);
  border-radius: 50%;
}

/* Group 61 — dentist and gold circles. */
.pdc-support__doctor { left: -1.42em; top: .08em; width: 6.37em; height: 6.81em; }
.pdc-support__doctor::before { left: 1.03em; top: 0; width: 4.04em; aspect-ratio: 1; }
.pdc-support__doctor::after { left: 1.49em; top: .54em; width: 4.04em; aspect-ratio: 1; border-color: #ede7d8; }
.pdc-support__gold-disc {
  position: absolute; z-index: 1; left: 0; top: .73em;
  width: 5.21em; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(225.733deg, #674623 -17.49%, #b0954f 23.02%, #d3bb7e 45.52%, #d1b97b 51.15%, #a58658 79.28%);
}
.pdc-support__portrait { position: absolute; z-index: 2; left: 1.39em; top: .81em; width: 4.98em; height: 5.92em; }
.pdc-support__portrait img { width: 100%; height: 100%; }
.pdc-support__portrait::after {
  content: ""; position: absolute; left: .06em; top: 4.68em; width: 4.92em; height: 1.32em;
  background: linear-gradient(to bottom, transparent 1.57%, #ffffff80 27.91%, white 60.12%);
}

/* Group 63 — CT, with the solid accent circle next to it. */
.pdc-support__ct { left: 10.48em; top: 0; width: 2.25em; height: 2.13em; }
.pdc-support__ct::before { left: 0; top: 1.32em; width: .81em; aspect-ratio: 1; }
.pdc-support__ct::after { left: 2.60em; top: 1.03em; width: 1.03em; aspect-ratio: 1; background: var(--circle-gold); }
.pdc-support__ct img { position: absolute; left: .12em; top: 0; width: 2.13em; height: 2.13em; object-fit: cover; border-radius: 50%; }

/* Group 62 — treatment device and outline circle. */
.pdc-support__device { left: 11.05em; top: 2.26em; width: 3.70em; height: 3.81em; }
.pdc-support__device::before { left: .19em; top: 2.32em; width: 1.49em; aspect-ratio: 1; }
.pdc-support__device-photo { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.pdc-support__device-photo img { position: absolute; left: -7.86%; top: -3.26%; width: 111.36%; height: 103.19%; max-width: none; }

.pdc-philosophy { background: var(--mid-cream); padding-block: 82px 100px; }
.pdc-philosophy__heading { text-align: center; line-height: 1.6; }
.pdc-philosophy h2 { font-family: inherit; font-weight: 500; font-size: 20px; }
.pdc-philosophy__heading span { display: block; font: 400 50px/1.4 var(--mid-serif); letter-spacing: .1em; margin-bottom: 8px; }
.pdc-philosophy__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 6.32%; align-items: start; margin: 49px 4px 52px; }
.pdc-philosophy__intro > img { width: 100%; }
.pdc-principle { font-size: 40px; letter-spacing: .1em; line-height: 1.5; }
.pdc-principle span { display: block; color: var(--mid-gold); font-size: 28px; line-height: 1.35; margin-bottom: 10px; }
.pdc-principle b { font-size: 37px; margin-right: 3px; letter-spacing: 0; font-weight: inherit; }
.pdc-principle + p { margin-top: 32px; }
.pdc-radical { display: grid; grid-template-columns: minmax(0,315fr) minmax(0,551fr); gap: 7.5%; align-items: center; padding: 54px 7% 60px; border-radius: 20px; }
.pdc-radical__diagrams { max-width: 315px; width: 100%; justify-self: center; }
.pdc-radical__diagrams figure { text-align: center; }
.pdc-radical__diagrams figcaption { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pdc-radical__diagrams img { width: 100%; border-radius: 6px; }
.pdc-radical__diagrams figure + figure::before { content: ""; display: block; width: 0; margin: 12px auto 7px; border: solid transparent; border-width: 17px 12px 0; border-top-color: var(--mid-gold); }
.pdc-radical__copy h4 { font-size: 30px; color: var(--mid-gold); line-height: 1.7; }
.pdc-radical__copy h5 { position: relative; padding-left: 17px; font-family: inherit; font-weight: 700; font-size: 20px; line-height: 1.55; margin: 24px 0 14px; }
.pdc-radical__copy h5::before { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 30px; transform: translateY(-50%) skew(-12deg); background: var(--mid-gold); }
.pdc-radical__video { position: relative; display: block; width: min(900px,100%); margin: 52px auto 0; }
.pdc-radical__player { display: block; width: 100%; aspect-ratio: 900 / 507; height: auto; border: 0; }
.pdc-radical__player:focus-visible { outline: 3px solid #1e4c91; outline-offset: 4px; }

.pdc-care { padding: 82px 0 180px; background: linear-gradient(#f4ede3 84.6%, white); }
.pdc-care__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.pdc-care__steps > li { padding: 24px 32px 36px; background: white; border-radius: 12px; }
.pdc-care__steps h3 { text-align: center; font-size: clamp(20px, calc(1.8 * var(--pdc-design-unit)), 26px); line-height: 1.65; letter-spacing: .1em; color: var(--mid-gold); margin-bottom: 16px; }
.pdc-care__steps h3 span { font-size: 18px; color: #a89a78; margin-right: 6px; white-space: nowrap; }
.pdc-care__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pdc-care__pair img { width: 100%; aspect-ratio: 235 / 150; object-fit: cover; border-radius: 6px; }
.pdc-care__pair h4 { font-family: inherit; text-align: center; font-size: 18px; font-weight: 700; line-height: 1.65; margin: 9px 0 4px; }

@media (min-width: 769px) {
  .pdc-doctor__english {
    width: calc(100% * 628 / 1280);
    text-box: trim-both cap alphabetic;
  }
}

@media (min-width: 769px) and (max-width: 1150px) {
  .pdc-welcome__inner { grid-template-columns: 1.1fr 1fr; gap: 4%; padding-left: 4%; }
  .pdc-welcome__copy { padding-block: 48px; }
  .pdc-welcome h2 { font-size: clamp(25px, 2.95vw, 34px); }
  .pdc-welcome h3 { font-size: 20px; }
  .pdc-treatments li { font-size: 15px; }
  .pdc-doctor__profile { gap: 5%; grid-template-columns: .85fr 1fr; }
  .pdc-doctor__history { flex-wrap: wrap; gap: 12px 20px; }
  .pdc-doctor__history ul { font-size: 14px; }
  .pdc-support { padding-top: 35px; }
  .pdc-support h3 { font-size: 23px; }
  .pdc-support__copy > p:last-child { font-size: 14px; }
  .pdc-radical { gap: 5%; padding-inline: 5%; }
  .pdc-radical__copy h4 { font-size: 25px; }
  .pdc-mid__container { width: 92%; }
  .pdc-care__steps > li { padding-inline: 20px; }
  .pdc-care__pair { gap: 15px; }
}

@media (max-width: 768px) {
  .pdc-mid { font-size: 14px; line-height: 1.7; }
  .pdc-mid__pc { display: none; }
  .pdc-mid__sp { display: initial; }
  .pdc-mid__container { width: calc(100% - 30px); }
  .pdc-welcome__inner { display: flex; flex-direction: column; gap: 0; padding: 0 0 0 15px; }
  .pdc-welcome__photo { width: 100%; aspect-ratio: 360 / 326; }
  .pdc-welcome__copy { padding: 20px 15px 40px 0; }
  .pdc-welcome h2 { font-size: 30px; }
  .pdc-welcome h2 span { display: block; }
  .pdc-welcome h3 { font-size: 20px; margin: 13px 0 24px; }
  .pdc-welcome__lead { margin: 22px 0 18px; line-height: 1.6; }
  .pdc-treatments { gap: 8px 10px; }
  .pdc-treatments li { gap: 6px; font-size: 14px; min-height: 38px; padding: 4px 15px 4px 8px; }
  .pdc-treatments li::before { width: 24px; }
  .pdc-doctor { padding: 38px 15px 0; }
  .pdc-doctor__inner { width: 100%; margin: 0; padding-top: 46px; }
  .pdc-doctor__english { top: -7px; right: -13px; font-size: 48px; letter-spacing: .075em; }
  .pdc-doctor__profile { display: block; }
  .pdc-doctor__details { padding: 20px 0 0; }
  .pdc-doctor__clinic { font-size: 16px; }
  .pdc-doctor__details h2 { font-size: 22px; gap: 16px; margin-top: 6px; }
  .pdc-doctor__details h2 small { font-size: 16px; }
  .pdc-doctor__history { display: grid; gap: 13px; margin-top: 16px; padding-top: 12px; }
  .pdc-doctor__history h3 { font-size: 16px; margin: 0 0 3px; }
  .pdc-doctor__history li { margin-bottom: 3px; line-height: 1.6; }
  .pdc-training { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 32px; }
  .pdc-training__copy { padding: 18px 20px 27px; }
  .pdc-training__copy p:first-child { font-size: 16px; }
  .pdc-training__copy h3 { font-size: 22px; line-height: 1.6; margin: 4px 0 8px; }
  .pdc-support { min-height: 0; padding: 62px 0 31px; }
  .pdc-support__art { position: relative; width: min(100%, 540px); aspect-ratio: 375 / 292; margin-top: 31px; }
  .pdc-support__art > .pdc-support__doctor { left: -15.4667%; top: 0; font-size: 11.4286cqw; }
  .pdc-support__art > :is(.pdc-support__ct, .pdc-support__device) { font-size: 11.54cqw; }
  .pdc-support__ct { left: 58.1333%; top: 2.9333cqw; }
  .pdc-support__device { left: 64.8347%; top: 28.8933cqw; }
  .pdc-support__copy { padding-inline: 12px; }
  .pdc-support__copy > img { width: 55px; margin-bottom: 16px; }
  .pdc-support__copy > p:first-of-type { font-size: 16px; }
  .pdc-support h2 { font-size: clamp(34px, 11.2vw, 48px); margin: 5px 0 12px; }
  .pdc-support h3 { font-size: 18px; margin-bottom: 10px; }
  .pdc-support h3::before { margin-bottom: 16px; }
  .pdc-support__copy > p:last-child { line-height: 1.8; }
  .pdc-philosophy { padding: 52px 0 60px; }
  .pdc-philosophy h2 { font-size: 14px; }
  .pdc-philosophy__heading span { font-size: 32px; margin-bottom: 2px; }
  .pdc-philosophy__intro { display: flex; flex-direction: column; gap: 18px; margin: 30px 0 40px; }
  .pdc-principle { font-size: 24px; }
  .pdc-principle span { font-size: 22px; margin-bottom: 4px; }
  .pdc-principle b { font-size: 31px; }
  .pdc-principle + p { margin-top: 12px; }
  .pdc-radical { display: flex; flex-direction: column; gap: 20px; padding: 24px 20px 26px; }
  .pdc-radical__diagrams { max-width: none; }
  .pdc-radical__diagrams figcaption { font-size: 18px; margin-bottom: 5px; }
  .pdc-radical__diagrams figure + figure::before { margin: 9px auto 6px; }
  .pdc-radical__copy h4 { font-size: 22px; line-height: 1.6; }
  .pdc-radical__copy h5 { font-size: 16px; line-height: 1.7; margin: 12px 0 9px; }
  .pdc-radical__video { margin-top: 40px; }
  .pdc-care { padding: 45px 0 80px; }
  .pdc-care__steps { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 30px; }
  .pdc-care__steps > li { padding: 19px 15px 28px; }
  .pdc-care__steps h3 { font-size: 20px; line-height: 1.6; margin: 0 0 15px; }
  .pdc-care__steps h3 span { display: block; font-size: 14px; line-height: 1.5; margin: 0 0 3px; }
  .pdc-care__pair { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .pdc-care__pair > div { display: grid; grid-template-columns: min(32%, 100px) minmax(0, 1fr); gap: 3px 16px; align-content: start; }
  .pdc-care__pair img { grid-row: 1 / 3; width: 100%; aspect-ratio: 1; align-self: start; }
  .pdc-care__pair h4 { font-size: 16px; margin: -4px 0 0; text-align: left; }
}

@media (min-width: 520px) and (max-width: 768px) {
  .pdc-welcome__photo { max-height: 430px; }
}
