:root{--bg:#f4efe5;--paper:#faf7f0;--ink:#11110f;--muted:#6f6a61;--gold:#b58b35;--line:#d8cdb9;--dark:#11110f}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Yu Gothic",Meiryo,sans-serif}.wrap{width:min(1480px,calc(100% - 72px));margin:auto}.serif{font-family:"Yu Mincho","Hiragino Mincho ProN",serif}.section{padding:108px 0}.eyebrow{font-size:13px;font-weight:800;letter-spacing:.16em;color:var(--gold);margin:0 0 25px}.head{display:grid;grid-template-columns:230px 1fr;gap:38px;margin-bottom:58px}.title{font-size:clamp(42px,4.7vw,74px);line-height:1.35;font-weight:500;margin:0}.lead{font-size:18px;line-height:2;color:var(--muted);font-weight:600;max-width:940px}nav{height:80px;position:sticky;top:0;z-index:50;background:#f7f3eaf5;border-bottom:1px solid #0001}.nav{height:100%;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:900;letter-spacing:.14em;font-size:21px}.brand span{font-size:16px;color:#68635c;margin-left:15px}.links{display:flex;align-items:center;gap:24px;font-size:13px;font-weight:900;letter-spacing:.07em}.links a{text-decoration:none;color:inherit}.cta{border:1px solid;padding:17px 22px}.hero{background:var(--paper);overflow:hidden}.heroGrid{display:grid;grid-template-columns:52% 48%;min-height:610px}.heroCopy{padding:105px 30px 65px 0}.hero h1{font-size:clamp(52px,5.6vw,86px);line-height:1.35;margin:0 0 25px;font-weight:500}.kicker{color:var(--gold);font-size:13px;font-weight:900;letter-spacing:.16em;margin-bottom:32px}.tags{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0}.tag{border:1px solid #c9beaa;padding:11px 14px}.buttons{display:flex;gap:12px}.btn{padding:17px 22px;border:1px solid;text-decoration:none;font-weight:800}.btn.dark{background:#111;color:white}.art{position:relative;background:radial-gradient(circle at 50% 45%,#3a362e,#171714 47%,#0b0b0a 78%);overflow:hidden}.art:before{content:"";position:absolute;inset:-10%;background:repeating-radial-gradient(circle at 48% 48%,transparent 0 54px,#b58b3522 55px 57px)}.art:after{content:"鬼謀神算";position:absolute;right:30px;top:50%;transform:translateY(-50%);writing-mode:vertical-rl;color:var(--gold);font:500 32px "Yu Mincho";letter-spacing:.18em}.kanji{position:absolute;left:12%;top:10%;font:700 min(27vw,380px)/1 "Yu Mincho";color:#ffffffa8}.calc{position:absolute;left:48%;top:31%;font:700 min(18vw,250px)/1 "Yu Mincho";color:#c49a47}.piece{position:absolute;left:54%;bottom:10%;width:100px;height:120px;background:linear-gradient(#c79d50,#8f6828);clip-path:polygon(22% 0,78% 0,100% 100%,0 100%);display:grid;place-items:center;font:700 50px "Yu Mincho"}.metrics{display:grid;grid-template-columns:repeat(4,1fr);background:white;border-block:1px solid var(--line)}.metric{padding:26px 30px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric b{font:600 44px "Yu Mincho";color:var(--gold)}.metric strong{display:block;margin:6px 0}.metric small{color:var(--muted)}.darkSec{background:#111;color:#f8f4ec}.darkSec .lead{color:#aaa}.flow,.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.step{padding:32px 24px;border-top:1px solid #6d5b36;min-height:205px}.step .num{font:600 30px Georgia;color:var(--gold)}.step h3{font-size:21px;margin:20px 0 8px}.step small{color:#aaa}.step em{display:block;margin-top:14px;color:#d6d0c5;font-size:12px;font-style:normal;letter-spacing:.08em}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card,.tool{background:white;border:1px solid var(--line);padding:38px;min-height:245px;transition:.25s}.card:hover,.tool:hover,.designCard:hover{transform:translateY(-6px);box-shadow:0 18px 42px #392c1712}.card i{color:var(--gold);font-style:normal}.card h3,.tool h3{font-size:22px;margin:30px 0 15px}.card p,.tool p{color:var(--muted);line-height:1.9}.cases{background:#eee5d5}.feature,.case{background:white;border:1px solid var(--line);padding:50px}.caseTop{display:grid;grid-template-columns:1fr 280px;gap:40px}.feature h3,.case h3{font:500 48px/1.45 "Yu Mincho";margin:16px 0}.context{color:var(--gold);font-weight:800;font-size:13px;letter-spacing:.08em}.feature p,.case p{line-height:2;color:#4d4942}.results{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result{border-left:2px solid var(--gold);padding-left:16px}.result b{font:600 40px Georgia;color:var(--gold)}.result span{display:block;font-size:13px}.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:30px 0}.pillar{background:#f7f2e9;padding:20px}.pillar b{display:block;margin-bottom:5px}.solution{background:#111;color:white;padding:30px;margin-top:26px}.solution h4{font:500 29px/1.5 "Yu Mincho";margin:0 0 8px}.solution p{color:#bbb;margin:0}.caseGrid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.case h3{font-size:34px}.accent{color:var(--gold)!important;font-weight:800}.timeline{max-width:1050px;margin:auto;position:relative;padding-left:45px}.timeline:before{content:"";position:absolute;left:9px;top:10px;bottom:10px;width:1px;background:var(--gold)}.career{position:relative;padding-bottom:44px}.career:before{content:"";position:absolute;left:-45px;top:4px;width:18px;height:18px;border:2px solid var(--gold);border-radius:50%;background:var(--paper)}.career span{color:var(--gold);font-size:12px;font-weight:900;letter-spacing:.12em}.career h3{font-size:23px;margin:9px 0}.career p{color:var(--muted);line-height:1.85}.tool{border-top:2px solid var(--gold)}.tool small{color:var(--gold);font-weight:900;letter-spacing:.1em}.certs{margin-top:28px;border-top:1px solid var(--line);padding-top:28px;display:flex;gap:10px;flex-wrap:wrap}.cert{border:1px solid var(--line);padding:10px 12px;background:#fff8;font-size:13px}.designGrid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}.designCard{border:1px solid #5c4c2c;min-height:270px;padding:28px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(145deg,#191815,#25221c);transition:.25s}.designCard.big{grid-row:span 2;min-height:558px}.designCard span{color:var(--gold);font-size:12px;font-weight:900;letter-spacing:.1em}.designCard h3{font:500 30px "Yu Mincho";margin:8px 0}.designCard p{color:#aaa;line-height:1.8}.contact{text-align:center}.contact .title,.contact .lead{margin-inline:auto}.form{max-width:980px;margin:50px auto 0;text-align:left}.row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{margin-bottom:18px}label{display:block;font-weight:800;font-size:14px;margin-bottom:8px}input,textarea{width:100%;padding:16px;border:1px solid #cfc3b0;background:white;font:inherit}textarea{height:170px}.submit{background:#111;color:white;border:0;padding:17px 24px;font-weight:900}footer{padding:28px 0;border-top:1px solid var(--line);background:var(--paper);font-size:13px;color:#6e685f}.foot{display:flex;justify-content:space-between}.reveal{opacity:0;transform:translateY(16px);transition:.6s}.reveal.show{opacity:1;transform:none}
@media(max-width:1000px){.links a:not(.cta){display:none}.heroGrid{grid-template-columns:1fr}.art{min-height:480px}.head{grid-template-columns:1fr}.flow,.tools{grid-template-columns:1fr 1fr}.cards{grid-template-columns:1fr 1fr}.caseTop,.designGrid{grid-template-columns:1fr}.designCard.big{grid-row:auto;min-height:350px}}
@media(max-width:640px){.wrap{width:calc(100% - 34px)}nav{height:70px}.brand{font-size:17px}.brand span{display:none}.heroCopy{padding:75px 0 50px}.hero h1{font-size:45px}.art{min-height:380px}.metrics{grid-template-columns:1fr 1fr}.metric{padding:19px}.metric b{font-size:34px}.section{padding:76px 0}.title{font-size:41px}.flow,.tools,.cards,.caseGrid,.row,.pillars{grid-template-columns:1fr}.feature,.case{padding:27px}.feature h3{font-size:36px}.foot{flex-direction:column;gap:12px}}

/* v6 refinements */
.profile-label{font-size:15px;font-weight:900;letter-spacing:.04em;color:var(--gold);margin:0 0 18px}
.career-bridge{max-width:1050px;margin:10px auto 44px;padding-top:42px;border-top:1px solid var(--line)}
.career-bridge-title{font-size:38px;line-height:1.45;font-weight:500;margin:0 0 15px}
.career-bridge>p:last-child{color:var(--muted);font-size:16px;line-height:1.9}
.result{border-left:0!important;padding-left:0!important}
.results{gap:28px!important}
.result span{display:block;font-size:13px;font-weight:800;color:var(--muted);margin-bottom:6px}
.result b{font-size:34px!important}
.insight-line{white-space:nowrap;font-size:28px!important}
.tool h3{margin:0 0 6px!important;font-size:23px}
.tool small{display:block;margin-bottom:22px}
.tool-use{font-size:13px!important;font-weight:800;color:var(--muted)!important;margin:18px 0 9px!important}
.toolchips{display:flex;flex-wrap:wrap;gap:8px}
.toolchips span{display:inline-block;border:1px solid var(--line);background:#faf7f0;padding:7px 10px;font-size:12px;color:#49453e;border-radius:999px}
.cert-block{display:grid;grid-template-columns:260px 1fr;gap:32px;margin-top:48px;padding-top:34px;border-top:1px solid var(--line)}
.cert-block h3{font-size:21px;margin:0;line-height:1.6}
.certs{margin-top:0!important;border-top:0!important;padding-top:0!important}
.links a{white-space:nowrap}
@media(max-width:1000px){
  .cert-block{grid-template-columns:1fr}
  .insight-line{white-space:normal}
}
@media(max-width:640px){
  .career-bridge-title{font-size:31px}
}
/* Production refinements */
.req{font-size:11px;color:var(--gold);margin-left:6px}
.privacy-note{font-size:12px;color:#8b8478;margin-top:16px;line-height:1.9;text-align:center}
.privacy-note a,footer a{color:inherit;text-underline-offset:3px}
:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .reveal{opacity:1!important;transform:none!important}
}


/* v1.1 — production HERO + responsive tuning */
.brand{display:flex;align-items:center;gap:16px;white-space:nowrap}
.brand strong{font:900 21px/1 -apple-system,BlinkMacSystemFont,"Yu Gothic",Meiryo,sans-serif;letter-spacing:.14em}
.brand span{margin-left:0!important;white-space:nowrap}
.heroGrid{grid-template-columns:minmax(0,52%) minmax(0,48%);align-items:stretch}
.art-image{min-width:0;position:relative;background:#111}
.art-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;display:block}
.art-image:before,.art-image:after{content:none!important}
.heroCopy{position:relative;z-index:2}
.hero h1{max-width:760px}
.metrics{position:relative;z-index:3}

/* Keep semantic Japanese headings together at major desktop/tablet sizes */
.title,.hero h1{word-break:keep-all;overflow-wrap:normal}
.insight-line{white-space:nowrap}

/* Nav adapts progressively rather than wrapping the brand */
@media(max-width:1280px){
  .wrap{width:min(1480px,calc(100% - 48px))}
  .links{gap:16px;font-size:12px}
  .brand span{font-size:14px}
}
@media(max-width:1100px){
  .brand span{display:none}
  .links{gap:14px}
}
@media(max-width:1000px){
  .heroGrid{grid-template-columns:1fr}
  .heroCopy{padding:78px 0 54px}
  .art-image{min-height:520px}
  .art-image img{object-position:52% 50%}
  .metrics{grid-template-columns:1fr 1fr}
  .metric:nth-child(2){border-right:0}
  .links a:not(.cta){display:none}
}
@media(max-width:640px){
  .wrap{width:calc(100% - 32px)}
  .brand strong{font-size:17px}
  .hero h1{font-size:44px;line-height:1.36;word-break:normal}
  .heroCopy .lead{font-size:16px}
  .art-image{min-height:390px}
  .art-image img{object-position:53% 50%}
  .metrics{grid-template-columns:1fr 1fr}
  .metric{min-height:135px}
  .metric b{font-size:31px}
  .metric strong{font-size:14px}
  .metric small{font-size:11px;line-height:1.5;display:block}
  .title{font-size:39px;word-break:normal}
  .head{gap:18px;margin-bottom:44px}
  .section{padding:68px 0}
  .insight-line{white-space:normal}
  .caseTop{grid-template-columns:1fr}
  .results{grid-template-columns:1fr 1fr}
}


/* Softly dissolve the hard boundary between copy and artwork */
  .art-image::before{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:-22%;
    width:42%;
    z-index:2;
    pointer-events:none;
    background:
      linear-gradient(
        90deg,
        rgba(250,247,240,1) 0%,
        rgba(250,247,240,.97) 20%,
        rgba(250,247,240,.82) 42%,
        rgba(250,247,240,.48) 68%,
        rgba(250,247,240,.14) 88%,
        rgba(250,247,240,0) 100%
      );
  }

  /* Add a subtle atmospheric veil so the overlap feels intentional */
  .art-image::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
    background:
      radial-gradient(
        circle at 6% 48%,
        rgba(250,247,240,.33) 0%,
        rgba(250,247,240,.18) 18%,
        rgba(250,247,240,0) 43%
      );
  }

  .art-image img{
    z-index:1;
  }
}

