/* Measured width rules; see docs/inner-width-adjustment.md for adoption decisions. */
:root {
  --content-gutter: 8.16vw;
  --content-width: min(1600px, calc(100% - var(--content-gutter) * 2));
  --reading-gutter: var(--content-gutter);
  --reading-width: min(800px, calc(100% - var(--reading-gutter) * 2));
}
.container { width: var(--content-width); }
.brand__crest > img { width: 100%; height: 100%; object-fit: contain; }
.contact__copy { padding-inline: var(--content-gutter); }
.contact__action > div { max-width: 440px; }
@media (min-width:1280px) {
  .footer-nav { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .footer-nav a { padding-inline: 16px; }
  .footer-nav a:nth-child(6n + 1) { padding-left: 0; }
}
@media (max-width:699px) {
  :root { --reading-gutter: 7.2vw; }
  .contact__action { padding-inline: var(--content-gutter); }
}

/* English is a label; Japanese is primary. Titles share the standard content edge. */
.page-title-band { position: relative; isolation: isolate; padding-block: 22px 110px; overflow: hidden; border-bottom: 1px solid #b78836; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: .8125rem; line-height: 1.8; }
.breadcrumbs li + li::before { content: '\203A'; margin-right: 12px; color: var(--gold-ink); }
.breadcrumbs a { transition: color .3s ease; }
.breadcrumbs a:hover { color: var(--gold-ink); }
.page-title-band__text { position: relative; padding-top: 105px; text-align: left; }
.page-title-band__english { color: var(--gold-ink); font: 1.25rem/1.5 Georgia, serif; letter-spacing: .06em; }
.page-title-band__rule { display: block; width: 48px; height: 1px; margin: 16px 0 24px; background: var(--gold-ink); }
.page-title-band h1 { font-size: clamp(2rem, 3.34vw, 3.25rem); line-height: 1.6; letter-spacing: .14em; }
.page-title-band::after { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: auto auto -55px -65px; width: min(55vw, 850px); aspect-ratio: 3; background: url('images/services-gold-brush.webp') center / contain no-repeat; opacity: .28; }
@media(max-width:699px) {
  .page-title-band { padding-block: 16px 90px; }
  .breadcrumbs ol { gap: 8px; font-size: .6875rem; }
  .breadcrumbs li + li::before { margin-right: 8px; }
  .page-title-band__text { padding-top: 48px; }
  .page-title-band__english { font-size: .75rem; }
  .page-title-band__rule { width: 30px; margin-block: 9px 12px; }
  .page-title-band h1 { font-size: 1.875rem; letter-spacing: .12em; }
  .page-title-band::after { width: 80%; bottom: 15px; left: -12%; }
}

.footer-legal { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; position: relative; z-index: 1; }
.footer-policy { flex-shrink: 0; color: #c4ac81; font-size: .75rem; line-height: 1.8; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:699px) { .footer-legal { flex-wrap: wrap; gap: 5px; } .footer-policy { font-size: .625rem; } }

/* The approved inner-page CTA is the single site-wide presentation. */
.contact { --gold: #bd9143; --gold-ink: #a87824; --paper: #f8f5f0; border-top: 1px solid #a58a5d80; }
.contact .contact__copy { position: relative; isolation: isolate; background: #f5f0e9 url('images/services-contact-paper.webp') center / cover no-repeat; overflow: hidden; }
.contact .contact__action .pill { border: 2px solid var(--gold-bright); }
.contact .contact__action .pill__arrow { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #dfb263; color: #17130d; font: 20px/1 sans-serif; }
.contact .contact__action .pill__arrow::after { content: none; }
@media (max-width: 699px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact .contact__copy { padding-block: 58px; }
  .contact h2 { font-size: 1.75rem; }
  .contact .contact__copy p { font-size: 1rem; }
  .contact .contact__action { min-height: 270px; padding-block: 44px; }
  .contact .contact__action .pill__arrow { width: 24px; height: 24px; flex-basis: 24px; font-size: 18px; }
  .contact .contact__phone { font-size: 2.1875rem; }
}
/* Retain a page heading for assistive technology when a visual title band is omitted. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Match the approved PC/SP design's upper-right crest corner; see docs/footer-logo.md. */
.site-footer .footer-bottom { position: relative; isolation: isolate; }
.footer-crest {
  position: absolute;
  z-index: -1;
  top: 57px;
  left: calc(50% - 20.8vw);
  width: min(100vw, 1800px);
  height: auto;
  transform: translate(-71.3%, -8.77%);
  opacity: .63;
  pointer-events: none;
}
@media (max-width: 699px) {
  .footer-crest { left: calc(50% + 1.3vw); width: min(200vw, 1100px); }
}
