/* Hikari Link v1.0.265: ONLY /services/sns/, /services/private-treatment/ and /services/recruitment/.
   /voice/ note adjustment is kept in voice-cards-v260.css directly. */

/* SNS — removing step icons changes markup, so align the remaining content inside each original circle. */
#main-content.hl-sns-page .hl-sns-patient-flow .hl-sns-flow--five > article {
  justify-content:center;align-content:center;
}
#main-content.hl-sns-page .hl-sns-patient-flow .hl-sns-flow--five > article > h3 {
  margin-top:10px;
}
/* Replace the previous complex cutout mark only in this center circle;
   the SVG has an unmodified 1:1 aspect ratio, its own white clear space and green mark. */
#main-content#main-content.hl-sns-page .hl-v189-line-map > strong.hl-sns-line-map__logo {
  background:#FFFDFC!important;
}
#main-content#main-content.hl-sns-page .hl-v189-line-map > .hl-sns-line-map__logo > .hl-sns-line-logo-v265 {
  display:block;width:clamp(76px,9vw,122px);height:clamp(76px,9vw,122px);
  aspect-ratio:1/1;object-fit:contain;max-width:80%;flex:none;
  filter:none;opacity:1;transform:none;
}
#main-content.hl-sns-page .hl-sns-balance__bridge > p {
  font-size:clamp(19px,1.65vw,21px)!important;
  font-weight:600;letter-spacing:.015em;
}
@media(max-width:760px){
  #main-content#main-content.hl-sns-page .hl-v189-line-map > .hl-sns-line-map__logo > .hl-sns-line-logo-v265 {
    width:88px;height:88px;max-width:75%;
  }
  #main-content.hl-sns-page .hl-sns-balance__bridge > p {font-size:18px!important;}
}

/* Self-pay — broaden only this page's final CTA, leaving H2 typography and button unchanged. */
@media(min-width:1200px){
  #main-content#main-content.hl-spt-page .hl-spt-final .hl-spt-final__grid {
    width:calc(100% - 48px)!important;max-width:1270px!important;
    display:block!important;
  }
  #main-content#main-content.hl-spt-page .hl-spt-final .hl-spt-final__content {
    width:100%!important;max-width:none!important;
  }
  #main-content#main-content.hl-spt-page .hl-spt-final .hl-spt-final__content > h2 {
    width:100%;max-width:none!important;white-space:nowrap;
  }
}

/* Recruiting — preserve five circles and four arrows, enlarge circles on wide PCs.
   Japanese titles do not break at >=1200px; smaller widths stack before crowding. */
@media(min-width:1200px){
  #main-content#main-content.hl-rec-page .hl-rec-philosophy .hl-rec-flow--five {
    width:min(calc(100% + 24px),1200px)!important;max-width:1200px!important;
    grid-template-columns:repeat(4,minmax(0,1fr) 18px) minmax(0,1fr)!important;
    gap:7px!important;justify-content:center;align-items:center;
  }
  #main-content#main-content.hl-rec-page .hl-rec-philosophy .hl-rec-flow--five > article {
    width:100%!important;max-width:none!important;min-height:0!important;
    aspect-ratio:1/1!important;padding:13px 10px!important;
  }
  #main-content#main-content.hl-rec-page .hl-rec-philosophy .hl-rec-flow--five > article > h3 {
    font-size:clamp(15px,1.18vw,17px)!important;
    line-height:1.45!important;white-space:nowrap;overflow-wrap:normal!important;
  }
}
@media(min-width:761px) and (max-width:1199px){
  #main-content#main-content.hl-rec-page .hl-rec-philosophy .hl-rec-flow--five {
    display:flex!important;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;
    max-width:840px!important;gap:10px!important;
  }
  #main-content#main-content.hl-rec-page .hl-rec-philosophy .hl-rec-flow--five > article {
    flex:0 0 185px;width:185px!important;max-width:185px!important;
    aspect-ratio:1/1!important;border-radius:50%!important;padding:12px 8px!important;
  }
  #main-content#main-content.hl-rec-page .hl-rec-philosophy .hl-rec-flow--five > b{transform:rotate(90deg)!important;}
  #main-content#main-content.hl-rec-page .hl-rec-philosophy .hl-rec-flow--five > article > h3 {
    font-size:15.5px!important;line-height:1.45!important;white-space:nowrap;overflow-wrap:normal!important;
  }
}
/* Requested footnote typography: leave neighboring card titles and checklist content unchanged. */
#main-content#main-content.hl-rec-page .hl-rec-sorting__notes > p {
  font-family:"Zen Kaku Gothic New","Noto Sans JP",sans-serif;
  font-size:16.5px!important;font-weight:400!important;line-height:1.8!important;
  letter-spacing:.04em!important;color:#5E4A53!important;
  text-align:center!important;max-width:850px!important;margin:27px auto 0!important;
}
#main-content.hl-rec-page .hl-rec-sorting__cards > .hl-v121-card:last-child {
  height:auto;min-height:100%;
}
#main-content.hl-rec-page .hl-rec-sorting__cards > .hl-v121-card:last-child ul {
  padding-bottom:2px;
}
@media(max-width:760px){
  #main-content#main-content.hl-rec-page .hl-rec-sorting__notes > p {
    font-size:16px!important;line-height:1.8!important;letter-spacing:.03em!important;
  }
}

/* On small screens the approved vertical step flow remains; keep its cards circular. */
@media(max-width:760px){
  #main-content#main-content.hl-rec-page .hl-rec-philosophy .hl-rec-flow--five > article {
    border-radius:50%!important;aspect-ratio:1/1!important;
    width:min(100%,220px)!important;max-width:220px!important;
  }
}
