/*
 * v1.0.249 — 2026-11-11
 * Only /first/flow/ preparation-background position and /about/profile/
 * profile-information layout / existing-photo presentation.
 * Preserve approved five circles, wording, backgrounds, other sections and images.
 */

/* /first/flow/: move only the existing photo layer right. The two gradients
   remain anchored to the section and softly feather the photo on both edges. */
@media (min-width: 761px) {
  #main-content#main-content.hl-flow-page .hl-flow-prep--circles::before {
    background-position: center, center, 96px center;
    background-image:
      linear-gradient(90deg, #FFFDFC 0%, rgba(255,253,252,.82) 13%, rgba(255,253,252,.10) 33%, rgba(255,253,252,.34) 50%, rgba(255,253,252,.94) 79%, #FFFDFC 88%),
      linear-gradient(0deg, #FFFDFC 0%, rgba(255,253,252,.92) 9%, rgba(255,253,252,0) 23%, rgba(255,253,252,0) 77%, rgba(255,253,252,.92) 92%, #FFFDFC 100%),
      var(--hl-flow-prep-photo);
  }
}
@media (max-width: 760px) {
  /* Desktop shift must not travel unchanged to the narrow viewport. */
  #main-content#main-content.hl-flow-page .hl-flow-prep--circles::before {
    background-position: center, center, 22px 180px;
    background-image:
      linear-gradient(90deg, #FFFDFC 0%, rgba(255,253,252,.76) 11%, rgba(255,253,252,.45) 34%, rgba(255,253,252,.91) 74%, #FFFDFC 95%),
      linear-gradient(0deg, #FFFDFC 0%, rgba(255,253,252,.35) 33%, rgba(255,253,252,.10) 64%, #FFFDFC 88%),
      var(--hl-flow-prep-photo);
  }
}

/* /about/profile/: use the full, existing 1180px site content width rather
   than the old 980px cap. The section's full-bleed white background remains. */
@media (min-width: 901px) {
  #main-content#main-content.hl-profile-page .hl-profile-info__grid {
    width: min(calc(100% - 40px), 1180px) !important;
    max-width: 1180px !important;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) !important;
    gap: clamp(32px, 3.4vw, 46px) !important;
    margin-inline: auto !important;
    align-items: center !important;
    justify-content: stretch !important;
  }
  #main-content#main-content.hl-profile-page .hl-profile-info__copy {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  /* Keep the approved table structure and text. Increase space for labels
     and values so the long "現在" entry wraps less often. */
  #main-content#main-content.hl-profile-page .hl-profile-info__copy dl > div {
    grid-template-columns: 86px minmax(0,1fr);
  }
  #main-content#main-content.hl-profile-page .hl-profile-info__copy dd {
    padding: 14px 19px !important;
  }
}

/* The bundled 1400x884 WebP is already the original full-sized asset,
   not a small WordPress thumbnail. Avoid adding filters/upscaling; reduce
   the old broad edge transparency so the retained pixels look clearer. */
#main-content#main-content.hl-profile-page .hl-profile-info__portrait-bg {
  background-size: cover;
  background-position: 31% center;
  filter: none;
  transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 91%, transparent 100%);
}
@media (max-width: 900px) {
  /* Existing photo-first, table-second layout stays unchanged. */
  #main-content#main-content.hl-profile-page .hl-profile-info__grid {
    grid-template-columns: minmax(0,1fr);
  }
  #main-content#main-content.hl-profile-page .hl-profile-info__portrait-bg {
    background-position: 31% center;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  /* The legacy 300px tablet photo cropped off the top of the subject's head.
     Let the original aspect ratio set the illustration's height instead. */
  #main-content#main-content.hl-profile-page .hl-profile-info__visual {
    min-height: 0;
    height: auto;
    aspect-ratio: 1400 / 884;
  }
  #main-content#main-content.hl-profile-page .hl-profile-info__portrait-bg {
    background-position: center center;
  }
}
