/* =========================================================
   NEF Latest — royal-blue edition (original build)
   Layout language: royal blue × mercury gray · halftone
   dot-matrix imagery · thin rules · giant grotesque type ·
   mono bracket links · accordion services · numbered cards.
   Values informed by measurement; all code/copy original.
   ========================================================= */

:root{
  --blue:#1925aa;          /* measured */
  --navy:#0d1355;          /* measured */
  --navy-rgb:13,19,85;
  --mercury:#e8e6e0;       /* measured */
  --white:#fff;
  --line:rgba(var(--navy-rgb),.42);
  --halftone-hi:#3948c8;
  --halftone-lo:#0d1355;
  --frame:1.5rem;
  --font-g:"Instrument Sans","Helvetica Neue",Arial;   /* Latin only; JP fallback comes from --font-ja */
  --font-m:"Roboto Mono",ui-monospace,monospace;                 /* ≈ GT America Mono (free sub) */
  --font-ja:"Shippori Mincho",serif;
  --ease:cubic-bezier(.4,0,.2,1);   /* measured default */
}
:root[data-theme="ink"]{
  --blue:#1e1e26;
  --navy:#0b0b0f;
  --navy-rgb:11,11,15;
  --halftone-hi:#34343f;
  --halftone-lo:#070709;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--font-g),var(--font-ja);background:var(--mercury);color:var(--blue);
  line-height:1.75;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.mono{font-family:var(--font-m);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;line-height:1.8}

/* ===== halftone visual (blue duotone + dot screen) ===== */
.halftone{position:relative;overflow:hidden;isolation:isolate;background:
  radial-gradient(120% 120% at 30% 20%,var(--halftone-hi) 0%,var(--blue) 45%,var(--halftone-lo) 100%)}
.halftone img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;
  filter:grayscale(1) contrast(1.14) brightness(1.04);mix-blend-mode:screen}
.halftone::before{content:"";position:absolute;inset:0;z-index:1;
  background:
    radial-gradient(60% 55% at 68% 30%,rgba(232,230,224,.35),transparent 62%),
    radial-gradient(50% 60% at 22% 75%,rgba(232,230,224,.2),transparent 60%);
  mix-blend-mode:soft-light}
.halftone::after{content:"";position:absolute;inset:0;z-index:2;
  background-image:radial-gradient(circle,rgba(var(--navy-rgb),.55) 1.05px,transparent 1.55px);
  background-size:7px 7px;mix-blend-mode:multiply}

/* thin blue rules */
.vrule{position:absolute;width:1px;background:var(--line);top:0;bottom:0;pointer-events:none}

/* ===== compass mark (original) ===== */
.compass{position:relative;display:inline-block;width:56px;height:56px;border-radius:50%;
  border:7px solid var(--mercury)}
.compass::before,.compass::after{content:"";position:absolute;background:var(--mercury)}
.compass::before{left:50%;top:-14px;bottom:-14px;width:2px;transform:translateX(-50%)}
.compass::after{top:50%;left:-14px;right:-14px;height:2px;transform:translateY(-50%)}
.compass--s{width:17px;height:17px;border-width:3px;border-color:var(--blue)}
.compass--s::before{top:-5px;bottom:-5px;width:1.5px;background:var(--blue)}
.compass--s::after{left:-5px;right:-5px;height:1.5px;background:var(--blue)}

/* ===== Loader ===== */
.loader{position:fixed;inset:0;z-index:500;background:var(--blue);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:1.4rem;color:var(--mercury);
  transition:opacity .7s var(--ease),visibility .7s}
.loader.done{opacity:0;visibility:hidden}
.loader .compass{animation:spin 2.6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.loader-cap{color:var(--mercury)}

/* ===== Header ===== */
.hd{position:fixed;top:0;left:0;width:100%;z-index:100;display:flex;align-items:center;
  justify-content:space-between;padding:1rem var(--frame);pointer-events:none}
.hd>*{pointer-events:auto}
.hd-chip{display:inline-flex;align-items:center;gap:.7rem;background:var(--white);color:var(--blue);
  padding:.65rem 1rem;transition:transform .3s var(--ease)}
@media(hover:hover){
.hd-chip:hover{transform:translateY(-2px)}
}
.hd-logo{padding:.6rem 1.4rem .6rem .8rem;background:none}
.hd-nav{display:flex;gap:3.4rem;padding-top:.4rem;color:var(--mercury)}
.hero-over .hd-nav{color:var(--mercury)}
.hd-col{display:flex;flex-direction:column;gap:.15rem}
.hd-col a{opacity:.92;transition:opacity .25s}
@media(hover:hover){
.hd-col a:hover{opacity:.6}
}
.hd-right{display:flex;gap:2px}
.hd-menu{background:none;color:#fff;transition:color .3s var(--ease)}
.hd-pen{font-style:normal}
.hd-theme{background:var(--white);gap:.5rem}
.hd-theme .sw{width:12px;height:12px;border-radius:50%;background:var(--blue);
  box-shadow:inset 0 0 0 1px rgba(var(--navy-rgb),.35);transition:background .3s}

/* ===== Overlay menu ===== */
.menu{position:fixed;inset:0;z-index:95;background:var(--blue);color:var(--mercury);
  display:flex;flex-direction:column;justify-content:center;padding:0 var(--frame);
  opacity:0;visibility:hidden;transition:.5s var(--ease)}
.menu.open{opacity:1;visibility:visible}
.menu nav{display:flex;flex-direction:column}
/* top-level rows: standalone links + grouped rows share one type scale + divider */
.menu nav > a,
.menu-row > a{font-size:clamp(34px,6vh,58px);font-weight:400;letter-spacing:-.01em;line-height:1.35;
  padding:.4rem 0;transition:padding-left .35s var(--ease)}
.menu nav > a{border-top:1px solid rgba(232,230,224,.25)}
@media(hover:hover){
.menu nav > a:hover,.menu-row > a:hover{padding-left:1.2rem}
}
/* grouped row = link + accordion toggle (Business / Interview) */
.menu-row{display:flex;align-items:center;gap:1rem;border-top:1px solid rgba(232,230,224,.25)}
.menu-row > a{flex:1}
.menu-acc{flex:0 0 auto;position:relative;width:2.6rem;height:2.6rem;padding:0;cursor:pointer;
  border:0;background:none;color:var(--mercury)}
.menu-acc::before,.menu-acc::after{content:"";position:absolute;left:50%;top:50%;background:currentColor;
  transform:translate(-50%,-50%);transition:transform .3s var(--ease),opacity .3s var(--ease)}
.menu-acc::before{width:42%;height:1.5px}
.menu-acc::after{width:1.5px;height:42%}
.menu-acc[aria-expanded="true"]::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0}
/* accordion body: sub-pages, collapsed via grid-rows 0fr → 1fr */
.menu-sub{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s var(--ease)}
.menu-sub.open{grid-template-rows:1fr}
.menu-sub-in{overflow:hidden;min-height:0;display:flex;flex-direction:column}
.menu-sub-in a{font-size:clamp(17px,4.6vw,21px);color:rgba(232,230,224,.8);
  padding:.5rem 0 .5rem 1.1rem;transition:padding-left .3s var(--ease)}
@media(hover:hover){
.menu-sub-in a:hover{padding-left:1.5rem;color:var(--mercury)}
}
.menu-cap{margin-top:2.4rem;color:rgba(232,230,224,.7)}

/* ===== Hero ===== */
/* FV fixed as a background; the page content scrolls up over it */
.hero{position:fixed;top:0;left:0;width:100%;height:100svh;display:flex;flex-direction:column;
  justify-content:flex-end;color:var(--white);overflow:hidden;z-index:0}
.scroll-body{position:relative;z-index:1;margin-top:100svh;background:var(--mercury)}
/* auto-zoom + crossfade slideshow (no halftone) */
.hero-slides{position:absolute;inset:0;z-index:0;overflow:hidden;background:var(--navy);will-change:transform}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;
  transform:scale(1.2);opacity:0;transition:opacity 1.8s ease;
  will-change:opacity,transform;backface-visibility:hidden}
/* zoom duration == slide interval, so it settles at 1.2 before the switch (no size jump) */
.hero-slide.is-active{opacity:1;animation:kenburns 5.4s ease-out forwards}
/* mobile: this slide's centre-crop lands on a person's back — shift left to reveal the
   left person's face (portrait crop shows only a narrow vertical strip of the photo) */
@media(max-width:720px){.hero-slide--245{background-position:30% center}}
@keyframes kenburns{from{transform:scale(1.04)}to{transform:scale(1.2)}}
.hero-slides::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(var(--navy-rgb),.28) 0%,rgba(var(--navy-rgb),.04) 34%,rgba(var(--navy-rgb),.72) 100%)}
.vr-1{left:50.5%;background:rgba(255,255,255,.4)}
.vr-2{left:75%;background:rgba(255,255,255,.4);top:0;bottom:52%}
.hero-tag{position:absolute;right:22%;top:53%;z-index:3;font-size:clamp(17px,1.7vw,23px);
  font-weight:400;line-height:1.45;letter-spacing:.01em;text-shadow:0 2px 20px rgba(13,19,85,.55)}
.hero-wordmark{position:relative;z-index:3;font-weight:400;font-size:clamp(46px,9vw,210px);
  line-height:1.0;letter-spacing:-.03em;padding:0 var(--frame) 1.9rem;text-shadow:0 3px 30px rgba(13,19,85,.5)}
/* small JP tagline, bottom-right of the hero (opposite the big wordmark) */
.hero-jp{position:absolute;right:var(--frame);bottom:2.4rem;z-index:3;font-weight:400;
  font-size:clamp(20px,2.25vw,33px);letter-spacing:.08em;line-height:1.5;color:var(--white);
  text-align:right}
/* same rise-in reveal as the wordmark lines (.ln clips, inner <i> slides up) */
.hero-jp .ln{display:block;overflow:hidden;padding:0 .15em .2em;margin:0 -.15em -.16em}
.hero-jp .ln i{display:block;font-style:normal;transform:translateY(125%);
  animation:rise 1s var(--ease) .6s forwards}
/* mobile: tagline sits BELOW the wordmark, left-aligned to match */
@media(max-width:720px){
  .hero-wordmark{padding-bottom:.7rem}
  .hero-jp{position:static;right:auto;bottom:auto;top:auto;text-align:left;
    padding:0 var(--frame) 2rem;font-size:19px;letter-spacing:.06em}
}
/* side padding + negative margin gives the text-shadow room so overflow:hidden
   (needed for the rise clip) doesn't slice the shadow at the left/right edges */
.hero-wordmark .ln{display:block;overflow:hidden;padding:0 2.4rem .22em;margin:0 -2.4rem -.16em}
.hero-wordmark .ln i{display:block;font-style:normal;transform:translateY(125%);
  animation:rise 1s var(--ease) forwards}
@keyframes rise{to{transform:translateY(0)}}

/* ===== Intro ===== */
.intro{padding:9rem 4vw 7rem;max-width:1920px;margin:0 auto;
  display:grid;grid-template-columns:1.25fr 1fr;gap:3rem 6vw;align-items:start}
