/* Contact page (templates/contact.html) — builds on site.css; classes are prefixed "contact-". */

/* zh / ja address units (山东省 | 日照市 | …): lines break only between them */
.contact-phrase{display:inline-block}

/* 1 ── hero without photo: balanced intro lines */
.page-contact .hero-page__intro{text-wrap:balance}

/* 2 ── headquarters: short 50 / 50 block — the gate photo (924 x 567 px) fills the block height at about
        its natural size, so the panel keeps tight vertical padding and compact fact rows */
.contact-hq .split__panel{padding-top:clamp(44px,4.4vw,64px);padding-bottom:clamp(44px,4.4vw,64px)}
.contact-hq .facts>div{padding:11px 0}
.contact-hq .facts dt{width:clamp(96px,30%,170px)}          /* "服务热线 / SERVICE HOTLINE / サービスホットライン" on one line */
/* サービスホットライン is one phrase for the browser (it would break as ホッ|トライン): a wider, tighter label column */
html[lang="ja"] .contact-hq .facts dt{width:clamp(136px,32%,170px);font-size:13px;letter-spacing:.02em}
.contact-hq__name{max-width:15em}
.contact-hq__details{margin-top:var(--s-6)}
.contact-hq__facts dd{color:#fff}
.contact-hq__facts dd a{transition:color .2s}
.contact-hq__facts dd a:hover,.contact-hq__facts dd a:focus{color:var(--teal);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.contact-hq__facts .num{font-size:17px;letter-spacing:.02em}
.contact-hq__facts a[href^="mailto:"]{letter-spacing:0}
.contact-hq__links{display:flex;flex-wrap:wrap;margin-top:var(--s-5)}
.contact-hq .contact-hq__links .text-link{margin:0 var(--s-6) 0 0}
.contact-hq .contact-hq__links .text-link:last-child{margin-right:0}
@media (max-width:767px){
  .contact-hq .facts>div{padding:3px 0}
  .contact-hq__facts dd a{display:inline-block;padding:10px 0}  /* >= 44 px tap targets */
  .contact-hq .facts dt{padding-top:11px}                     /* level with the value inside its tap target */
  .page-contact main .text-link{min-height:44px}
  .contact-enquiry .field__control{min-height:44px}            /* core form cards: 42 px (docs/CORE_REQUESTS.md) */
}

/* 3 ── map: natural size at most (the wrapper carries max-width = pixel width of the picture) */
.contact-map__grid{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:clamp(28px,3.2vw,44px);align-items:start}
.contact-map__media{width:100%;justify-self:end}
.contact-map__media .figure__link{border:1px solid var(--line);background:#fff}
.contact-map__address{margin-top:0;font-size:17px;line-height:1.7;color:var(--ink);text-wrap:pretty}
.contact-map__label{margin:var(--s-6) 0 var(--s-1);padding-top:var(--s-5);border-top:1px solid var(--line);font-size:14px;letter-spacing:var(--ls-label);color:var(--muted)}
.contact-map__label--first{margin-top:0;padding-top:0;border-top:0}
html[lang="en"] .contact-map__label{font-size:13px;text-transform:uppercase}
.contact-map__links{margin:0;padding:0;list-style:none}
.contact-map__links .text-link{padding:9px 0}
.contact-map__note{margin:var(--s-4) 0 0;font-size:13px;color:var(--muted)}
@media (min-width:1100px){
  .contact-map__grid{grid-template-columns:minmax(0,1fr) minmax(0,999px)}
}
@media (max-width:1099px){
  .contact-map__grid{grid-template-columns:minmax(0,1fr)}
  .contact-map__media{justify-self:start}
  .contact-map__text{max-width:640px}
}

/* 4 ── QR codes: the map's mist field continues below a hairline (one light band, not two); a little larger than
        the footer's codes, never above their pixel size */
.contact-map--with-qr{padding-bottom:clamp(40px,4.4vw,64px)}
.contact-qr.cta-band--mist{padding-top:0}
.contact-qr .cta-band__inner{position:relative;padding-top:clamp(40px,4.4vw,64px)}
.contact-qr .cta-band__inner::before{content:"";position:absolute;top:0;left:var(--gutter);right:var(--gutter);border-top:1px solid var(--line)}   /* content width, not the gutters */
.contact-qr .cta-band__text{flex-basis:340px;max-width:520px}
.contact-qr .cta-band__text p{text-wrap:balance}
.contact-qr__codes{flex:none;max-width:calc(100% + 24px)}
.contact-qr .qr{width:172px}
.contact-qr .qr small{color:var(--ink)}
/* the shop name under its code is a second link to the shop: a 44 px target without moving the caption */
.contact-qr .qr figcaption a{display:inline-block;padding:12px 0;margin:-12px 0}
@media (max-width:639px){
  .contact-qr__codes{justify-content:space-between;width:calc(100% + 24px)}
  .contact-qr .qr{width:calc(50% - 24px);max-width:172px}
}

/* Japanese: the short texts of this page that the core does not cover break between phrases */
html[lang="ja"] .contact-map__address,html[lang="ja"] .contact-map__note{line-break:strict;word-break:auto-phrase}

/* 5 ── enquiry form over the photo */
@media (max-width:767px){
  .contact-enquiry{padding-top:clamp(120px,36vw,200px)}
}
