/* Hero collage: four equal tiles with portrait-safe crop positions. */
.lr-hero__mosaic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.lr-hero__tile--large {
  grid-column: auto;
}

.lr-media--hero-side-1 img {
  object-position: center 18%;
}

.lr-media--hero-side-2 img {
  object-position: center 28%;
}

.lr-media--hero-side-3 img,
.lr-media--hero-side-4 img {
  object-position: center 22%;
}

@media (max-width: 980px) {
  .lr-hero__mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
}

@media (max-width: 640px) {
  .lr-hero__mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 170px 170px;
  }
}

/* Results-card copy: +2px from the previous desktop/mobile sizes. */
.lr-result-card p {
  font-size: 15px;
}

/* Industries labels: +1px for improved legibility. */
.lr-industries__list li {
  font-size: 13px;
}

@media (max-width: 640px) {
  .lr-result-card p {
    font-size: 14px;
  }

  .lr-industries__list li {
    font-size: 13px;
  }
}

/* Procedure: four columns / two rows on desktop, one vertical column on mobile. */
.lr-procedure__steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lr-procedure-step p {
  font-size: 11px;
}

.lr-procedure-step:nth-child(4)::after {
  display: none;
}

@media (min-width: 641px) and (max-width: 980px) {
  .lr-procedure-step {
    display: flex;
    grid-template-columns: none;
    min-height: 132px;
    padding: 13px 8px 12px;
    border-top: 3px solid var(--lr-green-700);
    border-left: 0;
    text-align: center;
  }

  .lr-procedure-step__number {
    align-self: flex-start;
    margin-bottom: 4px;
    transform: none;
  }

  .lr-procedure-step__icon {
    width: 38px;
    height: 38px;
    margin-bottom: 7px;
  }

  .lr-procedure-step p {
    align-self: auto;
    padding-left: 0;
    font-size: 11px;
  }

  .lr-procedure-step:not(:last-child)::after {
    top: 50%;
    right: -9px;
    bottom: auto;
    transform: translateY(-50%);
  }

  .lr-procedure-step:nth-child(4)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .lr-procedure__steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lr-procedure-step p {
    font-size: 13px;
  }

  .lr-procedure-step:nth-child(4)::after {
    display: grid;
  }
}

/* Training period: one photo with a translucent gradient content layer. */
.lr-training__stage {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #dfe9e3;
  box-shadow: 0 12px 34px rgba(0, 80, 42, 0.09);
}

.lr-training__background,
.lr-training__background .lr-training__photo,
.lr-training__background .lr-training__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.lr-training__background .lr-training__photo img {
  object-fit: cover;
  object-position: center 48%;
}

.lr-training__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(78%, 900px);
  min-height: 500px;
  padding: clamp(30px, 4.2vw, 54px) clamp(42px, 6vw, 76px) clamp(30px, 4.2vw, 54px) clamp(28px, 4vw, 50px);
  background: linear-gradient(
    90deg,
    rgba(244, 250, 246, 0.98) 0%,
    rgba(244, 250, 246, 0.95) 57%,
    rgba(244, 250, 246, 0.76) 76%,
    rgba(244, 250, 246, 0) 100%
  );
}

.lr-training__overlay .lr-body-copy {
  max-width: 760px;
}

.lr-training__overlay .lr-training__diagram {
  width: 100%;
  margin: 24px 0 18px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.lr-training__overlay .lr-training__notes {
  max-width: 760px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(2px);
}

@media (max-width: 980px) {
  .lr-training__overlay {
    width: 88%;
  }
}

@media (max-width: 640px) {
  .lr-training__stage {
    min-height: 0;
  }

  .lr-training__background .lr-training__photo img {
    object-position: 62% center;
  }

  .lr-training__overlay {
    width: 100%;
    min-height: 560px;
    padding: 28px 18px 34px;
    background: linear-gradient(
      180deg,
      rgba(244, 250, 246, 0.98) 0%,
      rgba(244, 250, 246, 0.94) 66%,
      rgba(244, 250, 246, 0.68) 100%
    );
  }

  .lr-training__overlay .lr-training__diagram {
    margin: 20px 0 16px;
  }

  .lr-training__overlay .lr-training__notes {
    background: rgba(255, 255, 255, 0.72);
  }
}

/* v2.7 final refinements. */
.lr-language__button {
  font-size: 12px;
  line-height: 1.4;
}

.lr-industries__list li {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 15px 10px 32px;
  font-size: 15px;
  line-height: 1.45;
}

.lr-industries__list li::before {
  left: 14px;
}

.lr-system-flow__step {
  min-height: 46px;
}

.lr-system-flow__step p {
  padding: 10px 14px;
  font-size: 13px;
}

.lr-procedure-step {
  min-height: 225px;
  padding: 18px 12px 20px;
}

.lr-procedure-step__number {
  margin-bottom: 8px;
  font-size: 27px;
  line-height: 1;
}

.lr-procedure-step__icon {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
}

.lr-procedure-step__icon svg {
  width: 48px;
  height: 48px;
}

.lr-procedure-step p {
  font-size: 13.2px;
  line-height: 1.5;
}

/* Keep the training photo on the right, as in the approved composition. */
.lr-training__stage {
  min-height: 420px;
  background: #fff;
}

.lr-training__background {
  z-index: 0;
  inset: 0 0 0 auto;
  width: 30%;
  height: 100%;
}

.lr-training__background::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.78) 42%, rgba(255, 255, 255, 0) 100%);
  content: "";
  pointer-events: none;
}

