.p-mdoc{
  --navy: #0b4f86;
  --navy-2: #1468a8;
  --ivory: #f4f8fb;
  --paper: #e7f1f8;
  --beige: #d4e6f4;
  --gold: #0e6cb5;
  --gold-line: #7eb6de;
  --gold-soft: #d7ebf8;
  --ink: #163044;
  --muted: #4a6274;
  --line: #c9dcea;
  --danger: #b42318;
  --white: #ffffff;
  --sans: "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --header: 0px;
  color-scheme: light;
}

.p-mdoc *, .p-mdoc *::before, .p-mdoc *::after{ box-sizing: border-box; }
.p-mdoc{ scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
.p-mdoc{
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: clip;
}
.p-mdoc img, .p-mdoc svg{ max-width: 100%; }
.p-mdoc img{ height: auto; }
.p-mdoc button, .p-mdoc input, .p-mdoc select, .p-mdoc textarea{ font: inherit; color: inherit; }
.p-mdoc a{ color: inherit; }
.p-mdoc h1, .p-mdoc h2, .p-mdoc h3, .p-mdoc legend{
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.p-mdoc h1, .p-mdoc h2, .p-mdoc h3{ margin: 0 0 0.6em; }
.p-mdoc p{ margin: 0 0 1em; }
.p-mdoc [hidden]{ display: none !important; }
.p-mdoc :focus-visible{ outline: 2px solid var(--navy); outline-offset: 3px; }
.p-mdoc ::selection{ background: #d4e6f4; }

.p-mdoc .wrap{ width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.p-mdoc .section{ padding: 56px 0; }
.p-mdoc .sec-kicker{
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.16em;
}
.p-mdoc .hero-copy .sec-kicker{ font-weight: 700; }
.p-mdoc .lede{ font-size: 16px; line-height: 1.9; max-width: 40rem; }
@media (min-width: 1024px) {
  .p-mdoc .hero .lede .lede-sp{ display: none; }
}

.p-mdoc .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  background: var(--navy);
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: 2px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
}
.p-mdoc .btn:hover{ background: var(--navy-2); }
.p-mdoc .btn-ghost{ background: transparent; color: var(--navy); }
.p-mdoc .btn-ghost:hover{ background: rgba(11, 79, 134, 0.06); }
.p-mdoc .btn[disabled]{ opacity: 0.6; cursor: wait; }

.p-mdoc .hero{
  display: grid;
  align-items: start;
  background: var(--paper);
}
.p-mdoc .hero-person-frame, .p-mdoc .hero-person{ display: none; }
.p-mdoc .hero-logo{
  display: block;
  width: 74px;
  height: auto;
  margin: 28px 0 16px 20px;
}
.p-mdoc .hero-copy{ padding: 8px 20px 8px; }
.p-mdoc .hero .contact{ padding: 4px 16px 32px; background: transparent; }
.p-mdoc .hero h1{ font-size: clamp(1.75rem, 3.4vw, 2.55rem); margin-bottom: 16px; }
.p-mdoc .hero h1 .hero-accent{ color: var(--navy); }
.p-mdoc .hero h1 .hero-small{ font-size: 0.78em; }
.p-mdoc .hero h1 .hero-mark{
  background-image: linear-gradient(transparent 46%, #ffe14a 46% 96%, transparent 96%);
}
.p-mdoc .hero-break{ display: none; }
.p-mdoc .hero-photo{ position: relative; aspect-ratio: 16 / 11; background: #d5e3ee; overflow: hidden; }
.p-mdoc .hero-photo img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.p-mdoc .caption{
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 3px 8px;
  background: rgba(11, 58, 99, 0.72);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.p-mdoc .hero-points{
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
}
.p-mdoc .hero-points li{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(176px, 100%);
  aspect-ratio: 1;
  margin: 0;
  padding: 16px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  text-align: center;
}
.p-mdoc .hero-points b{ margin-top: 4px; font-family: var(--sans); font-weight: 700; font-size: clamp(18px, 2vw, 24px); line-height: 1.25; letter-spacing: 0.02em; color: var(--navy); white-space: nowrap; }
.p-mdoc .hero-points b .hero-more{ display: inline; margin: 0; color: inherit; font-size: 0.65em; font-weight: 700; line-height: 1; letter-spacing: 0.04em; }
.p-mdoc .hero-points span{ display: block; margin: 0; color: var(--ink); font-size: 15px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.p-mdoc .hero-points .hero-icon{ display: block; width: 56px; height: 56px; margin-top: 6px; color: var(--navy); flex: 0 0 auto; }
.p-mdoc input, .p-mdoc select, .p-mdoc textarea, .p-mdoc .field, .p-mdoc legend, .p-mdoc button{ scroll-margin-top: calc(var(--header) + 16px); }

.p-mdoc .reason-grid{ display: grid; gap: 14px; }
.p-mdoc .reason{
  margin: 0;
  padding: 0 20px 18px;
  background: var(--white);
  border-top: 2px solid var(--navy);
}
.p-mdoc .reason-illust{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 180px;
  margin: 0 -20px 28px;
  padding: 16px 12px 12px;
  background: var(--paper);
}
.p-mdoc .reason-illust img{
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 148px;
}
.p-mdoc .reason h3{ font-size: 1.25rem; margin-bottom: 8px; }
.p-mdoc .reason p{ margin: 0 0 12px; line-height: 1.7; }
.p-mdoc .reason ul{ margin: 0; padding: 0 0 0 1.15em; }
.p-mdoc .reason li{ margin: 0 0 8px; line-height: 1.55; }
.p-mdoc .reason li:last-child{ margin-bottom: 0; }
.p-mdoc .reason-note{ margin: 28px 0 0; color: var(--navy); font-weight: 700; line-height: 1.7; text-align: center; }
.p-mdoc .reason-cta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 18px auto 0;
}
.p-mdoc .reason-cta a{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  padding: 14px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.p-mdoc .reason-cta svg{ width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.p-mdoc .reason-cta-form svg circle{ fill: currentColor; stroke: none; }
.p-mdoc .reason-cta-phone{ background: var(--white); color: #3d3d3d; border: 1px solid #d7d7d7; }
.p-mdoc .reason-cta-phone:hover{ background: #f6f6f6; }
.p-mdoc .reason-cta-form{ background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.p-mdoc .reason-cta-form:hover{ background: var(--navy-2); }
.p-mdoc br.sp-br{ display: none; }

.p-mdoc .offer, .p-mdoc .flow-section{ background: var(--paper); }
.p-mdoc .q-grid{
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.p-mdoc .q-grid li{
  margin: 0;
  padding: 22px 20px 20px;
  background: var(--white);
}
.p-mdoc .q-en{
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.p-mdoc .q-grid h3{ margin: 0 0 8px; font-size: 1.35rem; }
.p-mdoc .q-grid p{ margin: 0; }
.p-mdoc .q-grid .q-en{ margin: 0 0 2px; }
.p-mdoc .q-grid strong{ color: #9a3d48; font-weight: 700; }
.p-mdoc .q-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.p-mdoc .q-head h3{ margin: 0; }
.p-mdoc .q-icon{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background-color: var(--navy);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.p-mdoc .q-icon-quality{
  -webkit-mask-image: url("/assets/medical-doctor/icons/q-quality.png");
  mask-image: url("/assets/medical-doctor/icons/q-quality.png");
}
.p-mdoc .q-icon-quest{
  -webkit-mask-image: url("/assets/medical-doctor/icons/q-quest.png");
  mask-image: url("/assets/medical-doctor/icons/q-quest.png");
}
.p-mdoc .q-icon-question{
  -webkit-mask-image: url("/assets/medical-doctor/icons/q-question.png");
  mask-image: url("/assets/medical-doctor/icons/q-question.png");
}
.p-mdoc .q-icon-quick{
  -webkit-mask-image: url("/assets/medical-doctor/icons/q-quick.png");
  mask-image: url("/assets/medical-doctor/icons/q-quick.png");
}
.p-mdoc .stat-band{
  margin-top: 28px;
  display: grid;
  gap: 8px;
  background: var(--navy);
  color: #f3f8fc;
  padding: 28px 22px;
}
.p-mdoc .stat-num{ font-family: var(--sans); font-size: 64px; line-height: 0.95; letter-spacing: 0.03em; }
.p-mdoc .stat-band p{ margin: 0; }
.p-mdoc .stat-note{ color: var(--gold-soft); font-size: 14px; margin-top: 6px; }

.p-mdoc .split{ display: grid; gap: 20px; margin-top: 8px; }
.p-mdoc .split h3{ font-size: 1.35rem; }
.p-mdoc .split p{ margin: 0; }

.p-mdoc #area{ background: var(--white); }
.p-mdoc .area-movie{
  display: block;
  width: min(100%, 480px);
  height: auto;
  margin: 4px auto 12px;
  background: #fff;
}
.p-mdoc .pref-list{ list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.p-mdoc .pref-list li{
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.p-mdoc .area-note{ margin: 18px 0 0; color: var(--muted); }

.p-mdoc .flow{
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 34px;
}
.p-mdoc .flow li{
  position: relative;
  margin: 0;
  padding: 16px 14px 16px;
  background: var(--white);
  border-top: 2px solid var(--navy);
}
.p-mdoc .flow li:not(:last-child)::after{
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -6px;
  bottom: -22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
}
.p-mdoc .flow-num{
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.p-mdoc .flow h3{ margin: 0; font-size: 1.05rem; line-height: 1.5; }
.p-mdoc .flow-copy{ min-width: 0; }
.p-mdoc .flow-copy p{ margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.p-mdoc br.flow-pc, .p-mdoc br.flow-fit, .p-mdoc br.flow-fit-long{ display: none; }
@media (max-width: 420px) {
  .p-mdoc .flow-rest{ display: block; }
}
@media (min-width: 880px) {
  .p-mdoc .flow li{
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 28px;
  }
  .p-mdoc .flow-num{ margin: 0; flex: 0 0 108px; }
  .p-mdoc .flow-copy{ flex: 1; }
  .p-mdoc .flow br.flow-pc{ display: block; }
}
@media (min-width: 880px) and (max-width: 939px) {
  .p-mdoc .flow br.flow-fit{ display: block; }
}
@media (min-width: 880px) and (max-width: 1079px) {
  .p-mdoc .flow br.flow-fit-long{ display: block; }
}

.p-mdoc .faq-list{ border-top: 1px solid var(--line); }
.p-mdoc .faq-list details{ border-bottom: 1px solid var(--line); }
.p-mdoc .faq-list summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-weight: 500;
}
.p-mdoc .faq-q{ flex: 1; min-width: 0; }
.p-mdoc .faq-list summary::-webkit-details-marker{ display: none; }
.p-mdoc .faq-list summary::after{ content: "＋"; color: var(--gold); font-family: var(--sans); font-size: 22px; line-height: 1; }
.p-mdoc .faq-list details[open] summary::after{ content: "－"; }
.p-mdoc .faq-list details p{ margin: 0 4px 18px; max-width: 42rem; color: var(--muted); }
.p-mdoc .faq-list details a{ color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.p-mdoc .contact{ background: transparent; }
.p-mdoc .form-card{
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 79, 134, 0.14);
  padding: 0 0 16px;
  overflow: hidden;
}
.p-mdoc .form-head{ background: var(--navy); color: #fff; padding: 12px 16px; flex: 0 0 auto; }
.p-mdoc .form-head h2{ margin: 0; color: #fff; font-size: 1.05rem; line-height: 1.5; text-align: center; letter-spacing: 0.02em; }
.p-mdoc .phone-bar{ background: var(--white); padding: 28px 0 32px; }
.p-mdoc .phone-bar-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}
.p-mdoc .phone-bar-label{
  margin: 0;
  padding: 10px 18px;
  border: 2px solid var(--navy);
  border-radius: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: transparent;
}
.p-mdoc .phone-bar-number{
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.p-mdoc .phone-bar-hours{ margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.p-mdoc .form-noscript{ margin: 12px 18px 0; }
.p-mdoc .form-card:has(#thanks:not([hidden])) .form-head, .p-mdoc .form-card:has(#thanks:not([hidden])) .progress{ display: none; }
.p-mdoc .progress{ position: relative; padding: 14px 18px 0; flex: 0 0 auto; }
.p-mdoc .progress-label{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.p-mdoc .progress-track{ display: none; }
.p-mdoc .progress-bar{ height: 2px; width: 25%; background: var(--navy); }
.p-mdoc .progress-steps{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 10px; padding: 0; list-style: none; }
.p-mdoc .progress-steps li{ display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11px; color: #7d93a6; line-height: 1.3; white-space: nowrap; }
.p-mdoc .progress-steps li:not(:last-child)::after{
  content: "";
  flex: 1 1 auto;
  align-self: center;
  height: 1px;
  min-width: 4px;
  margin-left: 4px;
  margin-right: 4px;
  background: #c9dcea;
}
@media (max-width: 359px) {
  .p-mdoc .progress-steps li{ font-size: 10px; gap: 2px; }
  .p-mdoc .progress-steps li::before{ width: 16px; height: 16px; font-size: 10px; }
  .p-mdoc .progress-steps li:not(:last-child)::after{ min-width: 0; margin-left: 3px; margin-right: 3px; }
}
.p-mdoc .progress-steps li::before{
  content: attr(data-progress);
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d7e4ef;
  color: #5d7488;
  font-size: 11px;
  font-weight: 700;
}
.p-mdoc .progress-steps .is-current{ color: var(--navy); font-weight: 700; }
.p-mdoc .progress-steps .is-current::before{ background: var(--navy); color: #fff; }
.p-mdoc .progress-steps .is-done{ color: var(--navy-2); }
.p-mdoc .progress-steps .is-done::before{ background: var(--navy-2); color: #fff; }
.p-mdoc .form-card form, .p-mdoc .review, .p-mdoc .thanks{ padding: 0 18px; }
.p-mdoc .form-card form{ display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.p-mdoc fieldset[data-step]{ position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.p-mdoc fieldset{ border: 0; margin: 0; padding: 0; min-width: 0; }
.p-mdoc legend{ padding: 0; margin-bottom: 8px; font-size: 1.15rem; flex: 0 0 auto; }
.p-mdoc .form-scroll{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 12px;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #5f93bf #e7f1f8;
}
.p-mdoc .form-scroll::-webkit-scrollbar{ width: 14px; }
.p-mdoc .form-scroll::-webkit-scrollbar-track{ background: #e7f1f8; }
.p-mdoc .form-scroll::-webkit-scrollbar-thumb{ background: #5f93bf; border: 3px solid #e7f1f8; border-radius: 8px; }
.p-mdoc fieldset[data-step="1"] > legend{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 880px) {
  .p-mdoc .form-head-break{ display: none; }
}
.p-mdoc #field-employment, .p-mdoc #field-timing{ margin-bottom: 10px; }
.p-mdoc #field-employment .choice, .p-mdoc #field-timing .choice{ min-height: 42px; padding: 6px 8px; }
.p-mdoc #field-employment .choice-grid, .p-mdoc #field-timing .choice-grid{ gap: 6px; }
.p-mdoc .step-note{ margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.p-mdoc .field{ margin: 0 0 16px; flex: 0 0 auto; }
.p-mdoc .field-label{ display: block; margin-bottom: 8px; font-weight: 700; }
.p-mdoc .req::after, .p-mdoc .opt::after{
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}
.p-mdoc .req::after{ content: "必須"; color: #d23b6a; border-color: #f0b3c4; background: #fff; border-radius: 3px; }
.p-mdoc .opt::after{ content: "任意"; color: var(--muted); }
.p-mdoc .hint{ margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.p-mdoc .choice-grid, .p-mdoc .dept-grid{ display: grid; grid-template-columns: 1fr; gap: 8px; }
.p-mdoc #field-employment .choice-grid, .p-mdoc #field-timing .choice-grid{ grid-template-columns: 1fr 1fr; }
.p-mdoc .choice{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #c5d4e2;
  border-radius: 6px;
  cursor: pointer;
}
.p-mdoc .choice:has(input[type="radio"]){ justify-content: center; font-weight: 700; position: relative; }
.p-mdoc .choice input{ width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--navy); }
.p-mdoc .choice:has(input[type="radio"]) input{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.p-mdoc .choice:has(input:checked){ border-color: var(--navy); background: #e8f4fc; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.p-mdoc .choice:focus-within{ outline: 2px solid var(--navy); outline-offset: 2px; }
.p-mdoc .choice.consent{ justify-content: flex-start; font-weight: 500; background: transparent; border: 0; box-shadow: none; min-height: 0; border-radius: 0; color: inherit; }
.p-mdoc .choice.consent:has(input:checked){ background: transparent; border: 0; box-shadow: none; color: inherit; }
.p-mdoc .choice.consent input{ position: static; opacity: 1; width: 18px; height: 18px; }
.p-mdoc input[type="text"], .p-mdoc input[type="tel"], .p-mdoc input[type="email"], .p-mdoc select{
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b7cfe0;
  border-radius: 2px;
  background: var(--white);
}
.p-mdoc .field.is-invalid input, .p-mdoc .field.is-invalid select, .p-mdoc .is-invalid > .choice-grid{ outline: 1px solid var(--danger); }
.p-mdoc .field-error{ margin: 8px 0 0; color: var(--danger); font-size: 14px; }
.p-mdoc .form-alert{ margin: 0 0 16px; padding: 12px 14px; background: #f8ece8; color: var(--danger); }
.p-mdoc .group-title{ font-family: var(--sans); font-size: 14px; letter-spacing: 0.12em; margin: 0 0 6px; }
.p-mdoc #field-departments > fieldset + fieldset{ margin-top: 22px; }
.p-mdoc .dept-count{ margin: 0 0 12px; font-size: 14px; color: var(--navy); }
.p-mdoc .form-nav{ display: grid; gap: 8px; margin-top: 0; flex: 0 0 auto; padding-top: 8px; background: #fff; border-top: 1px solid var(--line); }
.p-mdoc .review{ flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.p-mdoc .thanks{ flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.p-mdoc .form-nav .btn{ width: 100%; min-height: 46px; border-radius: 8px; background: #1574b8; border-color: #1574b8; }
.p-mdoc .form-nav .btn:hover{ background: #0e629e; }
.p-mdoc .form-nav .btn-ghost{ background: transparent; color: var(--navy); border-color: transparent; order: 2; }
.p-mdoc .form-nav .btn-ghost:hover{ background: rgba(11, 79, 134, 0.06); }
.p-mdoc .review h3{ font-size: 1.4rem; }
.p-mdoc .review dl{ margin: 0; }
.p-mdoc .review dl > div{ display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.p-mdoc .review dt{ color: var(--muted); font-size: 13px; }
.p-mdoc .review dd{ margin: 0; }
.p-mdoc .consent{ align-items: flex-start; }
.p-mdoc .consent a{ text-decoration: underline; text-underline-offset: 3px; }
.p-mdoc .hp{ position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.p-mdoc .thanks{ padding: 12px 0 8px; }
.p-mdoc .thanks h2{ font-size: clamp(1.7rem, 4vw, 2.2rem); }

.p-mdoc .site-footer{ background: var(--navy); color: #e4eef6; padding: 48px 0 32px; font-size: 14px; }
.p-mdoc .site-footer a{ color: var(--gold-soft); }
.p-mdoc .footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.p-mdoc .footer-brand img{ height: 32px; width: auto; filter: brightness(0) invert(1); }
.p-mdoc .footer-grid{ display: grid; gap: 6px; }
.p-mdoc .footer-links{ display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.p-mdoc .legal{ margin-top: 22px; color: #b7cce0; text-align: center; }
@media (max-width: 699px) {
  .p-mdoc .footer-brand{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .p-mdoc .footer-brand img{ height: 48px; }
  .p-mdoc .footer-brand div{ text-align: left; }
  .p-mdoc .footer-kana{ display: block; }
  .p-mdoc .footer-brand br{ display: none; }
  .p-mdoc .faq-rest{ display: block; }
  .p-mdoc .area-title-rest, .p-mdoc .sp-br, .p-mdoc br.sp-br{ display: block; }
}

.p-mdoc .sticky-cta{
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 248, 251, 0.96);
  border-top: 1px solid var(--line);
}
.p-mdoc .sticky-cta .btn{ width: 100%; }

@media (min-width: 640px) {
  .p-mdoc .hero-points{ grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: stretch; }
  .p-mdoc .hero-points li{ width: auto; padding: 10px; }
  .p-mdoc .choice-grid{ grid-template-columns: 1fr 1fr; }
  .p-mdoc .choice-grid.gender{ grid-template-columns: repeat(3, 1fr); }
  .p-mdoc .dept-grid{ grid-template-columns: 1fr 1fr; }
  .p-mdoc .stat-band{ grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 32px 36px; }
}
@media (min-width: 700px) {
  .p-mdoc .reason-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .p-mdoc .q-grid{ grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 880px) {
  .p-mdoc .section{ padding: 72px 0; }
  .p-mdoc #offer .lede{ max-width: none; }
  .p-mdoc .offer-lead-break{ display: none; }
  .p-mdoc .hero{
    --person-w: clamp(220px, 26vw, 320px);
    position: relative;
    grid-template-columns: minmax(280px, min(420px, 34vw)) minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
    min-height: 0;
    padding: 36px max(24px, calc((100% - 1120px) / 2)) 64px;
    overflow: visible;
  }
  .p-mdoc .hero-logo{
    grid-column: 1 / -1;
    width: 84px;
    margin: 0 0 28px;
  }
  .p-mdoc .hero-person-frame{
    display: block;
    position: absolute;
    z-index: 35;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .p-mdoc .hero-person{
    display: block;
    position: absolute;
    right: 28px;
    bottom: 0;
    width: var(--person-w);
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
    user-select: none;
  }
  .p-mdoc .hero h1{ white-space: nowrap; }
  .p-mdoc .hero-copy{ display: block; position: sticky; z-index: 40; order: 2; top: calc(var(--header) + 20px); padding: 8px calc(var(--person-w) - 8px) 0 0; }
  .p-mdoc .hero .contact{ position: relative; z-index: 40; order: 1; padding: 0; }
  .p-mdoc .hero .dept-grid{ grid-template-columns: 1fr; }
  .p-mdoc .hero .form-nav .btn{ min-width: 0; }
  .p-mdoc .hero-points{ gap: 16px; width: calc(100% + var(--person-w) - 8px); }
  .p-mdoc .reason-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .p-mdoc .split{ grid-template-columns: 1fr 1fr; gap: 0; }
  .p-mdoc .split > div + div{ border-left: 1px solid var(--line); padding-left: 36px; }
  .p-mdoc .dept-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-mdoc .form-card{ padding: 0 0 12px; }
  .p-mdoc .sticky-cta{ display: none !important; }
  .p-mdoc.is-show-sticky{ padding-bottom: 0; }
}
@media (min-width: 1440px) {
  .p-mdoc .hero-person{
    right: max(28px, calc((100% - 1440px) / 2 + 28px));
  }
}
@media (max-width: 879px) {
  .p-mdoc.is-show-sticky{ padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .p-mdoc.is-show-sticky .sticky-cta{ display: block; }
  .p-mdoc .hero{
    position: relative;
    grid-template-columns: minmax(0, 1fr) clamp(136px, 44vw, 220px);
    column-gap: 8px;
    align-items: start;
    padding: 0 12px 8px 0;
  }
  .p-mdoc .hero-logo, .p-mdoc .hero-copy .sec-kicker, .p-mdoc .hero h1, .p-mdoc .hero .lede, .p-mdoc .hero-points, .p-mdoc .hero .contact{ position: relative; z-index: 2; }
  .p-mdoc .hero-logo{ grid-column: 1 / -1; margin: 20px 0 8px 20px; }
  .p-mdoc .hero-copy{ display: contents; }
  .p-mdoc .hero-copy .sec-kicker, .p-mdoc .hero h1, .p-mdoc .hero .lede{
    grid-column: 1;
    margin-left: 20px;
    margin-right: 0;
    min-width: 0;
  }
  .p-mdoc .hero-copy .sec-kicker{
    grid-column: 1 / -1;
    margin-right: 20px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .p-mdoc .hero h1{
    grid-column: 1 / -1;
    grid-row: 3;
    margin-right: 20px;
    font-size: clamp(22px, 6.8vw, 34px);
    white-space: nowrap;
  }
  .p-mdoc .hero h1 .hero-break{ display: block; }
  .p-mdoc .hero h1 .hero-mark{ font-size: 1.18em; line-height: 1.35; }
  .p-mdoc .hero .lede{ grid-row: 4; align-self: center; }
  .p-mdoc .hero-person-frame{
    display: block;
    position: relative;
    grid-column: 2;
    grid-row: 3 / 5;
    align-self: start;
    margin-top: calc(1.45 * clamp(22px, 6.8vw, 34px) + 6px);
    width: 100%;
    aspect-ratio: 467 / 660;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    margin-right: 0;
    transform: scale(1.28);
    transform-origin: right top;
  }
  .p-mdoc .hero-person{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-width: none;
  }
  .p-mdoc .hero-points{
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
    gap: 8px;
    width: auto;
    margin: -1px 12px 14px;
  }
  .p-mdoc .hero-points li{ width: auto; padding: 8px 4px; }
  .p-mdoc .hero-points span{ font-size: clamp(7px, 2.3vw, 12px); line-height: 1.2; }
  .p-mdoc .hero-points b{ font-size: clamp(12px, 3.8vw, 18px); }
  .p-mdoc .hero-points .hero-icon{ width: 30px; height: 30px; margin-top: 4px; }
  .p-mdoc .hero .contact{ grid-column: 1 / -1; }
}
@media (min-width: 520px) and (max-width: 879px) {
  .p-mdoc .hero-points span{ font-size: 12px; }
  .p-mdoc .hero-points b{ font-size: 20px; }
  .p-mdoc .hero-points .hero-icon{ width: 40px; height: 40px; }
}
@media (min-width: 700px) and (max-width: 879px) {
  .p-mdoc .hero{
    --person-w: clamp(132px, calc(100vw - 568px), 260px);
    grid-template-columns: minmax(308px, 320px) minmax(0, 1fr);
    column-gap: 20px;
    padding: 20px 16px 32px;
    overflow: visible;
  }
  .p-mdoc .hero-logo{
    grid-column: 1 / -1;
    width: 74px;
    margin: 0 0 16px;
  }
  .p-mdoc .hero-copy{
    display: block;
    order: 2;
    z-index: 2;
    padding: 0;
  }
  .p-mdoc .hero-copy .sec-kicker, .p-mdoc .hero h1, .p-mdoc .hero .lede{
    grid-column: auto;
    grid-row: auto;
    margin-left: 0;
    margin-right: 0;
  }
  .p-mdoc .hero-copy .sec-kicker{
    letter-spacing: 0.04em;
    white-space: normal;
  }
  .p-mdoc .hero h1{
    font-size: 1.28rem;
    white-space: nowrap;
  }
  .p-mdoc .hero h1 .hero-break{ display: none; }
  .p-mdoc .hero h1 .hero-mark{ display: inline-block; font-size: 1em; line-height: inherit; }
  .p-mdoc .hero .lede{
    align-self: auto;
    max-width: 230px;
  }
  .p-mdoc .hero .contact{
    order: 1;
    grid-column: auto;
    z-index: 2;
    padding: 0;
  }
  .p-mdoc .hero .dept-grid{ grid-template-columns: 1fr; }
  .p-mdoc .hero .form-nav .btn{ min-width: 0; }
  .p-mdoc .hero-person-frame{
    display: block;
    position: absolute;
    inset: 0;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    width: auto;
    height: auto;
    margin: 0;
    aspect-ratio: auto;
    transform: none;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
  }
  .p-mdoc .hero-person{
    top: auto;
    bottom: 0;
    right: 8px;
    left: auto;
    width: var(--person-w);
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
  }
  .p-mdoc .hero-points{
    grid-column: auto;
    grid-template-columns: repeat(3, 108px);
    justify-content: start;
    gap: 10px;
    width: auto;
    margin: 18px 0 0;
  }
  .p-mdoc .hero-points li{ width: 108px; padding: 8px 4px; }
  .p-mdoc .hero-points span{ font-size: 10px; line-height: 1.2; }
  .p-mdoc .hero-points b{ font-size: 14px; }
  .p-mdoc .hero-points .hero-icon{ width: 26px; height: 26px; margin-top: 2px; }
}
@media (max-width: 699px) {
  .p-mdoc .hero .lede{ font-size: 12px; }
  .p-mdoc .hero-person-frame{
    position: absolute;
    grid-row: auto;
    grid-column: auto;
    align-self: auto;
    top: auto;
    right: -8px;
    bottom: var(--doctor-bottom, 0px);
    left: auto;
    width: auto;
    height: var(--doctor-h, 260px);
    margin: 0;
    aspect-ratio: 467 / 660;
    transform: none;
    transform-origin: right bottom;
  }
  .p-mdoc .phone-bar{ padding: 20px 0 24px; }
  .p-mdoc .phone-bar-inner{ width: min(1080px, calc(100% - 24px)); gap: 10px 14px; }
  .p-mdoc .phone-bar-label{ padding: 8px 12px; font-size: 14px; }
  .p-mdoc .phone-bar-number{ font-size: clamp(20px, 6vw, 28px); }
  .p-mdoc .phone-bar-hours{ font-size: 12px; }
}
@media (max-width: 320px) {
  .p-mdoc #offer .lede{ font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-mdoc{ scroll-behavior: auto; }
}
.p-mdoc #contact, .p-mdoc #formCard{ scroll-margin-top: calc(var(--header) + 12px); }

html:has(body.page-medical-doctor) {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body.page-medical-doctor {
  overflow-x: clip;
  background: #f4f8fb;
}
.p-mdoc .thanks-shell { padding: 48px 0 72px; }
.p-mdoc .thanks-logo { display: block; width: 120px; height: auto; margin: 0 auto 24px; }
.p-mdoc .thanks-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 79, 134, 0.14);
  padding: 28px 24px 32px;
}
.p-mdoc .thanks-card h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.p-mdoc .thanks-back { display: inline-block; margin-top: 8px; color: #0b4f86; font-weight: 700; }