.intro-left{align-self:start}
.intro-catch{font-weight:400;font-size:clamp(19px,2.6vw,34px);line-height:1.5;letter-spacing:-.01em;margin-bottom:.9rem}
.intro-catch-en{font-family:var(--font-m);font-size:clamp(.72rem,.95vw,.88rem);letter-spacing:.05em;color:var(--blue);opacity:.6}
.intro-copy{font-weight:400;font-size:clamp(17px,2vw,30px);line-height:1.9;letter-spacing:0;
  color:var(--blue);padding-top:.4rem}

/* ===== Feature band ===== */
.feature{background:var(--blue);color:var(--mercury);padding:6rem var(--frame)}
.ft-item{max-width:1920px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:4rem;
  align-items:center;padding:3.4rem 0}
.ft-item .halftone{aspect-ratio:4/3}
.ft-item p{font-size:clamp(17px,1.7vw,23px);font-weight:400;line-height:1.7}
.ft-item--rev .halftone{order:2}

/* ===== Services ===== */
.services{position:relative;padding:8rem 0 6rem}
.sv-heading{position:relative;padding:0 var(--frame);margin-bottom:4rem}
.sv-heading h2{display:flex;justify-content:space-between;font-weight:400;
  font-size:clamp(56px,10vw,150px);line-height:1;letter-spacing:-.03em}
.sv-rule{left:49.5%;top:-2rem;bottom:-2rem}
/* 2-column body: sticky photo on the left, accordion list on the right */
.sv-wrap{display:flex;gap:5vw;padding:0 var(--frame);align-items:flex-start}
.sv-media{flex:0 0 42%;position:sticky;top:14vh}
.sv-list{flex:1;margin:0;padding:0}
.sv-hover{position:relative;width:100%;aspect-ratio:8/5;border-radius:6px;overflow:hidden;
  background:var(--navy);pointer-events:none}
.sv-hover img{width:100%;height:100%;object-fit:cover}
.sv-item{border-top:1px solid var(--blue)}
.sv-item:last-child{border-bottom:1px solid var(--blue)}
.sv-thumb{display:none}   /* per-item thumbnail: mobile only (see ≤640 block) */
.sv-head{width:100%;display:flex;align-items:center;justify-content:space-between;
  padding:1.3rem 0;font-size:clamp(20px,2.2vw,28px);font-weight:400;letter-spacing:-.01em}
.sv-head i{position:relative;width:16px;height:16px}
.sv-head i::before,.sv-head i::after{content:"";position:absolute;background:var(--blue);
  transition:transform .35s var(--ease)}
.sv-head i::before{left:0;right:0;top:50%;height:1.8px;transform:translateY(-50%)}
.sv-head i::after{top:0;bottom:0;left:50%;width:1.8px;transform:translateX(-50%)}
.sv-item.open .sv-head i{transform:rotate(45deg)}
.sv-item i,.sv-item.open .sv-head i{transition:transform .35s var(--ease)}
.sv-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s var(--ease)}
.sv-item.open .sv-body{grid-template-rows:1fr}
.sv-body>*{overflow:hidden}
.sv-body p{max-width:420px;margin-left:auto}
.sv-more{display:block;text-align:right;margin:1rem 0 1.6rem;transition:opacity .25s}
@media(hover:hover){
.sv-more:hover{opacity:.6}
}
.sv-all{text-align:center;margin-top:3rem}

/* ===== Process ===== */
.process{position:relative;padding:8rem var(--frame) 9rem}
.pr-label{margin-bottom:2rem}
.pr-head{font-weight:400;font-size:clamp(56px,9vw,140px);line-height:.98;letter-spacing:-.03em;margin-bottom:2.4rem}
.pr-desc{max-width:380px;margin-bottom:4rem}
.pr-rule{left:33%;top:40%;bottom:0}
.pr-cards{max-width:900px;margin-left:auto;display:grid;gap:1.6rem}
.pr-card{background:var(--white);padding:1.6rem 1.6rem 2.6rem;max-width:440px}
.pr-card:nth-child(odd){margin-right:auto;margin-left:22%}
.pr-card:nth-child(even){margin-left:auto}
.pr-card-head{display:flex;justify-content:space-between;align-items:baseline;
  border-bottom:2px solid var(--blue);padding-bottom:.8rem;margin-bottom:1rem}
.pr-card-head h3{font-weight:400;font-size:clamp(22px,2.4vw,30px);letter-spacing:-.01em}
.pr-card-head span{font-size:clamp(20px,2.2vw,28px)}
.pr-card p{max-width:300px}

/* ===== Projects ===== */
.projects{padding:6rem var(--frame) 8rem;text-align:center}
.pj-head{font-weight:400;font-size:clamp(52px,9vw,140px);line-height:1;letter-spacing:-.03em;margin-bottom:4rem}
.pj-list{max-width:1920px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;text-align:left}
.pj-list .halftone{aspect-ratio:3/4;margin:.6rem 0 1rem}
.pj-cat{border-top:1px solid var(--blue);padding-top:.5rem}
.pj-list h3{font-weight:400;font-size:1.25rem;letter-spacing:-.01em}
.pj-all{margin-top:3.4rem}
.pj-swipe{display:none}   /* shown only on mobile (see mobile carousel block) */
@keyframes pjSwipe{
  0%{transform:translateX(2px);opacity:0}
  22%{opacity:1}
  72%{opacity:1}
  100%{transform:translateX(40px);opacity:0}
}
@media(prefers-reduced-motion:reduce){.pj-swipe-dot{animation:none}}

/* ===== Testimonials ===== */
.testi{background:var(--blue);color:var(--mercury);padding:8rem var(--frame);text-align:center}
.ts-label{margin-bottom:3rem;color:rgba(232,230,224,.75)}
.testi blockquote{max-width:1000px;margin:0 auto 2.4rem;font-weight:400;
  font-size:clamp(20px,2.6vw,34px);line-height:1.65;letter-spacing:-.005em}
.ts-who{color:rgba(232,230,224,.75)}

/* ===== News ===== */
.news{padding:7rem var(--frame) 8rem}
.nw-head{max-width:1920px;margin:0 auto 2.6rem;display:flex;justify-content:space-between;align-items:baseline}
.nw-head h2{font-weight:400;font-size:clamp(34px,4.6vw,64px);letter-spacing:-.02em}
.nw-list{max-width:1920px;margin:0 auto}
.nw-list a{display:flex;align-items:baseline;gap:2rem;border-top:1px solid var(--blue);
  padding:1.2rem .2rem;transition:padding-left .3s var(--ease)}
.nw-list li:last-child a{border-bottom:1px solid var(--blue)}
@media(hover:hover){
.nw-list a:hover{padding-left:1rem}
}
.nw-date{min-width:3.4rem}
.nw-cat{min-width:6rem;opacity:.65}
.nw-list p{font-weight:400;font-size:clamp(15px,1.5vw,19px)}

/* ===== Footer ===== */
/* ===== Footer — wordmark + address left / nav right ===== */
.ft{position:relative;z-index:1;overflow:hidden;background:var(--navy);color:var(--mercury);
  padding:clamp(3.5rem,7vw,6rem) var(--frame) 2rem}
/* faint background light video (PC only, lazy-loaded/played — see JS). screen blend so the
   light streaks glow over the navy and the dark parts vanish. */
.ft-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;
  pointer-events:none;opacity:.28;mix-blend-mode:screen}
.ft-main,.ft-copy{position:relative;z-index:1}
@media(max-width:900px){.ft-bg{display:none}}
@media(prefers-reduced-motion:reduce){.ft-bg{display:none}}
.ft-main{max-width:1920px;margin:0 auto clamp(2.4rem,5vw,3.4rem);
  display:grid;grid-template-columns:1.5fr .5fr;align-items:end;gap:2rem}
.ft-wordmark{font-weight:400;line-height:1;letter-spacing:-.03em;font-size:clamp(34px,8vw,120px)}
.ft-addr{margin-top:1.4rem;opacity:.7;font-size:.72rem;line-height:1.9;letter-spacing:.02em}
/* CONTACT button under the address */
.ft-contact{position:relative;overflow:hidden;z-index:0;display:inline-flex;align-items:center;gap:.6em;margin-top:2rem;
  font-size:.74rem;letter-spacing:.1em;color:var(--mercury);
  border:1px solid rgba(232,230,224,.5);border-radius:999px;padding:.7rem 1.5rem;
  transition:color .3s var(--ease),border-color .3s var(--ease)}
.ft-contact-ic{width:1.15em;height:1.15em;flex:0 0 auto}
/* beige wipe from the left; icon + text invert to navy on hover */
.ft-contact::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--mercury);border-radius:inherit;
  transform:scaleX(0);transform-origin:left;transition:transform .45s var(--ease)}
