.rc-footer.with-contact {
  display: block;
  padding: 0;
}
.contact-row {
  display: grid;
  grid-template-columns: minmax(175px, 250px) minmax(0, 420px);
  align-items: start;
  justify-content: center;
  gap: clamp(32px, 5vw, 64px);
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px) var(--gutter);
}
.rc-footer.with-contact .rc-source { width: 100%; margin-inline: 0; }
.contact-identity {
  display: grid;
  justify-items: start;
  gap: 3px;
  margin: 0;
  font: 400 14px/1.6 "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
}
.contact-row .contact-identity { padding-top: 8px; }
.contact-identity strong, .rc-footer .contact-identity strong {
  margin-bottom: 3px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}
.contact-identity a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-page .contact-identity { margin-top: 16px; color: #172f50; }
.contact-panel {
  min-width: 0;
  padding: clamp(16px, 2.1vw, 24px);
  border-radius: 10px;
  background: #f2f3f4;
  color: #222;
  font: 400 16px/1.5 "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
.contact-panel h1, .contact-panel h2 {
  color: #172f50;
  margin: 0 0 14px;
  font-size: clamp(21px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: -.025em;
}
.contact-fields { display: grid; gap: 11px; }
.contact-field { display: grid; gap: 4px; }
.contact-field label { font-size: 15px; line-height: 1.4; font-weight: 500; }
.contact-field small { margin-inline-start: .6em; color: #505b63; font-size: 12px; font-weight: 400; }
.contact-field .required-mark { color: #a43139; font-weight: 600; }
.contact-field :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 10px;
  color: #222;
  border: 1px solid #78848c;
  border-radius: 6px;
  background-color: #fff;
  font: inherit;
}
.contact-field textarea { min-height: 64px; resize: vertical; }
.contact-score-entry { display: flex; align-items: center; gap: 8px; }
.contact-score-entry input { max-width: 5em; text-align: center; }
.contact-panel :focus-visible { outline: 3px solid #172f50; outline-offset: 3px; }
.contact-submit {
  width: min(100%, 205px);
  min-height: 44px;
  justify-self: center;
  padding: 8px 18px;
  border: 0;
  border-radius: 99px;
  background: #147552;
  color: #fff;
  font: 700 16px/1.4 "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  cursor: pointer;
}
.contact-submit:hover { background-color: #105f43; }
.contact-submit:disabled { cursor: wait; }
.contact-panel .contact-status { margin: 0; font-size: 15px; }
.contact-status:empty { display: none; }
.contact-status[data-error] { color: #8c2c21; }
.contact-page { width: min(100%, 468px); padding: clamp(12px, 2vw, 24px); margin: auto; }
.contact-page .brand { display: block; margin-block-end: 12px; color: #172f50; }
@media (max-width: 700px) {
  .contact-row {
    max-width: 400px;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px clamp(20px, 7vw, 32px);
  }
  .contact-row .contact-identity { padding-top: 0; }
  .contact-panel { padding: 15px 16px; }
  .contact-fields { gap: 10px; }
  .contact-field :is(input, select) { min-height: 44px; }
  .contact-page { max-width: 400px; padding: 16px clamp(20px, 7vw, 32px); }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(#contact:target) { scroll-behavior: smooth; }
}
.contact-row.contact-row-stacked {
  grid-template-columns: minmax(0, 420px);
  gap: 20px;
}
@media (min-width: 701px) {
  .contact-row.contact-row-stacked {
    /* Keep the form as wide as the same panel in the two-column layout. */
    grid-template-columns: min(420px, calc(100% - 250px - clamp(32px, 5vw, 64px)));
  }
}
.contact-row-stacked .contact-identity {
  justify-items: center;
  gap: 2px;
  padding-top: 0;
  text-align: center;
}
.contact-row-stacked .contact-identity strong {
  margin: 0;
  font-size: 16px;
}

.contact-process {
  --form-inset: clamp(16px, 2vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 48px);
  background: var(--paper);
}
.contact-process .rc-steps {
  min-width: 0;
  padding-top: var(--form-inset);
  container-type: inline-size;
}
.contact-diagram {
  --arrow-size: 17px;
  --arrow-space: 28px;
  display: grid;
  grid-template-columns: minmax(0, .76fr) clamp(40px, 11cqi, 62px) minmax(0, 1.24fr);
  grid-template-rows: repeat(4, auto);
  row-gap: var(--arrow-space);
  max-width: 560px;
  margin-top: 28px;
}
.contact-stages {
  grid-area: 1 / 1 / 5 / 2;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: var(--arrow-space);
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  color: var(--paper);
}
.contact-stages li {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 4px;
  border-radius: 3px;
  background: var(--navy);
  font-size: var(--subheading-size);
  font-weight: 600;
  line-height: 1.45;
}
.contact-stages li:not(:last-child)::after {
  content: "";
  position: absolute;
  width: var(--arrow-size);
  height: var(--arrow-size);
  left: 50%;
  top: calc(100% + var(--arrow-space) / 2);
  transform: translate(-50%, -50%);
  background: var(--navy);
  clip-path: polygon(44% 0, 56% 0, 56% 76%, 84% 48%, 93% 57%, 50% 100%, 7% 57%, 16% 48%, 44% 76%);
}
.stage-connector {
  grid-area: 2 / 2 / 5 / 3;
  display: flex;
  align-items: center;
  padding-inline: 4px;
  color: var(--navy);
}
.stage-arc { width: 39%; height: 100%; }
.stage-pointer { width: 61%; height: auto; fill: var(--blue-grey); }
.stage-duration {
  /* Align to the reason column at the height where the three-stage arc starts. */
  grid-area: 2 / 3 / 3 / 4;
  place-self: start;
  position: relative;
  transform: translateY(-78%);
  background: var(--paper);
  color: var(--navy);
  font-size: var(--section-heading-size);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.stage-duration strong {
  display: inline-block;
  margin-inline: .07em .035em;
  font-size: clamp(34px, 9.5cqi, 52px);
  letter-spacing: -.035em;
  line-height: 1.05;
}
.stage-duration-scope {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.stage-reason {
  grid-area: 2 / 3 / 5 / 4;
  align-self: center;
  display: grid;
  gap: .32em;
  padding-top: .65em;
  font-size: var(--subheading-size);
  line-height: 1.5;
}
.stage-reason > span { display: block; }
.stage-reason strong {
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--blue-grey);
  text-decoration-thickness: .24em;
  text-underline-offset: -.12em;
  text-decoration-skip-ink: none;
}
.stage-reason .reason-ending { display: inline-block; }
@container (max-width: 440px) {
  .contact-diagram {
    --arrow-size: 15px;
    --arrow-space: 22px;
    grid-template-columns: minmax(0, .78fr) clamp(28px, 8cqi, 36px) minmax(0, 1.22fr);
    margin-top: 20px;
  }
  .contact-stages li { min-height: 42px; font-size: 1rem; }
  .stage-connector { padding-inline: 2px; }
}
@container (max-width: 340px) {
  .contact-diagram { grid-template-columns: 7.5rem 28px minmax(0, 1fr); }
}
@container (max-width: 308px) {
  .stage-duration { font-size: var(--subheading-size); }
  .stage-duration strong { font-size: 10cqi; }
}
.contact-process .contact-panel {
  padding: var(--form-inset);
  font-family: inherit;
  color: var(--text);
}
:is(.contact-process, .diagnosis-inquiry) .contact-panel :is(h1, h2) {
  font-size: var(--section-heading-size);
  line-height: 1.45;
  letter-spacing: -.035em;
  margin-bottom: 18px;
}
:is(.contact-process, .diagnosis-inquiry) .contact-field label { font-size: 1rem; }
:is(.contact-process, .diagnosis-inquiry) .contact-fields { gap: 14px; }
.diagnosis-inquiry {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.diagnosis-inquiry > header {
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.diagnosis-inquiry .service-brand { width: fit-content; }
.diagnosis-inquiry > main {
  flex: 1;
  width: min(100%, 560px);
  margin-inline: auto;
  padding: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 24px);
}
.contact-strip.rc-footer {
  display: block;
  padding: 0;
  border-top: none;
}
.contact-strip .contact-identity {
  gap: 2px;
  padding: 12px var(--gutter);
}
.contact-strip .contact-identity strong { margin: 0; font-size: 18px; }
.contact-strip .rc-source { width: 100%; margin: 0; }
.contact-standalone .brand { display: inline-block; padding: 10px var(--gutter); }
@media (max-width: 860px) {
  .contact-process { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-process .rc-steps { padding-top: 0; }
}
