body { margin: 0; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; color: #22303f; background: #fff; -webkit-font-smoothing: antialiased; }
  a { color: #12448f; text-decoration: underline; text-underline-offset: 2px; }
  a:hover { color: #c1272d; }
  * { box-sizing: border-box; }
  .jm-flow-contact-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw) !important; border: 0 !important; padding: 120px 24px !important; overflow: hidden; background-image: linear-gradient(rgba(7, 21, 34, .56), rgba(7, 21, 34, .66)), url("/solution-assets/images/contact-consultation-background.jpg"); background-position: center 48%; background-size: cover; }
  .jm-flow-contact-hero > * { width: 100%; max-width: 1160px; margin-right: auto !important; margin-left: auto !important; }
  .jm-flow-contact-hero h2 { margin-bottom: 22px !important; color: #fff !important; text-shadow: 0 2px 14px rgba(0, 0, 0, .34); }
  .jm-flow-contact-hero p { color: rgba(255, 255, 255, .95) !important; text-shadow: 0 1px 10px rgba(0, 0, 0, .38); }
  .jm-flow-contact-hero p + p { margin-top: 8px !important; margin-bottom: 34px !important; }
  .jm-flow-contact-button { --jm-flow-contact-hover-fill: #e2f0ec; position: relative; isolation: isolate; min-width: 240px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .9) !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); transition: box-shadow .25s ease, transform .25s ease; }
  .jm-flow-contact-button:first-child { --jm-flow-contact-hover-fill: #9f3025; }
  .jm-flow-contact-button::before { position: absolute; z-index: -1; top: -68px; left: -54px; width: 126px; height: 126px; border-radius: 50%; background: var(--jm-flow-contact-hover-fill); content: ""; transition: .7s cubic-bezier(.2, .72, .18, 1); }
  .jm-flow-contact-button:hover::before,
  .jm-flow-contact-button:focus-visible::before { top: -200px; left: -80px; width: 650px; height: 500px; }
  .jm-flow-contact-button:hover,
  .jm-flow-contact-button:focus-visible { box-shadow: 0 12px 28px rgba(0, 0, 0, .3); outline: none; transform: translateY(-2px); }
  .jm-relcard { transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease; }
  .jm-relcard:hover, .jm-relcard:focus-visible { border-color: #2b7fc4 !important; box-shadow: 0 8px 20px rgba(13,34,76,.14); transform: translateY(-2px); outline: none; }
  .jm-relcard img { transition: transform .3s ease; transform-origin: center; }
  .jm-relcard:hover img, .jm-relcard:focus-visible img { transform: scale(1.05); }
  @media (prefers-reduced-motion: reduce) {
    .jm-flow-contact-button,
    .jm-flow-contact-button::before { transition: none !important; }
    .jm-relcard, .jm-relcard img, .jm-navgrid .jm-flowstep { transition: none !important; }
    .jm-relcard:hover { transform: none; }
    .jm-relcard:hover img { transform: none; }
    .jm-navgrid .jm-flowstep:hover,
    .jm-navgrid .jm-flowstep:focus-visible { transform: none; }
  }
  .jm-flowgrid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
  .jm-flow-overview { padding: 30px !important; margin-bottom: 48px !important; border-radius: 12px !important; }
  .jm-navgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px 12px; }
  .jm-navgrid .jm-flowphase { padding: 14px 10px !important; border-radius: 6px !important; font-size: 14px !important; line-height: 1.5; }
  .jm-navgrid .jm-flowstep { min-height: 126px !important; padding: 20px 16px !important; gap: 13px !important; border-radius: 7px !important; box-shadow: 0 5px 14px rgba(27, 42, 68, .05); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
  .jm-navgrid .jm-flowstep > span:first-child { padding: 5px 10px !important; }
  .jm-navgrid .jm-flowstep > span:nth-child(2) { font-size: 14px !important; line-height: 1.7 !important; }
  .jm-navgrid .jm-flowstep:hover,
  .jm-navgrid .jm-flowstep:focus-visible { border-color: #2b88b5 !important; box-shadow: 0 9px 20px rgba(27, 42, 68, .12); outline: none; transform: translateY(-2px); }
  @media (max-width: 980px) {
    .jm-navgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jm-navgrid .jm-flowphase { display: none; }
    .jm-navgrid .jm-flowarrow { display: none; }
  }
  @media (max-width: 560px) {
    .jm-navgrid { grid-template-columns: minmax(0, 1fr); }
    .jm-flow-overview { padding: 20px !important; }
    .jm-navgrid .jm-flowstep { min-height: 108px !important; }
  }
  .jm-flowstep .jm-phaselabel { display: none; }
  .jm-flow-example__eyecatch { position: relative; overflow: hidden; height: 320px; margin: 34px 0 38px; border-radius: 12px; background: #e8eef4; box-shadow: 0 10px 28px rgba(27, 42, 68, .08); }
  .jm-flow-example__eyecatch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
  @media (max-width: 980px) {
    .jm-flowgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jm-flowgrid .jm-flowphase { display: none; }
    .jm-flowstep .jm-phaselabel { display: block; }
    .jm-flowstep .jm-flowarrow { display: none; }
  }
  @media (max-width: 560px) {
    .jm-flowgrid { grid-template-columns: minmax(0, 1fr); }
    .jm-flow-example__eyecatch { height: 220px; margin: 26px 0 30px; }
  }

  @media (max-width: 1024px) {
    section[style*="margin-bottom:128px"] { margin-bottom: 96px !important; }
    div[style*="padding:128px 24px"] { padding-top: 96px !important; }
    div[id^="step"][style*="margin-bottom:64px"] { margin-bottom: 48px !important; }
  }
  @media (max-width: 700px) {
    .jm-flow-contact-hero { padding: 92px 20px !important; background-position: 56% center; }
    .jm-flow-contact-hero > div { flex-direction: column; }
    .jm-flow-contact-button { width: 100%; min-width: 0; }
    section[style*="margin-bottom:128px"] { margin-bottom: 80px !important; }
    div[style*="padding:128px 24px"] { padding: 80px 20px 0 !important; }
    div[id^="step"][style*="margin-bottom:64px"] { margin-bottom: 40px !important; }
    div[style*="max-width: 1160px"][style*="padding: 0px 24px"] { padding-left: 20px !important; padding-right: 20px !important; }
  }

.jm-flow-content { padding-top: 64px !important; }
@media (max-width: 1024px) { .jm-flow-content { padding-top: 48px !important; } }
@media (max-width: 700px) { .jm-flow-content { padding-top: 40px !important; } }

/* Two steps per row on phones. */
@media (max-width: 760px) {
  .jm-navgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .jm-flow-overview { padding: 16px !important; }
  .jm-navgrid .jm-flowstep { min-width: 0; min-height: 108px !important; padding: 14px 10px !important; gap: 10px !important; }
  .jm-navgrid .jm-flowstep > span:nth-child(2) { font-size: 14px !important; line-height: 1.5 !important; }
}

/* Mobile step details: heading, image, then full-width paragraphs. */
@media (max-width: 760px) {
  .jm-flow-content #steps > div[id^="step"] {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
  }
  .jm-flow-content #steps > div[id^="step"] > div { display: contents; }
  .jm-flow-content #steps > div[id^="step"] > div > div:first-child {
    order: -2;
    margin-bottom: 16px !important;
    gap: 8px !important;
  }
  .jm-flow-content #steps > div[id^="step"] > div > div:first-child > span:last-child {
    font-size: 16px !important;
    line-height: 1.35;
  }
  .jm-flow-content #steps > div[id^="step"] > img {
    order: -1;
    width: 100%;
    margin-bottom: 16px;
  }
  .jm-flow-content #steps > div[id^="step"] p { width: 100%; font-size: 14px !important; line-height: 1.5 !important; }
}

@media (max-width: 760px) {
  .jm-flow-related { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  .jm-flow-related > a { min-width: 0; }
}
