/* Service-format refresh: the service is a place and way of working, not an age group. */
.home-page .home-hero {
  min-height: 610px;
  background: #f8f6f1;
}
.home-page .home-hero__inner {
  min-height: 610px;
  grid-template-columns: minmax(0, .51fr) minmax(0, .49fr);
  padding-block: 64px;
}
.home-page .home-hero__copy { width: min(100%, 670px); }
.home-page .home-hero__media { inset: 0 0 0 52%; }
.home-page .home-hero__media img { object-position: center 46%; }
.home-page .home-hero__media::before { width: 22%; }
.home-page .home-hero h1 {
  max-width: 700px;
  font-size: clamp(42px, 4.15vw, 66px);
  line-height: 1.21;
  letter-spacing: -.045em;
}
.home-page .home-hero h1 span { white-space: normal; }
.home-page .home-hero__support { max-width: 610px; line-height: 1.85; }
.home-page .home-hero__method { color: var(--accent); font-size: 13px; }

.home-page .services-home {
  padding-block: clamp(64px, 7vw, 96px);
  background: #fffdfa;
}
.home-page .services-home .section-intro { max-width: 870px; margin-bottom: 37px; }
.home-page .services-home .section-label { margin: 0 0 13px; }
.home-page .services-home .section-intro h2 { font-size: clamp(32px, 3.5vw, 49px); }
.home-page .services-home .section-intro p:last-child { max-width: 760px; margin-top: 14px; }
.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.home-service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #faf9f5;
}
.home-service-card__media {
  position: relative;
  height: clamp(180px, 18vw, 300px);
  flex-shrink: 0;
  margin: 0;
  overflow: hidden;
  background: #d7dedb;
}
.home-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.home-service-card[data-service="athlete-onsite"] img { object-position: 51% 51%; }
.home-service-card[data-service="studio-adjustment"] img { object-position: 52% 10%; }
.home-service-card:hover img { transform: scale(1.025); }
/* Keep all three client-supplied 16:9 images intact, including the privacy mask
   and the action-card poster's headings and safety-information footer. */
.home-service-card__media--client { background: #f1f3f0; }
.home-service-card__media--client img {
  object-fit: contain;
  object-position: center;
}
.home-service-card:hover .home-service-card__media--client img { transform: none; }
.home-service-card__media figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 7px;
  background: rgba(255, 253, 250, .88);
  color: #344b58;
  font-size: 10px;
}
/* Leave caption space below the poster instead of covering its own text. */
.home-service-card__media--resource { padding-bottom: 28px; }
.home-service-card__media--resource figcaption {
  bottom: 4px;
  padding: 3px 7px;
  line-height: 1.4;
}
.home-service-card__body {
  display: flex;
  min-height: 285px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 2.4vw, 32px);
}
.home-service-card__number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
}
.home-service-card h3 {
  margin: 13px 0 11px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.25vw, 34px);
  font-weight: 650;
  line-height: 1.25;
}
.home-service-card p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.74; }
.home-service-card .text-link { margin-top: auto; padding-top: 26px; }
.home-service-card[data-service="home-support"] {
  background: #eaf0ef;
  border-color: #cddad7;
}
.services-home__note { margin: 18px 0 0; color: var(--quiet); font-size: 12px; line-height: 1.6; }

.inner-services .service-routing__intro { max-width: 700px; color: var(--text-soft); }
.inner-services .service-record { scroll-margin-top: calc(var(--nav-height) + 20px); }
.inner-services .service-record__media {
  position: relative;
  width: 100%;
  height: clamp(170px, 17vw, 260px);
  margin: 0 0 22px;
  overflow: hidden;
  background: var(--surface-soft);
}
.inner-services .service-record__media img { width: 100%; height: 100%; object-fit: cover; }
.inner-services .service-record[data-service="athlete-onsite"] img { object-position: 50% 50%; }
.inner-services .service-record[data-service="studio-adjustment"] img { object-position: 50% 10%; }
.inner-services .service-record__media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 7px 10px;
  background: rgba(8, 23, 30, .78);
  color: white;
  font-size: 10px;
}
.inner-services .service-record[data-service="home-support"] { background: color-mix(in srgb, var(--surface-soft) 80%, var(--surface)); }
.inner-services .service-record[data-service="home-support"]::before {
  display: block;
  width: 100%;
  height: clamp(170px, 17vw, 260px);
  margin-bottom: 22px;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
  content: "在熟悉的日常环境里";
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(23px, 2vw, 31px);
  line-height: clamp(170px, 17vw, 260px);
  text-align: center;
}
.inner-services .service-record h3 { margin-top: 14px; }
.inner-services .service-archive__course {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 25px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.inner-services .service-archive__course span { color: var(--accent); font-size: 11px; font-weight: 700; }
.inner-services .service-archive__course h3 { margin: 5px 0 0; font-size: 22px; }
.inner-services .service-archive__course p { margin: 7px 0 0; color: var(--text-soft); font-size: 13px; }
.inner-services .service-archive__course .text-link { white-space: nowrap; }

@media (max-width: 1100px) {
  .home-page .home-hero__media { inset: 0 0 0 52%; }
  .home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two-column cards are wider: retain the same usable framing, not a thin strip. */
  .home-service-card__media { height: clamp(220px, 27vw, 300px); }
}

@media (max-width: 900px) {
  .home-page .home-hero { display: block; min-height: 0; }
  .home-page .home-hero__inner { display: block; min-height: 0; padding-block: 54px; }
  .home-page .home-hero__media { display: none; }
  .home-page .home-hero__copy { width: min(100%, 700px); }
}

@media (max-width: 700px) {
  .inner-services .page-hero { padding-block: 48px 38px; }
  .inner-services .page-hero__media { display: none; }
  .home-page .home-hero__inner { padding-block: 38px 42px; }
  .home-page .home-hero__identity { margin-bottom: 12px; }
  .home-page .home-hero h1,
  .home-page .home-hero h1 span { max-width: 100%; font-size: clamp(31px, 8.6vw, 40px); line-height: 1.24; }
  .home-page .home-hero__support { margin-top: 16px; font-size: 14px; line-height: 1.74; }
  .home-page .home-hero__method { margin-top: 17px; font-size: 12px; }
  .home-page .home-hero__background { margin-top: 10px; }
  .home-page .home-hero__actions { margin-top: 21px; }
  .home-page .home-hero__actions .button { min-height: 44px; font-size: 13px; }
  .home-page .services-home { padding-block: 48px 58px; }
  .home-page .services-home .section-intro { margin-bottom: 23px; }
  .home-page .services-home .section-intro h2 { font-size: 29px; }
  .home-page .services-home .section-intro p:last-child { font-size: 13px; line-height: 1.7; }
  .home-service-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-service-card__media { height: 178px; }
  .home-service-card__body { min-height: 0; padding: 20px; }
  .home-service-card h3 { margin: 8px 0; font-size: 25px; }
  .home-service-card p { font-size: 13px; }
  .home-service-card .text-link { padding-top: 17px; }
  .inner-services .service-record__media,
  .inner-services .service-record[data-service="home-support"]::before { height: 190px; }
  .inner-services .service-record[data-service="home-support"]::before { line-height: 190px; }
  .inner-services .service-archive__course { display: block; }
  .inner-services .service-archive__course .text-link { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card__media img { transition: none; }
  .home-service-card:hover img { transform: none; }
}