.ft-contact span{transition:transform .2s var(--ease)}
@media(hover:hover){
.ft-contact:hover{color:var(--navy);border-color:var(--mercury)}
.ft-contact:hover::before{transform:scaleX(1)}
.ft-contact:hover span{transform:translateX(3px)}
}
.ft-nav{display:flex;flex-direction:column;align-items:flex-end;gap:.55rem;font-size:1rem;text-align:right}
.ft-nav a{position:relative;display:inline-block;color:var(--mercury);transition:color .3s var(--ease)}
.ft-nav a::after{content:"";position:absolute;right:0;bottom:-.16em;width:100%;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:right center;transition:transform .4s var(--ease)}
@media(hover:hover){
.ft-nav a:hover{color:#fff}
}
@media(hover:hover){
.ft-nav a:hover::after{transform:scaleX(1)}
}
.ft-copy{opacity:.55;font-size:.72rem;letter-spacing:.02em;max-width:1920px;margin:0 auto;
  border-top:1px solid rgba(232,230,224,.18);padding-top:1.4rem;
  display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap}
.ft-privacy{opacity:.85;transition:opacity .25s var(--ease)}
@media(hover:hover){
.ft-privacy:hover{opacity:1;text-decoration:underline}
}
@media(max-width:720px){
  .ft-main{grid-template-columns:1fr}
  .ft-nav{align-items:flex-start;text-align:left}
}

/* ===== reveal ===== */
[data-r]{opacity:0;transform:translateY(30px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
[data-r].in{opacity:1;transform:none}
/* Mobile: the TOP About catch/body must show from the start (no fade). Their [data-r]
   wrappers are forced visible; the vstate catch/body get no reveal in JS at ≤720. */
@media(max-width:720px){
  .about-lead[data-r],.about-body[data-r]{opacity:1;transform:none;transition:none}
}
/* scroll color-fill for big display headings */
.color-in{color:#c6c7d1;transition:color 1.1s var(--ease)}
:root[data-theme="ink"] .color-in{color:#bdbdc4}
.color-in.in{color:var(--blue)}

/* ===== responsive ===== */
@media(max-width:1024px){
  .sv-media{display:none}
  .sv-wrap{display:block}
  .sv-list{max-width:720px;margin:0 auto}
}
@media(max-width:900px){
  .intro{grid-template-columns:1fr;gap:1.6rem}
  .hero-tag{right:var(--frame);top:44%}
  .hero-wordmark{font-size:15vw}
  .ft-item{grid-template-columns:1fr}
  .ft-item--rev .halftone{order:0}
  .sv-heading h2{flex-direction:column;gap:.2rem}
  .sv-rule{display:none}
  .pr-rule{display:none}
  .pr-card:nth-child(odd){margin-left:0}
  .pj-list{grid-template-columns:1fr}
  .ft-top{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  [data-r]{opacity:1;transform:none}
  .loader{display:none}
}

/* ===== Recruit additions (interview natural cards) ===== */
.pj-list a{display:block}
.iv-photo{position:relative;overflow:hidden;aspect-ratio:3/4;margin:.6rem 0 1rem;background:var(--navy)}
.iv-photo img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease)}
/* portrait thumbnails (TOP carousel + interview list): the subjects sit right-of-centre
   in these landscape source photos, so shift the cover-crop per person to centre them */
.iv-photo img[src*="neflatest_044"],.ivx-thumb img[src*="neflatest_044"]{object-position:57% center}
.iv-photo img[src*="neflatest_256"],.ivx-thumb img[src*="neflatest_256"]{object-position:75% center}
.iv-photo img[src*="neflatest_197"],.ivx-thumb img[src*="neflatest_197"]{object-position:75% center}
@media(hover:hover){
.pj-list a:hover .iv-photo img{transform:scale(1.05)}
}
.iv-role{border-top:1px solid var(--blue);padding-top:.5rem;font-family:var(--font-m);
  font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);opacity:.8}
.pj-list h3 .nm-en{display:block;font-family:var(--font-m);font-size:.7rem;opacity:.6;
  margin-top:.35rem;letter-spacing:.04em;text-transform:none}
.sv-more{cursor:pointer}

/* ===== Header logo (no chip; white over hero, dark over light sections) ===== */
.hd-logo{background:none;padding:.4rem .3rem}
@media(hover:hover){
.hd-logo:hover{transform:none}
}
.hd-logo-img{height:clamp(26px,2.3vw,54px);width:auto;display:block;transition:filter .3s var(--ease)}

/* ===== Desktop nav (PC) / hamburger (mobile) ===== */
.hd-nav-pc{position:relative;display:flex;align-items:center;gap:clamp(1rem,1.7vw,2.4rem);pointer-events:auto}
.hd-nav-pc a{color:#fff;font-family:var(--font-m);font-size:clamp(12px,.92vw,18px);letter-spacing:.06em;
  text-transform:uppercase;transition:opacity .25s,color .3s}
@media(hover:hover){
.hd-nav-pc a:hover{opacity:.6}
}
.hd-nav-pc .nav-entry{position:relative;overflow:hidden;z-index:0;display:inline-flex;align-items:center;gap:.5em;
  background:var(--blue);color:var(--mercury);padding:.5rem 1.1rem;letter-spacing:.08em;border-radius:999px;
  border:1px solid rgba(232,230,224,.35)}   /* thin gray hairline around the Contact chip */
.hd-nav-pc .nav-entry-ic{width:1.05em;height:1.05em;flex:0 0 auto}
/* beige wipe from the left; icon + text invert to navy on hover */
.hd-nav-pc .nav-entry::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--mercury);
  transform:scaleX(0);transform-origin:left;transition:transform .4s var(--ease)}
/* current page: keep the active item un-dimmed */
.hd-nav-pc a.is-here{opacity:1}
/* single dot that slides to the hovered top-level item (JS-driven), returns to the current one */
.hd-nav-dot{position:absolute;top:0;left:0;width:4px;height:4px;margin-left:-2px;border-radius:50%;
  background:#fff;opacity:0;pointer-events:none;will-change:transform;transition:none}
.hd-nav-dot.ready{transition:transform .38s var(--ease),top .38s var(--ease),opacity .3s var(--ease)}
.hd-nav-dot.on{opacity:1}
.hd.on-light .hd-nav-dot{background:var(--navy)}

/* ===== auto light/dark header: default = light text (over dark hero/bands);
   .hd.on-light = dark text (over light content). Toggled by IntersectionObserver. ===== */
.hd.on-light .hd-logo-img{filter:brightness(0)}
.hd.on-light .hd-nav-pc a{color:var(--navy)}
.hd.on-light .hd-menu{color:var(--navy)}
.hd-nav-pc .nav-entry,
.hd.on-light .hd-nav-pc .nav-entry{color:var(--mercury)}   /* Contact chip: solid, unchanged both states */
@media(hover:hover){
.hd-nav-pc .nav-entry:hover,
.hd.on-light .hd-nav-pc .nav-entry:hover{color:var(--navy);opacity:1}
.hd-nav-pc .nav-entry:hover::before{transform:scaleX(1)}
}
@media(min-width:1081px){ .hd-menu{display:none} }
@media(max-width:1080px){ .hd-nav-pc{display:none} }

/* ===== Hero small lead (bottom-right) + parallax ===== */
.hero-lead{position:absolute;right:var(--frame);bottom:clamp(1.8rem,3vh,3rem);z-index:3;max-width:34ch;text-align:right;
  font-weight:400;font-size:clamp(12px,1.2vw,21px);line-height:1.7;letter-spacing:.01em;
  text-shadow:0 2px 20px rgba(13,19,85,.55)}
.hero-slides{will-change:filter}
@media(max-width:900px){.hero-lead{bottom:auto;top:54%;max-width:22ch;font-size:12px}}

.sv-sub{padding:0 var(--frame);margin:-2.4rem 0 3rem;font-weight:400;
  font-size:clamp(17px,1.9vw,24px);letter-spacing:-.01em}
@media(max-width:900px){.sv-sub{margin:-.5rem 0 2rem}}

/* ===== VALUE — cards scroll, heading sticky on the right ===== */
.valsec{max-width:1920px;margin:0 auto;padding:8rem var(--frame) 9rem;
  display:grid;grid-template-columns:.92fr 1.08fr;gap:2rem 6vw;align-items:start}
.val-cards{display:grid;gap:1.4rem}
.val-card{background:var(--white);padding:1.6rem 1.7rem 2.2rem;border-top:2px solid var(--blue)}
.val-card .vc-head{display:flex;justify-content:space-between;align-items:baseline;
  border-bottom:1px solid var(--line);padding-bottom:.75rem;margin-bottom:1rem}
.val-card h3{font-weight:400;font-size:clamp(20px,2.3vw,30px);letter-spacing:-.01em}
.val-card .vc-no{font-family:var(--font-m);font-size:1rem}
.val-head{position:sticky;top:16vh;align-self:start}
.val-head .pr-label{margin-bottom:1.2rem}
.val-head .pr-head{font-weight:400;font-size:clamp(64px,10vw,168px);line-height:.96;
  letter-spacing:-.03em;margin:0 0 .9rem}
.val-more{display:inline-flex}
@media(max-width:900px){
  .valsec{grid-template-columns:1fr;gap:2.4rem}
  .val-head{position:static;order:-1}
}
@media(max-width:640px){
  /* mobile: place the "提供する価値をすべて見る" button below the last card.
     display:contents dissolves .val-head so its children join .valsec's flex order. */
  .valsec{display:flex;flex-direction:column;gap:0}
  .val-head{display:contents}
  .val-head .pr-head{order:0}
  .val-sub{order:1}
  .val-cards{order:2}
  .val-more{order:3;margin-top:1.8rem;align-self:start}
}

/* ===== TOP: intro reveals the blurred fixed FV; other sections opaque ===== */
.scroll-body{background:transparent}
.intro{background:transparent;position:relative}
.valsec,.services,.projects,.news{background:var(--mercury);position:relative}

/* ============================================================
   Sub-page shell (VALUE etc.)
   ============================================================ */
.page-hero{background:var(--navy);color:var(--mercury);
  padding:clamp(9rem,17vh,14rem) var(--frame) clamp(4rem,8vh,7rem);position:relative;overflow:hidden}
.ph-eyebrow{color:rgba(232,230,224,.7);margin-bottom:1.6rem}
.ph-title{font-weight:400;font-size:clamp(38px,7.4vw,120px);line-height:1.02;letter-spacing:-.03em;margin-bottom:1.8rem}
.ph-lead{max-width:62ch;font-weight:400;font-size:clamp(15px,1.5vw,21px);line-height:1.9;color:rgba(232,230,224,.92)}
.ph-rule{left:50%;top:0;bottom:0;background:rgba(232,230,224,.22)}

.vsec{padding:clamp(4.5rem,9vw,9rem) var(--frame);max-width:1920px;margin:0 auto}
.vsec-label{margin-bottom:3rem;color:var(--blue)}
.vitem{display:grid;grid-template-columns:120px 1fr;gap:2.4rem;border-top:1px solid var(--line);
  padding:2.6rem 0;align-items:start}
.vitem:last-child{border-bottom:1px solid var(--line)}
.vi-no{font-family:var(--font-m);font-size:1.05rem;color:var(--blue);padding-top:.4rem}
.vitem h2{font-weight:400;font-size:clamp(23px,2.8vw,38px);letter-spacing:-.01em;margin-bottom:1rem}
.vitem p{max-width:62ch}
.vi-note{font-family:var(--font-m);font-size:.7rem;color:#8a8a90;margin-top:.7rem;text-transform:uppercase;letter-spacing:.05em}
@media(max-width:720px){.vitem{grid-template-columns:1fr;gap:.6rem}.vi-no{padding-top:0}}

.vcat{background:var(--blue);color:var(--mercury);padding:clamp(4.5rem,9vw,9rem) var(--frame)}
.vcat-in{max-width:1920px;margin:0 auto}
.vcat-in>.mono{color:rgba(232,230,224,.7);margin-bottom:2.6rem;display:block}
.vcat-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem}
.vcat-card{border-top:1px solid rgba(232,230,224,.4);padding-top:1.4rem}
.vcat-card h3{font-weight:400;font-size:clamp(19px,2vw,27px);margin-bottom:1rem;letter-spacing:-.01em}
.vcat-card p{color:rgba(232,230,224,.9)}
/* CATEGORY variant: 2 columns — label left / cards right (matches REQUIREMENTS) */
.vcat--split .vcat-in{display:grid;grid-template-columns:.20fr .80fr;gap:clamp(2rem,5vw,5rem);align-items:start}
.vcat--split .vcat-in>.mono{margin-bottom:0;position:sticky;top:110px}
@media(max-width:720px){
  .vcat--split .vcat-in{grid-template-columns:1fr;gap:1.8rem}
  .vcat--split .vcat-in>.mono{position:static}
}
@media(max-width:720px){.vcat-grid{grid-template-columns:1fr;gap:1.8rem}}

.vqa{padding:clamp(4.5rem,9vw,9rem) var(--frame);max-width:1920px;margin:0 auto}
.vqa-label{margin-bottom:2.6rem;color:var(--blue)}
.vqa-item{border-top:1px solid var(--line);padding:2rem 0}
.vqa-item:last-child{border-bottom:1px solid var(--line)}
.vqa-item h3{font-weight:400;font-size:clamp(17px,1.8vw,23px);margin-bottom:.9rem}
.vqa-item h3::before{content:"Q. ";color:var(--blue)}
.vqa-item p{max-width:none}

/* ===== FAQ variant: 2 columns (left label / right accordion) — Recruit & Value ===== */
.vqa--faq .vqa-grid{display:grid;grid-template-columns:.20fr .80fr;gap:clamp(2rem,5vw,5rem);align-items:start}
.vqa--faq .vqa-label{margin-bottom:0;position:sticky;top:110px}
.vqa--faq .vqa-list{display:flex;flex-direction:column}
.vqa--faq .vqa-item{border-top:1px solid var(--line);padding:0}
.vqa--faq .vqa-item:last-child{border-bottom:1px solid var(--line)}
.vqa-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:1.2rem;cursor:pointer;
  background:none;border:0;text-align:left;padding:1.5rem 0;color:var(--blue);font-family:inherit;font-weight:400;
  font-size:clamp(16px,1.6vw,20px);line-height:1.5;transition:opacity .3s var(--ease)}
.vqa-q:hover{opacity:.7}
.vqa-q span::before{content:"Q. ";color:var(--blue);opacity:.55}
.vqa-q i{position:relative;flex:0 0 auto;width:16px;height:16px}
.vqa-q i::before,.vqa-q i::after{content:"";position:absolute;background:var(--blue);transition:transform .35s var(--ease)}
.vqa-q i::before{left:0;right:0;top:50%;height:1.6px;transform:translateY(-50%)}
.vqa-q i::after{top:0;bottom:0;left:50%;width:1.6px;transform:translateX(-50%)}
.vqa-item.open .vqa-q i::after{transform:translateX(-50%) scaleY(0)}   /* + → − */
.vqa-a{overflow:hidden;max-height:0;transition:max-height .45s var(--ease)}
.vqa-item.open .vqa-a{max-height:600px;cursor:pointer}   /* click the open answer to close */
.vqa-a-in p{margin:0;padding:0 0 1.6rem;max-width:none;line-height:1.95;color:var(--blue)}
@media(max-width:720px){
  .vqa--faq .vqa-grid{grid-template-columns:1fr;gap:1.4rem}
  .vqa--faq .vqa-label{position:static}
}

.vlinks{padding:clamp(1rem,3vw,2rem) var(--frame) clamp(5rem,10vw,10rem);max-width:1920px;margin:0 auto;
  display:flex;gap:1.2rem;flex-wrap:wrap}
.vlink{position:relative;overflow:hidden;z-index:0;flex:1;min-width:270px;
  border:1px solid var(--blue);padding:1.7rem 1.9rem;color:var(--blue);
  display:flex;justify-content:space-between;align-items:center;gap:1rem;transition:color .35s var(--ease)}
/* hover: navy fill wipes from the left, text inverts */
.vlink::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--navy);
  transform:scaleX(0);transform-origin:left center;transition:transform .5s var(--ease)}