/* Keep mobile/tablet crisp and predictable */
@media(max-width:1000px){
  .art-image::before,
  .art-image::after{
    content:none!important;
  }
}


/* The blend now spans across the grid boundary itself */
  .heroGrid::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:42%;
    width:22%;
    z-index:2;
    pointer-events:none;
    background:
      linear-gradient(
        90deg,
        rgba(250,247,240,1) 0%,
        rgba(250,247,240,.97) 16%,
        rgba(250,247,240,.86) 32%,
        rgba(250,247,240,.64) 50%,
        rgba(250,247,240,.38) 68%,
        rgba(250,247,240,.16) 84%,
        rgba(250,247,240,0) 100%
      );
  }

  /* Soft atmospheric veil over the left edge of the artwork */
  .art-image::after{
    content:""!important;
    position:absolute;
    inset:0 auto 0 0;
    width:34%;
    z-index:2;
    pointer-events:none;
    background:
      radial-gradient(
        ellipse at left center,
        rgba(250,247,240,.38) 0%,
        rgba(250,247,240,.24) 30%,
        rgba(250,247,240,.08) 62%,
        rgba(250,247,240,0) 100%
      );
  }

  .art-image::before{
    content:none!important;
  }
}

@media(max-width:1000px){
  .heroGrid::after,
  .art-image::before,
  .art-image::after{
    content:none!important;
    display:none!important;
  }
}


