/* Homepage-only J226 doctor comment. Selectors stay under .j226-doctor. */

.j226-doctor {
  position: relative;
  overflow: hidden;
  margin-top: -17rem;
  padding: 14.6rem 0 3.2rem;
  background: #f4f9fc;
  color: #425b70;
  /* Shallow valley in rem so it stays on the story line when the root font changes. */
  clip-path: polygon(
    0% 2rem,
    5% 3.33rem,
    10% 4.52rem,
    15% 5.57rem,
    20% 6.48rem,
    25% 7.25rem,
    30% 7.88rem,
    35% 8.37rem,
    40% 8.72rem,
    45% 8.93rem,
    50% 9rem,
    55% 8.93rem,
    60% 8.72rem,
    65% 8.37rem,
    70% 7.88rem,
    75% 7.25rem,
    80% 6.48rem,
    85% 5.57rem,
    90% 4.52rem,
    95% 3.33rem,
    100% 2rem,
    100% 100%,
    0% 100%
  );
}

.j226-doctor::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(42% 58% at 12% 58%, rgba(234, 244, 250, 0.95) 0%, rgba(234, 244, 250, 0) 72%),
    radial-gradient(36% 50% at 88% 42%, rgba(176, 214, 234, 0.28) 0%, rgba(176, 214, 234, 0) 70%),
    linear-gradient(180deg, #f4f9fc 0%, #ffffff 46%, #f7fbfd 100%);
  pointer-events: none;
}

.j226-doctor-inner {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.j226-doctor-en {
  margin: 0 0 4.8rem;
  color: #9bb6c9;
  font-family: "Roboto", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  text-align: center;
}

.j226-doctor-layout {
  display: grid;
  grid-template-columns: minmax(0, 32fr) minmax(0, 44fr) minmax(0, 24fr);
  gap: 1.6rem 2.4rem;
  align-items: center;
}

.j226-doctor-photo,
.j226-doctor-body,
.j226-doctor-product {
  min-width: 0;
}

.j226-doctor-photo,
.j226-doctor-product {
  margin: 0;
}

.j226-doctor-photo {
  position: relative;
  align-self: center;
  overflow: hidden;
  aspect-ratio: 941 / 1240;
}

.j226-doctor-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.j226-doctor-kicker {
  margin: 0 0 0.6rem;
  color: #1764a3;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.j226-doctor-title {
  margin: 0 0 1.4rem;
  color: #173d5f;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.j226-doctor-quote {
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
}

.j226-doctor-quote p {
  margin: 0;
  padding: 0.15rem 0 0.15rem 1.4rem;
  border-left: 2px solid #9ccce8;
  color: #173d5f;
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.85;
}

.j226-doctor-review {
  margin: 0;
  color: #425b70;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.9;
}

.j226-doctor-clinic,
.j226-doctor-name,
.j226-doctor-credential {
  margin: 0;
  line-height: 1.6;
}

.j226-doctor-clinic {
  margin-top: 1.8rem;
  color: #6d7c89;
  font-size: 1.25rem;
  font-weight: 400;
}

.j226-doctor-name {
  margin-top: 0.35rem;
  color: #173d5f;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.j226-doctor-credential {
  margin-top: 0.25rem;
  color: #6d7c89;
  font-size: 1.25rem;
  font-weight: 400;
}

.j226-doctor-action {
  margin: 1.8rem 0 0;
}

.j226-doctor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 3.4rem 0 2.2rem;
  border: 0;
  border-radius: 10em;
  background-color: #0b5694;
  background-image: url(../img/arrow-f.svg);
  background-repeat: no-repeat;
  background-position: right 1.35rem center;
  background-size: 18px auto;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, background-position 0.2s ease;
}

.j226-doctor-button:hover {
  background-color: #084578;
  background-image: url(../img/arrow-f.svg);
  background-position: right 1.05rem center;
  color: #fff;
  opacity: 1;
  text-decoration: none;
}

.j226-doctor-button:focus {
  outline: 3px solid #0b5694;
  outline-offset: 3px;
}

.j226-doctor-button:focus:not(:focus-visible) {
  outline: none;
}

.j226-doctor-button:focus-visible {
  outline: 3px solid #0b5694;
  outline-offset: 3px;
}

.j226-doctor-product {
  position: relative;
}

.j226-doctor-product::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 62%;
  top: 34%;
  width: 78%;
  height: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(176, 214, 234, 0.45) 0%, rgba(176, 214, 234, 0) 72%);
  pointer-events: none;
}

.j226-doctor-product img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  margin: 0 auto;
  object-fit: contain;
}

.j226-doctor-note {
  margin: 1.4rem 0 0;
  width: calc(100% + 1.6rem);
  color: #5e6d7a;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .j226-doctor-layout {
    gap: 1.8rem 2rem;
  }

  .j226-doctor-title {
    font-size: 2.3rem;
  }

  .j226-doctor-quote p {
    font-size: 1.65rem;
  }

  .j226-doctor-review {
    font-size: 1.4rem;
  }

  .j226-doctor-product img {
    max-height: 280px;
  }
}

@media screen and (max-width: 767px) {
  .j226-doctor {
    margin-top: -1.2rem;
    padding: 2.4rem 0 2.4rem;
    clip-path: none;
  }

  .j226-doctor-en {
    margin-bottom: 3.6rem;
    color: #a7c0d0;
    font-size: 1.15rem;
    letter-spacing: 0.18em;
  }

  .j226-doctor-product::before {
    content: none;
  }

  .j226-doctor-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-areas:
      "photo product"
      "body body";
    gap: 1.2rem 0.6rem;
    align-items: end;
  }

  .j226-doctor-photo {
    grid-area: photo;
    align-self: end;
  }

  .j226-doctor-product {
    grid-area: product;
    align-self: end;
  }

  .j226-doctor-body {
    grid-area: body;
  }

  .j226-doctor-kicker {
    font-size: 1.2rem;
  }

  .j226-doctor-title {
    font-size: 2.2rem;
  }

  .j226-doctor-quote p {
    font-size: 1.65rem;
    font-weight: 500;
  }

  .j226-doctor-review {
    font-size: 1.4rem;
  }

  .j226-doctor-name {
    font-size: 1.7rem;
  }

  .j226-doctor-product img {
    max-height: none;
  }

  .j226-doctor-button {
    width: 100%;
    min-height: 48px;
    padding-right: 3rem;
    padding-left: 1.6rem;
  }

  .j226-doctor-note {
    margin-top: 1.2rem;
    width: auto;
    font-size: 1.2rem;
  }
}