@media(hover:hover){
.vlink:hover{color:var(--mercury)}
}
@media(hover:hover){
.vlink:hover::before{transform:scaleX(1)}
}
.vlink b{font-weight:400;font-size:clamp(16px,1.9vw,24px);letter-spacing:-.01em}

/* ============================================================
   CTA buttons — 5 switchable patterns (data-btn on <body>)
   ============================================================ */
.cta{display:inline-flex;align-items:center;gap:.6rem;font-family:var(--font-m);
  font-size:clamp(.78rem,.95vw,.95rem);letter-spacing:.08em;text-transform:uppercase;
  cursor:pointer;transition:background .3s var(--ease),color .3s var(--ease),gap .3s var(--ease),border-color .3s}
.cta .cta-a{transition:transform .3s var(--ease)}
@media(hover:hover){
.cta:hover .cta-a{transform:translateX(5px)}
}

/* 1 — solid pill */
body[data-btn="1"] .cta{background:var(--blue);color:var(--mercury);padding:.95rem 1.9rem;border-radius:999px}
@media(hover:hover){
body[data-btn="1"] .cta:hover{background:var(--navy)}
}
/* 2 — outline */
body[data-btn="2"] .cta{border:1.5px solid var(--blue);color:var(--blue);padding:.9rem 1.7rem}
@media(hover:hover){
body[data-btn="2"] .cta:hover{background:var(--blue);color:var(--mercury)}
}
/* 3 — underline + arrow */
body[data-btn="3"] .cta{color:var(--blue);border-bottom:2px solid var(--blue);padding:0 0 .5rem;gap:.9rem;font-size:clamp(.85rem,1.1vw,1.05rem)}
@media(hover:hover){
body[data-btn="3"] .cta:hover{gap:1.4rem}
}
/* 4 — big block bar */
body[data-btn="4"] .cta{width:min(520px,100%);justify-content:space-between;border:1.5px solid var(--blue);
  padding:1.3rem 1.7rem;font-size:clamp(.9rem,1.1vw,1.05rem)}
@media(hover:hover){
body[data-btn="4"] .cta:hover{background:var(--blue);color:var(--mercury)}
}
/* 5 — pill with arrow in a circle.
   Hover: mercury fill wipes from the left, colours invert, arrow coin-flips (Y). No drop shadow. */
body[data-btn="5"] .cta{position:relative;overflow:hidden;z-index:0;background:var(--blue);color:var(--mercury);
  padding:.5rem .5rem .5rem 1.8rem;border-radius:999px;gap:1.1rem;transition:color .35s var(--ease)}
body[data-btn="5"] .cta .cta-t{position:relative;z-index:2;transition:color .35s var(--ease)}
body[data-btn="5"] .cta .cta-a{position:relative;z-index:2;width:2.5em;height:2.5em;border-radius:50%;
  background:var(--mercury);color:var(--blue);display:inline-flex;align-items:center;justify-content:center;
  transition:background .35s var(--ease),color .35s var(--ease),transform .55s var(--ease)}
/* mercury fill: wipes from the left. inset -1px + button overflow:hidden covers the rounded ends fully */
body[data-btn="5"] .cta::before{content:"";position:absolute;z-index:1;inset:-1px;width:auto;height:auto;
  background:#f7f6f5;border-radius:999px;transform:scaleX(0);transform-origin:left center;
  transition:transform .5s var(--ease)}
@media(hover:hover){
body[data-btn="5"] .cta:hover{color:var(--blue)}
}
@media(hover:hover){
body[data-btn="5"] .cta:hover .cta-t{color:var(--blue)}
}
@media(hover:hover){
body[data-btn="5"] .cta:hover::before{transform:scaleX(1)}
}
@media(hover:hover){
body[data-btn="5"] .cta:hover .cta-a{background:var(--blue);color:var(--mercury);transform:rotateY(360deg)}
}

/* dev switcher bar */
.btnswitch{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:800;
  display:flex;gap:6px;align-items:center;background:var(--navy);color:var(--mercury);
  padding:8px 14px;border-radius:999px;font-family:var(--font-m);font-size:11px;
  box-shadow:0 10px 34px rgba(0,0,0,.34)}
.btnswitch .bs-t{opacity:.6;text-transform:uppercase;letter-spacing:.14em;margin-right:2px}
.btnswitch button{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;
  font-family:var(--font-m);font-size:12px;cursor:pointer;transition:background .2s,color .2s}
.btnswitch button.on{background:var(--mercury);color:var(--navy)}
.btnswitch .bs-n{min-width:7em;opacity:.85;padding-left:4px}

/* VALUE sub-line under the English heading */
.val-sub{font-weight:400;font-size:clamp(15px,1.5vw,20px);color:var(--blue);margin:0 0 2.2rem}