/* v1.4 — strong cinematic HERO blend */
@media(min-width:1001px){
  .hero{
    position:relative;
    overflow:hidden;
    background:var(--paper);
  }

  .heroGrid{
    position:relative;
    isolation:isolate;
    grid-template-columns:minmax(0,54%) minmax(0,46%);
  }

  .heroCopy{
    position:relative;
    z-index:5;
  }

  .art-image{
    position:relative;
    z-index:1;
    overflow:visible;
    background:#111;
  }

  .art-image img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:50% 50%;
    display:block;
    z-index:1;
  }

  /* Large cross-boundary fade: intentionally dramatic */
  .heroGrid::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:30%;
    width:46%;
    z-index:4;
    pointer-events:none;
    background:
      linear-gradient(
        90deg,
        rgba(250,247,240,1) 0%,
        rgba(250,247,240,1) 16%,
        rgba(250,247,240,.97) 26%,
        rgba(250,247,240,.90) 38%,
        rgba(250,247,240,.76) 50%,
        rgba(250,247,240,.56) 62%,
        rgba(250,247,240,.34) 74%,
        rgba(250,247,240,.15) 87%,
        rgba(250,247,240,0) 100%
      );
  }

  /* Additional misty veil over the left half of artwork */
  .art-image::before{
    content:""!important;
    position:absolute;
    top:-6%;
    bottom:-6%;
    left:-28%;
    width:76%;
    z-index:3;
    pointer-events:none;
    background:
      radial-gradient(
        ellipse at 12% 48%,
        rgba(250,247,240,.92) 0%,
        rgba(250,247,240,.76) 22%,
        rgba(250,247,240,.48) 44%,
        rgba(250,247,240,.20) 66%,
        rgba(250,247,240,0) 88%
      );
    filter:blur(10px);
  }

  /* Broad top/bottom atmospheric wash to avoid a straight vertical seam */
  .art-image::after{
    content:""!important;
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
    background:
      linear-gradient(
        180deg,
        rgba(250,247,240,.10) 0%,
        rgba(250,247,240,0) 22%,
        rgba(250,247,240,0) 72%,
        rgba(250,247,240,.08) 100%
      ),
      radial-gradient(
        ellipse at 0% 52%,
        rgba(250,247,240,.58) 0%,
        rgba(250,247,240,.32) 30%,
        rgba(250,247,240,.10) 55%,
        rgba(250,247,240,0) 78%
      );
  }
}

