
/* ==========================================================================
   働く環境 ― 2026-10-04 本家の「書かれているCSS」を写して組み直し
   本家の多くの箱は「幅1120px・最大 calc(100% - 100px)・中央」
   ========================================================================== */

/* ============ ページ上部：白抜き文字の下半分にかかる明るい緑のグラデーション（本家 k45） ============
   白抜き文字（top92・高さ701）の下端から 36px 下まで、高さ514px。白抜き文字の上に重ねる */
.phero--green::after{content:"";position:absolute;left:0;right:0;top:315px;height:514px;z-index:0;
  pointer-events:none;background:linear-gradient(0deg,#096a22 10%,rgba(0,88,255,0) 100%);}
.phero--green h1{z-index:1;}

/* ============ WORKPLACE ============ */
.wp{color:#fff;padding:141px 0 0;}
.wp .head{width:1120px;max-width:calc(100% - 100px);margin:0 auto 96px;}
.wp h2{margin:0;font-family:var(--os);font-weight:500;font-size:120px;line-height:1;}
.wp .sub{margin:8px 0 56px;font-size:22px;font-weight:700;line-height:1;}
.wp .lead{width:768px;max-width:100%;font-size:16px;font-weight:500;line-height:2;}

/* 写真2枚＋白抜き文字（本家 k57＝幅1366px・最大100%・中央）
   🚨 白抜き文字は写真より後ろに置いて「写真の上」に重ねる（本家どおり。線が写真にかかる） */
.wp .gallery{position:relative;width:1366px;max-width:100%;margin:0 auto;}
/* 白抜き文字の高さ（74%）は写真2枚の箱を基準にする＝下の写真の帯は含めない（本家 k57 / k64） */
.wp .gallery .pics{position:relative;display:flow-root;}  /* 下の写真の48px余白も箱に含める＝本家 k57 の高さ（887px）と同じにする */
.wp .gallery .row1{display:flex;justify-content:flex-end;margin-bottom:48px;}
.wp .gallery .g1{width:834px;max-width:100%;height:425px;}
.wp .gallery .row2{width:1120px;max-width:100%;margin:0 auto 48px;}
.wp .gallery .g2{width:592px;max-width:100%;height:366px;}
/* 本家＝箱の中央に幅790px（840px以下480px・402px以下280px）で置き、はみ出した上下は切る */
.wp .gallery .deco{position:absolute;left:0;top:0;width:100%;height:74%;z-index:1;pointer-events:none;
  background:url(d47e28e5.svg) 50% 50%/790px auto no-repeat;}
.wp .gallery .g1,.wp .gallery .g2,.wp .gallery .strip div{
  background-position:center;background-size:cover;background-repeat:no-repeat;}
/* 写真の帯（本家 k77＝画面幅いっぱい・高さ366px・写真は上端から）。流す動きは motion.js */
.wp .gallery .stripbox{position:relative;width:100vw;margin-left:calc(50% - 50vw);height:366px;overflow-x:clip;overflow-y:visible;box-sizing:border-box;}
.wp .gallery .strip{display:flex;gap:48px;width:max-content;margin-left:-185px;}
.wp .gallery .strip div{width:380px;height:246px;border-radius:8px;flex:none;}

/* ============ WELFARE（本家 k139） ============
   紺の箱＝左寄せで幅91%。見出しは紺の箱の上端より80px上から始まり、箱の「上」に重なる。
   下端の168pxだけ右側が薄いグレー（本家 k200）＝次の TRAINING へつながる */
.wf{position:relative;color:#fff;padding-top:80px;}
.wf .navy{position:absolute;left:0;top:80px;bottom:0;width:91%;background:var(--navy);z-index:-1;}
.wf .band{position:absolute;left:0;right:0;bottom:0;height:168px;background:#eee;z-index:-2;}
.wf .head{width:1120px;max-width:calc(100% - 100px);margin:-80px auto 0;}
.wf h2{margin:0;font-family:var(--os);font-weight:500;font-size:120px;line-height:1;}
.wf .sub{margin:8px 0 56px;font-size:22px;font-weight:700;line-height:1;}
.wf .lead{width:753px;max-width:calc(100% - 50px);font-size:16px;font-weight:500;line-height:2;}
.wf .body{width:1120px;max-width:calc(100% - 100px);margin:0 auto;padding:96px 0 80px;}
.wf .grid{display:flex;flex-wrap:wrap;margin-right:100px;}
.wf .it{width:calc(50% - 32px);margin:0 32px 80px 0;}
.wf .it .ph{height:256px;margin-bottom:32px;background-position:center;background-size:cover;background-repeat:no-repeat;}
.wf .it h3{margin:0 0 16px;font-size:24px;font-weight:700;line-height:1.5;}
.wf .it p{margin:0;font-size:16px;font-weight:500;line-height:2;}

/* ============ TRAINING（本家 k202） ============ */
.tr{background:#f0f0f0;color:#222;padding:160px 0 184px;}
.tr .head{width:1120px;max-width:calc(100% - 100px);margin:0 auto 64px;}
.tr h2{margin:0;font-family:var(--os);font-weight:500;font-size:120px;line-height:1;color:#0058ff;}
.tr .sub{margin:8px 0 64px;font-size:22px;font-weight:700;line-height:1;}
.tr .lead{width:819px;max-width:calc(100% - 50px);font-size:16px;font-weight:400;line-height:2;}
/* 4つの枠＝青い線で田の字に区切る（本家 k211）。上下の中央に短い縦線 */
.tr .grid{width:1120px;max-width:calc(100% - 100px);margin:0 auto;display:flex;flex-direction:column;align-items:center;}
/* 本家は枠全体を2px下げている（translate）＝並びは変えずに中身だけ2px下げる */
.tr .grid > *{position:relative;top:2px;}
.tr .stub{width:2px;height:24px;background:#6fa0fa;margin-right:2px;}
.tr .row{display:flex;width:100%;}
.tr .row.r1{border-top:2px solid #6fa0fa;}
.tr .row.r2{border-bottom:2px solid #6fa0fa;}
.tr .mid{width:1072px;max-width:100%;height:2px;background:#6fa0fa;}
.tr .cell{width:50%;padding:56px 0;display:flex;justify-content:center;}
.tr .cell:first-child{border-right:2px solid #6fa0fa;}
.tr .it{width:68%;}
.tr .it h3{margin:0 0 24px;font-size:24px;font-weight:700;line-height:1.4;color:#0058ff;}
.tr .it p{margin:0;font-size:16px;font-weight:500;line-height:2;}

/* ============ 締めの言葉（夜のトラック・本家 k233） ============ */
.creed{position:relative;height:514px;background-color:#000;background-position:center;background-size:cover;
       background-repeat:no-repeat;color:#fff;display:flex;align-items:center;justify-content:center;}
/* 本家＝高さ50%の箱に7行を上下中央で置く（箱からはみ出した分が上下に均等に出る） */
.creed p{position:relative;z-index:1;margin:0;width:1091px;max-width:100%;height:50%;font-size:20px;font-weight:400;
         letter-spacing:.2em;line-height:2;display:flex;align-items:center;}

/* ============ 1140px以下 ============ */
@media (max-width:1140px){
  .wf .navy{width:calc(100% - 50px);}
  .wf .grid{margin-right:50px;}
  .tr .it{width:78%;}
}
/* ============ 840px以下 ============ */
@media (max-width:840px){
  /* 本家＝840px以下は白抜き文字を右上に寄せる（background-position:100% 0） */
  .phero--green .deco{object-position:100% 0;}
  .phero--green::after{background:linear-gradient(0deg,#065e1c 63%,rgba(0,88,255,0) 100%);}   /* 本家 k45 の840px以下の色 */
  .wp .sub,.wf .sub{margin-bottom:48px;}
  .wp .gallery .row2{width:auto;margin:0 50px 48px 0;}
  .wp .gallery .deco{background-size:480px auto;}
  .wf .body{padding:64px 0 56px;}
  .wf .it{width:calc(50% - 16px);margin:0 16px 64px 0;}
  /* 本家は1段目の2つだけ左に16px寄せている（そのまま写す） */
  .wf .it:nth-child(-n+2){margin:0 0 64px 16px;}
  .tr .cell{padding:40px 0;}
  /* 本家 k77＝上下104pxの余白・写真294x360（1枚の枠 428px の80%から左右24pxを引いた幅）。写真は帯の高さ366pxからはみ出す */
  .wp .gallery .stripbox{padding-top:104px;}
  .wp .gallery .strip div{width:294px;height:360px;}
}
/* ============ スマホ（402px以下） ============ */
@media (max-width:402px){
  .phero--green::after{top:-152px;height:514px;
    background:linear-gradient(0deg,#065e1c 0%,rgba(227,235,251,0) 100%);}
  .phero--green .deco{object-fit:cover;}   /* 本家＝スマホは cover・右上寄せ（下側が切れる） */   /* 本家＝スマホでは上にずらして敷く */
  .wp .head{max-width:calc(100% - 40px);margin:0 auto 48px;}
  .wp h2,.wf h2,.tr h2{font-size:56px;}
  .wp .sub,.wf .sub,.tr .sub{font-size:16px;}
  .wp .lead{font-size:13px;letter-spacing:-.05em;}
  .wf .lead{font-size:13px;}
  .wp .gallery .g1{height:192px;}
  .wp .gallery .deco{background-size:280px auto;}
  .wp .gallery .row2{margin:0 20px 48px 0;}
  .wp .gallery .g2{height:224px;}
  /* 本家＝写真は画面幅の約9割・高さ280px・角丸6px・間隔24px */
  .wp .gallery .stripbox{height:320px;padding-top:12px;}   /* 本家＝高さ296pxの枠を帯の上下中央に置く＝写真は12px下から */
  .wp .gallery .strip{gap:24px;margin-left:-120px;}
  .wp .gallery .strip div{width:calc((100vw - 32px) * .9 - 24px);height:280px;border-radius:6px;}
  .wf .navy{width:100%;}
  .wf .head{max-width:calc(100% - 40px);margin-top:-40px;}
  .wf .sub{margin-bottom:32px;}
  .wf .lead{max-width:100%;}
  .wf .body{max-width:calc(100% - 40px);padding:64px 0 72px;}
  .wf .grid{margin-right:0;flex-direction:column;}
  .wf .it,.wf .it:nth-child(-n+2){width:100%;margin:0 0 48px;}
  .wf .it .ph{height:160px;margin-bottom:24px;}
  .wf .it h3{font-size:18px;}
  .wf .it p{font-size:14px;}
  .tr{padding:80px 0 120px;}
  .tr .head{max-width:calc(100% - 40px);margin-bottom:24px;}
  .tr .sub{margin-bottom:48px;}
  .tr .lead{font-size:14px;font-weight:500;letter-spacing:-.05em;max-width:100%;}
  .tr .grid{max-width:calc(100% - 40px);}
  .tr .stub,.tr .mid{display:none;}
  .tr .row{flex-direction:column;}
  .tr .row.r2{border-bottom:0;}
  .tr .cell{width:100%;border-bottom:2px solid #6fa0fa;}
  .tr .cell:first-child{border-right:0;}
  .tr .it{width:calc(100% - 48px);}
  .tr .it p{font-size:14px;}
  .creed{height:494px;}
  /* 本家＝写真の層だけ高さ497px（箱494pxより3px下にはみ出す） */
  .creed::before{content:"";position:absolute;left:0;right:0;top:0;height:497px;z-index:0;background:inherit;}
  .creed p{width:362px;height:auto;margin-top:20px;font-size:16px;font-weight:700;
           text-shadow:rgba(0,0,0,.5) 0 0 10px;}
}

/* ============ 以前タグに直接書いていた指定（2026-10-27 にここへ移した） ============ */
.phero{--heroh:515px;--ty:279px;--mt:0px;--decoy:92px;--decoh:701px;--after-tb:0px;--after-sp:-24px;}