/* ===== Hero scrim (darkens the whole FV — incl. its text — on scroll) ===== */
.hero-scrim{position:absolute;inset:0;z-index:4;background:var(--navy);opacity:0;pointer-events:none}
/* intro sits over the blurred+darkened FV → white text */
.intro-catch{color:#fff}
.intro-copy{color:#fff}
.intro-catch-en{color:rgba(255,255,255,.6)}
@media(prefers-reduced-motion:reduce){.hero-scrim{opacity:.62}}

/* ===== TOP: full-fit (full width) below the FV ===== */
.intro{max-width:1920px;margin:0 auto;padding-left:clamp(1.5rem,7vw,9rem);padding-right:clamp(1.5rem,7vw,9rem)}
.valsec{max-width:1920px;margin:0 auto}
.pj-list{max-width:1920px;margin:0 auto}
.nw-head,.nw-list{max-width:1920px;margin:0 auto}
.ft-top{max-width:1920px;margin:0 auto}

/* ===== tweaks: hide EN subline, right-align nav ===== */
.intro-catch-en{display:none}
.hd-logo{margin-right:auto}   /* pushes nav + controls to the right */

/* ===== About: stacked (catch on top, copy directly below) ===== */
.intro{display:block}
.intro-copy{margin-top:1.8rem;max-width:64ch}

/* ============================================================
   About — impact patterns (data-about on <body>)
   ============================================================ */
.intro-kicker{display:none;color:rgba(255,255,255,.62);letter-spacing:.2em;margin-bottom:1.6rem}
.intro-catch{color:#fff}
.intro-copy{color:#fff}

/* 1 — oversized stacked */
body[data-about="1"] .intro{display:block}
body[data-about="1"] .intro-catch{font-size:clamp(30px,6vw,84px);line-height:1.16;font-weight:400;max-width:none}
body[data-about="1"] .intro-copy{margin-top:2.4rem;max-width:60ch;font-size:clamp(15px,1.3vw,19px)}

/* 2 — split: huge catch left / copy right */
body[data-about="2"] .intro{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem 6vw;align-items:end}
body[data-about="2"] .intro-catch{font-size:clamp(28px,5vw,72px);line-height:1.14;font-weight:400}
body[data-about="2"] .intro-copy{margin:0;max-width:46ch;font-size:clamp(15px,1.25vw,18px)}

/* 3 — centered manifesto */
body[data-about="3"] .intro{display:block;text-align:center}
body[data-about="3"] .intro-kicker{display:block}
body[data-about="3"] .intro-catch{font-size:clamp(30px,6.4vw,92px);line-height:1.14;font-weight:400}
body[data-about="3"] .intro-copy{margin:2.6rem auto 0;max-width:62ch;font-size:clamp(15px,1.3vw,19px)}

/* 4 — editorial: kicker + giant + 2-col copy */
body[data-about="4"] .intro{display:block}
body[data-about="4"] .intro-kicker{display:block}
body[data-about="4"] .intro-catch{font-size:clamp(32px,6.6vw,104px);line-height:1.1;font-weight:400;letter-spacing:-.02em}
body[data-about="4"] .intro-copy{margin-top:2.8rem;column-count:2;column-gap:5vw;max-width:none;font-size:clamp(14px,1.1vw,17px)}

@media(max-width:820px){
  body[data-about="2"] .intro{grid-template-columns:1fr}
  body[data-about="4"] .intro-copy{column-count:1}
}

/* ============================================================
   About v2 — lead + body + circular CTA + photo gallery
   (white text over the darkened fixed FV)
   ============================================================ */
/* extra empty scroll below the statement: the finished text stays alone over the
   dark FV for longer before the next (opaque) section arrives */
.intro{padding-bottom:clamp(12rem,30vh,24rem)}
.about-top{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,5vw,6rem);
  align-items:start;padding-bottom:0}
.about-lead .intro-kicker{display:block;color:rgba(255,255,255,.6);letter-spacing:.2em;margin-bottom:1.6rem}
.about-catch{color:#fff;font-weight:400;font-size:clamp(30px,3.5vw,60px);line-height:1.4;letter-spacing:-.01em}
.about-body{padding-top:.5rem}
.about-copy{color:#fff;font-size:clamp(15px,1.35vw,19px);line-height:2;max-width:48ch}
.about-cta{display:inline-flex;align-items:center;gap:1.1rem;margin-top:2.6rem;color:#fff}
.about-cta .ac-circle{width:clamp(52px,4vw,74px);height:clamp(52px,4vw,74px);border-radius:50%;
  border:1px solid rgba(255,255,255,.6);display:inline-flex;align-items:center;justify-content:center;
  font-size:1.15rem;flex-shrink:0;transition:background .35s var(--ease),color .35s,border-color .35s,transform .6s var(--ease)}
.about-cta .ac-label{font-size:clamp(14px,1.1vw,16px);letter-spacing:.02em}
@media(hover:hover){
.about-cta:hover .ac-circle{background:#fff;color:var(--navy);border-color:#fff;transform:rotateY(360deg)}
}
/* full-bleed marquee: images loop left → right */
.about-gallery{overflow:hidden;width:100vw;margin-left:calc(50% - 50vw)}
.about-track{display:flex;width:max-content;animation:aboutmarq 42s linear infinite}
.about-track figure{flex:0 0 clamp(240px,24vw,420px);aspect-ratio:5/4;margin:0 clamp(10px,1vw,18px) 0 0;
  overflow:hidden;border-radius:2px;background:rgba(255,255,255,.06)}
.about-track img{width:100%;height:100%;object-fit:cover}
@keyframes aboutmarq{from{transform:translateX(-50%)}to{transform:translateX(0)}}
@media(max-width:820px){ .about-top{grid-template-columns:1fr;gap:1.8rem} }
@media(prefers-reduced-motion:reduce){ .about-track{animation:none} }

/* ============================================================
   VALUE page v2 — editorial (Ceep-studio-inspired)
   ============================================================ */
.vhero{padding-top:clamp(7rem,13vh,11rem)}
.vhero-inner{position:relative;max-width:1920px;margin:0 auto;padding:0 var(--frame)}
.vhero-en{font-weight:400;font-size:clamp(76px,16vw,300px);line-height:.9;letter-spacing:-.03em;color:var(--blue)}
.vhero-jp{display:inline-flex;align-items:center;gap:.55em;font-weight:400;font-size:clamp(18px,1.6vw,28px);letter-spacing:-.01em;margin-top:1.6rem}
/* leading line-icon before the Japanese subtitle */
.vhero-jp-ic{flex:none;width:1em;height:1em;margin-left:10px;color:currentColor;opacity:.9}
.vhero-jp-ic svg{width:100%;height:100%;display:block;overflow:visible;stroke-width:.85}
.vhero-lead{max-width:44ch;margin-top:1.4rem;font-size:clamp(13px,1.05vw,16px);line-height:1.95;color:var(--blue);opacity:.7}
.vhero-bc{position:absolute;top:.3rem;right:var(--frame);writing-mode:vertical-rl;
  letter-spacing:.14em;color:var(--blue);opacity:.55;font-size:11px;z-index:2}
/* keep breadcrumb above the .vhero-en clip-path stacking context so its links stay clickable */
.vhero-bc a{position:relative;z-index:2}
.vhero-img{width:100%;aspect-ratio:16/7;overflow:hidden;margin-top:clamp(3rem,6vw,6rem);background:var(--navy)}
.vhero-img img{width:100%;height:100%;object-fit:cover}

.vstate{padding:clamp(4.5rem,9vw,9rem) var(--frame);max-width:1920px;margin:0 auto;text-align:center}
.vstate-head{font-weight:400;font-size:clamp(22px,3.1vw,44px);line-height:1.5;letter-spacing:-.01em;margin-bottom:clamp(2.4rem,5vw,4rem)}
.vstate-body{display:grid;grid-template-columns:1fr 1fr;gap:3rem 5vw;text-align:left;max-width:960px;margin:0 auto}
.vstate-body p{font-size:clamp(14px,1.2vw,17px);line-height:2;color:var(--blue)}
@media(max-width:720px){.vstate-body{grid-template-columns:1fr;gap:1.4rem}}

/* full-bleed image band */
.vfull{width:100%;aspect-ratio:21/8;overflow:hidden;background:var(--navy)}
.vfull img{width:100%;height:100%;object-fit:cover}

/* ============================================================
   VALUE page v3 — blue KV band + fixed/blur KV image + statement
   ============================================================ */
/* top band: royal blue, text in the mercury (background) color */
.vhero{background:var(--blue);color:var(--mercury);padding:clamp(7rem,13vh,11rem) 0 clamp(3rem,6vw,5rem)}
/* slim variant for 3rd-level pages (business / interview details): smaller EN, shorter band */
.vhero.vhero--slim{padding-top:clamp(5.5rem,9vh,7.5rem);padding-bottom:clamp(1.8rem,3.5vw,2.8rem)}
.vhero.vhero--slim .vhero-en{font-size:clamp(34px,5.5vw,88px);line-height:1.02;letter-spacing:-.02em}
.vhero-en{color:var(--mercury)}
.vhero-jp{color:var(--mercury)}
.vhero-lead{color:var(--mercury);opacity:.82}
.vhero-bc{color:var(--mercury);opacity:.6}

/* fixed KV image behind the page — revealed only through .vstate */
.vkv-fixed{position:fixed;inset:0;z-index:0;overflow:hidden;background:var(--navy)}
.vkv-fixed img{width:100%;height:100%;object-fit:cover;will-change:filter,transform}
.vkv-scrim{position:absolute;inset:0;background:var(--navy);opacity:0;pointer-events:none}
.vpage{position:relative;z-index:1}

/* statement scrolls over the fixed KV; text sticky-centered, white */
/* The reveal completes after ~0.9 screen of pin scroll (capped in main.js); the rest
   of the pin (~1.5 screens) is an "everything visible" dwell before the section
   scrolls away to the next. */
.vstate{position:relative;min-height:340svh;background:transparent;max-width:none;margin:0;padding:0;text-align:center}
.vstate-inner{position:sticky;top:0;min-height:100svh;display:flex;flex-direction:column;
  justify-content:center;align-items:center;padding:clamp(5rem,10vh,8rem) clamp(1.5rem,7vw,9rem);color:#fff}
.vstate-head{color:#fff;max-width:24ch;margin-bottom:clamp(2rem,4vw,3.2rem)}
.vstate-body{max-width:940px}
.vstate-body p{color:rgba(255,255,255,.92)}

/* scroll-progress line: full-width faint track + a fill that crosses the screen as the
   pinned statement is scrolled through (wired in main.js). Hidden until the pin is live. */
.vstate-progress{position:fixed;left:0;bottom:0;width:100%;height:10px;z-index:6;
  pointer-events:none;opacity:0;transition:opacity .5s var(--ease)}
.vstate-progress.is-live{opacity:1}
.vstate-progress .vsp-track{position:absolute;inset:0;background:rgba(232,230,224,.05)}
.vstate-progress .vsp-fill{position:absolute;inset:0;background:rgba(232,230,224,1);
  transform:scaleX(0);transform-origin:left center;will-change:transform}
/* Mobile keeps the sticky pin (200svh) so the KV grow/darken/blur + copy fade animate
   through scroll (a static section makes prog snap to 1 = the effect "completes" instantly).
   Trim the inner's vertical padding so the statement fits one screen. */
@media(max-width:720px){
  /* trim padding so the centered statement fits inside the 100svh sticky pin */
  .vstate-inner{padding:3rem var(--frame)}
}

/* opaque sections cover the fixed KV */
.vsec,.vqa,.vlinks{background:var(--mercury)}
/* these sections are capped at max-width:1920px, so on wider screens their mercury
   ground would stop short and expose the fixed KV — extend it full-bleed */
.vlinks{position:relative}
.vlinks::before{content:"";position:absolute;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;
  background:var(--mercury);z-index:-1;pointer-events:none}

/* VALUE hero: JP left + lead right, aligned at the same top */
.vhero-row{display:flex;justify-content:space-between;align-items:flex-start;gap:2.5rem;
  margin-top:1.6rem;padding-right:clamp(1.5rem,3vw,3rem)}
.vhero-row .vhero-jp{margin-top:0}
.vhero-row .vhero-lead{margin-top:.25rem;text-align:right;max-width:40ch}
@media(max-width:640px){
  .vhero-row{flex-direction:column;gap:.9rem;padding-right:0}
  .vhero-row .vhero-lead{text-align:left}
}

/* reduced-motion: no scroll fade → keep KV statically dark so the statement stays readable */
@media(prefers-reduced-motion:reduce){ .vkv-scrim{opacity:.62} }

/* ============================================================
   VALUE (TOP): flowing images grow into the section backdrop
   ============================================================ */
.vflow{position:relative;background:var(--navy)}
/* height:100vh is a fallback for engines without svh */
.vflow-bg{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;z-index:0}
/* No will-change here: on iOS a statically-promoted layer (will-change + JS scale())
   inside sticky+overflow:hidden paints BLACK until a scroll repaint. */
.vflow-scale{position:absolute;inset:0;transform-origin:center center}
.vflow-track{display:flex;height:100%;width:max-content;animation:vflowmarq 55s linear infinite}
.vflow-track figure{flex:0 0 clamp(280px,26vw,460px);height:100%;margin:0;overflow:hidden}
.vflow-track img{width:100%;height:100%;object-fit:cover}
@keyframes vflowmarq{from{transform:translateX(-50%)}to{transform:translateX(0)}}
/* Mobile: a transform-based marquee layer flickers/goes black inside iOS sticky+overflow
   (paused & not repainted off-screen). Drive it with `left` instead (main-thread, no
   promoted layer). Fixed 280px figures → track = 8×280 = 2240px, one copy = 1120px. */
@media(max-width:900px){
  .vflow-track figure{flex-basis:280px}
  .vflow-track{position:relative;left:0;animation:vflowLeft 55s linear infinite}
}
@keyframes vflowLeft{from{left:-1120px}to{left:0}}
/* starts fully transparent (full-colour images); JS fades a navy tint in on scroll */
.vflow-scrim{position:absolute;inset:0;z-index:1;background:var(--navy);opacity:0}
/* VALUE content over the backdrop → white heading, keep white cards */
.vflow .valsec{position:relative;z-index:2;background:transparent}
.vflow .pr-head,.vflow .color-in,.vflow .color-in.in{color:#fff}
.vflow .val-sub{color:rgba(255,255,255,.85)}
.vflow .pr-head,.vflow .val-sub{text-shadow:0 2px 24px rgba(13,19,85,.55)}
@media(prefers-reduced-motion:reduce){ .vflow-track{animation:none} }

/* Mobile: the marquee (a CONTINUOUSLY-animating layer) is kept — it repaints every frame
   so iOS doesn't leave it black. The scroll-driven scale (a static-ish promoted layer,
   the real black culprit) stays OFF on mobile via JS, and will-change is removed. */

/* reduced-motion: no scroll tint → keep a static navy tint for legibility */
@media(prefers-reduced-motion:reduce){ .vflow-scrim{opacity:.55} }

/* VALUE cards → frosted glass over the flowing images */
.vflow .val-card{
  background:rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  backdrop-filter:blur(16px) saturate(1.2);
  border-top:2px solid rgba(255,255,255,.55);
  box-shadow:0 10px 34px rgba(13,19,85,.22);
}
.vflow .val-card h3,.vflow .val-card .vc-no{color:#fff}
.vflow .val-card .mono{color:rgba(255,255,255,.82)}
.vflow .val-card .vc-head{border-bottom-color:rgba(255,255,255,.28)}

/* VALUE statement → TOP-style: left headline / right body (left-aligned, not centered) */
.vstate{text-align:left}
.vstate-inner{flex-direction:row;justify-content:center;align-items:center;text-align:left}
.vstate-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,5vw,6rem);
  align-items:start;width:100%;max-width:1920px;margin:0 auto}
.vstate-head{font-weight:400;font-size:clamp(24px,2.8vw,52px);line-height:1.8;letter-spacing:-.01em;
  max-width:none;margin:0;text-align:left}
.vstate-body{display:grid;grid-template-columns:1fr;gap:1.6rem;max-width:none;text-align:left;padding-top:.4rem}
@media(max-width:820px){ .vstate-grid{grid-template-columns:1fr;gap:1.6rem} }

/* VALUE hero: horizontal breadcrumb + lower "Value" */
.vhero-bc{writing-mode:horizontal-tb;top:.2rem}
.vhero-en{margin-top:clamp(2rem,5vw,5rem)}

/* VALUE: wrap light content in a full-width mercury backdrop (no KV bleed on sides) */
.vlight{position:relative;background:var(--mercury)}

/* ===== Hero entrance animation (all .vhero pages, incl. VALUE) ===== */
@keyframes vheroIn{from{opacity:0;transform:translateY(32px)}to{opacity:1;transform:translateY(0)}}
.vhero-en{animation:vheroIn 1s var(--ease) both}
.vhero-bc{animation:vheroIn .8s var(--ease) .08s both}
.vhero-jp{animation:vheroIn .9s var(--ease) .2s both}
.vhero-lead{animation:vheroIn .9s var(--ease) .3s both}
.vhero-inner{will-change:transform}
@media(prefers-reduced-motion:reduce){
  .vhero-en,.vhero-bc,.vhero-jp,.vhero-lead{animation:none}
}

/* insert-cut images (.vfull) get scroll parallax (JS drives transform) */
.vfull img{will-change:transform}

/* breadcrumb links */
.vhero-bc a{transition:opacity .25s}
@media(hover:hover){
.vhero-bc a:hover{text-decoration:underline}
}

/* Business 事業一覧 (PC): single-column list; hovering a row surfaces #idxFloat by the cursor */
.idx-grid{max-width:1920px;margin:0 auto;padding:clamp(3rem,6vw,6rem) var(--frame)}
.idx-list{display:block}
.idx-stage{display:none}                 /* mobile-only (see ≤640 block) */
.idx-row{display:grid;grid-template-columns:90px 1fr auto;gap:clamp(1rem,3vw,2.4rem);align-items:center;
  border-top:1px solid var(--line);padding:clamp(1.6rem,3vw,2.8rem) 0;transition:padding-left .4s var(--ease);color:var(--blue)}
.idx-list a.idx-row:last-child{border-bottom:1px solid var(--line)}
@media(hover:hover){
.idx-row:hover{padding-left:1rem}
}
.idx-no{font-family:var(--font-m);color:var(--blue);font-size:1rem}
.idx-row h2{font-weight:400;font-size:clamp(22px,3vw,40px);letter-spacing:-.01em;line-height:1.2}
.idx-row .idx-role{font-family:var(--font-m);font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);opacity:.7;margin-bottom:.5rem}
.idx-row p{margin-top:.6rem;font-size:14.5px;line-height:1.8;white-space:nowrap}
.idx-arw{width:46px;height:46px;border:1px solid var(--blue);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .3s,color .3s,transform .3s}
@media(hover:hover){
.idx-row:hover .idx-arw{background:var(--blue);color:var(--mercury);transform:translateX(4px)}
}

/* ============================================================
   Page transition (loader removed; seamless fade/slide)
   ============================================================ */
.loader{display:none!important}
/* neutralize the old per-element hero entrance (now handled by page-enter);
   .vhero-en keeps its own clip-reveal (vhx2), defined below */
.vhero-bc,.vhero-jp,.vhero-lead{animation:none!important}

/* enter starts already partly visible → overlaps the outgoing page, less empty-bg flash */
@keyframes ptUp{from{opacity:.2;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes ptFade{from{opacity:.25}to{opacity:1}}

/* ENTER — sub-pages (no fixed FV): slide whole main up.
   fill-mode:backwards (NOT both) so the transform does NOT linger after the animation —
   a lingering transform turns the element into a containing block and makes descendant
   position:sticky elements render black on iOS Safari. */
body:not(.has-fixed) main{animation:ptUp .45s var(--ease) backwards}
/* ENTER — pages with a fixed FV/KV: fade main (transform-safe), slide inner content */
body.has-fixed main{animation:ptFade .4s var(--ease) both}
body.has-fixed .scroll-body{animation:ptUp .5s var(--ease) backwards}
/* .vpage intentionally has NO own opacity/transform entrance. It fades in as one group
   with the fixed KV image via main's ptFade. A separate .vpage fade would make the navy
   band briefly semi-transparent, letting the fixed KV behind it peek through on load. */

/* EXIT — quick, partial fade (keeps content visible until the next page paints) */
body.is-leaving main{opacity:.12!important;transition:opacity .2s var(--ease);animation:none}

@media(prefers-reduced-motion:reduce){
  main,.scroll-body,.vpage{animation:none!important}
  body.is-leaving main{transition:none}
}

/* Recruit job thumbnails */
.rec-job-thumb{aspect-ratio:16/10;overflow:hidden;border-radius:2px;margin-bottom:1.4rem;background:var(--navy)}
.rec-job-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}

/* Interview list — bordered 3-column cards with thumbnails */
.ivx-grid{max-width:1920px;margin:0 auto;padding:clamp(3rem,6vw,6rem) var(--frame);
  display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,1.6vw,1.6rem)}
.ivx-card{display:flex;flex-direction:column;border:1px solid var(--line);color:var(--blue);
  transition:background .3s var(--ease),border-color .3s}
@media(hover:hover){
.ivx-card:hover{border-color:var(--blue);background:rgba(25,37,170,.03)}
}
.ivx-thumb{aspect-ratio:4/5;overflow:hidden;border-bottom:1px solid var(--line)}
.ivx-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .9s var(--ease)}
@media(hover:hover){
.ivx-card:hover .ivx-thumb img{transform:scale(1.05)}
}
.ivx-body{display:flex;flex-direction:column;gap:.7rem;padding:1.6rem 1.6rem 1.3rem;flex:1}
.ivx-role{font-size:.68rem;letter-spacing:.06em;color:var(--blue);opacity:.7}
.ivx-card h3{font-weight:400;font-size:clamp(17px,1.45vw,22px);line-height:1.5;letter-spacing:-.01em}
.ivx-name{font-size:13px;color:var(--blue);opacity:.85}
.ivx-arw{margin-top:auto;padding-top:1.1rem;border-top:1px solid var(--line);
  font-size:.75rem;letter-spacing:.08em;color:var(--blue);text-align:right;transition:letter-spacing .3s}
@media(hover:hover){
.ivx-card:hover .ivx-arw{letter-spacing:.2em}
}
@media(max-width:900px){.ivx-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.ivx-grid{grid-template-columns:1fr}.ivx-thumb{aspect-ratio:4/3}}

/* Business list row: image preview follows the cursor (PC, JS-driven, see #idxFloat) */
.idx-row{position:relative}
.idx-img{display:none}                 /* holds the image URL; visible preview is #idxFloat (PC) / .idx-stage (mobile) */
#idxFloat{position:fixed;top:0;left:0;z-index:-1;width:min(46vw,560px);aspect-ratio:16/10;
  overflow:hidden;border-radius:4px;background:var(--navy);pointer-events:none;opacity:0;
  will-change:transform,opacity}
#idxFloat img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:900px){#idxFloat{display:none}}

/* VALUE anchors: offset for the fixed header */
.vitem{scroll-margin-top:100px}

/* TOP VALUE cards are now links */
a.val-card{cursor:pointer}
.vflow a.val-card{transition:background .3s var(--ease),transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s}
@media(hover:hover){
.vflow a.val-card:hover{background:rgba(255,255,255,.16);border-top-color:#fff;transform:translateY(-4px);box-shadow:0 16px 40px rgba(13,19,85,.3)}
}

/* Business accordion rows: whole row clickable + hover colour inversion */
.sv-item{cursor:pointer;transition:background .35s var(--ease)}
@media(hover:hover){
.sv-item:hover{background:var(--blue)}
}
@media(hover:hover){
.sv-item:hover .sv-head{color:var(--mercury)}
}
@media(hover:hover){
.sv-item:hover .sv-head i::before,.sv-item:hover .sv-head i::after{background:var(--mercury)}
}
@media(hover:hover){
.sv-item:hover .sv-body p,.sv-item:hover .sv-more{color:var(--mercury)}
}
.sv-head{padding-left:1.1rem;padding-right:1.1rem}
.sv-body{padding-left:1.1rem;padding-right:1.1rem}

/* 案件例 thumbnails (interim photos; data-ai id = AI-swap slot) */
.vcat-card{overflow:hidden}
.vcat-thumb{aspect-ratio:16/10;overflow:hidden;border-radius:2px;margin-bottom:1.2rem;background:var(--navy)}
.vcat-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}

/* ===== VALUE: 8 values (left) + sticky image that swaps on scroll (right) ===== */
.vsplit{max-width:1920px;margin:0 auto;padding:clamp(4.5rem,9vw,9rem) var(--frame);
  display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,5rem)}
.vsplit .vsec-label{margin-bottom:3rem;color:var(--blue);display:block}
.vsplit .vitem{grid-template-columns:64px 1fr;gap:1.4rem}
.vsplit-right{position:relative}
.vsplit-sticky{position:sticky;top:96px;height:min(80vh,660px);overflow:hidden;
  background:var(--navy);border-radius:3px}
.vsplit-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .7s var(--ease);
  transform:scale(var(--vz,1));transform-origin:center;will-change:transform}
.vsplit-img.is-on{opacity:1}
@media(prefers-reduced-motion:reduce){.vsplit-img{transform:none}}
@media(max-width:860px){
  .vsplit{grid-template-columns:1fr;padding-top:clamp(3.5rem,7vw,6rem)}
  .vsplit-right{display:none}
  .vsplit .vitem{grid-template-columns:1fr;gap:.6rem}
  .vsplit .vi-no{padding-top:0}
}

@media(max-width:900px){.idx-row p{white-space:normal}}

/* ===== Page-hero heading (.vhero-en) entrance — reveal from bottom (clip trim) ===== */
@keyframes vhx2{from{clip-path:inset(100% 0 0 0);transform:translateY(26px)}to{clip-path:inset(0 0 0 0);transform:none}}
.vhero-en{animation:vhx2 1.05s var(--ease) both}
@media(prefers-reduced-motion:reduce){
  .vhero-en{animation:none}
}

/* ===== Interview cards (list) — hover: photo B&W+blur sweep (R→L) + body navy wipe + text invert ===== */
/* grayscale+blur layer hidden by default (photo in colour); on hover it sweeps across once */
@keyframes ivGray{0%{clip-path:inset(0 0 0 100%)}45%,55%{clip-path:inset(0 0 0 0)}100%{clip-path:inset(0 100% 0 0)}}

.ivx-card{position:relative;overflow:hidden}
.ivx-thumb{position:relative}
.ivx-body{position:relative;z-index:2;transition:color .45s var(--ease)}
.ivx-thumb::after{content:"";position:absolute;inset:0;pointer-events:none;
  -webkit-backdrop-filter:grayscale(1) blur(4px);backdrop-filter:grayscale(1) blur(4px);clip-path:inset(0 0 0 100%)}
@media(hover:hover){
.ivx-card:hover .ivx-thumb::after{animation:ivGray .95s var(--ease)}
}
.ivx-body::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--navy);
  transform:scaleX(0);transform-origin:left center;transition:transform .5s var(--ease)}
@media(hover:hover){
.ivx-card:hover .ivx-body::before{transform:scaleX(1)}
}
@media(hover:hover){
.ivx-card:hover .ivx-body,
.ivx-card:hover .ivx-body *{color:var(--mercury)}
}
@media(hover:hover){
.ivx-card:hover .ivx-arw{border-top-color:rgba(232,230,224,.4)}
}

/* TOP page Interview — photo only: same B&W+blur sweep */
.projects .pj-list .iv-photo{position:relative;overflow:hidden}
.projects .pj-list .iv-photo::after{content:"";position:absolute;inset:0;pointer-events:none;
  -webkit-backdrop-filter:grayscale(1) blur(4px);backdrop-filter:grayscale(1) blur(4px);clip-path:inset(0 0 0 100%)}
@media(hover:hover){
.projects .pj-list a:hover .iv-photo::after{animation:ivGray .95s var(--ease)}
}

/* ===== TOP FV geometric line motif — equalizer (generated vertical lines) ===== */
.hero .vrule{display:none}   /* replaced by the generated motif */
.fvgeo{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.fvg-v{position:absolute;top:0;bottom:0;width:1px;background:#fff;opacity:.22;transform-origin:bottom;
  animation:fvEq 2.6s ease-in-out infinite;animation-delay:calc(var(--i) * -0.14s)}
@keyframes fvEq{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.fvg-v{animation:none;transform:scaleY(1);opacity:.14}}

/* ===== Footer reveal — wordmark chars rise + subtle scroll parallax (layer feel) ===== */
/* .ft-main lags the black footer background as it scrolls in → layered depth */
.ft.anim .ft-main{transform:translateY(var(--ftp,0))}
.ft.anim .ft-wordmark .fc{display:inline-block;opacity:0;transform:translateY(.55em) rotate(4deg);
  transition:opacity .5s var(--ease),transform .5s var(--ease);transition-delay:calc(var(--i,0) * 0.028s)}
.ft.anim.in .ft-wordmark .fc{opacity:1;transform:none}
.ft.anim .ft-addr,.ft.anim .ft-contact,.ft.anim .ft-nav a,.ft.anim .ft-copy{
  opacity:0;transform:translateY(18px);transition:opacity .6s var(--ease),transform .6s var(--ease),color .2s var(--ease),background .2s var(--ease),border-color .2s var(--ease)}
.ft.anim.in .ft-addr,.ft.anim.in .ft-contact,.ft.anim.in .ft-nav a,.ft.anim.in .ft-copy{
  opacity:1;transform:none;transition-delay:calc(.35s + var(--i,0) * 0.045s)}
@media(prefers-reduced-motion:reduce){
  .ft.anim .ft-main{transform:none}
  .ft.anim *{transition:none!important;opacity:1!important;transform:none!important}
}

/* ===== Header dropdown submenus (Business / Interview) — frosted glass, numbered ===== */
.hd-nav-item{position:relative;display:inline-flex;align-items:center}
.hd-sub{position:absolute;top:calc(100% + 15px);left:0;transform:translateY(6px);
  width:max-content;min-width:0;padding:.5rem;
  background:rgba(var(--navy-rgb),.8);-webkit-backdrop-filter:blur(16px) saturate(1.25);backdrop-filter:blur(16px) saturate(1.25);
  border:1px solid rgba(232,230,224,.2);border-radius:12px;box-shadow:0 20px 50px rgba(0,0,0,.3);
  display:flex;flex-direction:column;gap:.05rem;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .25s var(--ease),transform .25s var(--ease);z-index:20}
/* transparent bridge so moving from the nav item into the gap keeps the menu open */
.hd-sub::before{content:"";position:absolute;left:0;right:0;top:-15px;height:15px}
/* PC dropdowns temporarily disabled — uncomment this rule to revive the
   Business / Interview hover submenus (the .hd-sub markup is left in place). */
/*
.hd-nav-item:hover .hd-sub,.hd-nav-item:focus-within .hd-sub{
  opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
*/
.hd-sub a{display:block;padding:.55rem .9rem;border-radius:7px;
  font-family:var(--font-ja);font-size:.84rem;letter-spacing:.02em;color:var(--mercury);
  white-space:nowrap;text-transform:none;transition:background .2s var(--ease)}
@media(hover:hover){
.hd-sub a:hover{background:rgba(232,230,224,.14)}
}
.hd.on-light .hd-nav-pc .hd-sub a{color:var(--mercury)}
@media(max-width:1080px){.hd-sub{display:none}}   /* mobile uses the overlay menu */

/* ===== Voice switcher — static under the heading + a fixed pill that appears on scroll ===== */
.iv-voicenav{font-family:var(--font-ja);letter-spacing:.02em;color:var(--mercury)}
.iv-voicenav a{opacity:.55;transition:opacity .25s var(--ease)}
@media(hover:hover){
.iv-voicenav a:hover{opacity:1}
}
.iv-voicenav .sep{opacity:.3}
.iv-voicenav .cur{opacity:1;position:relative}
.iv-voicenav .cur::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:1px;background:currentColor;opacity:.7}

/* static one, in the hero under the heading */
.iv-voicenav--static{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem .9rem;
  margin-top:clamp(1rem,2vw,1.6rem);font-size:clamp(.74rem,1vw,.88rem)}

/* fixed floating pill — hidden until the static one scrolls out of view */
.iv-voicenav--fixed{position:fixed;left:50%;bottom:clamp(18px,3vw,30px);transform:translate(-50%,14px);z-index:80;
  display:inline-flex;align-items:center;gap:.9rem;max-width:calc(100vw - 32px);padding:.6rem 1.35rem;border-radius:999px;
  background:rgba(var(--navy-rgb),.72);-webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);
  border:1px solid rgba(232,230,224,.2);box-shadow:0 12px 34px rgba(0,0,0,.28);
  font-size:clamp(.68rem,.95vw,.8rem);white-space:nowrap;overflow-x:auto;
  opacity:0;visibility:hidden;pointer-events:none;
  /* visibility is delayed on hide so the opacity+slide fade-out actually plays (not snapped) */
  transition:opacity .45s var(--ease),transform .45s var(--ease),visibility 0s .45s}
.iv-voicenav--fixed.is-shown{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0);
  transition:opacity .45s var(--ease),transform .45s var(--ease),visibility 0s 0s}
