/* モバイル対応（共通）。幅820px以下で適用。PC幅には影響しない */
.m-burger,.m-menu{display:none}
@media (max-width:1000px){
  /* ヘッダー：PC用のメニューを隠し、ハンバーガーに置き換える（メニューが約985px必要なため1000pxで切り替え） */
  header.fixed{padding-left:12px!important;padding-right:12px!important}
  header.fixed>div{width:100%!important;max-width:100%!important;min-height:56px!important;height:56px!important;padding:0 8px 0 16px!important;border-radius:28px!important;justify-content:space-between!important;align-items:center!important;box-sizing:border-box}
  header.fixed>div>div:nth-child(1){width:auto!important;height:auto!important;padding:0!important}
  header.fixed>div>div:nth-child(1) img{height:34px!important;width:auto!important}
  header.fixed>div>div:nth-child(2){display:none!important}
  .m-burger{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:auto;border:0;border-radius:50%;background:#111720;color:#fff;cursor:pointer;padding:0;flex:none;position:relative;z-index:2}
  .m-burger span,.m-burger span::before,.m-burger span::after{display:block;width:18px;height:2px;background:#fff;border-radius:2px;position:relative;transition:transform .25s ease,background-color .2s ease}
  .m-burger span::before,.m-burger span::after{content:"";position:absolute;left:0}
  .m-burger span::before{top:-6px}.m-burger span::after{top:6px}
  html.m-open .m-burger span{background:transparent}
  html.m-open .m-burger span::before{top:0;transform:rotate(45deg)}
  html.m-open .m-burger span::after{top:0;transform:rotate(-45deg)}
  .m-menu{position:fixed;inset:0;z-index:2147482000;background:#111720;color:#fff;padding:88px 28px 40px;box-sizing:border-box;overflow:auto;flex-direction:column;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease;font-family:"Inter","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif}
  html.m-open .m-menu{display:flex;opacity:1;visibility:visible}
  html.m-open{overflow:hidden}
  html.m-open header.fixed{z-index:2147482500}
  .m-menu a{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid rgba(255,255,255,.18);color:#fff;text-decoration:none;font-size:20px;font-weight:700;letter-spacing:.06em}
  .m-menu a.m-contact{margin-top:28px;border:0;justify-content:center;background:#fff;color:#111720;border-radius:999px;padding:17px 0}
  .m-menu a .m-ext{font-size:14px;font-weight:500;opacity:.7}
}
@media (max-width:820px){
  /* メニューを閉じるボタン（メニューの上に重ねる） */
  .m-close{position:absolute;top:16px;right:20px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#111720;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}
  .m-close::before,.m-close::after{content:"";position:absolute;width:18px;height:2px;background:#111720;border-radius:2px}
  .m-close::before{transform:rotate(45deg)}.m-close::after{transform:rotate(-45deg)}
  .m-menu .m-logo{position:absolute;top:22px;left:24px;height:34px;width:auto}
  /* 下層ページの見出し帯：高さと文字を小さく */
  header.fixed + div:not(.lab){height:auto!important;min-height:0!important;padding:112px 20px 44px!important;box-sizing:border-box}
  header.fixed + div:not(.lab) > div{position:static!important;height:auto!important;width:100%!important;transform:none!important;margin:0!important;padding:0!important;gap:8px!important}
  header.fixed + div:not(.lab) > div > p:first-child{font-size:clamp(36px,13vw,56px)!important;line-height:1.1!important;letter-spacing:.04em!important;text-align:center!important}
  header.fixed + div:not(.lab) > div > p:nth-child(2){font-size:20px!important;line-height:1.4!important;text-align:center!important}
}
@media (max-width:820px){
  /* トップページ：最初の大きな画面（PCでは写真の上に文字が重なる） */
  .lab>section:first-child{display:block!important;position:relative!important;width:100%!important;height:auto!important;padding:84px 12px 12px!important;box-sizing:border-box!important}
  .lab>section:first-child>div{position:relative!important;display:block!important;width:100%!important;height:min(72vh,560px)!important;min-height:420px!important;border-radius:24px!important;overflow:hidden!important;margin:0!important}
  .lab>section:first-child img{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:62% 30%!important}
  .lab>section:first-child>div>div{position:absolute!important;left:22px!important;right:22px!important;bottom:36px!important;top:auto!important;width:auto!important;height:auto!important;display:flex!important;flex-direction:column!important;gap:14px!important;transform:none!important;margin:0!important}
  .lab>section:first-child p.text:first-child{font-size:clamp(34px,11vw,48px)!important;line-height:1.12!important;letter-spacing:.02em!important;text-align:left!important}
  .lab>section:first-child p.text:nth-child(2){font-size:15px!important;line-height:1.5!important;letter-spacing:.2em!important;text-align:left!important}
}
@media (max-width:820px){
  .lab>section:first-child>div>div>p{margin:0!important;padding:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow-wrap:normal!important;word-break:keep-all!important}
  .lab>section:first-child p.text:first-child{font-size:min(8.2vw,40px)!important;letter-spacing:.02em!important}
}
@media (max-width:820px){
  .lab>section:first-child>div>div{padding:0!important;align-items:flex-start!important;justify-content:flex-end!important;box-sizing:border-box!important}
}
@media (max-width:820px){
  /* 導入企業ロゴ：見出しを上に出し、ロゴを大きく（ロゴの格子は画面より広く作って中央を見せる） */
  .lab .biz-box>.lat{margin-top:56px!important;padding-top:8px!important;padding-bottom:56px!important}
  .lab .lat .ct,.lab .biz-box>.lat .wrap>.ct{position:relative!important;top:auto!important;margin:0 0 28px!important;padding:0 4px!important;width:auto!important;z-index:5}
  .lab .biz-box>.lat .stag-mask{margin-top:0!important;padding-top:0!important;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%)!important;mask-image:linear-gradient(to right,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%)!important}
  .lab .stag{width:240vw!important;max-width:none!important;margin-left:calc(50% - 120vw)!important}
}
@media (max-width:820px){
  /* 役員紹介：2列（5人なので最後は1枚） */
  .off-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .off-card{border-radius:14px!important}
  .off-cap b{font-size:15px!important;letter-spacing:.08em!important}
  .off-cap i{font-size:11px!important}
}
@media (max-width:820px){
  /* 代表挨拶・役員紹介：左右の余白を小さくして本文の幅を確保 */
  .msg-list,.rep-list,.off-wrap{width:calc(100vw - 40px)!important}
  .rep-list{padding:26px 18px!important;border-radius:18px!important}
}
@media (max-width:820px){
  /* お問い合わせフォーム：項目名を幅いっぱいにし、ラジオの選択肢を読みやすく */
  form[name="お問い合わせ"]>label>div:first-child{width:100%!important;max-width:100%!important;justify-content:flex-start!important}
  form[name="お問い合わせ"]>label>div:nth-child(2){width:100%!important;max-width:100%!important}
  form[name="お問い合わせ"]>label>div:first-child p{left:0!important;white-space:normal}
  form[name="お問い合わせ"] input[type="radio"],form[name="お問い合わせ"] input[type="checkbox"]{width:18px!important;height:18px!important;flex:none}
  form[name="お問い合わせ"] input[type="text"],form[name="お問い合わせ"] input[type="email"],form[name="お問い合わせ"] input[type="tel"],form[name="お問い合わせ"] input[type="url"],form[name="お問い合わせ"] textarea{font-size:16px!important}
  form[name="お問い合わせ"] button[type="submit"]{width:100%!important}
  .m-note{display:block!important;margin:-6px 0 18px;font-size:12px;line-height:1.7;color:#6b7280;font-family:"Inter","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif}
}
.m-note{display:none}
@media (max-width:1024px){
  /* タブレット幅：お問い合わせフォームの項目を縦並びにして、はみ出さないようにする */
  form[name="お問い合わせ"]>label{flex-direction:column!important;align-items:stretch!important}
  form[name="お問い合わせ"]>label>div:first-child{width:100%!important;max-width:100%!important}
  form[name="お問い合わせ"]>label>div:nth-child(2),form[name="お問い合わせ"]>label>input,form[name="お問い合わせ"]>label>textarea{width:100%!important;max-width:100%!important;box-sizing:border-box}
}
@media (max-width:1000px){
  /* 一番上にいるときは、PCと同じく画面いっぱいの平らなバー。スクロールすると丸い帯になる */
  header.fixed.at-top,html.hdr-first header.fixed{padding-left:0!important;padding-right:0!important;padding-top:0!important}
  header.fixed.at-top>div,html.hdr-first header.fixed>div{border-radius:0!important;box-shadow:none!important;transform:none!important;margin:0!important;height:64px!important;min-height:64px!important;padding-left:20px!important;padding-right:14px!important}
}
@media (max-width:1000px){
  header.fixed.at-top>div,html.hdr-first header.fixed>div{transform:translateY(-16px)!important}
}
@media (max-width:820px){
  /* ニュース：横にスワイプして見る */
  .lab .ncards{display:flex!important;overflow-x:auto;gap:14px;margin:0 -20px!important;padding:0 20px 14px!important;width:auto!important;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .lab .ncards::-webkit-scrollbar{display:none}
  .lab .ncard{flex:0 0 78%!important;scroll-snap-align:start;min-width:0}
  /* 事業内容のカード：左右いっぱいに広げ、画像を表示する */
  .lab .card-pin{margin-left:-20px!important;margin-right:-20px!important;width:auto!important}
  .lab .biz-box{margin:0!important;border-radius:0!important;padding-left:20px!important;padding-right:20px!important}
  .lab .svc-panel{display:block!important;position:relative!important;width:100%!important;height:min(72vw,300px)!important;border-radius:16px;overflow:hidden;margin-top:8px}
  .lab .svc-img{inset:0!important;width:100%!important;height:100%!important}
  .lab .svc-img img{width:100%!important;height:100%!important;object-fit:cover!important}
  /* CONTACT：説明文のサイズを小さく、きれいに折り返す */
  .lab .c-photo .card p.l{font-size:13px!important;line-height:1.9!important;text-wrap:balance}
}
@media (max-width:1000px){
  /* ハンバーガーメニュー：ふわっと開き、項目が順に現れる */
  .m-menu{display:flex!important;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-14px);transition:opacity .35s ease,transform .5s cubic-bezier(.2,.7,.2,1),visibility 0s linear .5s}
  html.m-open .m-menu{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition:opacity .35s ease,transform .5s cubic-bezier(.2,.7,.2,1),visibility 0s}
  .m-menu>a,.m-menu>.m-close,.m-menu>.m-logo{opacity:0;transform:translateY(16px);transition:opacity .25s ease,transform .25s ease}
  html.m-open .m-menu>a,html.m-open .m-menu>.m-close,html.m-open .m-menu>.m-logo{opacity:1;transform:none;transition:opacity .5s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
  html.m-open .m-menu>a:nth-of-type(1){transition-delay:.10s}
  html.m-open .m-menu>a:nth-of-type(2){transition-delay:.16s}
  html.m-open .m-menu>a:nth-of-type(3){transition-delay:.22s}
  html.m-open .m-menu>a:nth-of-type(4){transition-delay:.28s}
  html.m-open .m-menu>a:nth-of-type(5){transition-delay:.34s}
  html.m-open .m-menu>a:nth-of-type(6){transition-delay:.42s}
  .m-menu a .m-ext{display:inline-flex;opacity:.75;font-size:0}
  @media (prefers-reduced-motion:reduce){.m-menu,.m-menu>a,.m-menu>.m-close,.m-menu>.m-logo{transition:none!important;transform:none!important}}
}
@media (max-width:820px){
  .lab .biz-box{width:100%!important;max-width:none!important}
}
@media (max-width:1000px){
  /* メニューは上からせり出してくる（閉じるときは上へ戻る） */
  .m-menu{opacity:1!important;transform:translateY(-102%)!important;border-radius:0 0 28px 28px;box-shadow:0 18px 40px rgba(0,0,0,.35);transition:transform .6s cubic-bezier(.22,.8,.2,1),visibility 0s linear .6s!important;bottom:auto!important;min-height:min(100%,640px)}
  html.m-open .m-menu{transform:translateY(0)!important;transition:transform .6s cubic-bezier(.22,.8,.2,1),visibility 0s!important}
  .m-menu{padding-bottom:36px!important}
}
/* 導入企業ロゴ（スマホ）：格子をやめ、ロゴが左へ流れる3段にする */
@keyframes stagm2{from{left:0}to{left:calc(var(--n)*-30cqw)}}
@media (max-width:820px){
  .lab .stag{width:100%!important;max-width:none!important;margin:0!important}
  .lab .stag-in::before{display:none!important}
  .lab .stag-in{display:flex!important;flex-direction:column;gap:10px;padding-bottom:0!important}
  .lab .stag .r{height:15cqw!important;flex:none}
  .lab .stag .r:nth-child(2){order:-1}
  .lab .stag .r:nth-child(n+10){display:none!important}
  .lab .stag .lg{width:30cqw!important}
  .lab .stag .trk{animation-name:stagm2!important;padding-left:calc(50vw - 50cqw)!important}
  .lab .stag .r:nth-child(even) .trk{padding-left:calc(50vw - 50cqw + 15cqw)!important}
  .lab .stag .lg img{padding:1cqw 5cqw!important}
  .lab .biz-box>.lat{padding-bottom:40px!important}
}
.m-svc{display:none}
@media (max-width:820px){
  /* 事業内容：画像＋文字の3行 */
  .lab .svc-list{display:none!important}
  .lab .svc-panel{display:none!important}
  .m-svc{display:grid;gap:26px;margin-top:22px}
  .m-svc-item{display:block}
  .m-svc-img{width:100%;aspect-ratio:16/10;border-radius:16px;overflow:hidden;background:#e5e7eb}
  .m-svc-img img{width:100%;height:100%;object-fit:cover;display:block}
  .m-svc-n{margin:12px 0 0;font-size:12px;font-weight:700;letter-spacing:.14em;color:#c8324f;font-family:"Inter",sans-serif}
  .m-svc-t{margin:4px 0 0;font-size:22px;font-weight:700;line-height:1.4;letter-spacing:.04em;color:#111720;font-family:"Inter","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif}
}
@media (max-width:820px){
  /* ニュースのカードを小さく（次のカードが半分ほど見える） */
  .lab .ncard{flex:0 0 58%!important}
  .lab .ncards{gap:12px!important}
  .lab .ncard .meta{font-size:12px!important}
  .lab .ncard p.empty{font-size:12px!important}
}
@media (max-width:820px){
  .lab .ncards{scroll-padding-left:20px;scroll-padding-right:20px}
}
@media (max-width:820px){
  /* セクション見出し（NEWS／OUR SERVICES／OUR CLIENTS／CONTACT）：スマホでは小さく */
  .lab .ct .en{font-size:32px!important;letter-spacing:.04em!important;line-height:1.15!important}
  .lab .ct .jp{font-size:16px!important;letter-spacing:.1em!important}
  .lab .ct .sub{font-size:13px!important;line-height:1.7!important}
}
@media (max-width:820px){
  /* 事業内容：画像（左）＋文字（右）の横並び×3行 */
  .m-svc{gap:16px!important;margin-top:18px!important}
  .m-svc-item{display:grid!important;grid-template-columns:44% minmax(0,1fr);column-gap:16px;align-items:center}
  .m-svc-img{grid-row:1/3;aspect-ratio:4/3!important;border-radius:14px!important}
  .m-svc-n{margin:0!important;align-self:end;grid-column:2;grid-row:1}
  .m-svc-t{margin:4px 0 0!important;font-size:18px!important;line-height:1.45!important;align-self:start;grid-column:2;grid-row:2}
}
/* 導入企業ロゴ（スマホ）：格子を復活し、ロゴを一回り小さく。セル幅24cqw・行高12cqw（格子と段の位相をそろえる） */
@keyframes stagm2{from{left:0}to{left:calc(var(--n)*-24cqw)}}
@keyframes stagl2{from{background-position-x:calc(50vw - 50cqw),calc(50vw - 50cqw)}to{background-position-x:calc(50vw - 50cqw - 264cqw),calc(50vw - 50cqw - 264cqw)}}
@media (max-width:820px){
  .lab .stag-in{gap:0!important}
  .lab .stag-in::before{display:block!important;background-size:24cqw 24cqw!important;background-position-y:calc(60px + 6cqw)!important;animation:stagl2 50s linear infinite!important;-webkit-mask-image:linear-gradient(transparent,#000 36px,#000 calc(100% - 36px),transparent)!important;mask-image:linear-gradient(transparent,#000 36px,#000 calc(100% - 36px),transparent)!important}
  .lab .stag .r{height:12cqw!important}
  .lab .stag .lg{width:24cqw!important}
  .lab .stag .trk{padding-left:calc(50vw - 50cqw)!important}
  .lab .stag .r:nth-child(even) .trk{padding-left:calc(50vw - 50cqw)!important}
  .lab .stag .r:nth-child(1) .trk{padding-left:calc(50vw - 50cqw + 12cqw)!important}
  .lab .stag .lg img{padding:.8cqw 4.5cqw!important}
}
@media (max-width:820px) and (prefers-reduced-motion:reduce){.lab .stag-in::before{animation:none!important}}
@media (max-width:820px){
  /* CONTACT：カードの上下の余白を左右（40px）と同じにする */
  .lab .c-photo{position:relative!important}
  .lab .c-photo .bg{position:absolute!important;left:0;top:0;right:0;bottom:0;height:auto!important}
  .lab .c-photo .card{position:relative!important;left:auto!important;top:auto!important;transform:none!important;margin:40px auto!important}
}
@media (max-width:820px){
  /* CONTACTの説明文：「ご／相談」のように言葉の途中で折り返さない（折り返しは<wbr>の位置だけ） */
  .lab .c-photo .card p.l{word-break:keep-all!important;overflow-wrap:break-word;text-wrap:balance}
}
@media (max-width:820px){
  /* CONTACT：上の白い余白は40pxのまま、下は0（濃紺の背景はセクション下端まで届くため、下に余白があるとカード下の余白が上より広くなる）。上下ともカードの余白は64px */
  .lab .c-photo{padding:40px 0 0!important}
  .lab .c-photo .card{margin:0 auto!important}
}
@media (max-width:820px){
  /* トップのヒーロー：スマホでは一回り小さく */
  .lab>section:first-child{padding:80px 12px 8px!important}
  .lab>section:first-child>div{height:min(56vh,440px)!important;min-height:340px!important;border-radius:22px!important}
  .lab>section:first-child>div>div{left:20px!important;right:20px!important;bottom:28px!important;gap:10px!important}
  .lab>section:first-child p.text:first-child{font-size:min(7.4vw,30px)!important}
  .lab>section:first-child p.text:nth-child(2){font-size:13px!important;letter-spacing:.18em!important}
}
.m-menu .m-logo{display:none!important}

@media (max-width:820px){
  /* ロゴは6段。段が半セルずつずれる並び（見た目の2・4・6段目をずらす）に格子をそろえる */
  .lab .stag .r:nth-child(1) .trk,.lab .stag .r:nth-child(4) .trk,.lab .stag .r:nth-child(6) .trk{padding-left:calc(50vw - 50cqw + 12cqw)!important}
  .lab .stag .r:nth-child(3) .trk,.lab .stag .r:nth-child(5) .trk{padding-left:calc(50vw - 50cqw)!important}
}
@media (max-width:820px){
  /* 事業内容：2行目だけ左右を逆に（文字が左・画像が右） */
  .m-svc-item:nth-child(2){grid-template-columns:minmax(0,1fr) 44%!important}
  .m-svc-item:nth-child(2) .m-svc-img{grid-column:2!important}
  .m-svc-item:nth-child(2) .m-svc-n,.m-svc-item:nth-child(2) .m-svc-t{grid-column:1!important}
}

@media (max-width:820px){
  /* ロゴは9段。見た目の2・4・6・8段目（元の1・4・6・8番目）を半セルずらす */
  .lab .stag .r:nth-child(1) .trk,.lab .stag .r:nth-child(4) .trk,.lab .stag .r:nth-child(6) .trk,.lab .stag .r:nth-child(8) .trk{padding-left:calc(50vw - 50cqw + 12cqw)!important}
  .lab .stag .r:nth-child(2) .trk,.lab .stag .r:nth-child(3) .trk,.lab .stag .r:nth-child(5) .trk,.lab .stag .r:nth-child(7) .trk,.lab .stag .r:nth-child(9) .trk{padding-left:calc(50vw - 50cqw)!important}
}
.lab .stag .r.m-r{display:none}
@media (max-width:820px){
  /* ロゴは12段（スマホ用に組み直した段だけ表示。PC用の10段は隠す） */
  .lab .stag .r:not(.m-r){display:none!important}
  .lab .stag .r.m-r{display:block!important;order:0!important}
  .lab .stag .r.m-r .trk{padding-left:calc(50vw - 50cqw)!important}
  .lab .stag .r.m-r.m-r2 .trk{padding-left:calc(50vw - 50cqw + 12cqw)!important}
}
@media (max-width:820px){
  /* 事業内容・導入企業：白い角丸のカードに入れる（背景はうすいグレーのまま） */
  .m-svc{gap:14px!important}
  .m-svc-item{background:#fff!important;border-radius:24px!important;padding:14px!important;box-sizing:border-box;box-shadow:0 1px 2px rgba(17,23,32,.04)}
  .m-svc-img{border-radius:16px!important}
  .m-svc-t{padding-right:6px}
  .lab .biz-box>.lat .stag-mask{background:#fff!important;border-radius:24px!important;overflow:hidden!important;padding:14px 0!important;margin-top:0!important;-webkit-mask-image:none!important;mask-image:none!important;box-shadow:0 1px 2px rgba(17,23,32,.04)}
}
@media (max-width:820px){
  /* 導入企業はカードに入れない（事業内容だけカード）。ロゴと格子はグレーの背景の上に直接置き、左右の端はぼかす */
  .lab .biz-box>.lat .stag-mask{background:transparent!important;border-radius:0!important;overflow:visible!important;padding:0!important;box-shadow:none!important;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%)!important;mask-image:linear-gradient(to right,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%)!important}
}
@media (max-width:820px){
  /* ニュース：横スクロールをやめて、縦に並べる */
  .lab .ncards{display:grid!important;grid-template-columns:minmax(0,1fr)!important;overflow:visible!important;gap:22px!important;margin:0!important;padding:0!important;width:auto!important;scroll-snap-type:none!important}
  .lab .ncard{flex:none!important;width:auto!important}
  .lab .ncard .th{height:auto!important;aspect-ratio:16/9}
}
@media (max-width:820px){
  /* 事業内容・導入企業の見出しも、NEWSと同じく左右中央にそろえる */
  .lab .biz-box>.ct,.lab .biz-box>.lat .wrap>.ct,.lab .biz-box>.lat .ct{text-align:center!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;width:100%!important;max-width:none!important}
  .lab .biz-box .ct .en,.lab .biz-box .ct .jp,.lab .biz-box .ct .sub{text-align:center!important;justify-content:center!important;padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important}
  .lab .biz-box .ct .jp::before{display:none!important}
}
/* ===== ハンバーガーメニュー：ページが左へ動き、右からメニューが出る（押し出し型） ===== */
.m-scrim{display:none}
@media (max-width:1000px){
  /* ページ本体を左へずらす（位置指定の left を使う。transformを使うと固定ヘッダーが崩れるため） */
  .StudioCanvas{position:relative!important;left:0;transition:left .55s cubic-bezier(.22,.8,.2,1)}
  html.m-open .StudioCanvas{left:-68vw}
  header.fixed{transition:padding .4s cubic-bezier(.2,.7,.2,1),transform .55s cubic-bezier(.22,.8,.2,1)!important}
  html.m-open header.fixed{transform:translateX(-68vw)!important}
  html.m-open{overflow:hidden}
  html.m-open .m-scrim{display:block;position:fixed;top:0;left:0;bottom:0;width:32vw;z-index:2147482400}
  /* メニューのパネル（右からスライド） */
  .m-menu{inset:auto!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:68vw!important;height:100%!important;min-height:0!important;border-radius:0!important;box-shadow:none!important;background:#f0f0ef!important;color:#111720!important;padding:0 20px 32px!important;transform:translateX(100%)!important;opacity:1!important;transition:transform .55s cubic-bezier(.22,.8,.2,1),visibility 0s linear .55s!important}
  html.m-open .m-menu{transform:translateX(0)!important;transition:transform .55s cubic-bezier(.22,.8,.2,1),visibility 0s!important}
  .m-menu .m-title{text-align:center;margin:84px 0 34px;font-family:"Inter","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif}
  .m-menu .m-title .m-title-en{margin:0;font-size:32px;font-weight:700;letter-spacing:.04em;line-height:1.15;color:#2f3338}
  .m-menu .m-title .m-title-jp{margin:10px 0 0;font-size:16px;font-weight:700;letter-spacing:.1em;color:#111720}
  .m-menu>a{color:#111720!important;border-bottom:1px solid rgba(17,23,32,.14)!important;font-size:15px!important;letter-spacing:.04em!important;padding:20px 4px!important}
  .m-menu>a:not(.m-contact)::after{content:"";width:8px;height:8px;border-top:2px solid #111720;border-right:2px solid #111720;transform:rotate(45deg);margin-right:4px;flex:none}
  .m-menu>a .m-ext{color:#111720;opacity:.8;margin-left:auto;margin-right:10px}
  .m-menu>a.m-contact{background:#111720!important;color:#fff!important;border:0!important;margin-top:26px;justify-content:center!important}
  .m-menu>a.m-contact::after{display:none}
  .m-menu>.m-close,.m-menu>.m-logo{display:none!important}
}
@media (prefers-reduced-motion:reduce){.StudioCanvas,header.fixed,.m-menu{transition:none!important}}
/* 導入企業の見出しの上に余白 */
@media (max-width:820px){
  .lab .biz-box>.lat{padding-top:56px!important}
}
@media (max-width:820px){
  /* 事業内容：番号（01・02・03）はなし。事業名を画像の高さの中央に */
  .m-svc-n{display:none!important}
  .m-svc-t{grid-row:1/3!important;align-self:center!important;margin:0!important}
}

/* ===== 2026-11-17 まとめて反映（見出し・メニュー・導入企業） ===== */
@media (max-width:820px){
  /* 見出し（NEWS／OUR SERVICES／OUR CLIENTS）：英字と日本語の間に短い棒。文字は一回り小さく */
  .lab .rv .ct,.lab .biz-box .ct{display:flex!important;flex-direction:column;align-items:center}
  .lab .rv .ct .en,.lab .biz-box .ct .en{order:1;font-size:28px!important}
  .lab .rv .ct .rule,.lab .biz-box .ct .rule{order:2;display:block!important;width:40px!important;height:2px!important;min-height:2px;background:#111720!important;margin:14px auto!important;border:0!important;opacity:1!important;transform:none!important}
  .lab .rv .ct .jp,.lab .biz-box .ct .jp{order:3;font-size:15px!important;margin-top:0!important}
  .lab .biz-box .ct .sub{order:4}
}
@media (max-width:1000px){
  /* メニュー：紺の背景・白い文字。矢印と「Menu／メニュー」の見出しは出さない */
  .m-menu{background:#111720!important;color:#fff!important;padding-top:96px!important}
  .m-menu>a{color:#fff!important;border-bottom:1px solid rgba(255,255,255,.2)!important}
  .m-menu>a::after{display:none!important;content:none!important}
  .m-menu>a .m-ext{color:#fff!important}
  .m-menu>a.m-contact{background:#fff!important;color:#111720!important}
  .m-menu .m-title{display:none!important}
}
@media (max-width:820px){
  /* 導入企業：格子とロゴの上端・下端、左右の端をぼかす */
  .lab .biz-box>.lat .stag-mask{
    -webkit-mask-image:linear-gradient(to right,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%),linear-gradient(to bottom,transparent 0,#000 64px,#000 calc(100% - 64px),transparent 100%)!important;
    mask-image:linear-gradient(to right,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%),linear-gradient(to bottom,transparent 0,#000 64px,#000 calc(100% - 64px),transparent 100%)!important;
    -webkit-mask-composite:source-in!important;mask-composite:intersect!important}
}
/* 導入企業：格子をPC版と同じ「少し縦に潰れたひし形」に（セル幅26cqw・段の高さ8.125cqw＝26÷3.2） */
@keyframes stagm2{from{left:0}to{left:calc(var(--n)*-26cqw)}}
@keyframes stagl2{from{background-position-x:calc(50vw - 50cqw),calc(50vw - 50cqw)}to{background-position-x:calc(50vw - 50cqw - 286cqw),calc(50vw - 50cqw - 286cqw)}}
@media (max-width:820px){
  .lab .stag-in::before{background-size:26cqw 16.25cqw!important;background-position-y:calc(60px + 4.0625cqw)!important}
  .lab .stag .r{height:8.125cqw!important}
  .lab .stag .lg{width:26cqw!important}
  .lab .stag .r.m-r .trk{padding-left:calc(50vw - 50cqw)!important}
  .lab .stag .r.m-r.m-r2 .trk{padding-left:calc(50vw - 50cqw + 13cqw)!important}
  .lab .stag .lg img{padding:.5cqw 4cqw!important}
}

/* 事業カードの見出し: 文字間隔をPC版（.08em）にそろえる */
@media (max-width:820px){
  .m-svc-t{letter-spacing:.08em!important}
}

/* パンくず（ホーム＞ページ名）: スマホ幅では文字・アイコン・上下の余白を小さくする */
@media (max-width:820px){
  div:has(> a.icon[href="/"] ~ i.icon ~ p.text){padding-top:14px!important;padding-bottom:14px!important;gap:6px!important}
  div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > a.icon{font-size:18px!important}
  div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > i.icon{font-size:20px!important}
  div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > p.text{font-size:13px!important;line-height:1.4!important}
}

/* パンくず: 階層が2つのページ（company/*）の中央の項目（リンク内の文字）も、ほかと同じ大きさにする */
@media (max-width:820px){
  div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > a.bc-link p.text{font-size:13px!important;line-height:1.4!important}
}
/* 事業カードの見出し: 文字間隔をPC版（.15em）にそろえ、1文字だけ次の行に落ちないようにそろえて折り返す */
@media (max-width:820px){
  .m-svc-t{letter-spacing:.15em!important;text-wrap:balance}
}

/* ヘッダーが画面の上端にくっついているとき（at-top）は、背景を白にする（PC・スマホ共通。スクロール後の丸い帯は変えない） */
header.fixed.at-top > div.sd{background:#fff!important}

/* ヘッダー: 勢いよくスクロールしたときの描画落ちを減らす（専用の描画面に載せる／上端の不透明な白ではぼかしを使わない） */
header.fixed{-webkit-transform:translateZ(0);transform:translateZ(0)}
header.fixed.at-top > div.sd{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* サービスのカード（スマホ幅）: クライアントのカードと同じ、左右いっぱいの幅にそろえる */
@media (max-width:820px){
  .lab .svcp .biz-box{margin-left:-20px!important;margin-right:-20px!important;width:calc(100% + 40px)!important}
}

/* 事業カード（スマホ幅）: 事業名の下にサービス名を出す。事業名とサービス名を1つのまとまりにして、画像の上下中央にそろえる */
@media (max-width:820px){
  .m-svc-tx{grid-column:2;grid-row:1/3;align-self:center;min-width:0}
  .m-svc-item:nth-child(2) .m-svc-tx{grid-column:1!important}
  .m-svc-s{margin:6px 0 0;padding-right:6px;font-size:11.5px;font-weight:500;line-height:1.6;letter-spacing:.04em;color:#6b7280;word-break:keep-all;overflow-wrap:anywhere}
}

/* クライアントのカード（スマホ幅）: 固定の仕組み（.card-pin）をやめたため、左右いっぱいの幅は、カード自身で指定する */
@media (max-width:820px){
  .lab #clients{margin-left:-20px!important;margin-right:-20px!important;width:calc(100% + 40px)!important}
}
/* 人物カードの詳細で、肩書きがないときは、肩書きの行を出さない */
.om-role:empty{display:none}

/* パンくずリスト（サブページ）: 黒帯の中の下方に重ねる。文字・アイコンは、黒帯に合わせて明るくする。下の内容の位置は変えない */
div:has(> a.icon[href="/"] ~ i.icon ~ p.text){position:relative;z-index:2;margin-top:-72px!important;margin-bottom:8px!important;background:transparent!important}
div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > a.icon,
div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > i.icon,
div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > p.text,
div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > a.bc-link p.text{color:#9aa0a6!important}
div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > p.text:last-child{color:#9aa0a6!important}
/* リンク（ホームのアイコン・COMPANYなど）は、ホバーで白（黒い帯の上で黒くならないように） */
div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > a.icon.link:hover,
div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > a.bc-link:hover p.text{color:#fff!important}
@media (max-width:820px){
  div:has(> a.icon[href="/"] ~ i.icon ~ p.text){margin-top:-56px!important}
}

/* サブページの見出し: パンくずが黒帯の下方に入った分、上へ動かし、ヘッダーとパンくずの真ん中にそろえる（PC 36px・スマホ 24px。translateで動かすので、帯の高さ・ほかの位置は変わらない） */
header.fixed + div:not(.lab) > div{translate:0 -36px}
@media (max-width:820px){
  header.fixed + div:not(.lab) > div{translate:0 -24px}
}

/* 事業カード（スマホ幅）: サービス名も、1つずつ1行で縦に並べる */
.m-svc-s span{display:block;line-height:inherit}

/* フッター（濃紺のカード）: ニュース・事業内容・会社概要と、SNSアイコンは、ホバーでグレーにする */
footer.zf .card .nav a,footer.zf .card .zf-sns a{transition:color .2s ease}
footer.zf .card .nav a:hover,footer.zf .card .zf-sns a:hover{color:#9aa0a6!important}

/* 導入企業（スマホ幅）: 白背景のロゴ（追加7社）を背景になじませるため、ぼかしの枠の中にカードと同じ灰色を敷く */
@media (max-width:820px){.lab .biz-box>.lat .stag-mask{background:#f3f4f6!important}}

/* パンくず: 今いるページ（最後の項目）は白・太字にして、リンクのグレーと区別する */
div:has(> a.icon[href="/"] ~ i.icon ~ p.text) > p.text:last-child{color:#fff!important;font-weight:700!important}

/* フッターのSNSアイコン: ホバーで上へ動く動きをなくす（色の変化だけ残す） */
footer.zf .zf-sns a:hover{transform:none!important}

/* フッターの紺のブロックの最大幅を 1280px → 1100px に（枠の最大幅 1180px − 左右の余白 40px×2）。PC幅のみ（狭い画面は従来どおり「画面幅 − 余白」） */
footer.zf .wrap{max-width:1080px!important}

/* フッターの背景色（紺のブロックの外側）: 翔大さん添付の色（#f7f7f8。2026-11-17 翔大さんが「フッターはこれでいい」と確認） */
footer.zf{background:#f7f7f8!important}

/* 導入企業（スマホ幅）: 格子の線を、各段のロゴと同じ要素（.trk）の中に描く（PC幅と同じ方式）。線とロゴが同じ動きになるので、ダイヤの中に線が入り込まない */
@media (max-width:820px){
  .lab .stag-in::before{display:none!important}
  .lab .stag .r.m-r .trk{position:relative}
  .lab .stag .r.m-r .trk::before{content:"";position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 50L25 0M0 50L25 100M100 50L75 0M100 50L75 100' fill='none' stroke='rgba(150,155,165,.09)' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") repeat-x;background-size:26cqw 100%;background-position:calc(50vw - 50cqw) 0}
  .lab .stag .r.m-r.m-r2 .trk::before{background-position:calc(50vw - 50cqw + 13cqw) 0}
}

/* スマホのヒーロー画像: 縦長 → 横長（4:3） */
@media (max-width:820px){
  .lab>section:first-child>div{height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  .lab>section:first-child>div>div>p{height:auto!important;min-height:0!important}
}

/* フッターのリンク（スマホ幅）: 「ニュース・事業内容・会社概要」の3つで1行、その下に「学生向けサイト」だけで1行 */
@media (max-width:768px){
  footer.zf .nav{gap:14px 24px}
  footer.zf .nav>a:first-child{order:2;flex:0 0 100%;text-align:center}
}

/* スマホのニュース: 縦並び → 横カルーセル（1枚目を大きく、2枚目を右にのぞかせる） */
@media (max-width:820px){
  .lab .ncards{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;gap:14px!important;margin:0 -20px!important;padding:0 20px 8px!important;width:auto!important;scroll-snap-type:x mandatory!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-padding-left:20px}
  .lab .ncards::-webkit-scrollbar{display:none}
  .lab .ncards>.ncard{flex:0 0 78%!important;width:auto!important;min-width:0;scroll-snap-align:start}
}

/* フォント（OSごと）: 英数字は Inter、日本語は Macではヒラギノ・Windowsなどでは Noto Sans JP。指定のない文字（会社概要の項目など）も同じ並びにする */
.render-canvas{font-family:Inter,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif}
.render-canvas dt,.render-canvas dd{font-family:inherit!important}


/* ニュースのサムネの枠線: 細くて薄い線（1px・濃紺の12%）。記事ページの大きい画像、ニュース一覧、トップのカードの3か所 */
.news-thumb{box-sizing:border-box!important;border:1px solid rgba(17,23,32,.12)!important}
.nl-th{border:0!important}
.nl-th img{box-sizing:border-box!important;border:1px solid rgba(17,23,32,.12)!important}
.lab .ncard .th.pic{border:0!important}
.lab .ncard .th.pic img{box-sizing:border-box!important;border:1px solid rgba(17,23,32,.12)!important}

/* 記事ページの戻るボタン（2つ）: 「ニュース一覧へ戻る」（濃紺）と「トップへ戻る」（白地）。狭い画面では縦に並ぶ */
.news-back{display:flex!important;flex-wrap:wrap;justify-content:center;gap:12px}
.news-back a+a{background:#fff!important;color:#111720!important}
.news-back a+a:hover{background:#111720!important;color:#fff!important}

/* 記事ページの「トップへ戻る」: ページの一番上へ */
html:has(.news-back){scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html:has(.news-back){scroll-behavior:auto}}

/* スマホの導入企業ロゴ: 下へ流れる（横に流れる動きをやめて、縦に4社ずつ並べた列が、下へゆっくり流れ続ける。上下の端はうすくぼかす） */
@keyframes mvdown{from{transform:translateY(-66.6667%)}to{transform:translateY(-33.3333%)}}
@media (max-width:820px){
  .lab .stag-in::before{display:none!important}
  .lab .stag .m-vwin{position:relative;width:100vw;margin-left:0;height:112vw;overflow:hidden;-webkit-mask-image:linear-gradient(transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(transparent,#000 10%,#000 90%,transparent)}
  .lab .stag .m-vtrack{animation:mvdown 50s linear infinite;will-change:transform}
  .lab .stag .m-vscroll{will-change:transform}
  .lab .stag .m-vr{display:flex;justify-content:center;height:9vw}
  .lab .stag .m-vr2{padding-left:0}
  .lab .stag .m-vr .lg{flex:none!important;position:relative;display:block;width:18vw!important;height:5.625vw!important;margin-top:1.6875vw}
  .lab #clients .stag .m-vr .lg img{transform:scale(1.55)!important}
  /* object-view-box に対応したブラウザだけ、画像を枠の中央へ置く指定（index.html の同じ条件の指定と対）。対応していない端末（iPhone）で、画像が自分の幅の半分だけ左へずれていた */
  @supports (object-view-box:inset(0)){.lab #clients .stag .m-vr .lg img{transform:translate(-50%,-50%) scale(1.55)!important}}
}
@media (max-width:820px) and (prefers-reduced-motion:reduce){.lab .stag .m-vtrack{animation:none;transform:none}}

/* スマホの導入企業ロゴ: 左右のぼかしをなくす（上下の端のぼかしは残す） */
@media (max-width:820px){
  .lab .biz-box>.lat .stag-mask,.lab #clients .lat .stag-mask,.lab .lat .stag-mask{-webkit-mask-image:none!important;mask-image:none!important}
  .lab .lat .edge,.lab #clients .lat .edge{display:none!important}
}

/* スマホの導入企業ロゴ: 背景は白・横幅100%（グレーのカードをやめ、白い背景のまま、ロゴの列を画面の左右いっぱいに広げる） */
@media (max-width:820px){
  .lab #clients .lat{overflow:visible!important}
  .lab #clients .lat .stag-mask{background:#fff!important;width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important}
}

/* スマホのセクション見出しを大きく（NEWS・OUR SERVICES・OUR CLIENTS。英字 28〜32px → 画面幅の10.3%（最大44px）、日本語 15〜16px → 20px、導入企業の説明 13px → 14px） */
@media (max-width:820px){
  .lab section.rv .ct .en,.lab #clients .ct .en,.lab .svcp-head .svcp-h-en{font-size:min(10.3vw,44px)!important;line-height:1.15!important}
  .lab section.rv .ct .jp,.lab #clients .ct .jp,.lab .svcp-head .svcp-h-jp{font-size:20px!important}
  .lab #clients .ct .sub{font-size:14px!important}
}


/* スマホの導入企業ロゴ（作り直し）: 見出しと同じ枠の中に置き、5社の段と4社の段を交互に（千鳥）。PCと同じ、うすい斜めの線の網目を背後に戻す。大きさは枠の幅（cqw）基準なので、機種の画面幅の計算に左右されない */
@media (max-width:820px){
  .lab #clients .lat .stag-mask{display:none!important}
  .lab #clients .stag.m-stag{display:block;width:100%!important;max-width:none!important;margin:0!important}
  .lab #clients .stag.m-stag .stag-in{display:block!important;padding:0!important}
  .lab #clients .stag .m-vwin{position:relative;width:100%!important;margin:0!important;height:124cqw;overflow:hidden;-webkit-mask-image:linear-gradient(transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(transparent,#000 10%,#000 90%,transparent)}
  .lab #clients .stag .m-vtrack{background-image:linear-gradient(to top right,transparent calc(50% - .5px),rgba(150,155,165,.08) calc(50% - .5px),rgba(150,155,165,.08) calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(to bottom right,transparent calc(50% - .5px),rgba(150,155,165,.08) calc(50% - .5px),rgba(150,155,165,.08) calc(50% + .5px),transparent calc(50% + .5px));background-size:20cqw 20cqw;background-position:0 5cqw}
  .lab #clients .stag .m-vr{display:flex;justify-content:center;height:10cqw;width:100%}
  .lab #clients .stag .m-vr .lg{flex:none!important;position:relative;display:block;width:20cqw!important;height:6.25cqw!important;margin-top:1.875cqw}
  .lab #clients .stag .m-vr .lg .hit,.lab #clients .stag .m-vr .lg .dm{display:none!important}
}


/* スマホの導入企業ロゴ: 各ロゴの左位置を直接指定（中央寄せに頼らない。iPhoneで半マスずれたため） */
@media (max-width:820px){
  .lab #clients .stag .m-vr{position:relative!important;display:block!important;height:10cqw;width:100%}
  .lab #clients .stag .m-vr .lg{position:absolute!important;top:1.875cqw;margin:0!important}
}


/* スマホの導入企業ロゴ: 段・升目・ロゴの大きさを、整数ピクセル（--p。mobile.js が枠の幅から決める）基準にそろえる。網目の升目（p×p）と段の高さ（p/2）に端数が出ず、下の段ほどロゴが網目からずれる誤差がたまらない */
@media (max-width:820px){
  .lab #clients .stag .m-vwin{height:calc(var(--p,72px)*6)}
  .lab #clients .stag .m-vtrack{background-size:var(--p,72px) var(--p,72px);background-position:calc(50% - var(--p,90px)*1.5) calc(var(--p,90px)*.25)}
  .lab #clients .stag .m-vr{position:relative!important;display:block!important;width:calc(var(--p,90px)*4)!important;height:calc(var(--p,72px)/2)!important;margin:0 auto!important}
  .lab #clients .stag .m-vr .lg{position:absolute!important;width:var(--p,72px)!important;height:calc(var(--p,72px)*.3125)!important;top:calc(var(--p,72px)*.09375)!important;margin:0!important}
}


/* スマホの導入企業ロゴ（余白の切り取りに対応していない端末用）: 枠（.m-lgw）で余白を切り取り、PCと同じ面積・大きさにそろえる。拡大率1.55は枠にかける */
@media (max-width:820px){
  .lab #clients .stag .m-vr .lg .m-lgw{position:absolute;left:50%;top:50%;display:block;overflow:hidden;transform:translate(-50%,-50%) scale(1.55)}
  .lab #clients .stag .m-vr .lg .m-lgw img{position:absolute!important;display:block;max-width:none!important;padding:0!important;margin:0!important;transform:none!important;object-fit:contain;pointer-events:none}
}


/* ヘッダー: 重なり順を一番上（メニュー・モーダルの下）に上げる。もとは 5 で、同じ階層の事業カードのピンクの覆い（20）・CLIENTSの見出し（5・後ろ側）・PCの白いマスク（60）に、ヘッダーが隠れていた（全レスポンシブ） */
header.fixed{z-index:1000!important}

/* NEWS〜CLIENTS の背景を、一続きの本当に薄いグレーに（全レスポンシブ）。色は --band で調整 */
:root{--band:#f6f7f9}
.lab section.rv,.lab section.svcp,.lab section:has(> .wrap > #clients){background:var(--band)}
.lab section .biz-box#clients{background:transparent!important}
.lab section .biz-box#clients .stag-mask{background:transparent!important}
/* PCの事業内容: 窓の外を覆う白いマスクを、背景と同じ色に */
@media (min-width:821px){.lab .svcp .biz-box>.svcp-frame{box-shadow:0 0 0 300vmax var(--band)!important}}
/* 白い背景つきのロゴ画像が、薄いグレーの上で白い四角に見えないよう、白をなじませる */
.lab #clients .stag .lg img,.lab #clients .stag .m-lgw{mix-blend-mode:multiply}


/* トップのNEWS: 記事1枚ずつを白いカードタイルに（全レスポンシブ。薄いグレーの背景の上に、白いタイルが並ぶ）。サムネイル・タグ・日付・タイトルは、タイルの中に余白をとって入る */
.lab section.rv .ncards .ncard{box-sizing:border-box;background:#fff;border-radius:20px;padding:12px 12px 22px;box-shadow:0 1px 2px rgba(17,23,32,.05),0 4px 14px rgba(17,23,32,.04)}
.lab section.rv .ncards .ncard .meta,.lab section.rv .ncards .ncard .tt{padding-left:6px;padding-right:6px}
@media (max-width:820px){
  .lab section.rv .ncards .ncard{border-radius:18px;padding:10px 10px 18px}
  .lab section.rv .ncards .ncard .meta,.lab section.rv .ncards .ncard .tt{padding-left:4px;padding-right:4px}
  .lab section.rv .ncards{padding-top:4px!important;padding-bottom:12px!important}
}


/* トップのNEWSの記事カード: ホバー（スマホはタップ）で、サムネイルが白いタイルの中で小さく縮み、角が大きく丸くなる（参考サイトの録画から。縮み 約0.66倍・約0.35秒でなめらかに。録画の追加で調整する） */
.lab section.rv .ncards .ncard .th.pic img{transition:transform .38s cubic-bezier(.22,1,.36,1),border-radius .38s cubic-bezier(.22,1,.36,1),opacity .38s ease!important;will-change:transform}
.lab section.rv .ncards .ncard:hover .th.pic img{transform:scale(.66)!important;border-radius:36px!important;opacity:.9}
@media (prefers-reduced-motion:reduce){.lab section.rv .ncards .ncard .th.pic img{transition:none!important}}


/* トップのNEWSの記事カード（録画の測定で修正）: ホバーで、白いタイルごと約0.945倍に縮み、その中でサムネイルがさらに縮む（画面上の合計は約0.66倍）。縁でホバーが外れて行き来しないよう、見えない当たり判定（::after）を外へ広げる */
.lab section.rv .ncards .ncard{position:relative;transition:opacity .9s ease,transform .38s cubic-bezier(.22,1,.36,1)}
.lab section.rv .ncards .ncard::after{content:"";position:absolute;inset:-14px}
.lab section.rv .ncards .ncard:hover{transform:scale(.945)}
.lab section.rv .ncards .ncard:hover .th.pic img{transform:scale(.7)!important}
@media (prefers-reduced-motion:reduce){.lab section.rv .ncards .ncard{transition:opacity .9s ease}}


/* トップのNEWS: 「ニュース一覧へ」ボタンを、見出しの行の右端へ（PC幅 821px以上のみ。スマホ・タブレット幅は、記事カードの下に中央寄せのまま）。見出しの中央寄せはそのまま。ボタンは記事カードの右端にそろい、見出しの下の余白（40px）の半分だけ上へ寄せて、見出しの上下中央にそろえる */
@media (min-width:821px){
  .lab section.rv > .wrap{display:grid;grid-template-columns:minmax(0,1fr)}
  .lab section.rv > .wrap > .ct{grid-column:1;grid-row:1;justify-self:center}
  .lab section.rv > .wrap > .ncards{grid-column:1;grid-row:2;min-width:0}
  .lab section.rv > .wrap > .btns{grid-column:1;grid-row:1;align-self:center;width:100%;justify-content:flex-end!important;margin-top:0!important;margin-bottom:0!important;transform:translateY(-20px);pointer-events:none}
  .lab section.rv > .wrap > .btns .pill{pointer-events:auto}
}


/* スマホの導入企業ロゴ: 網目をPCと同じ「横長のひし形」（幅:高さ＝1.6:1）にして、その中にロゴを収める。升目は p×(2×段の高さ)、段の高さ＝p×0.3125（整数px --rh）。ロゴの大きさはPCの比率の1.15倍（全ロゴがひし形の内側に収まる範囲＝最大でも内側の約90%）。流れる速さは、段が低くなった分に合わせて遅くする */
@media (max-width:820px){
  .lab #clients .stag .m-vtrack{background-size:var(--p,90px) calc(var(--rh,28px)*2);background-position:calc(50% - var(--p,90px)*1.5) calc(var(--rh,28px)*.5);animation-duration:31.25s}
  .lab #clients .stag .m-vr{height:var(--rh,28px)!important}
  .lab #clients .stag .m-vr .lg{height:var(--rh,28px)!important;top:0!important}
  .lab #clients .stag .m-vr .lg img{transform:scale(1.15)!important}
  .lab #clients .stag .m-vr .lg .m-lgw{transform:translate(-50%,-50%) scale(1.15)}
  @supports (object-view-box:inset(0)){.lab #clients .stag .m-vr .lg img{transform:translate(-50%,-50%) scale(1.15)!important}}
}
/* ヘッダー: ページ全体の外枠（overflow:clip）の縦方向の切り取りをやめる。一番上で引っ張られたとき、外枠の上端がヘッダーごと下へ動いて、ヘッダーの上側が切れる／消える可能性への対策（横方向の切り取りは残す）。原因は未確定 */
/* 2026-11-19 夜 ヘッダーの微細動の修正: ヘッダー（position:fixed）の親にある overflow-x:clip が、iPhone(Safari)でスクロール中のヘッダーを±2pt揺らしていた（実機の切り分けで特定）。ヘッダーを包む枠の overflow は visible にする。横はみ出しは、ヘッダーの兄弟である本文側（.lab・サブページの本文）で切る */
.sd:has(> header.fixed),.StudioCanvas > .sd.appear,.StudioCanvas{overflow:visible!important}
header.fixed ~ div{overflow-x:clip}


/* スマホの導入企業ロゴ: 網目とロゴの窓を、画面の左右いっぱいに広げる（見出しの枠の左右の余白20pxぶんを負の余白で打ち消す。#clients の既存の指定と同じやり方）。1マスの幅は mobile.js が窓の幅から決めるので、その分ロゴも広がる */
@media (max-width:820px){
  .lab #clients .stag.m-stag{width:calc(100% + 40px)!important;margin:0 -20px!important}
}


/* 背景（全レスポンシブ）: SERVICES は白。NEWS と CLIENTS の薄いグレーは、上下の端で白へじんわり移り変わる（境界線をぼかす）。ぼかす幅は --fade で調整。CLIENTS の下端（CONTACTの濃紺との境）は、そのまま */
:root{--fade:clamp(70px,15vw,150px)}
.lab section.rv{background:linear-gradient(to bottom,#fff 0,#fbfbfc calc(var(--fade)*.25),#f8f8fa calc(var(--fade)*.55),var(--band) var(--fade),var(--band) calc(100% - var(--fade)),#f8f8fa calc(100% - var(--fade)*.55),#fbfbfc calc(100% - var(--fade)*.25),#fff 100%)}
.lab section.svcp{background:#fff}
.lab section:has(> .wrap > #clients){background:linear-gradient(to bottom,#fff 0,#fbfbfc calc(var(--fade)*.25),#f8f8fa calc(var(--fade)*.55),var(--band) var(--fade),var(--band) 100%)}
@media (min-width:821px){.lab .svcp .biz-box>.svcp-frame{box-shadow:0 0 0 300vmax #fff!important}}


/* トップのNEWS「ニュース一覧へ」: PC幅（821px以上）だけ、チップをやめて、文字の下を右へ走る矢印にする。矢印の右端が記事カードの右端にそろう。ホバーで矢じりが右へ走る。スマホ・タブレット幅（820px以下）は、元のチップ（黒い丸ボタン）のまま */
@media (min-width:821px){
.lab section.rv .btns .pill{position:relative;display:inline-flex!important;align-items:flex-start;background:transparent!important;color:#111720!important;border:0!important;border-radius:0!important;box-shadow:none!important;height:auto!important;min-height:0!important;padding:0 30px 12px 0!important;font-size:15px!important;font-weight:700!important;letter-spacing:.08em;line-height:1.4!important;text-decoration:none}
.lab section.rv .btns .pill::after{content:"";position:absolute;left:0;right:0;bottom:3px;height:1.5px;background:currentColor;transition:right .38s cubic-bezier(.22,1,.36,1)}
.lab section.rv .btns .pill::before{content:"";position:absolute;right:1.7px;bottom:-.25px;width:8px;height:8px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);transition:right .38s cubic-bezier(.22,1,.36,1)}
.lab section.rv .btns .pill:hover::after,.lab section.rv .btns .pill:focus-visible::after{right:-8px}
.lab section.rv .btns .pill:hover::before,.lab section.rv .btns .pill:focus-visible::before{right:-6.3px}
}
@media (min-width:821px) and (prefers-reduced-motion:reduce){.lab section.rv .btns .pill::after,.lab section.rv .btns .pill::before{transition:none}}


/* ヒーローの「可能性を最大化する」: 全部の文字が一斉に出る（index.html の hero-chars-js）。右上に、キランと光る星が出る。星は文字が出始めた0.5秒後にポンと現れ（0→1.35倍→1倍・少し回る）、その後は約6秒おきに、一瞬きらりと光る */
.lab>section:first-child .hero-spark{display:inline-block;width:.95em;height:.95em;margin-left:.5em;vertical-align:.45em;color:#111720;opacity:0;transform:scale(0) rotate(-35deg);transform-origin:50% 50%}
.lab>section:first-child .hero-spark svg{display:block;width:100%;height:100%;fill:currentColor}
.lab>section:first-child.hero-go .hero-spark{animation:heroSparkIn .9s cubic-bezier(.2,.9,.3,1.35) 2.25s both,heroSparkGlint 6s ease-in-out 4.2s infinite}
@keyframes heroSparkIn{0%{opacity:0;transform:scale(0) rotate(-35deg)}55%{opacity:1;transform:scale(1.35) rotate(8deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes heroSparkGlint{0%,84%,100%{transform:scale(1) rotate(0)}91%{transform:scale(1.45) rotate(45deg)}96%{transform:scale(.92) rotate(90deg)}}

/* スマホのロゴ: スクロールに連動させず、下へ一定の速さで流すだけ。速さは約2倍（31.25秒→15.6秒で1周の3分の1） */
@media (max-width:820px){
  .lab #clients .stag .m-vtrack{animation-duration:15.6s}
}


/* スマホのロゴ: 下へ一定の速さで流す。さらに約1.5倍速（15.6秒→10.4秒で1周の3分の1。約60px/秒→約90px/秒） */
@media (max-width:820px){
  .lab #clients .stag .m-vtrack{animation-duration:10.4s}
}


/* ヒーローの星: 「る」の右上に寄せる（文字の右に離れて置かず、最後の文字の右上の角に小さく重ねる） */
.lab>section:first-child .hero-spark{width:.72em;height:.72em;margin-left:.06em;vertical-align:.6em}


/* ヒーローの星: ずっと表示しない。文字が出始めた0.5秒後に、一度だけ「キラン」と出て（ポンと現れ、少し光って）、そのまま薄れて消える。繰り返し光る動きはなし */
.lab>section:first-child.hero-go .hero-spark{animation:heroSparkOnce 1.9s ease-out 2.25s both}
@keyframes heroSparkOnce{
  0%{opacity:0;transform:scale(0) rotate(-35deg)}
  25%{opacity:1;transform:scale(1.4) rotate(8deg)}
  40%{opacity:1;transform:scale(1) rotate(0)}
  62%{opacity:1;transform:scale(1.2) rotate(30deg)}
  100%{opacity:0;transform:scale(.4) rotate(90deg)}
}


/* ヒーローの星: 「る」の右上の角に（実測で、中ほどにあったので、さらに上へ0.45em・左へ0.26em寄せる） */
.lab>section:first-child .hero-spark{margin-left:-.2em;vertical-align:1.05em}


/* ヒーローの星（修正）: タグラインの段落は「横並びの箱（flex・中央揃え）」で、星もその1つなので、vertical-align は効かない。上端に揃えて、少し上へ出して、「る」の右上の角に置く */
.lab>section:first-child .hero-spark{align-self:flex-start;margin-top:-.32em;margin-left:-.2em;flex:none}


/* ヒーローの星: もう少し大きく（0.72em→0.95em）、もう少し右へ（左の余白 -0.2em→+0.1em）。大きくした分、上の位置も合わせ直して、中心は「る」の右上の角のまま（上の余白＝高さの半分ぶん上へ） */
.lab>section:first-child .hero-spark{width:.95em;height:.95em;margin-top:-.43em;margin-left:.1em}


/* ヒーローの星: 「キラン」は1回だけ。ポンと現れて一度だけ光り（0→1.4倍に弾んで→1倍に戻る）、そのまま薄れて消える。2回目の光りはなし */
@keyframes heroSparkOnce{
  0%{opacity:0;transform:scale(0) rotate(-35deg)}
  28%{opacity:1;transform:scale(1.4) rotate(8deg)}
  50%{opacity:1;transform:scale(1) rotate(0)}
  70%{opacity:1;transform:scale(1) rotate(0)}
  100%{opacity:0;transform:scale(.6) rotate(0)}
}


/* ヒーローの動画: もう少し左へ（右端からの距離を、PC幅 2.5%→6%、スマホ幅 2.5%→6.5% に。大きさ・上の位置は変えない） */
.lab>section:first-child .hero-video{right:6%}
@media (max-width:820px){
  .lab>section:first-child .hero-video{right:6.5%}
}

/* スマホ幅の各セクション見出し: 英字を小さなラベル、日本語を大きく（線なし・色はそのまま） */
@media (max-width:820px){
  html .lab .ct .en,html .lab section.rv .ct .en,html .lab #clients .ct .en,html .lab .svcp-head .svcp-h-en{font-size:18px!important;font-weight:700!important;letter-spacing:.1em!important;line-height:1.4!important;margin:0!important}
  html .lab .ct .jp,html .lab section.rv .ct .jp,html .lab #clients .ct .jp,html .lab .svcp-head .svcp-h-jp{font-size:36px!important;font-weight:700!important;letter-spacing:.04em!important;line-height:1.4!important;margin:0!important}
  html .lab .ct .rule,html .lab section.rv .ct .rule,html .lab #clients .ct .rule,html .lab .svcp-head .svcp-h-rule{display:none!important}
  html .lab #clients .ct .sub,html .lab .ct .sub{margin-top:14px!important}
}


/* ヒーローの星: 5秒ごとに、回転しながら「キラン」と出る（0→1.4倍に弾みながら回り、少し回り続けて、薄れて消える。1周期＝5秒、出ている時間は約2秒） */
.lab>section:first-child.hero-go .hero-spark{animation:heroSparkSpin 5s ease-out 2.25s infinite both}
@keyframes heroSparkSpin{
  0%{opacity:0;transform:scale(0) rotate(-90deg)}
  10%{opacity:1;transform:scale(1.4) rotate(90deg)}
  22%{opacity:1;transform:scale(1) rotate(220deg)}
  34%{opacity:1;transform:scale(1) rotate(300deg)}
  40%{opacity:0;transform:scale(.6) rotate(360deg)}
  100%{opacity:0;transform:scale(.6) rotate(360deg)}
}


/* ヒーローの星: 出ている時間を短く（約2秒→約1.2秒。5秒周期はそのまま）。ポンと現れて回り、すっと消える */
@keyframes heroSparkSpin{
  0%{opacity:0;transform:scale(0) rotate(-90deg)}
  8%{opacity:1;transform:scale(1.4) rotate(90deg)}
  16%{opacity:1;transform:scale(1) rotate(210deg)}
  20%{opacity:1;transform:scale(1) rotate(280deg)}
  24%{opacity:0;transform:scale(.6) rotate(360deg)}
  100%{opacity:0;transform:scale(.6) rotate(360deg)}
}


/* ヒーローの星: 「キラン」は1回だけ（途中の「1倍に戻って止まる」区間をなくし、大きくなる→そのまま小さくなって消える、の一山に）。5秒周期・約1.2秒・回転はそのまま */
@keyframes heroSparkSpin{
  0%{opacity:0;transform:scale(0) rotate(-90deg)}
  8%{opacity:1;transform:scale(1.3) rotate(60deg)}
  24%{opacity:0;transform:scale(0) rotate(270deg)}
  100%{opacity:0;transform:scale(0) rotate(270deg)}
}


/* 「ニュース一覧へ」（PC幅）: もう少し左へ（右端から40px内側へ。見出し・カードの位置は変えない） */
@media (min-width:821px){
  .lab section.rv > .wrap > .btns{padding-right:40px!important;box-sizing:border-box}
}


/* 「ニュース一覧へ」（PC幅）: 矢印の右側（文字より右に出る線）を短く（30px→14px）。文字の位置は、左へ寄せた分（右端から40px内側）のまま */
@media (min-width:821px){
  .lab section.rv .btns .pill{padding-right:14px!important}
}


/* 事業内容（PC幅）: HRテックの画像は、白いフチなしで、パネルいっぱいに */
@media (min-width:821px){
  .lab .svcp .svc-img.full{inset:0}
  .lab .svcp .svc-img.full img{border-radius:0;object-position:center}
  .lab .svcp .svc-panel:has(.svc-img.full.on){background:transparent;border-color:transparent}
}


/* 事業内容（PC幅）: HRテックの画像のカードに、やわらかい影（紫がかった影を、下に少し長く）。切り替わる時はふわっと出る */
@media (min-width:821px){
  .lab .svcp .svc-panel{transition:opacity .8s ease,transform .9s cubic-bezier(.2,.7,.2,1),box-shadow .5s ease}
  .lab .svcp .svc-panel:has(.svc-img.full.on){box-shadow:0 28px 64px -8px rgba(70,40,120,.22),0 8px 22px rgba(70,40,120,.10)}
}


/* スマホ幅の事業内容: 上に事業の見出し（番号・事業名・サービス3つ）、下に画像。スクロールで4つの事業が順に進む（固定表示＋スクロール連動）。古い端末・動きを減らす設定では、従来の一覧のまま */
@media (max-width:820px){
  .lab .svcp .biz-box{overflow:clip!important}
  .m-svc.m-svc-off{display:none!important}
  .m-ss{--ss-h:calc(100vh - 112px);--ss-step:120vh;position:relative;width:100%;height:calc(var(--ss-h) + (var(--n) - 1) * var(--ss-step))}
  @supports (height:100svh){.m-ss{--ss-h:calc(100svh - 112px);--ss-step:120svh}}
  .m-ss-stick{position:sticky;top:88px;height:var(--ss-h);display:flex;flex-direction:column}
  .m-ss-prog{display:flex;align-items:baseline;gap:6px;flex:none;margin:0 0 16px}
  .m-ss-cnt{font-family:"Inter",sans-serif;font-size:15px;font-weight:700;letter-spacing:.1em;color:#111720}
  .m-ss-of{font-family:"Inter",sans-serif;font-size:12px;font-weight:600;letter-spacing:.1em;color:#9ca3af}
  .m-ss-dots{display:flex;gap:6px;margin-left:auto}
  .m-ss-dots i{display:block;width:24px;height:3px;border-radius:2px;background:#d9dde4;transition:background .3s ease}
  .m-ss-dots i.on{background:#111720}
  .m-ss-slides{position:relative;flex:1 1 auto;min-height:0}
  .m-ss-slide{position:absolute;inset:0;display:flex;flex-direction:column;will-change:opacity,transform}
  .m-ss-t{flex:none;margin:0;font-family:"Inter","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;font-size:26px;font-weight:800;line-height:1.35;letter-spacing:.06em;color:#111720}
  .m-ss-s{flex:none;margin:10px 0 18px;font-size:13px;font-weight:500;line-height:1.75;letter-spacing:.04em;color:#6b7280}
  .m-ss-s span{display:block}
  .m-ss-img{flex:0 1 auto;width:100%;height:auto;aspect-ratio:1/1;max-height:100%;min-height:0;border-radius:24px;overflow:hidden;background:#eef0f4;box-shadow:0 22px 48px -12px rgba(70,40,120,.22),0 6px 16px rgba(70,40,120,.08)}
  .m-ss-img img{width:100%;height:100%;object-fit:cover;display:block}
  .m-ss-img.contain img{object-fit:contain}
}

/* スマホ幅の事業内容: 箱が縦に長くなったため、入場の演出に使う色つきの覆い（.card-cover）が箱全体を覆ってしまう。スマホ幅では、この覆いを出さない */
@media (max-width:820px){
  .lab .svcp .biz-box>.card-cover{display:none!important}
}

/* スマホ幅の事業内容（調整）: サービス3行の行間・文字・余白を確実に効かせ、画像は縦に少し長く（10:11）。幅600px以上では、画像の幅を抑える */
@media (max-width:820px){
  .lab .m-ss .m-ss-s{margin:12px 0 20px!important;font-size:13px!important;line-height:1.8!important;color:#6b7280!important}
  .lab .m-ss .m-ss-s span{display:block!important;line-height:1.8!important}
  .lab .m-ss .m-ss-img{aspect-ratio:10/11!important}
}
@media (min-width:600px) and (max-width:820px){
  .lab .m-ss .m-ss-img{max-width:520px;margin-left:auto;margin-right:auto}
}


/* スマホ幅の事業内容（調整2）: 見出し＋画像のまとまりを、固定表示の枠の上下の中央に置く（上に寄りすぎないように）。進行表示（01/04）は上のまま */
@media (max-width:820px){
  .lab .m-ss .m-ss-slide{justify-content:center!important}
}


/* スマホ幅の事業内容（見出しと画像を別々に動かす）: 見出し4つ＝縦のホイール（今の事業が中央、前後は薄くぼけて上下へ）／画像＝横にずれながら入れ替わる。まとまり全体は、枠の上下の中央 */
@media (max-width:820px){
  .lab .m-ss .m-ss-slides,.lab .m-ss .m-ss-slide{display:none!important}
  .lab .m-ss .m-ss-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:center}
  .lab .m-ss .m-ss-heads{position:relative;flex:none;height:min(190px,26vh);overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 78%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 78%,transparent 100%)}
  .lab .m-ss .m-ss-head{position:absolute;left:0;right:0;top:50%;will-change:opacity,transform,filter}
  .lab .m-ss .m-ss-imgs{position:relative;flex:0 1 auto;width:100%;aspect-ratio:10/11;min-height:0;margin-top:14px;overflow:visible}
  .lab .m-ss .m-ss-img{position:absolute;inset:0;display:block;will-change:opacity,transform}
  .lab .m-ss .m-ss-card{width:100%;height:100%;border-radius:24px;overflow:hidden;background:#eef0f4;box-shadow:0 22px 48px -12px rgba(70,40,120,.22),0 6px 16px rgba(70,40,120,.08)}
  .lab .m-ss .m-ss-card img{width:100%;height:100%;object-fit:cover;display:block}
  .lab .m-ss .m-ss-card.contain img{object-fit:contain}
  .lab .m-ss .m-ss-s{margin:10px 0 0!important}
}
@media (min-width:600px) and (max-width:820px){
  .lab .m-ss .m-ss-imgs{max-width:520px;margin-left:auto;margin-right:auto}
}


/* スマホ幅の事業内容: 1回のスクロール（はじく動作を含む）で進むのは、1事業だけ。各事業の位置に見えない目印を置き、舞台の中にいる間だけ、ページ全体にスナップを効かせる（mobile.js が切り替える） */
@media (max-width:820px){
  .lab .m-ss .m-ss-snap{position:absolute;left:0;width:1px;height:1px;opacity:0;pointer-events:none;scroll-snap-align:start;scroll-snap-stop:always}
}


/* スマホ幅の事業内容: 前回の「見えない目印によるスナップ」は使わない（最後の事業から先へ進めなくなるため）。1回のスクロールで進むのは1事業だけ、は mobile.js が、位置を見て行き過ぎを戻すことで実現する */
@media (max-width:820px){
  .lab .m-ss .m-ss-snap{display:none!important}
}

/* スマホ幅の事業内容（調整3）: 「01 / 04」の行の上に、余白を20px追加（ヘッダーとの間を広げる） */
@media (max-width:820px){
  .lab .m-ss .m-ss-prog{margin-top:20px!important}
}

/* スマホ幅の事業内容（調整4）: 画像の左右の余白をそろえる。高さが足りない時に、縦だけ縮んで幅が狭まり、左寄りになっていた。画像の大きさは「幅100%」か「使える高さ÷1.1」の小さいほうにし、常に中央に置く（縦横比10:11は維持） */
@media (max-width:820px){
  .lab .m-ss .m-ss-imgs{flex:none!important;height:auto!important;aspect-ratio:10/11!important;width:min(100%, calc((var(--ss-h) - 70px - min(190px,26vh) - 18px) / 1.1))!important;margin-left:auto!important;margin-right:auto!important}
}

/* スマホ幅の事業内容（調整5）: 画像の幅は、いつも文字の列と同じ（左右の端がそろう）。高さが足りない時は、幅を狭めず、縦だけ縮めて、画像の上下を切る（cover） */
@media (max-width:820px){
  .lab .m-ss .m-ss-imgs{flex:none!important;aspect-ratio:auto!important;width:100%!important;height:min(calc((100vw - 48px) * 1.1), calc(var(--ss-h) - 70px - min(190px,26vh) - 18px))!important;margin-left:0!important;margin-right:0!important}
}
@media (min-width:600px) and (max-width:820px){
  .lab .m-ss .m-ss-imgs{width:min(100%,520px)!important;margin-left:auto!important;margin-right:auto!important;height:min(572px, calc(var(--ss-h) - 70px - min(190px,26vh) - 18px))!important}
}

/* 2026-11-19 調整6: 事業セクションの円形切り抜き（元サイトの演出）はスマホの縦長ステージでは見出し・画像を欠けさせるので無効化 */
@media (max-width:820px){
  html .lab .svcp .biz-box,.lab .biz-box{clip-path:none!important;-webkit-clip-path:none!important}
}

/* 2026-11-19 調整7: iPhone(Safari)の実機で、画像カードの幅が文字の列より狭くなり左に寄った（高さが足りない時に、縦横比10:11を保とうと幅が縮む）。縦横比と最大高さを外し、幅・高さとも枠いっぱいに固定する（足りない高さは画像の上下を切る） */
@media (max-width:820px){
  .lab .m-ss .m-ss-img{aspect-ratio:auto!important;max-height:none!important;max-width:none!important;min-width:0!important;width:100%!important;height:100%!important;left:0!important;right:0!important;top:0!important;bottom:0!important;margin:0!important}
  .lab .m-ss .m-ss-card{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important}
}

/* 2026-11-20 PC幅の修正: スマホ用の事業内容のステージ（.m-ss）はスマホ幅専用。PC幅では作られても出さない（PC幅の元の一覧と写真パネルを出す） */
@media (min-width:821px){
  .m-ss{display:none!important}
}

/* 事業内容（スマホ幅）: 入場の演出。PC幅と同じく、グレーの枠ごと丸から広がって4事業が現れる。色の覆いは、軽くするため波打ちのぼかし（フィルター）なしで描く */
@media (max-width:820px){
  .lab .svcp .m-cv.card-cover.cv-paint .wv{top:-40px!important;height:calc(100% + 80px)!important;filter:none!important}
}

/* ヒーローの星（スマホ幅）: 星は文字の段落の上端より上へはみ出すため、段落の親の枠（STUDIOの overflow:hidden）に上を切られていた（動画の下に隠れていたのではない）。枠の上に余白（padding）を足して切り抜きの範囲を上へ広げ、同じ分だけ上の外側の余白（margin）を引いて、文字の位置は変えない */
@media (max-width:820px){
  html .lab>section:first-child>div:not(.hero-video)>div{padding-top:32px!important;margin-top:-32px!important;box-sizing:content-box}
}

/* 事業内容（スマホ幅）: 背景の光（ぼんやりした2つの光）を、4事業の固定表示の部分に置く。PC幅（.svcp-stick の光）と同じ作りで、事業ごとに色が変わる（色は mobile.js が --g1・--g2 に入れる）。スマホの画面は狭いので、PCより光を大きく・濃くする。以前の、細長い枠全体にかかる光（.biz-box::before/::after）は、ほとんど画面に入らず弱かったので、事業内容ではやめる */
@media (max-width:820px){
  .lab .svcp .biz-box::before,.lab .svcp .biz-box::after{display:none!important;animation:none!important}
  .lab .m-ss-stick::before,.lab .m-ss-stick::after{content:"";position:absolute;z-index:-1;width:100%;aspect-ratio:1;border-radius:50%;filter:blur(52px);pointer-events:none}
  .lab .m-ss-stick::before{left:-30%;top:-8%;background:radial-gradient(circle,rgba(var(--g1,255,164,190),.82),rgba(var(--g1,255,164,190),0) 68%);animation:svcglowa 5s ease-in-out infinite alternate}
  .lab .m-ss-stick::after{right:-32%;bottom:-4%;background:radial-gradient(circle,rgba(var(--g2,140,155,255),.78),rgba(var(--g2,140,155,255),0) 68%);animation:svcglowb 6.5s ease-in-out infinite alternate}
}

/* ヒーローの文字の表示（全幅。2026-11-20 追記327でスマホ幅だけ→全幅に変更）: 速くする。文字ごとの遅れは mobile.js が半分に縮め、1文字が出る時間（.8秒）も .5秒に。星の出るタイミングも、文字が速くなったぶん早める（2.25秒→1.2秒） */
.lab>section:first-child .hc{transition-duration:.5s!important}
.lab>section:first-child.hero-go .hero-spark{animation-delay:1.2s!important}

/* 導入企業ロゴ（スマホ幅）: 1マスを5%大きくした（mobile.js の ZOOM）ため、4マスの幅が窓より広くなる。「margin:0 auto」は、箱が窓より広いと左寄せになるので、窓の中央を基準に、4マスの中心を窓の中心にそろえる（格子の起点 50% − 1.5p と同じ基準） */
@media (max-width:820px){
  .lab #clients .stag .m-vr{margin-left:calc(50% - var(--p,90px)*2)!important;margin-right:0!important}
}

/* PC幅: ニュースの背景を、ヒーローの周りの背景（縮んだカードの外側＝#eceef2。style#hero-shrink-css の gutter 色）と同じ単色にする（2026-11-20。従来は、上が白で、下へグレーになるグラデーション）。スマホ幅は変更なし */
@media (min-width:821px){
  .lab section.rv{background:#eceef2!important;background-image:none!important}
}

/* pc-white-bg-css: PC幅（821px〜）。サービス〜クライアント（コンタクト直前）の背景の灰色を白にする（2026-11-20）。コンタクトの濃紺の面は文字色の都合で対象外 */
@media (min-width:821px){
.lab .svcp .biz-box{background:#fff!important}
.lab section.svcp{background:#fff!important}
.lab section:has(> .wrap > #clients){background:#fff!important;background-image:none!important}
}

/* sv-lead-align-css: SERVICESの説明文を、CLIENTSの説明文（.ct .sub）と同じ書式にそろえる（2026-11-20）。大きさはCLIENTSと同じ（PC 16px／スマホ 14px） */
html .lab .svcp-head .svcp-h-lead{font-weight:500!important;line-height:1.7!important;letter-spacing:.04em!important;color:#4b5563!important}
@media (min-width:821px){html .lab .svcp-head .svcp-h-lead{font-size:16px!important;white-space:normal!important}}
@media (max-width:820px){html .lab .svcp-head .svcp-h-lead{font-size:14px!important}}
/* sv-lead-gap-css: 見出し（事業内容）から説明文までの間隔を、CLIENTSと同じに（PC 10px／スマホ 14px） */
@media (min-width:821px){html .lab .svcp-head .svcp-h-lead{margin-top:10px!important}}
@media (max-width:820px){html .lab .svcp-head .svcp-h-lead{margin-top:14px!important}}

/* lg-dm-hover-css: 導入企業ロゴのホバー用ひし形（.dm）を、常時548個置くのをやめ、乗った1つにだけ ::before で出す（2026-11-20）。常時の .dm が、クライアント初回表示のカクつきの原因だった（計測で確認） */
.lab .stag .lg .dm{display:none!important}
@media (hover:hover){
.lab .stag .lg:has(.hit:hover)::before{content:"";position:absolute;left:0;top:-50%;width:100%;height:200%;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='50,0 100,50 50,100 0,50' fill='%23fff' stroke='%23edeff3' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat;animation:lgDm .35s cubic-bezier(.2,.7,.2,1) both}
}
@keyframes lgDm{from{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1.5)}}
