/* Reference: Legaseed layout; REGAXIA content/assets only. Scoped to homepage. */
.footer-contact-v24{position:relative;isolation:isolate;overflow:hidden;margin:20px 16px 0;padding:58px 40px 42px;background:#123c33 url("b/c1091ccbd9-photo-mk1m1676.jpg") center 48%/cover no-repeat;color:#fff;border-radius:0!important}
.footer-contact-v24:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,rgba(4,30,26,.83),rgba(3,28,26,.68))}
.footer-consult-inner{max-width:1160px;margin:auto;text-align:center}
.footer-consult-eyebrow{display:flex;align-items:center;gap:9px;margin:0 0 26px;text-align:left;font-size:11px;letter-spacing:.08em;font-weight:600}
.footer-consult-eyebrow>span{width:10px;height:6px;display:inline-block;background:#d1b16a;border-radius:60% 40%!important;transform:rotate(-20deg)}
.footer-contact-v24 h2{margin:0;font-size:clamp(24px,2.3vw,34px);line-height:1.6;letter-spacing:.03em;color:inherit}
.footer-consult-lead{font-size:13px;line-height:2;margin:16px 0 42px;color:#fff}
.footer-consult-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:1080px;margin:auto}
.footer-consult-card{padding:20px 26px 26px;min-width:0}
.footer-consult-card+.footer-consult-card{border-left:1px solid rgba(255,255,255,.4)}
.footer-consult-card h3{display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;line-height:1.6;margin:0 0 24px;color:inherit}
.footer-consult-card h3 svg{width:24px;height:24px;flex:0 0 24px}
.footer-consult-button{display:flex;align-items:center;justify-content:center;gap:12px;max-width:250px;min-height:48px;margin:auto;padding:12px 20px;border:1px solid #d1b16a;background:#fff;color:#124637;border-radius:0!important;font-size:12px;font-weight:600;text-decoration:none;transition:background .2s,color .2s,transform .2s}
.footer-consult-button>span{color:#a8873b;font-size:18px}
.footer-consult-button:hover{background:#f3e8cd;transform:translateY(-2px)}
.footer-consult-number{display:flex;align-items:center;justify-content:center;min-height:48px;color:#fff;white-space:nowrap;font-size:clamp(24px,2.3vw,34px);font-weight:700;line-height:1.2;letter-spacing:-.035em;text-decoration:none}
.footer-consult-card p{font-size:12px;line-height:2;margin:18px 0 0;color:#fff}
.footer-consult-note{font-size:11px;letter-spacing:.08em;color:#e5eae6;margin:20px 0 0}
.footer-v24{padding:58px max(6vw,24px) 24px;background:#fff;color:#153c33;font-size:12px;line-height:1.8}
.footer-v24-main,.footer-v24-bottom{max-width:1280px;margin:auto}
.footer-v24-main{display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px}
.footer-v24-logo{display:block;width:180px;margin-bottom:22px}.footer-v24-logo img{display:block;width:100%;height:auto;filter:none}
.footer-v24-name{margin:0 0 4px;font-size:12px;font-weight:600}.footer-v24 address{font-style:normal;color:#65756c;font-size:11px;line-height:2.1}
.footer-v24 a{color:inherit;text-decoration:none}.footer-v24 a:hover{color:#987523;text-decoration:underline;text-underline-offset:4px}
.footer-v24-social{display:inline-flex;gap:8px;align-items:center;margin-top:18px}.footer-v24-social svg{width:20px;height:20px}.footer-v24-social span{font-size:11px}
.footer-v24-nav{display:grid;grid-template-columns:1.25fr 1fr 1fr .8fr;gap:28px}.footer-nav-column h2{font-size:12px;line-height:1.5;margin:0 0 18px;font-weight:700;letter-spacing:.02em}.footer-nav-column>a{display:block;font-size:11px;margin:0 0 10px;line-height:1.9}
.footer-v24-policies{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px 24px;margin:32px 0 24px;font-size:10px;color:#65756c}
.footer-v24-certs{display:flex;flex-wrap:wrap;align-items:center;gap:22px;border-top:1px solid #e7ebe7;padding:22px 0}.footer-v24-certs img{height:70px;width:auto;max-width:100%;object-fit:contain;background:#fff;padding:5px;flex:0 0 auto}
.footer-v24-utility{display:flex;align-items:center;gap:24px;justify-content:space-between;color:#65756c;font-size:10px}.footer-v24-utility small{margin-right:auto}.footer-v24-utility button{border:1px solid #cdd7d0;background:#fff;color:#345247;padding:8px 14px;font:inherit;cursor:pointer}.footer-v24-top{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #cdd7d0;font-size:20px}
.footer-v24 a:focus-visible,.footer-v24 button:focus-visible,.footer-contact-v24 a:focus-visible{outline:3px solid #d1b16a;outline-offset:5px}
@media(max-width:1000px){.footer-contact-v24{padding:42px 22px 32px}.footer-consult-card{padding:18px 14px}.footer-consult-card h3{font-size:13px;gap:6px}.footer-consult-number{font-size:24px}.footer-v24-main{grid-template-columns:190px 1fr;gap:32px}.footer-v24-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}}
@media(max-width:700px){.footer-contact-v24{margin:12px 12px 0;padding:32px 22px;border-radius:0!important;background-position:58% center}.footer-consult-eyebrow{font-size:10px;margin-bottom:24px}.footer-contact-v24 h2{font-size:24px}.footer-consult-lead{font-size:12px;margin:16px 0 20px}.footer-consult-columns{grid-template-columns:1fr;max-width:420px}.footer-consult-card{padding:28px 0}.footer-consult-card+.footer-consult-card{border-left:0;border-top:1px solid rgba(255,255,255,.35)}.footer-consult-card h3{font-size:15px;margin-bottom:18px}.footer-consult-number{font-size:30px}.footer-consult-card p{font-size:11px;margin-top:14px}.footer-consult-note{font-size:10px;margin-top:4px}.footer-v24{padding:40px 24px 24px}.footer-v24-main{grid-template-columns:1fr;gap:34px}.footer-v24-nav{gap:24px 18px}.footer-v24-policies{justify-content:flex-start;margin-top:28px;gap:10px 18px}.footer-v24-certs{gap:16px;margin-inline:-10px}.footer-v24-utility{flex-wrap:wrap;gap:14px}.footer-v24-utility small{flex:1 1 100%}.footer-v24-top{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.footer-consult-button{transition:none}.footer-consult-button:hover{transform:none}}

#contact.footer-contact-v24{scroll-margin-top:120px}

/* v25: Hideyoshi reviewed proposal 1568192552505712662 / 1568192556700016651 */
#contact.footer-contact-v24{border-radius:47px!important;background-image:url("/assets/contact-team-poster-20261111.jpg");background-position:center center}
.footer-v24-certs{flex-wrap:wrap;row-gap:14px}
.footer-v24-certs img{height:70px;max-width:300px}
.footer-v24-certs img[src*="cert-tokyo23-100"]{background:#123c33;padding:6px 14px;box-sizing:content-box;height:58px}
@media(max-width:700px){#contact.footer-contact-v24{border-radius:25px!important;background-position:58% center}.footer-v24-certs{justify-content:center;gap:16px}.footer-v24-certs img{height:56px;max-width:262px}.footer-v24-certs img[src*="cert-tokyo23-100"]{height:46px;padding:5px 10px;max-width:240px}}

/* Consultation copy overlays the lower photo, below the seven faces. */
#contact.footer-contact-v24{--photo-height:calc(min(100vw - 32px,1440px) * 1697 / 2400);background-size:min(100%,1440px) auto;background-position:center top;min-height:var(--photo-height);padding:calc(var(--photo-height) * .66) 40px 32px;box-sizing:border-box}
#contact.footer-contact-v24::before{background:linear-gradient(to bottom,transparent 0,transparent calc(var(--photo-height) * .62),rgba(4,30,26,.82) calc(var(--photo-height) * .70),rgba(4,30,26,.94) var(--photo-height),rgba(4,30,26,.94) 100%)}
#contact .footer-consult-eyebrow{margin-bottom:12px}
#contact .footer-consult-lead{margin:12px 0 18px}
#contact .footer-consult-card{padding:14px 20px}
#contact .footer-consult-card h3{margin-bottom:14px}
#contact .footer-consult-card p{margin-top:12px}
#contact .footer-consult-note{margin-top:14px}
@media(max-width:1000px){#contact.footer-contact-v24{padding-inline:22px}#contact .footer-consult-card{padding-inline:12px}}
@media(max-width:700px){#contact.footer-contact-v24{--photo-height:calc((100vw - 24px) * 1697 / 2400);padding:calc(var(--photo-height) * .69) 22px 28px}#contact .footer-consult-eyebrow{font-size:9px;margin-bottom:8px}#contact h2{font-size:clamp(19px,5.2vw,24px);line-height:1.6;text-wrap:wrap;word-break:keep-all}#contact .footer-consult-lead{margin:12px 0 16px}#contact .footer-consult-card{padding:20px 0}#contact .footer-consult-card h3{margin-bottom:12px}}

/* Restore the pre-compact panel/photo width; shorten only the lower illustration and spacing. */
#contact.footer-contact-v24{min-height:0;padding-top:calc(var(--photo-height) * .61);padding-bottom:16px}
#contact.footer-contact-v24::before{background:linear-gradient(to bottom,transparent 0,transparent calc(var(--photo-height) * .57),rgba(4,30,26,.84) calc(var(--photo-height) * .65),rgba(4,30,26,.96) calc(var(--photo-height) * .88),rgba(4,30,26,.96) 100%)}
#contact .footer-consult-eyebrow{margin-bottom:4px}
#contact h2{line-height:1.35}
#contact .footer-consult-lead{margin:4px 0 6px;line-height:1.65}
#contact .footer-consult-card{padding-block:6px}
#contact .footer-consult-card h3{margin-bottom:6px;line-height:1.4}
#contact .footer-consult-card p{margin-top:6px;line-height:1.6}
#contact .footer-consult-note{margin-top:4px}
@media(max-width:700px){#contact.footer-contact-v24{padding-top:calc(var(--photo-height) * .65);padding-bottom:16px}#contact .footer-consult-lead{margin:6px 0 8px}#contact .footer-consult-card{padding-block:8px}#contact .footer-consult-button{min-height:44px;padding-block:8px}#contact .footer-consult-number{min-height:44px}}

/* Full-bleed consultation photo; keep the compact copy layout and image aspect ratio. */
#contact.footer-contact-v24{margin-inline:0;border-radius:0!important;--photo-height:calc(100vw * 1697 / 2400);background-size:100% auto}
@media(max-width:420px){#contact #footer-consult-title{max-width:calc(100% - 24px);margin-inline:auto}}

/* Keep the photograph visible behind the copy, including the stacked mobile actions. */
#contact.footer-contact-v24::before{background:linear-gradient(to bottom,transparent 0,transparent calc(var(--photo-height) * .57),rgba(4,30,26,.48) calc(var(--photo-height) * .65),rgba(4,30,26,.72) calc(var(--photo-height) * .88),rgba(4,30,26,.72) 100%)}
#contact .footer-consult-inner{position:relative;text-shadow:0 1px 4px rgba(0,20,15,.8)}
#contact .footer-consult-button{text-shadow:none}
@media(max-width:1000px){
 #contact.footer-contact-v24::after{content:"";position:absolute;z-index:-2;inset:calc(var(--photo-height) * .68) 0 0;background:url("/assets/contact-team-poster-20261111.jpg") center bottom/auto 400% no-repeat;mask-image:linear-gradient(transparent,#000 52px);pointer-events:none}
}

/* HP-CONTACT-COPY-PRIORITY: keep the full photo; prioritise the consultation copy. */
#contact.footer-contact-v24::before{background:linear-gradient(to bottom,transparent 0,transparent calc(var(--photo-height) * .55),rgba(4,30,26,.86) calc(var(--photo-height) * .61),rgba(4,30,26,.92) calc(var(--photo-height) * .88),rgba(4,30,26,.92) 100%)}
#contact .footer-consult-inner{text-shadow:0 2px 5px rgba(0,15,10,.7)}
#contact #footer-consult-title{font-size:clamp(30px,3.2vw,46px);font-weight:800;line-height:1.4;letter-spacing:.025em}
#contact .footer-consult-eyebrow{font-size:12px;font-weight:700;margin-bottom:10px}
#contact .footer-consult-lead{font-size:16px;font-weight:600;line-height:1.8;margin:10px 0 18px}
#contact .footer-consult-card h3{font-size:18px;font-weight:700;margin-bottom:12px}
#contact .footer-consult-card p{font-size:14px;font-weight:500;line-height:1.8;margin-top:10px}
#contact .footer-consult-button{font-size:14px;font-weight:700;min-height:52px;text-shadow:none}
#contact .footer-consult-number{font-size:clamp(28px,3vw,42px);font-weight:800;min-height:52px}
#contact .footer-consult-note{font-size:12px;font-weight:500;color:#fff;margin-top:12px}
@media(min-width:701px) and (max-width:1000px){#contact .footer-consult-card{padding-inline:8px}#contact .footer-consult-card h3{font-size:15px}#contact .footer-consult-number{font-size:26px}#contact .footer-consult-card p{font-size:13px}}
@media(max-width:700px){#contact #footer-consult-title{font-size:clamp(22px,6.2vw,26px);letter-spacing:0;max-width:none}#contact .footer-consult-eyebrow{font-size:10px;margin-bottom:10px}#contact .footer-consult-lead{font-size:14px;margin:10px 0 14px}#contact .footer-consult-card{padding-block:14px}#contact .footer-consult-card h3{font-size:17px}#contact .footer-consult-card p{font-size:13px}#contact .footer-consult-number{font-size:34px}#contact .footer-consult-note{font-size:11px}}

/* Photo-only correction: retain every e7523aa7 layout rule. TOP scope only. */
#contact.footer-contact-v24.contact-photo-only{background-image:url('/assets/contact-team-no-slogan-20261112.png')}
#contact.footer-contact-v24.contact-photo-only::after{background-image:url('/assets/contact-team-no-slogan-20261112.png')}

/* Gap is now recruitment padding, carrying its continuous background. */
#reference-contact.contact-top-gap{padding-top:0}