@media(prefers-reduced-motion:reduce){.iv-voicenav--fixed{transition:none}}

/* ===== Mobile fixes: overlay menu fit + Latest News wrapping ===== */
@media(max-width:640px){
  /* overlay menu: start below the header, smaller items, taller rows, scroll if needed */
  .menu{justify-content:flex-start;padding-top:5rem;padding-bottom:2.4rem;overflow-y:auto}
  .menu nav > a,.menu-row > a{font-size:clamp(24px,6.4vw,34px);padding:.72rem 0;line-height:1.34}
  @media(hover:hover){
  .menu nav > a:hover,.menu-row > a:hover{padding-left:.7rem}
  }
  .menu-acc{width:2.9rem;height:2.9rem}
  .menu-sub-in a{padding:.62rem 0 .62rem 1.1rem}
  .menu-cap{margin-top:1.4rem;font-size:.66rem}
  /* Latest News: date + category on one line, body text full-width below */
  .nw-list a{flex-wrap:wrap;gap:.35rem 1.1rem;padding:1rem .1rem}
  .nw-date{min-width:0}
  .nw-cat{min-width:0}
  .nw-list p{flex:1 1 100%;margin-top:.15rem}
  .news{padding-left:var(--frame);padding-right:var(--frame)}
}

/* ===== Mobile header: hamburger inside a frosted square (no full-width bar; nav hidden ≤1080px) ===== */
@media(max-width:1080px){
  /* 3-line hamburger inside a rounded frosted square chip; middle line = bg gradient.
     No border: a 1px border shifts the gradient's box vs the pseudo lines and unbalances the gaps. */
  #menuBtn{width:44px;height:44px;padding:0;border:0;border-radius:10px;position:relative;font-size:0;color:#fff;
    background:linear-gradient(currentColor,currentColor) center/16px 2px no-repeat, rgba(8,8,10,.62);
    -webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2)}
  @media(hover:hover){
  #menuBtn:hover{transform:none}
  }
  /* top & bottom lines match the centered gradient line: centers at 16 / 22 / 28 (even 6px gaps) */
  #menuBtn::before,#menuBtn::after{content:"";position:absolute;left:14px;width:16px;height:2px;
    background:currentColor;transition:transform .3s var(--ease),top .3s var(--ease)}
  #menuBtn::before{top:15px}
  #menuBtn::after{top:27px}
  #menuBtn[aria-expanded="true"]{background:rgba(8,8,10,.6)}
  #menuBtn[aria-expanded="true"]::before{top:21px;transform:rotate(45deg)}
  #menuBtn[aria-expanded="true"]::after{top:21px;transform:rotate(-45deg)}
}