@media(max-width:1000px){
  .heroGrid::after,
  .art-image::before,
  .art-image::after{
    content:none!important;
    display:none!important;
  }
}


/* v1.5 — single-layer full-background HERO */
.hero-full{
  position:relative;
  overflow:hidden;
  background:#f7f3ea;
}

.hero-bg{
  position:absolute;
  inset:0 0 auto 0;
  height:650px;
  z-index:0;
  background-image:url("../assets/images/shinsan-hero-full.jpg");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}

/* Hide baked-in left copy from the visual while keeping its atmospheric texture.
   The mask fades gradually into the artwork, eliminating the old vertical seam. */
.hero-shade{
  position:absolute;
  inset:0 0 auto 0;
  height:650px;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(250,247,240,1) 0%,
      rgba(250,247,240,.995) 18%,
      rgba(250,247,240,.97) 30%,
      rgba(250,247,240,.84) 40%,
      rgba(250,247,240,.58) 49%,
      rgba(250,247,240,.26) 57%,
      rgba(250,247,240,.06) 64%,
      rgba(250,247,240,0) 70%
    );
}

.heroOverlay{
  position:relative;
  z-index:2;
  min-height:650px;
  display:flex;
  align-items:center;
}

.heroOverlay .heroCopy{
  width:min(760px,52vw);
  padding:66px 0 52px;
}

.hero-full .heroCopy .lead{
  max-width:710px;
}

.hero-full .metrics{
  position:relative;
  z-index:3;
}

@media(max-width:1100px){
  .hero-bg,.hero-shade{height:600px}
  .heroOverlay{min-height:600px}
  .heroOverlay .heroCopy{width:min(700px,60vw)}
}

@media(max-width:1000px){
  .hero-bg{
    position:relative;
    height:470px;
    background-position:67% center;
  }
  .hero-shade{display:none}
  .heroOverlay{
    min-height:auto;
    display:block;
    background:var(--paper);
  }
  .heroOverlay .heroCopy{
    width:100%;
    padding:68px 0 52px;
  }
}

@media(max-width:640px){
  .hero-bg{height:360px;background-position:70% center}
  .heroOverlay .heroCopy{padding:56px 0 44px}
}


/* v1.6 — HERO parallax + readability refinement */
@media(min-width:1001px){
  .heroOverlay{
    overflow:visible;
  }

  .heroOverlay .heroCopy{
    position:relative;
    transform:translate3d(0,var(--hero-copy-y,0px),0);
    will-change:transform;
    transition:transform .08s linear;
  }

  /* Soft atmospheric veil behind copy — no rectangular panel */
  .heroOverlay .heroCopy::before{
    content:"";
    position:absolute;
    z-index:-1;
    left:-7%;
    top:18%;
    width:112%;
    height:72%;
    pointer-events:none;
    background:
      radial-gradient(
        ellipse at 36% 54%,
        rgba(250,247,240,.78) 0%,
        rgba(250,247,240,.62) 32%,
        rgba(250,247,240,.36) 54%,
        rgba(250,247,240,.12) 72%,
        rgba(250,247,240,0) 88%
      );
    filter:blur(10px);
  }

  .hero-full .heroCopy .lead{
    position:relative;
    max-width:700px;
    color:#5f5a52;
    text-shadow:
      0 1px 0 rgba(250,247,240,.92),
      0 0 12px rgba(250,247,240,.72);
  }

  .hero-full .kicker,
  .hero-full h1,
  .hero-full .tags,
  .hero-full .buttons{
    position:relative;
    z-index:1;
  }

  .hero-bg{
    transform:translate3d(0,var(--hero-bg-y,0px),0) scale(1.02);
    will-change:transform;
  }
}

@media(max-width:1000px){
  .heroOverlay .heroCopy,
  .hero-bg{
    transform:none!important;
  }
  .heroOverlay .heroCopy::before{
    content:none!important;
  }
}

@media (prefers-reduced-motion: reduce){
  .heroOverlay .heroCopy,
  .hero-bg{
    transform:none!important;
    transition:none!important;
  }
}


/* ==========================================================
   v1.7 — HERO responsive architecture
   Desktop + tablet: one continuous overlay composition
   Mobile: dedicated compact composition
   ========================================================== */

