/* The rhythm demo is the baseline. These rules adjust composition only. */
figcaption small { text-wrap: balance; }
@media (min-width: 1024px) {
  .hero {
    height: auto;
    min-height: clamp(650px, 48vw, 720px);
    display: grid;
    align-items: center;
  }
  .hero > img { object-position: 74% center; }
  .hero-copy { padding: 84px 6.25% 90px; }
  .hero h1 { max-width: 680px; font-size: clamp(44px, 3.4vw, 54px); line-height: 1.6; }
  .hero .label { margin-bottom: 22px; }
  .hero-copy p:not(.label) { max-width: 560px; margin: 28px 0 34px; line-height: 1.9; }
  .scroll { bottom: 32px; }

  .about { min-height: 560px; display: grid; align-items: center; }
  .about > img { width: 68%; object-position: 56% center; }
  .about-copy { padding: 76px 6.25%; }
  .about-copy h2 { line-height: 1.65; }
  .about-copy p:not(.label) { max-width: 535px; margin: 24px 0 28px; line-height: 1.9; }

  .service-layout { min-height: clamp(580px, 44vw, 680px); }
  .service-photo > img:first-child { object-position: 8% center; }
  .service-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .service-intro h2 { line-height: 1.65; }
  .service-intro p:not(.label) { margin: 26px 0 30px; line-height: 1.9; }
  .service-list { grid-template-rows: repeat(4, minmax(100px, 1fr)); padding-top: 48px; padding-bottom: 48px; }
  .service-list button { padding: 18px 0; gap: 22px; font-size: 15px; }
  .service-list img { height: 90px; }
  .service-list small { margin-bottom: 6px; }
  .photo-caption { left: 36px; right: 28px; bottom: 40px; }
  .photo-caption > span { font-size: 48px; }
  .photo-caption h3 { font-size: 26px; margin: 6px 0 10px; }
  .photo-caption p { font-size: 16px; line-height: 1.8; }

  .case { padding: 100px 6.25%; grid-template-columns: 28% 44% 28%; align-items: start; }
  .case > div:first-child { padding-right: 44px; }
  .case > .case-comparison { height: auto; aspect-ratio: 3 / 2; min-height: 320px; max-height: 400px; margin-top: 32px; }
  .case > div:last-child { padding: 64px 0 0 44px; }
  .case h2 { line-height: 1.75; }
  .case p:not(.label) { margin: 24px 0 28px; line-height: 1.9; }
  .case > div:last-child p { margin: 24px 0; font-size: 16px; line-height: 1.9; }
  .case small { font-size: 12px; line-height: 1.9; }

  .owners { min-height: clamp(450px, 34vw, 520px); }
  .owner-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 56px 40px; }
  .owner-copy h2 { font-size: 30px; line-height: 1.7; }
  .owner-copy p:not(.label) { margin: 26px 0 30px; line-height: 1.9; }
  .owner-questions { display: flex; flex-direction: column; justify-content: center; padding-top: 44px; padding-bottom: 44px; }
  .owner-questions h3 { margin-bottom: 18px; }
  .owner-questions > a:not(.text-link) { padding: 14px 0; font-size: 15px; line-height: 1.7; gap: 16px; }
  .owner-questions .text-link { align-self: flex-start; margin-top: 24px; font-size: 14px; }

  .staff { padding: 90px 6.25%; }
  .staff > div:first-child { padding-right: 40px; }
  .staff h2 { line-height: 1.75; }
  .staff p:not(.label) { margin: 24px 0 28px; line-height: 1.9; }
  .staff-grid { gap: 16px; }
  .portrait { height: 250px; }
  figcaption { padding-top: 16px; line-height: 1.8; }
  figcaption span { margin-top: 6px; font-size: 12px; }
  figcaption small { margin-top: 10px; font-size: 12px; line-height: 1.9; }

  .faq { padding-top: 24px; padding-bottom: 72px; }
  .faq details { padding: 18px 0; }
  .faq summary { font-size: 16px; }
  .contact { min-height: 270px; padding: 64px 6.25%; }
  .contact > img { object-position: center 58%; }
  .contact > div { gap: 56px; }
  .contact h2 { font-size: 30px; line-height: 1.7; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero { height: auto; min-height: 600px; display: grid; align-items: center; }
  .hero-copy { padding-top: 70px; padding-bottom: 80px; }
  .hero > img { object-position: 70% center; }
  .hero-copy p:not(.label) { margin-top: 26px; margin-bottom: 32px; }
  .about { min-height: 480px; display: grid; align-items: center; }
  .about-copy { padding-top: 60px; padding-bottom: 60px; }
  .service-layout { min-height: 560px; }
  .service-photo > img:first-child { object-position: 8% center; }
  .service-intro { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
  .service-intro p:not(.label) { margin-top: 24px; margin-bottom: 28px; }
  .service-list { padding-top: 36px; padding-bottom: 36px; }
  .service-list button { min-height: 110px; padding-top: 18px; padding-bottom: 18px; }
  .case { padding-top: 80px; padding-bottom: 80px; }
  .case > .case-comparison { height: auto; aspect-ratio: 1 / 1; min-height: 280px; margin-top: 30px; }
  .case > div:last-child { padding-top: 40px; }
  .owners { min-height: 450px; }
  .owner-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
  .owner-questions { display: flex; flex-direction: column; justify-content: center; padding-top: 36px; padding-bottom: 36px; }
  .owner-questions > a:not(.text-link) { padding-top: 16px; padding-bottom: 16px; }
  .staff { padding-top: 72px; padding-bottom: 72px; gap: 36px; }
  .portrait { height: 250px; }
  figcaption { padding-top: 16px; }
  .faq { padding-top: 24px; padding-bottom: 64px; }
  .contact { min-height: 250px; padding-top: 56px; padding-bottom: 56px; }
}

@media (max-width: 767px) {
  .hero { height: auto; min-height: 660px; display: grid; align-items: center; }
  .hero-copy { padding: 64px 7% 96px; }
  .hero-copy p:not(.label) { margin: 28px 0 34px; line-height: 1.9; }
  .about { min-height: 0; }
  .about-copy { padding: 64px 7% 56px; }
  .about-copy p:not(.label) { margin: 24px 0 28px; }
  .about > img { height: 300px; }
  .service-layout { min-height: 0; }
  .service-intro { padding: 64px 7% 40px; }
  .service-intro p:not(.label) { margin: 24px 0 28px; }
  .service-photo { min-height: 380px; }
  .service-photo > img:first-child { object-position: 15% center; }
  .photo-caption { bottom: 28px; left: 7%; right: 7%; }
  .photo-caption p { font-size: 16px; line-height: 1.8; }
  .service-list { padding: 20px 7% 32px; }
  .service-list button { min-height: 88px; padding-top: 18px; padding-bottom: 18px; font-size: 14px; }
  .case { padding: 64px 7% 72px; gap: 32px; }
  .case > .case-comparison { height: auto; aspect-ratio: 4 / 3; min-height: 240px; margin: 0; }
  .case > div:last-child { padding: 0; }
  .case p:not(.label) { margin: 24px 0; }
  .owners { min-height: 0; }
  .owners > img { height: clamp(300px, 85vw, 360px); }
  .owner-copy { padding: 64px 7% 56px; }
  .owner-copy p:not(.label) { margin: 24px 0 30px; }
  .owner-questions { padding: 56px 7%; }
  .owner-questions h3 { margin-bottom: 24px; }
  .owner-questions > a:not(.text-link) { padding-top: 16px; padding-bottom: 16px; font-size: 16px; }
  .owner-questions .text-link { margin-top: 24px; }
  .staff { padding: 72px 7% 64px; gap: 36px; }
  .staff p:not(.label) { margin: 24px 0 28px; }
  .staff-grid { gap: 32px 16px; }
  .portrait { height: 240px; }
  figcaption { padding-top: 16px; }
  figcaption span { margin-top: 6px; }
  figcaption small { margin-top: 10px; line-height: 1.9; }
  .faq { padding: 8px 7% 64px; }
  .faq details { padding-top: 20px; padding-bottom: 20px; }
  .contact { min-height: 300px; padding: 64px 7%; }
  .contact > div { gap: 28px; }
}

/* Give the hero-to-ABOUT transition room, within ABOUT's own composition. */
.about::after { display: none; }
.about-photo { position: relative; overflow: hidden; }
.about-photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 52% 64%;
  transform: scale(1.85);
  transform-origin: 52% 64%;
}
@media (min-width: 1024px) {
  .about {
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    align-items: center;
    min-height: 0;
    padding: 120px 0 96px;
    overflow: visible;
  }
  .about-copy { grid-column: 1; grid-row: 1; padding: 44px 48px 44px 12.01923%; }
  .about-photo { grid-column: 2; grid-row: 1; width: 100%; height: clamp(400px, 31vw, 460px); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .about {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
    align-items: center;
    min-height: 0;
    padding: 88px 0 80px;
    overflow: visible;
  }
  .about-copy { grid-column: 1; grid-row: 1; padding: 32px 32px 32px 12.5%; }
  .about-photo { grid-column: 2; grid-row: 1; width: 100%; height: 400px; }
}
@media (max-width: 767px) {
  .about { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 64px 0; overflow: visible; }
  .about-copy { grid-column: 1; grid-row: 1; padding: 0 7%; }
  .about-photo { grid-column: 1; grid-row: 2; width: 93%; height: 280px; margin: 36px 0 0 7%; }
}

/* The comparison keeps the original case-photo footprint. */
.case-comparison { position: relative; overflow: hidden; width: 100%; isolation: isolate; }
.case-comparison > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; }
.case-comparison .comparison-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.comparison-label { position: absolute; bottom: 16px; z-index: 1; color: white; background: #173b3770; padding: 2px 8px; font: 11px/1.8 'Noto Sans JP', sans-serif; letter-spacing: .08em; pointer-events: none; }
.before-label { left: 14px; }
.after-label { right: 14px; }
.comparison-divider { position: absolute; inset: 0 auto 0 var(--split); width: 1px; background: white; transform: translateX(-50%); pointer-events: none; z-index: 2; }
.comparison-divider::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: white; }
.comparison-control { position: absolute; inset: 0; cursor: ew-resize; touch-action: pan-y; z-index: 3; }
.comparison-control:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.comparison-help { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Report introduction belongs to the owner section, without a separate card. */
.owner-report { display: grid; grid-template-columns: 44% 56%; align-items: center; gap: 0; padding: 112px 6.25% 120px; background: #fff; }
.report-copy { padding-right: 40px; }
.report-copy h2 { font-size: clamp(28px, 2.3vw, 38px); line-height: 1.7; }
.report-copy p:not(.label) { margin: 28px 0 30px; line-height: 1.95; }
.report-copy .text-link { color: var(--green); }
.report-format, .report-note { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; }
.report-format { margin-top: 12px; }
.report-note { margin-top: 24px; }
.report-preview { display: block; position: relative; width: 100%; aspect-ratio: 1.12; }
.report-preview img { position: absolute; width: 62%; height: auto; object-fit: contain; }
.report-first { top: 10%; left: 0; }
.report-second { top: 0; right: 0; }
@media (min-width: 768px) and (max-width: 1023px) {
 .owner-report { grid-template-columns: 43% 57%; padding-top: 100px; padding-bottom: 104px; }
 .report-copy { padding-right: 24px; }
 .report-copy p:not(.label) { font-size: 15px; }
}
@media (max-width: 767px) {
 .owner-report { grid-template-columns: 1fr; padding: 64px 7% 72px; gap: 40px; }
 .report-copy { padding-right: 0; }
 .report-copy p:not(.label) { margin: 24px 0 28px; }
 .report-copy p br { display: none; }
 .report-copy p { max-width: 34em; }
 .report-preview { max-width: 540px; margin: 0 auto; }
}