/* ===== More mobile adjustments (breadcrumb / business list / footer nav) ===== */
@media(max-width:640px){
  /* hide breadcrumb on mobile */
  .vhero-bc{display:none}
  /* business list: each row = number + title + "詳しく" arrow (left) with a larger thumbnail (right) */
  .idx-grid{padding-top:2.4rem;padding-bottom:2.4rem}
  .idx-list{display:flex;flex-direction:column}
  .idx-stage{display:none}
  .idx-row{display:grid;grid-template-columns:1fr 150px;
    grid-template-areas:"no img" "ttl img" "arw img";column-gap:1.1rem;row-gap:.3rem;
    align-items:center;padding:1.25rem 0}
  .idx-list a.idx-row:last-child{border-bottom:1px solid var(--line)}
  .idx-row:active{opacity:.6}                       /* tap feedback (no hover on touch) */
  .idx-img{display:block;grid-area:img;width:150px;aspect-ratio:4/3;overflow:hidden;
    border-radius:2px;background:var(--navy)}
  .idx-img img{width:100%;height:100%;object-fit:cover;display:block}
  .idx-no{grid-area:no;align-self:end;font-size:.72rem}
  .idx-row > div{grid-area:ttl;align-self:start}
  /* clickable affordance: a compact → chip with a small "詳しく" label */
  .idx-arw{display:flex;grid-area:arw;align-self:start;width:32px;height:32px;
    margin-top:.5rem;font-size:.85rem}
  .idx-row .idx-role,.idx-row p{display:none}
  .idx-row h2{font-size:clamp(16px,4.6vw,20px);line-height:1.3}
}
@media(max-width:720px){
  /* footer menu laid out horizontally */
  .ft-nav{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:.9rem 1.4rem;text-align:left}
}

