/* Isolated to the four requested trial-page changes. */
.trial-page .page-heading > p {
 width:100%; max-width:none; text-align:left; text-align-last:auto;
 text-wrap:wrap; white-space:normal; letter-spacing:normal;
}
.trial-page main .trial-word {white-space:nowrap;font:inherit;color:inherit;letter-spacing:inherit;}
.trial-page .trial-after h2 {width:100%;max-width:none;text-wrap:wrap;}
.trial-page main .trial-after h2 .after-line {display:block;white-space:normal;font:inherit;color:inherit;letter-spacing:inherit;}
/* Match the existing homepage closing panel without changing shared code. */
.trial-page .trial-closing {
  background: #e8e0d5;
}

.trial-page .trial-closing .section {
  width: min(88%, 800px);
  max-width: 800px;
  margin: 0 auto;
  padding: 85px 0;
  text-align: center;
}

.trial-page .trial-closing .section-en {
  text-align: center;
}

.trial-page .trial-closing h2 {
  font: 400 30px/1.9 var(--serif);
  letter-spacing: .04em;
  color: #302a25;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.trial-page .trial-closing .section > p:not(.booking-status) {
  max-width: 640px;
  margin: 25px auto;
  font-size: 13px;
  line-height: 2.3;
  color: var(--text);
  text-align: center;
  text-align-last: auto;
  text-wrap: pretty;
}

.trial-page .trial-closing .reserve-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  width: fit-content;
  min-width: 280px;
  min-height: 54px;
  padding: 15px 25px;
  margin: 30px auto 0;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 3px;
  background: linear-gradient(110deg, #a29482, #857057);
  color: #fff;
}

.trial-page .trial-closing .booking-status {
  text-align: center;
  text-align-last: auto;
}


@media (max-width: 768px) {
  .trial-page .trial-closing .section {
    padding: 50px 0;
  }

  .trial-page .trial-closing h2 {
    font-size: clamp(20px, 5.7vw, 26px);
    letter-spacing: normal;
  }

  .trial-page .trial-closing h2 .phrase {
    display: block;
    white-space: normal;
  }

  .trial-page .trial-closing .section > p:not(.booking-status) {
    margin: 22px auto;
    font-size: 12px;
    line-height: 2.2;
  }

  .trial-page .trial-closing .reserve-link {
    width: 100%;
    min-width: 0;
    padding: 15px 17px;
    margin-top: 25px;
    font-size: 12px;
  }
}

/* Compact trial rows follow the completed homepage's mobile flow measures. */
.trial-page .trial-step,
.trial-page .trial-step.reverse {
 display:grid;grid-template-columns:220px minmax(0,1fr);
 column-gap:32px;row-gap:20px;align-items:start;
 max-width:1000px;margin-bottom:40px;
}
.trial-page .trial-step .detail-picture {
 grid-column:1;grid-row:1;order:0;display:block;
 height:220px;min-width:0;
}
.trial-page .trial-step .detail-picture img {
 display:block;width:100%;max-width:100%;height:100%;max-height:none;
 aspect-ratio:auto;object-fit:cover;object-position:center;
}
.trial-page .trial-step .detail-copy {
 grid-column:2;grid-row:1;order:0;min-width:0;padding:0;
}
.trial-page .trial-step .detail-copy > .section-en {
 font-family:Arial,sans-serif;font-size:10px;line-height:2;
 letter-spacing:.15em;color:#9a8061;margin:0;
}
.trial-page .trial-step h2 {
 font:400 18px/1.8 var(--serif);letter-spacing:normal;
 color:#302a25;margin:7px 0 10px;text-align:left;text-wrap:wrap;
}
.trial-page .trial-step .detail-copy > p {
 width:100%;max-width:none;white-space:normal;text-wrap:wrap;
 word-break:normal;overflow-wrap:normal;
 font-size:12px;line-height:2.1;margin:0;color:#756653;
}
.trial-page .trial-step > .detail-booking {
 grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:4px 16px;
 justify-content:center;align-items:center;width:100%;min-height:52px;
 padding:8px 18px;margin:0;background:#6f5d49;color:#fff;font-size:14px;
}
@media(max-width:768px) {
 .trial-page .trial-step,
 .trial-page .trial-step.reverse {
  grid-template-columns:minmax(0,32%) minmax(0,1fr);
  column-gap:clamp(12px,4vw,18px);row-gap:20px;margin-bottom:30px;
 }
 .trial-page .trial-step .detail-picture {
  height:clamp(140px,40vw,172px);min-height:0;align-self:start;
 }
 .trial-page .trial-step h2 {font-size:16px;}
 .trial-page .trial-step .detail-copy > p {
  font-size:clamp(12px,3.333vw,14.5px);line-height:1.9;
 }
}

/* Preserve the existing STEP 03 frame while showing the complete supplied photo. */
.trial-page #trial-step-03 .detail-picture .body-assessment-photo {
 object-fit:contain;object-position:center top;
}

/* STEP 03 uses the supplied photo's full 4:3 ratio without cropping or a tall empty frame. */
.trial-page #trial-step-03 .detail-picture{height:auto;aspect-ratio:4 / 3}
.trial-page #trial-step-03 .detail-picture .body-assessment-photo{height:auto;aspect-ratio:4 / 3;object-fit:contain;object-position:center}
