/* Natural Japanese line wrapping */
h1,
h2,
h3,
summary {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.mobile-lines > span {
  display: inline;
}

.service-grid .service-other {
  grid-column: 1 / -1;
}

.service-grid article > p span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.option-note {
  margin: 12px 0 0;
  color: #999;
  font-size: 0.85rem;
}

.section-dark > .option-note {
  margin: 12px auto 0;
}

/* Keep the full portrait visible in the profile section. */
.profile-art {
  background: #050505;
}

.profile-art img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.profile-art-mobile {
  display: none;
}

/* Present the finished brand lockup instead of a profile-photo placeholder. */
.hero-visual {
  aspect-ratio: 2;
  margin-left: 32px;
  background: #050505;
}

.hero-visual img {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 2;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.06);
}

.line-qr {
  margin: 8px 0 16px;
  text-align: center;
}
.line-qr img {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}
.line-qr figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: inherit;
}

.line-fallback {
  display: none;
  color: #357a45;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 901px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 70px 40px;
    gap: 40px;
  }

  .hero-copy {
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 4.4vw, 4rem);
  }

  .hero h1 strong {
    display: block;
    white-space: normal;
  }

  .hero-visual {
    margin-left: 0;
    width: 100%;
    transform: none;
    transform-origin: center;
    z-index: 1;
  }

  .band h2.mobile-heading-lines {
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.5;
  }

  .band h2.mobile-heading-lines > span {
    display: block;
    white-space: nowrap;
  }

  .section-heading h2.mobile-heading-lines {
    font-size: 3rem;
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

@media (max-width: 900px) {
  .line-fallback {
    display: inline;
    align-self: center;
  }

  .profile > .profile-art {
    display: none;
  }

  .profile-art-mobile {
    display: block;
    margin: 28px 0 30px;
    overflow: hidden;
    border: 1px solid #292929;
    background: #050505;
  }

  .profile-art-mobile img {
    width: 100%;
    height: auto;
  }

  .hero-visual {
    aspect-ratio: 2;
    margin: 0 0 32px;
    order: 0;
  }

  .hero-visual img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2;
    object-fit: contain;
  }

}

.service-note-mobile { display: none; }
@media (max-width: 900px) {
  #service .section-heading > p:last-child { display: none; }
  .service-note-mobile { display: block; margin: 28px 0 0; color: #aaa; }
  .hero { padding-top: 28px; }
}

@media (max-width: 620px) {
  p,
  li,
  dd {
    text-wrap: wrap;
    overflow-wrap: normal;
    line-break: strict;
  }

  .mobile-heading-lines > span {
    display: block;
    white-space: nowrap;
  }

  .band h2.mobile-heading-lines {
    font-size: 1.68rem;
    line-height: 1.55;
  }

  .service-grid article {
    padding: 27px 22px;
  }

  .notice {
    padding-left: 22px;
    padding-right: 22px;
  }
}