/* ===== Mobile: TOP Interview carousel + TOP Business no detail text ===== */
@media(max-width:640px){
  /* TOP Interview: horizontal swipe carousel */
  .pj-list{display:flex;grid-template-columns:none;gap:.9rem;overflow-x:auto;scroll-snap-type:x mandatory;
    scroll-padding-left:var(--frame);-webkit-overflow-scrolling:touch;scrollbar-width:none;text-align:left;
    padding:0 var(--frame) 1.2rem;margin:0 calc(-1 * var(--frame))}
  .pj-list::-webkit-scrollbar{display:none}
  .pj-list li{flex:0 0 100%;scroll-snap-align:start}
  .pj-list .iv-photo{aspect-ratio:4/5;margin:0 0 .9rem}
  .pj-list h3{font-size:1.06rem;line-height:1.5}
  .pj-list h3 .nm-en{margin-top:.5rem}
  /* horizontal-scroll hint (mobile only) — overlaid as a pill on the bottom-right of the thumbnail */
  .pj-carousel{position:relative}
  .pj-swipe{position:absolute;z-index:2;right:calc(var(--frame) + .7rem);
    /* top = photo bottom (photo width == .pj-carousel width, aspect-ratio 4/5 → height = width * 1.25) minus a small inset */
    top:calc((100vw - 2 * var(--frame)) * 1.25 - 2.5rem);
    display:flex;align-items:center;justify-content:flex-end;gap:.55rem;
    color:#fff;background:rgba(11,11,15,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
    border-radius:999px;padding:.4rem .85rem .4rem .95rem;opacity:1}
  .pj-swipe-tx{font-size:.6rem;letter-spacing:.18em}
  .pj-swipe-svg{overflow:visible}
  .pj-swipe-line{stroke:currentColor;stroke-width:1.3;opacity:.6}
  .pj-swipe-head{stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
  .pj-swipe-dot{fill:currentColor;animation:pjSwipe 1.9s var(--ease) infinite}
  /* TOP Business: titles only (no accordion) + a thumbnail on the left of each item */
  .services .sv-body{grid-template-rows:1fr}
  .services .sv-body p{display:none}
  .services .sv-head i{display:none}
  .services .sv-more{margin:.5rem 10px 1.2rem 0}
  .services .sv-wrap{padding-left:0;padding-right:0}   /* mobile only: business rows go full-bleed edge-to-edge */
  /* mobile only: "Our / Business" heading — no wrap, grow to nearly fill the screen width */
  .sv-heading h2{font-size:21vw;line-height:.92;white-space:nowrap}
  .services{overflow-x:clip}   /* backstop so the oversized heading can never cause page scroll */
  /* mobile only: Interview heading grows to match "Our Business" */
  .pj-head{font-size:21vw;line-height:.92;white-space:nowrap;margin-bottom:2rem}
  /* mobile only: tighten the vertical rhythm between TOP sections (was too airy) */
  .intro{padding-top:5rem;padding-bottom:3.5rem}
  .valsec{padding-top:4rem;padding-bottom:4rem}
  .services{padding-top:4rem;padding-bottom:3.5rem}
  .projects{padding-top:3.5rem;padding-bottom:4rem}
  .news{padding-top:4rem;padding-bottom:4rem}
  .sv-item{display:grid;grid-template-columns:92px 1fr;grid-template-areas:"img head" "img body";
    column-gap:1.1rem;align-items:stretch}
  .sv-thumb{display:block;grid-area:img;width:92px;height:100%;min-height:84px;
    object-fit:cover;border-radius:2px;background:var(--navy);align-self:stretch}
  .sv-head{grid-area:head;padding-left:0;padding-right:0}
  .sv-body{grid-area:body;padding-left:0;padding-right:0}
}

/* mobile: hide the fixed bottom sub-menu pill (business & interview detail) */
@media(max-width:640px){.iv-voicenav--fixed{display:none}}

/* ===== Mobile: TOP about-catch → 4 lines (shrink so each <br> segment fits) ===== */
@media(max-width:640px){
  .about-catch{font-size:clamp(20px,5.6vw,26px);line-height:1.55}
}

/* ===== Overlay menu: caption on desktop / company info on mobile ===== */
.menu-info{display:none}
@media(max-width:640px){
  .menu-cap{display:none}
  .menu-info{display:block;margin-top:2rem;color:rgba(232,230,224,.68);
    font-size:.72rem;line-height:1.95;letter-spacing:.04em}
  .menu-info-name{font-family:var(--font-g);font-size:1.6rem;color:var(--mercury);
    margin-bottom:.7rem;letter-spacing:-.01em;text-transform:none}
}

/* ===== Page transition overlay — 5 switchable patterns (temporary switcher in JS) ===== */
#ptov{position:fixed;inset:0;z-index:9990;pointer-events:none;visibility:hidden}
#ptov.is-on{visibility:visible;pointer-events:auto}
#ptov .pt-a,#ptov .pt-b{position:absolute;left:0;right:0;top:0;bottom:0;background:#1e1e26;
  will-change:transform,opacity,clip-path}
#ptov .pt-b{display:none}
/* arrival: cover the page on first paint (before JS plays the reveal) — no flash */
html.pt-in #ptov{visibility:visible}
html.pt-in #loader{display:none}                     /* transition arrival: skip the compass loader */
/* split pattern uses two halves */
#ptov[data-pt="4"] .pt-a{bottom:50%}
#ptov[data-pt="4"] .pt-b{display:block;top:50%}
/* per-pattern cover / reveal */
#ptov[data-pt="1"].pt-cover .pt-a{animation:ptCover1 .5s var(--ease) forwards}
#ptov[data-pt="1"].pt-reveal .pt-a{animation:ptReveal1 .55s var(--ease) forwards}
#ptov[data-pt="2"].pt-cover .pt-a{animation:ptCover2 .5s var(--ease) forwards}
#ptov[data-pt="2"].pt-reveal .pt-a{animation:ptReveal2 .55s var(--ease) forwards}
#ptov[data-pt="3"].pt-cover .pt-a{animation:ptFadeIn .4s var(--ease) forwards}
#ptov[data-pt="3"].pt-reveal .pt-a{animation:ptFadeOut .45s var(--ease) forwards}
#ptov[data-pt="4"].pt-cover .pt-a{animation:ptCover4a .5s var(--ease) forwards}
#ptov[data-pt="4"].pt-cover .pt-b{animation:ptCover4b .5s var(--ease) forwards}
#ptov[data-pt="4"].pt-reveal .pt-a{animation:ptReveal4a .55s var(--ease) forwards}
#ptov[data-pt="4"].pt-reveal .pt-b{animation:ptReveal4b .55s var(--ease) forwards}
#ptov[data-pt="5"].pt-cover .pt-a{animation:ptCover5 .55s var(--ease) forwards}
#ptov[data-pt="5"].pt-reveal .pt-a{animation:ptReveal5 .6s var(--ease) forwards}
@keyframes ptCover1{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes ptReveal1{from{transform:translateY(0)}to{transform:translateY(100%)}}
@keyframes ptCover2{from{transform:translateY(-100%)}to{transform:translateY(0)}}
@keyframes ptReveal2{from{transform:translateY(0)}to{transform:translateY(-100%)}}
@keyframes ptFadeIn{from{opacity:0}to{opacity:1}}
@keyframes ptFadeOut{from{opacity:1}to{opacity:0}}
@keyframes ptCover4a{from{transform:translateY(-100%)}to{transform:translateY(0)}}
@keyframes ptCover4b{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes ptReveal4a{from{transform:translateY(0)}to{transform:translateY(-100%)}}
@keyframes ptReveal4b{from{transform:translateY(0)}to{transform:translateY(100%)}}
@keyframes ptCover5{from{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(150% at 50% 50%)}}
@keyframes ptReveal5{from{clip-path:circle(150% at 50% 50%)}to{clip-path:circle(0% at 50% 50%)}}
@media(prefers-reduced-motion:reduce){#ptov{display:none}html.pt-in #loader{display:flex}}

/* ===== iPad extension: apply safe mobile refinements up to 1080px (matches hamburger threshold) ===== */
/* Layout-changing mobile rules (1-col grids for cards, TOP business list, interview carousel, Latest News) are intentionally NOT extended — iPad keeps the wider layout. */
@media(max-width:1080px){
  .about-lead[data-r],.about-body[data-r]{opacity:1;transform:none;transition:none}
  .vstate-body{grid-template-columns:1fr;gap:1.4rem}
  .vstate-inner{padding:3rem var(--frame)}
  .vhero-row{flex-direction:column;gap:.9rem;padding-right:0}
  .vhero-row .vhero-lead{text-align:left}
  .about-catch{font-size:clamp(20px,5.6vw,26px);line-height:1.55}
  .vhero-bc{display:none}
  /* overlay menu polish (menu is already the hamburger overlay at this width) */
  .menu{justify-content:flex-start;padding-top:5rem;padding-bottom:2.4rem;overflow-y:auto}
  .menu nav > a,.menu-row > a{font-size:clamp(24px,6.4vw,34px);padding:.72rem 0;line-height:1.34}
  @media(hover:hover){
  .menu nav > a:hover,.menu-row > a:hover{padding-left:.7rem}
  }
  .menu-acc{width:2.9rem;height:2.9rem}
  .menu-sub-in a{padding:.62rem 0 .62rem 1.1rem}
  .menu-cap{display:none}
  .menu-info{display:block;margin-top:2rem;color:rgba(232,230,224,.68);
    font-size:.72rem;line-height:1.95;letter-spacing:.04em}
  .menu-info-name{font-family:var(--font-g);font-size:1.6rem;color:var(--mercury);
    margin-bottom:.7rem;letter-spacing:-.01em;text-transform:none}
}