/* ---------- Large desktop ---------- */
.hero-full{
  --hero-h: 650px;
}
.hero-bg,
.hero-shade{
  height:var(--hero-h);
}
.heroOverlay{
  min-height:var(--hero-h);
}
.heroOverlay .heroCopy{
  width:min(760px,52vw);
}

/* ---------- Medium desktop / tablet landscape ---------- */
@media (max-width:1280px) and (min-width:769px){
  .hero-full{
    --hero-h: clamp(570px,55vw,630px);
  }

  .hero-bg{
    position:absolute!important;
    inset:0 0 auto 0!important;
    height:var(--hero-h)!important;
    background-size:cover!important;
    background-position:59% center!important;
  }

  .hero-shade{
    display:block!important;
    height:var(--hero-h)!important;
    background:
      linear-gradient(
        90deg,
        rgba(250,247,240,1) 0%,
        rgba(250,247,240,.995) 20%,
        rgba(250,247,240,.96) 32%,
        rgba(250,247,240,.78) 43%,
        rgba(250,247,240,.48) 53%,
        rgba(250,247,240,.19) 62%,
        rgba(250,247,240,.04) 69%,
        rgba(250,247,240,0) 75%
      )!important;
  }

  .heroOverlay{
    min-height:var(--hero-h)!important;
    display:flex!important;
    align-items:center!important;
    background:transparent!important;
  }

  .heroOverlay .heroCopy{
    width:clamp(470px,50vw,650px)!important;
    padding:48px 0 40px!important;
  }

  .hero h1{
    font-size:clamp(48px,5.15vw,70px)!important;
    line-height:1.34!important;
    max-width:none!important;
  }

  .hero-full .heroCopy .lead{
    max-width:610px!important;
    font-size:clamp(15px,1.55vw,18px)!important;
    line-height:1.9!important;
  }

  .heroCopy .tags{
    gap:8px!important;
    margin:22px 0!important;
  }

  .heroCopy .tag{
    padding:9px 12px!important;
    font-size:13px!important;
  }

  .heroCopy .btn{
    padding:14px 18px!important;
    font-size:14px!important;
  }

  /* Keep the nav intact longer; only reduce spacing. */
  .links{
    gap:clamp(10px,1.35vw,18px)!important;
    font-size:clamp(11px,1.05vw,13px)!important;
  }
}

/* ---------- Tablet portrait / narrow tablet ---------- */
@media (max-width:900px) and (min-width:769px){
  .hero-full{
    --hero-h: 570px;
  }

  .hero-bg{
    background-position:63% center!important;
  }

  .hero-shade{
    background:
      linear-gradient(
        90deg,
        rgba(250,247,240,1) 0%,
        rgba(250,247,240,.99) 24%,
        rgba(250,247,240,.91) 36%,
        rgba(250,247,240,.67) 48%,
        rgba(250,247,240,.35) 59%,
        rgba(250,247,240,.10) 69%,
        rgba(250,247,240,0) 78%
      )!important;
  }

  .heroOverlay .heroCopy{
    width:55vw!important;
    min-width:440px!important;
  }

  .hero h1{
    font-size:clamp(44px,5.4vw,54px)!important;
  }

  .hero-full .heroCopy .lead{
    max-width:520px!important;
    font-size:14px!important;
  }
}

