/* top.css — page-specific only */
.prose-left { text-align: left; margin-inline: auto; }
.page-home .num-item .card__no { display: block; }

/* ---------- hero with photo slides ---------- */
.hero--media { padding: 0; background: #fff; overflow: visible; }
.hero--media::before { display: none; }                 /* the CSS wave pattern is only the no-photo fallback */
.hero__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-surface); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__img { display: block; width: 100%; height: 100%; }
.hero__img { object-fit: cover; }
.hero__veil { display: none; }
.hero--media .hero__body { padding-block: var(--s-6) var(--s-7); }
.hero__pause { position: absolute; right: var(--s-3); bottom: var(--s-3); z-index: 3; min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); color: var(--c-ink); font-size: var(--fs-xs); letter-spacing: .08em; cursor: pointer; }
.hero__pause:hover { background: #fff; border-color: var(--c-ink); }
.hero__pause[hidden] { display: none; }

@media (min-width: 769px) {
  .hero--media { position: relative; display: flex; align-items: center; min-height: clamp(580px, 48vw, 780px); overflow: hidden; }
  .hero--media .hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero__img { object-position: 80% 50%; }                /* subject sits on the right of the 16:9 photo */
  .hero__veil { display: block; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .92) 38%, rgba(255, 255, 255, .62) 54%, rgba(255, 255, 255, 0) 72%); }
  .hero--media .hero__body { position: relative; z-index: 2; width: 100%; padding-block: 56px; }
  .hero--media .hero__lead { max-width: 36em; font-size: .9375rem; line-height: 1.9; }   /* keep the copy on the calm left wall of the photo */
  .hero--media .hero__lead.stack > * + * { margin-top: var(--s-3); }
  .hero--media .hero__cta { margin-top: var(--s-5); }
  .hero__pause { right: var(--gutter); bottom: var(--s-4); }
}

/* ---------- about: text + portrait photo ---------- */
.split--about { align-items: start; }
@media (min-width: 769px) { .split--about { grid-template-columns: 7fr 5fr; } .split--about.split--single { grid-template-columns: 1fr; } .split--about .figure { position: sticky; top: calc(var(--header-h) + var(--s-4)); } }
@media (max-width: 768px) { .split--about .figure { order: -1; } }

/* ---------- services: intro text + 3:2 photo (alternating sides) ---------- */
.svc-lead { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 769px) {
  .svc-lead { grid-template-columns: 1fr clamp(260px, 36%, 380px); gap: var(--s-6); }
  .svc-lead--single { grid-template-columns: 1fr; }
  .num-item:nth-of-type(even) .svc-lead { grid-template-columns: clamp(260px, 36%, 380px) 1fr; }
  .num-item:nth-of-type(even) .svc-lead .figure { order: -1; }
}
@media (max-width: 768px) { .svc-lead .figure { order: -1; } }


/* ---------- worries (お悩み01-04): photo on top, text below; plain navy-rule version when no photo ---------- */
.page-home .worry--photo { padding: 0; border-left: 0; background: #fff; border: 1px solid var(--c-line-soft); display: flex; flex-direction: column; }
.page-home .worry--photo .worry__body { padding: var(--s-4) var(--s-5) var(--s-5); }
.page-home .worry--photo .worry__title { font-size: var(--fs-md); line-height: 1.8; }