.lr-training__background .lr-training__photo img {
  object-position: 60% center;
}

.lr-training__overlay {
  z-index: 2;
  width: 82%;
  min-height: 420px;
  padding: 34px 42px 34px 38px;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 82%,
    rgba(255, 255, 255, 0.9) 89%,
    rgba(255, 255, 255, 0.46) 96%,
    rgba(255, 255, 255, 0) 100%
  );
}

.lr-training__overlay .lr-body-copy,
.lr-training__overlay .lr-training__notes {
  max-width: 760px;
}

.lr-training__overlay .lr-training__diagram {
  margin: 22px 0 16px;
}

@media (max-width: 980px) {
  .lr-training__stage,
  .lr-training__overlay {
    min-height: 460px;
  }

  .lr-training__background {
    width: 36%;
  }

  .lr-training__overlay {
    width: 90%;
    padding: 32px 34px 32px 28px;
  }
}

@media (max-width: 640px) {
  .lr-industries__list li {
    min-height: 48px;
    padding: 10px 14px 10px 32px;
    font-size: 15px;
  }

  .lr-procedure-step {
    grid-template-columns: 42px 92px 1fr;
    min-height: 0;
    padding: 18px 18px 18px 12px;
  }

  .lr-procedure-step__number {
    margin: 0;
    font-size: 27px;
  }

  .lr-procedure-step__icon {
    width: 80px;
    height: 80px;
    margin: 0;
  }

  .lr-procedure-step__icon svg {
    width: 48px;
    height: 48px;
  }

  .lr-procedure-step p {
    padding-left: 8px;
    font-size: 15.6px;
  }

  .lr-training__stage {
    min-height: 0;
  }

  .lr-training__background {
    inset: auto 0 0;
    width: 100%;
    height: 36%;
  }

  .lr-training__background::before {
    inset: 0;
    width: 100%;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.75) 38%, rgba(255, 255, 255, 0) 100%);
  }

  .lr-training__background .lr-training__photo img {
    object-position: 60% center;
  }

  .lr-training__overlay {
    width: 100%;
    min-height: 620px;
    padding: 28px 18px 190px;
    background: linear-gradient(
      180deg,
      #fff 0%,
      #fff 67%,
      rgba(255, 255, 255, 0.88) 78%,
      rgba(255, 255, 255, 0.34) 92%,
      rgba(255, 255, 255, 0) 100%
    );
  }
}

/* v2.8: visually match the language label to the Japanese navigation. */
.lr-header .lr-header__actions {
  align-self: stretch;
  height: 100%;
}

.lr-header .lr-language,
.lr-header .lr-language__button {
  align-self: stretch;
  height: 100%;
  min-height: 100%;
}

.lr-header .lr-language__button {
  justify-content: center;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.035em;
}

.lr-header .lr-language__button > span:nth-child(2) {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.035em;
}

.lr-header .lr-language__button > span:first-child,
.lr-header .lr-language__button > span:last-child {
  font-size: 12px;
  line-height: 1;
}

/* System: approved left-flow/right-photo balance with a narrow boundary fade. */
.lr-system__grid {
  position: relative;
  display: block;
  min-height: 350px;
  overflow: hidden;
  background: #fff;
}

.lr-system-flow {
  position: relative;
  z-index: 2;
  width: 82%;
  min-height: 350px;
  padding: 22px 58px 22px 22px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(235, 248, 239, 0.98) 0%,
    rgba(235, 248, 239, 0.98) 82%,
    rgba(235, 248, 239, 0.88) 89%,
    rgba(235, 248, 239, 0.42) 96%,
    rgba(235, 248, 239, 0) 100%
  );
}