/* ---------- Mobile: only here does HERO become vertically composed ---------- */
@media (max-width:768px){
  .hero-full{
    --hero-mobile-image-h: clamp(310px,79vw,430px);
    display:flex;
    flex-direction:column;
  }

  /* Mobile artwork first. It is still the same 神算 visual. */
  .hero-bg{
    position:relative!important;
    inset:auto!important;
    order:1;
    width:100%!important;
    height:var(--hero-mobile-image-h)!important;
    background-size:cover!important;
    background-position:68% center!important;
    transform:none!important;
  }

  .hero-shade{
    display:none!important;
  }

  .heroOverlay{
    order:2;
    min-height:auto!important;
    display:block!important;
    background:var(--paper)!important;
  }

  .heroOverlay .heroCopy{
    width:100%!important;
    min-width:0!important;
    padding:50px 0 44px!important;
    transform:none!important;
  }

  .heroOverlay .heroCopy::before{
    content:none!important;
  }

  .hero h1{
    font-size:clamp(40px,11vw,54px)!important;
    line-height:1.36!important;
  }

  .hero-full .heroCopy .lead{
    max-width:none!important;
    font-size:15px!important;
    line-height:1.9!important;
    text-shadow:none!important;
  }

  .heroCopy .tags{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px!important;
    margin:24px 0!important;
  }

  .heroCopy .tag{
    text-align:center;
    padding:10px 8px!important;
    font-size:13px!important;
  }

  .heroCopy .buttons{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .heroCopy .btn{
    width:100%;
    text-align:center;
  }

  .hero-full .metrics{
    order:3;
  }

  /* Mobile header remains compact. */
  nav{
    height:72px!important;
  }
  .brand span{
    display:none!important;
  }
  .links a:not(.cta){
    display:none!important;
  }
  .links .cta{
    padding:14px 16px!important;
    font-size:13px!important;
  }
}

/* ---------- Small mobile ---------- */
@media (max-width:480px){
  .hero-full{
    --hero-mobile-image-h: 300px;
  }

  .hero-bg{
    background-position:70% center!important;
  }

  .heroOverlay .heroCopy{
    padding:42px 0 38px!important;
  }

  .hero h1{
    font-size:39px!important;
  }

  .kicker{
    font-size:11px!important;
    letter-spacing:.11em!important;
    margin-bottom:22px!important;
  }

  .metrics{
    grid-template-columns:1fr 1fr!important;
  }
}

/* Kill the old 1000px "hard switch" behavior from earlier versions. */
@media (max-width:1000px) and (min-width:769px){
  .hero-bg{
    position:absolute!important;
  }
  .heroOverlay{
    background:transparent!important;
  }
  .heroOverlay .heroCopy,
  .hero-bg{
    transform:translate3d(0,var(--hero-copy-y,0px),0);
  }
  .hero-bg{
    transform:translate3d(0,var(--hero-bg-y,0px),0) scale(1.02)!important;
  }
  .heroOverlay .heroCopy::before{
    content:""!important;
  }
}


/* ==========================================================
   v1.8 — mobile HERO crop fix
   Keep baked-in left-side copy outside the visible crop.
   ========================================================== */

@media (max-width:768px){
  .hero-bg{
    /* Use image height as the sizing basis and show the RIGHT side only.
       This removes the baked-in left-side copy from the mobile viewport. */
    background-size:auto 100%!important;
    background-position:right center!important;
    background-repeat:no-repeat!important;
    background-color:#111!important;
  }

  .heroOverlay{
    position:relative!important;
    z-index:3!important;
  }

  .heroOverlay .heroCopy{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    margin:0!important;
  }

  .heroOverlay .heroCopy > *{
    max-width:100%!important;
  }

  .heroOverlay .kicker,
  .heroOverlay h1,
  .heroOverlay .lead,
  .heroOverlay .tags,
  .heroOverlay .buttons{
    margin-left:0!important;
    margin-right:0!important;
  }
}

/* Slightly wider phones / small tablets: preserve more scenery,
   but still exclude the original baked copy. */
@media (min-width:560px) and (max-width:768px){
  .hero-bg{
    background-position:78% center!important;
    background-size:auto 100%!important;
  }
}

/* Narrow phones: prioritize the 神算 emblem and 歩. */
@media (max-width:559px){
  .hero-bg{
    background-position:84% center!important;
    background-size:auto 100%!important;
  }

  .heroOverlay .heroCopy{
    padding-left:0!important;
    padding-right:0!important;
  }
}


/* ==========================================================
   v1.9 — SHINSAN-first brand architecture + mobile HERO
   ========================================================== */

/* Brand hierarchy */
.brand-shinsan{
  display:flex;
  align-items:center;
  gap:18px;
}
.brand-shinsan strong{
  display:flex;
  align-items:baseline;
  gap:9px;
  font-family:"Noto Serif JP","Yu Mincho",serif;
  font-size:25px!important;
  font-weight:700;
  letter-spacing:.08em!important;
}
.brand-shinsan strong i{
  font-family:-apple-system,BlinkMacSystemFont,"Yu Gothic",Meiryo,sans-serif;
  font-size:10px;
  font-style:normal;
  font-weight:800;
  letter-spacing:.22em;
}
.brand-shinsan span{
  font-size:13px!important;
  letter-spacing:.13em!important;
  font-weight:800;
  color:var(--muted);
}

/* Desktop/tablet keep existing hero image */
@media (min-width:769px){
  .brand-shinsan span{
    display:inline-block!important;
  }
}

/* Mobile-specific hero artwork */
@media (max-width:768px){
  .brand-shinsan{
    gap:10px;
  }
  .brand-shinsan strong{
    font-size:22px!important;
  }
  .brand-shinsan strong i{
    font-size:8px!important;
  }
  .brand-shinsan span{
    display:none!important;
  }

  .hero-bg{
    background-image:url("../assets/images/shinsan-hero-mobile.jpg")!important;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-color:#090b0e!important;
    height:clamp(330px,88vw,470px)!important;
  }

  .heroOverlay{
    background:var(--paper)!important;
  }

  .heroOverlay .heroCopy{
    padding-top:46px!important;
  }

  .heroOverlay .kicker{
    margin-bottom:22px!important;
  }

  .heroOverlay h1{
    margin-top:0!important;
  }
}

@media (max-width:480px){
  .hero-bg{
    height:320px!important;
    background-position:center 48%!important;
  }
}


/* ==========================================================
   v1.10 — mobile HERO scale / framing refinement
   Goal: show the key visual, not an oversized emblem close-up
   ========================================================== */

@media (max-width:768px){
  .hero-bg{
    /* Pull back significantly so the ring, mountains and pawn remain visible */
    background-size:82% auto!important;
    background-position:center 46%!important;
    background-repeat:no-repeat!important;
    background-color:#080a0d!important;
    height:clamp(300px,68vw,390px)!important;
  }
}

/* Wider phones / small tablets */
@media (min-width:560px) and (max-width:768px){
  .hero-bg{
    background-size:78% auto!important;
    background-position:center 48%!important;
    height:clamp(320px,62vw,380px)!important;
  }
}

/* Narrow smartphones */
@media (max-width:559px){
  .hero-bg{
    background-size:88% auto!important;
    background-position:center 48%!important;
    height:clamp(280px,76vw,340px)!important;
  }
}

/* Very narrow screens */
@media (max-width:390px){
  .hero-bg{
    background-size:92% auto!important;
    background-position:center 49%!important;
    height:285px!important;
  }

  .heroOverlay .heroCopy{
    padding-top:38px!important;
  }
}


/* ==========================================================
   v1.11 — mobile HERO: full-width key visual
   Reference: preserve the complete artwork rather than crop it.
   ========================================================== */

@media (max-width:768px){
  .hero-bg{
    width:100%!important;
    height:auto!important;
    aspect-ratio:4 / 3!important;
    background-image:url("../assets/images/shinsan-hero-mobile.jpg")!important;
    background-size:contain!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-color:#080a0d!important;
  }
}

/* Near the 768px breakpoint: keep the entire graphic visible */
@media (min-width:560px) and (max-width:768px){
  .hero-bg{
    aspect-ratio:4 / 3!important;
    background-size:contain!important;
    background-position:center center!important;
  }
}

/* Phones: slightly shallower frame, but never crop left/right */
@media (max-width:559px){
  .hero-bg{
    aspect-ratio:1 / 1!important;
    background-size:contain!important;
    background-position:center center!important;
  }
}

@media (max-width:390px){
  .hero-bg{
    height:auto!important;
    aspect-ratio:1 / 1!important;
    background-size:contain!important;
    background-position:center center!important;
  }
}


/* ==========================================================
   v1.12 — TRUE mobile HERO full-image fix
   Uses the original 1366×968 artwork, NOT the cropped v1.9 asset.
   ========================================================== */

@media (max-width:768px){
  .hero-bg{
    width:100%!important;
    height:auto!important;
    aspect-ratio:1366 / 968!important;
    background-image:url("../assets/images/shinsan-hero-mobile-full.png")!important;
    background-size:100% 100%!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-color:#080a0d!important;
  }
}

/* Keep exactly the same source ratio at every mobile width.
   No breakpoint-specific zoom, crop, or background-position shift. */
@media (max-width:559px){
  .hero-bg{
    aspect-ratio:1366 / 968!important;
    background-size:100% 100%!important;
    background-position:center center!important;
  }
}

@media (max-width:390px){
  .hero-bg{
    height:auto!important;
    aspect-ratio:1366 / 968!important;
    background-size:100% 100%!important;
    background-position:center center!important;
  }
}


/* v1.14 — navigation / page-top / in-site form UX */
.brand-home{color:inherit;text-decoration:none}
.page-top{
  position:fixed;right:24px;bottom:24px;z-index:80;
  width:66px;height:66px;border:1px solid rgba(184,139,54,.55);
  background:rgba(18,17,14,.92);color:#f5efe2;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1px;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(12px);
  transition:.25s ease;backdrop-filter:blur(8px)
}
.page-top.show{opacity:1;visibility:visible;transform:none}
.page-top span{font-size:20px;line-height:1}
.page-top small{font-size:8px;letter-spacing:.12em}
.page-top:hover{background:#b88b36;color:#111}
.form-status{
  margin-top:18px;padding:18px 20px;border:1px solid #d7c6a7;
  background:rgba(250,247,240,.92);font-size:14px;line-height:1.8
}
.form-status.success{border-color:#b88b36}
.form-status.error{border-color:#9f5a4d}
.form .submit[disabled]{opacity:.6;cursor:wait}
@media(max-width:640px){
  .page-top{right:14px;bottom:14px;width:56px;height:56px}
}


/* ==========================================================
   v1.16 — motion + Case1 spacing refinement
   ========================================================== */

/* Scroll reveal */
.motion-item{
  opacity:0;
  transition:
    opacity .62s cubic-bezier(.22,.61,.36,1),
    transform .62s cubic-bezier(.22,.61,.36,1);
  will-change:opacity,transform;
}
.motion-up{transform:translate3d(0,28px,0)}
.motion-side{transform:translate3d(24px,0,0)}
.motion-item.is-visible{
  opacity:1;
  transform:translate3d(0,0,0);
}

/* Stagger */
.motion-item:nth-child(2){transition-delay:.08s}
.motion-item:nth-child(3){transition-delay:.16s}
.motion-item:nth-child(4){transition-delay:.24s}
.motion-item:nth-child(5){transition-delay:.32s}
.motion-item:nth-child(6){transition-delay:.40s}

/* Keep hover motion on expertise/support cards */
.motion-item.is-visible:hover{
  transition-delay:0s!important;
}

/* Case1: reduce wasted vertical space in the featured block */
.featured-case,
.case-featured,
.case01,
#case01{
  align-items:start;
}

.featured-case .case-copy,
.case-featured .case-copy,
.case01 .case-copy,
#case01 .case-copy{
  margin-bottom:0!important;
}

.featured-case .case-metrics,
.case-featured .case-metrics,
.case01 .case-metrics,
#case01 .case-metrics{
  align-self:start;
  margin-bottom:0!important;
}

/* Common case lead paragraph spacing */
.featured-case p,
.case-featured p,
.case01 p,
#case01 p{
  margin-bottom:1.15em;
}

