/* Homepage refinements from the 2026-09-29 XD. Kept separate from lower pages. */

/* The original hero navigation becomes a white fixed bar at CONCEPT. */
.header-home.is-stuck{position:fixed;inset:0 0 auto;z-index:30;height:58px;padding-top:0;align-items:center;background:#fff}
.header-home.is-stuck .brand{width:170px}
.header-home.is-stuck .primary-nav{position:static;flex-direction:row;align-items:center;gap:24px;font-size:14px}
.header-home.is-stuck .header-actions{margin-top:0;height:auto}
.home.admin-bar .header-home.is-stuck{top:32px}
.header-home .header-actions > a:last-child:after{width:56px;height:16px;bottom:-8px;background:url('../images/ribbon-header.svg') no-repeat center/100% 100%;clip-path:none}

/* Full-width backgrounds, with the existing readable content widths inside. */
.home-hero-wrap{background:radial-gradient(ellipse at 92% 32%,#e0f7ff 0,transparent 36%),radial-gradient(ellipse at 3% 75%,#dcf3ff,transparent 30%)}
.home-hero{background:none}
.home-numbers,.home-news{width:100%;max-width:none;margin-inline:0;padding-inline:0}
.home-numbers>.container{padding-inline:60px}
.home-news>.container{padding-inline:100px}
.home .site-footer{padding-top:120px}

/* 2026-10-06: updated client text on the original XD background and ribbon. */
.trade-band{padding:0;min-height:180px;background:#000 url('../images/trade-background.svg') center/100% 100% no-repeat;color:#fff}
.trade-band>.container{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;max-width:1160px;min-height:180px;gap:36px;padding-block:40px}
.trade-band h2{font-size:16px;font-weight:500;line-height:1.7;margin:0}
.trade-band .trade-company{font-size:clamp(30px,3vw,42px);font-weight:600;line-height:1.5;letter-spacing:.04em;margin:0;max-width:100%;width:fit-content;justify-self:center;padding:12px 32px;border:1px solid #fff;text-align:center;overflow-wrap:anywhere}
.trade-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:16px;font-weight:500;line-height:1.7;color:#fff;text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:1px;transition:opacity .2s ease}
.trade-link:hover{color:#fff;opacity:.75}
.trade-link:focus-visible{outline:2px solid #fff;outline-offset:6px;border-radius:2px}
@media(prefers-reduced-motion:reduce){.trade-link{transition:none}}

/* Exact paired triangles from the XD paths. Their common ratio is 3.5:1. */
.trade-band:after,.home-concept:after,.home-services:after,.home-works:after,
.home-concept:before,.home-services:before,.recruit-panel:after{
 content:'';display:block;position:absolute;pointer-events:none;z-index:1;
 width:336px;height:96px;background:url('../images/ribbon-black.svg') center/100% 100% no-repeat;clip-path:none;
}
.trade-band:after{right:0;bottom:-48px}
.home-concept:before{width:168px;height:48px;top:119px;left:50%;transform:translateX(-50%);background-image:url('../images/ribbon-small.svg')}
.home-concept:after{left:-10px;right:auto;bottom:20px}
.recruit-panel:after{right:0;bottom:-48px;background-image:url('../images/ribbon-blue.svg')}
.home-services:before{width:476px;height:136px;right:0;top:107px}
.home-services:after{width:168px;height:48px;left:40px;right:auto;bottom:15px;background-image:url('../images/ribbon-blue.svg')}
.home-services>.container>h2{font-size:22px;margin-top:12px}
.home-works:after{width:476px;height:136px;left:0;right:auto;bottom:-68px;background-image:url('../images/ribbon-gray.svg')}
.hero-slash{height:auto;aspect-ratio:3.5;background-size:100% 100%;background-repeat:no-repeat;clip-path:none;transform:none}
.slash-one{background-image:url('../images/hero-triangle-left.svg')}
.slash-two{background-image:url('../images/hero-triangle-right.svg')}
@media(min-width:701px){
 .home-recruit.container{width:100%;max-width:none;padding-left:max(40px,calc((100% - 1200px)/2));padding-right:0}
 .recruit-panel{border-top-right-radius:0;border-bottom-right-radius:0}
 .hero-slash{width:32.7828%}
 .slash-one{top:54.7333%}
 .slash-two{top:26.4965%}
}
@media(max-width:1200px){
 .header-home.is-stuck .primary-nav{gap:16px;font-size:13px}
 .trade-band>.container{gap:24px}
 .home-numbers>.container{padding-inline:20px}
}
@media(max-width:1000px){
 .header-home.is-stuck{height:65px}
 .header-home.is-stuck .primary-nav{display:none}
 .home-news>.container{padding-inline:30px}
 .home-concept:before{top:64px;width:140px;height:40px}
 .home-services:before{width:336px;height:96px;top:62px}
}
@media(max-width:782px){.home.admin-bar .header-home.is-stuck{top:46px}}
@media(max-width:700px){
 .header-home.is-stuck{height:68px}
 .home-hero-wrap{background:radial-gradient(ellipse at 90% 22%,#e1f6ff,transparent 47%),radial-gradient(ellipse at 3% 50%,#e6f5ff,transparent 42%)}
 .home-numbers>.container,.home-news>.container{padding-inline:0}
 .trade-band{min-height:0}
 .trade-band>.container{grid-template-columns:minmax(0,1fr);min-height:0;gap:16px;padding-block:40px 44px;text-align:center}
 .trade-band h2{font-size:14px}
 .trade-band .trade-company{font-size:32px;padding-inline:18px}
 .trade-link{justify-self:center;font-size:14px}
 .trade-band:after,.home-concept:after,.recruit-panel:after{width:168px;height:48px}
 .trade-band:after,.recruit-panel:after{bottom:-24px}
 .home-concept:before{top:38px;width:112px;height:32px}
 .home-concept:after{left:-5px;bottom:0}
 .home-services:before{width:168px;height:48px;top:10px}
 .home-services:after{width:112px;height:32px;left:20px;bottom:15px}
 .home-services>.container>h2{font-size:18px;margin-top:9px}
 .home-works:after{width:210px;height:60px;bottom:-30px}
 .hero-slash{width:40%;height:auto}
}
@media(max-width:600px){.home.admin-bar .header-home.is-stuck{top:0}}
@media print{.home-concept:before,.home-services:before,.recruit-panel:after{display:none}}

/* Enlarge only the photograph; the circular clipping box stays unchanged. */
.hero-circle img{transform:scale(1.1);transform-origin:center}
@media(max-width:700px){.home .site-footer{padding-top:65px}}

/* Homepage works: measured from the 260929 PC artboard. */
.home-works{margin-top:162px;padding:0 0 100px;background:linear-gradient(to bottom,#fff 0 50px,#f7f7f7 50px 100%)}
.home-works .display-en{font-size:80px;font-weight:600;line-height:96px;letter-spacing:0}
.home-works h2{font-size:28px;font-weight:700;line-height:42px;margin:7px 0 0;color:#000}
.home-works .card-grid{margin-top:55px;column-gap:36px}
.home-works .work-card-content{display:block}
.home-works .card-image{border-radius:12px;aspect-ratio:376/260}
.home-works .card-image img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.home-works .card-image .is-design-work-image{transform:translate(2.2611379623%,.464983657%) scale(1.1400688887)}
.home-works .work-card h3{font-size:18px;line-height:24px;font-weight:500;color:#000;margin:20px 0 0}
.home-works .card-meta{font-size:16px;font-weight:500;line-height:22px;color:#174b9a;margin:12px 0 0}

.home-works .align-right{display:flex;align-items:center;gap:20px;margin-top:38px}
.home-works .align-right:before{content:'';height:1px;background:#b9b9b9;flex:1;min-width:0}
.home-works .text-link{font-size:16px;font-weight:700;line-height:32px;color:#000;gap:16px;flex-shrink:0}
.home-works .arrow{width:60px;min-width:60px;height:32px;font-size:0;background:#174b9a url('../images/arrow-white.svg') center/20px 16px no-repeat}
.home-headline-sp,.hero-mobile-break{display:none}
@media(min-width:701px) and (max-width:1200px){
 .home-works{margin-top:110px;padding-bottom:80px}
 .home-works .display-en{font-size:64px;line-height:80px}
 .home-works h2{font-size:24px;line-height:36px}
 .home-works .card-grid{margin-top:40px;column-gap:24px}
 .home-works .work-card h3{font-size:16px;line-height:26px}
 .home-works .card-meta{font-size:14px}
}
@media(max-width:700px){
 /* The supplied 390px artboard ends its hero artwork at y=843. */
 .home-hero-wrap{background:#fff}
 .home-hero{--hero-circle-size:min(calc(100vw - 50px),440px);--hero-slash-width:min(41.025641vw,190px);position:relative;display:flex;align-items:center;flex-direction:column;gap:0;min-height:0;height:auto;padding:133px 20px 36px;background:url('../images/hero-background-sp.svg') top center/100% 100% no-repeat}
 .hero-circle{position:relative;order:0;left:auto;top:auto;transform:none;z-index:0;flex-shrink:0;width:var(--hero-circle-size);max-width:none;height:var(--hero-circle-size);max-height:none;margin:0}
 .hero-circle img{position:absolute;left:-36.87504937%;top:-7.1876638076%;width:167.1877333697%;height:114.5235936782%;max-width:none;object-fit:cover;transform:none}
 .home-hero-en{position:absolute;top:97.5px;left:max(20px,calc((100% - 450px)/2));width:auto;max-width:none;margin:0;font:600 16px/24px var(--en);color:#000;z-index:2}
 .hero-mobile-break{display:inline}
 .hero-desktop-space{display:none}
 .home-hero h1{position:relative;order:1;bottom:auto;width:calc(100vw - 39px);max-width:450px;flex-shrink:0;margin:35.30542px 0 0;padding:0;line-height:1.4;font-size:clamp(29px,9.2vw,40px);letter-spacing:0;text-align:left;white-space:normal;z-index:1}
 .home-hero h1.has-design-title>.headline-phrase{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .home-headline-sp{display:block;width:100%;height:auto}
 .home-hero-intro{position:relative;order:2;top:auto;right:auto;width:calc(100% - 4px);max-width:446px;margin:28px 0 0;padding:0;font-size:15px;font-weight:500;line-height:31px;color:#000}
 .home-hero .hero-slash{width:var(--hero-slash-width);height:calc(var(--hero-slash-width)/3.5);z-index:1}
 .home-hero .slash-two{top:133px;right:0}
 .home-hero .slash-one{top:calc(133px + var(--hero-circle-size) - var(--hero-slash-width)/3.5 - .285714px);left:0}
 .home-works{margin-top:20px;padding:0 0 64px;background:linear-gradient(to bottom,#fff 0 28px,#f7f7f7 28px 100%)}
 .home-works .display-en{font-size:42px;line-height:52px;letter-spacing:0}
 .home-works h2{font-size:22px;line-height:33px;margin-top:6px}
 .home-works .card-grid{margin-top:32px;row-gap:36px}
 .home-works .work-card h3{font-size:18px;line-height:28px;margin-top:16px}

 .home-works .card-meta{font-size:14px;line-height:22px;margin-top:10px}
 .home-works .align-right{margin-top:32px;gap:16px}
 .home-works .text-link{font-size:14px;gap:12px}
 .home-works .arrow{min-width:48px;width:48px;height:28px}
}
/* Only the content inside the existing circle crossfades. */
.hero-circle .hero-photo-slide{position:absolute;inset:0;opacity:0;transition:opacity 1s ease;pointer-events:none}
.hero-circle .hero-photo-slide.is-current{opacity:1}
.hero-circle .hero-photo-slide img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transform:none}
@media(prefers-reduced-motion:reduce){.hero-circle .hero-photo-slide{transition:none}}