.lr-system-flow__column {
  background: rgba(236, 248, 240, 0.84);
  backdrop-filter: blur(1px);
}

.lr-system__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 30%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.lr-system__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.lr-system__photo {
  z-index: 0;
}

.lr-system__photo::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.76) 42%, rgba(255, 255, 255, 0) 100%);
  content: "";
  pointer-events: none;
}

.lr-system__photo img {
  object-fit: cover;
  object-position: 58% center;
}

@media (max-width: 980px) and (min-width: 641px) {
  .lr-system__grid,
  .lr-system-flow {
    min-height: 390px;
  }

  .lr-system__photo {
    width: 36%;
  }

  .lr-system-flow {
    width: 90%;
    padding: 20px 52px 20px 18px;
  }
}

@media (max-width: 640px) {
  .lr-system__grid {
    min-height: 0;
  }

  .lr-system__photo {
    inset: auto 0 0;
    width: 100%;
    height: 280px;
  }

  .lr-system__photo img {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .lr-system__photo::before {
    inset: 0;
    width: 100%;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.76) 38%, rgba(255, 255, 255, 0) 100%);
  }

  .lr-system-flow {
    width: 100%;
    min-height: 0;
    padding: 16px 14px 210px;
    background: linear-gradient(
      180deg,
      rgba(235, 248, 239, 0.98) 0%,
      rgba(235, 248, 239, 0.98) 72%,
      rgba(235, 248, 239, 0.84) 82%,
      rgba(235, 248, 239, 0.34) 94%,
      rgba(235, 248, 239, 0) 100%
    );
  }
}

/* Mobile photo framing: keep people visible. */
@media (max-width: 640px) {
  .lr-hero .lr-hero__photo img { object-position: 78% center; }
  .lr-about__photo, .lr-about__photo img { height: auto; min-height: 0; }
  .lr-about__photo img { width: 100%; object-fit: contain; }
  .lr-training__stage { display: flex; flex-direction: column; }
  .lr-training__overlay { order: 0; min-height: 0; padding: 28px 18px; background: #fff; }
  .lr-training__background { position: relative; inset: auto; order: 1; width: 100%; height: 280px; flex: 0 0 280px; }
  .lr-training__background::before { display: none; }
  .lr-training__background .lr-training__photo img { object-position: 65% center; }
  .lr-contact-cta { display: flex; flex-direction: column; min-height: 0; }
  .lr-contact-cta__content { order: 0; min-height: 0; padding: 32px 0; }
  .lr-contact-cta__media { position: relative; inset: auto; order: 1; width: 100%; height: 300px; min-height: 0; }
  .lr-contact-cta__photo, .lr-contact-cta__photo img { height: 100%; min-height: 0; }
  .lr-contact-cta__photo img { object-position: 80% center; }
  .lr-contact-cta::after { display: none; }
}

/* Mobile navigation: visible toggle and full-height menu panel. */
@media (max-width: 980px) {
 #top .lr-header__inner { padding-left: 16px; }
 #top .lr-logo { width: calc(100% - 64px); min-width: 0; flex: 1 1 auto; padding-right: 12px; }
 #top .lr-header__actions { flex: 0 0 64px; width: 64px; }
 #top .lr-menu-button { display: flex !important; flex: 0 0 64px; width: 64px !important; color: #006837 !important; background: #fff !important; border: 0; border-left: 1px solid #d9e6de; cursor: pointer; }
 #top .lr-menu-button > span:not(.screen-reader-text) { background: currentColor !important; }
 #top #site-navigation { position: absolute !important; top: 100% !important; right: 0 !important; bottom: auto !important; left: auto !important; width: min(430px, 100vw) !important; height: calc(100vh - 68px) !important; height: calc(100dvh - 68px) !important; max-height: none !important; padding: 22px 24px 40px !important; background: #fff !important; overflow-y: auto !important; display: flex !important; flex-direction: column; align-items: stretch; z-index: 1001; visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(100%); }
 body.admin-bar #top #site-navigation { height: calc(100dvh - 114px) !important; }
 #top #site-navigation.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(0); }
 #top .lr-nav__list { display: flex !important; flex-direction: column; flex: 0 0 auto; width: 100%; height: auto !important; gap: 0; padding: 0; }
 #top .lr-nav__list li { width: 100%; }
 #top .lr-nav__list a { display: block; padding: 16px 5px; font-size: 14px; color: #00542d; }
 #top .lr-nav__mobile-language { display: block; flex: 0 0 auto; margin-top: 24px; }
}