/* Trim spacing before the three strategy cards */
.featured-case .case-points,
.case-featured .case-points,
.case01 .case-points,
#case01 .case-points,
.featured-case .case-grid,
.case-featured .case-grid{
  margin-top:28px!important;
}

/* If Case1 is built with a generic two-column grid, reduce excessive minimum height */
.case-featured,
.featured-case{
  min-height:0!important;
}

/* Case result typography */
.case-metrics strong,
.case-results strong{
  white-space:nowrap;
}

@media (max-width:900px){
  .motion-side{transform:translate3d(0,24px,0)}
}

@media (prefers-reduced-motion:reduce){
  .motion-item{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
}


/* ==========================================================
   v1.17 — Case1 real selectors + explicit reveal order
   ========================================================== */

/* Case1 actual structure */
.feature .caseTop{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,360px)!important;
  gap:28px!important;
  align-items:start!important;
  margin-bottom:22px!important;
}

.feature .results{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px!important;
  align-self:start!important;
  margin:0!important;
}

.feature .result{
  min-width:0;
  padding-top:0!important;
}

.feature .result b,
.feature .result strong{
  white-space:nowrap!important;
  line-height:1.05!important;
  display:block;
}

.feature .result small{
  display:block;
  margin-top:8px!important;
}

.feature .pillars{
  margin:20px 0 0!important;
}

.feature .caseTop + .pillars{
  margin-top:18px!important;
}

/* Keep copy compact; avoid accidental paragraph inflation */
.feature .caseTop p{
  margin-bottom:.9em!important;
}
.feature .caseTop p:last-child{
  margin-bottom:0!important;
}

/* Tablet: keep results on same row unless too narrow */
@media(max-width:980px){
  .feature .caseTop{
    grid-template-columns:1fr!important;
    gap:22px!important;
  }
  .feature .results{
    max-width:520px;
  }
}

/* Mobile */
@media(max-width:560px){
  .feature .results{
    grid-template-columns:1fr 1fr;
    gap:12px!important;
  }
  .feature .result b,
  .feature .result strong{
    font-size:clamp(30px,9vw,42px)!important;
  }
}

/* Explicit reveal sequencing */
#approach .motion-item,
#expertise .motion-item{
  transition-delay:0ms!important;
}

#approach .motion-item:nth-of-type(1){transition-delay:0ms!important}
#approach .motion-item:nth-of-type(2){transition-delay:110ms!important}
#approach .motion-item:nth-of-type(3){transition-delay:220ms!important}
#approach .motion-item:nth-of-type(4){transition-delay:330ms!important}

#expertise .motion-item:nth-of-type(1){transition-delay:0ms!important}
#expertise .motion-item:nth-of-type(2){transition-delay:90ms!important}
#expertise .motion-item:nth-of-type(3){transition-delay:180ms!important}
#expertise .motion-item:nth-of-type(4){transition-delay:270ms!important}
#expertise .motion-item:nth-of-type(5){transition-delay:360ms!important}
#expertise .motion-item:nth-of-type(6){transition-delay:450ms!important}


/* v1.18 — JS controls reveal order; CSS delays disabled */
#approach .motion-item,
#expertise .motion-item{
  transition-delay:0ms!important;
}


/* ==========================================================
   v1.19 — final Case1 metric alignment / spacing
   ========================================================== */

/* Give the result area enough real width for both values */
.feature .caseTop{
  grid-template-columns:minmax(0,1fr) 430px!important;
  column-gap:44px!important;
  row-gap:24px!important;
  margin-bottom:30px!important;
}

.feature .results{
  width:430px!important;
  max-width:100%!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  column-gap:42px!important;
  row-gap:0!important;
  align-items:start!important;
  justify-self:end!important;
  margin:0!important;
  padding:0!important;
}

.feature .result{
  min-width:0!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
}

.feature .result b,
.feature .result strong{
  display:block!important;
  white-space:nowrap!important;
  font-size:clamp(38px,3.1vw,54px)!important;
  line-height:1.08!important;
  letter-spacing:-0.035em!important;
  margin:8px 0 0!important;
}

/* Create deliberate breathing room before the three pillar cards */
.feature .pillars{
  clear:both;
  margin:34px 0 0!important;
}

/* Tablet */
@media(max-width:1100px){
  .feature .caseTop{
    grid-template-columns:minmax(0,1fr) 360px!important;
    column-gap:28px!important;
  }
  .feature .results{
    width:360px!important;
    column-gap:24px!important;
  }
  .feature .result b,
  .feature .result strong{
    font-size:clamp(34px,4vw,46px)!important;
  }
}

/* Stack metrics below copy before they can collide */
@media(max-width:900px){
  .feature .caseTop{
    grid-template-columns:1fr!important;
    gap:24px!important;
    margin-bottom:28px!important;
  }
  .feature .results{
    width:min(100%,520px)!important;
    justify-self:start!important;
    column-gap:32px!important;
  }
}

/* Mobile */
@media(max-width:560px){
  .feature .results{
    width:100%!important;
    grid-template-columns:1fr 1fr!important;
    column-gap:18px!important;
  }
  .feature .result b,
  .feature .result strong{
    font-size:clamp(29px,8.5vw,38px)!important;
    letter-spacing:-0.045em!important;
  }
  .feature .pillars{
    margin-top:28px!important;
  }
}


/* JP / EN language switch */
.lang-switch{display:inline-flex!important;align-items:center;justify-content:center;min-width:42px;padding:10px 11px;border:1px solid var(--line);text-decoration:none;color:inherit;font-size:12px;font-weight:900;letter-spacing:.08em;line-height:1;background:#fff5}
.lang-switch:hover{border-color:var(--gold);color:var(--gold)}
@media(max-width:1000px){.links .lang-switch{display:inline-flex!important}}
@media(max-width:640px){.links{gap:8px}.lang-switch{min-width:38px;padding:9px 8px}}


/* Design portfolio bridge */
.design-cta{margin-top:28px;padding-top:24px;border-top:1px solid rgba(255,255,255,.18);display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.design-cta .btn{border-color:rgba(255,255,255,.55);color:#fff}
.design-cta .btn:hover{border-color:var(--gold);color:var(--gold)}
.design-cta p{margin:0;font-size:11px;letter-spacing:.12em;opacity:.65}
