/* =========================================================
   しごとの下の階層（/services/ai・web・sns・apps）2026-11-29 6回目
   本人の指示: 文字だらけで入ってこない→見てすぐ分かる形に／頭のベタ塗りの背景をやめて洗練された形に／
               写真がもっさい（フリー素材っぽい）→画像生成で作った絵に／制作事例の文は要らない（支援できることに）
   守る線（前回までの指示）: 暗い面にしない・明朝を使わない・色は深い緑の1色・下層に大きな第一画面は置かない
   絵: 全部「白と淡い緑のやわらかい立体（3D）」の同じ絵柄（Codex 内蔵の画像生成）
   色の役割: --w 名札・今いる場所・リンク・ボタン・「AIで」の側／--w-mint 絵の地と淡い面／--w-line 区切りの細い線
   ========================================================= */
body.pg-work{ margin:0; background:#fff; --w:#1f6b5c; --w-dark:#174f44; --w-mint:#eef5f1; --w-tint:#f4f8f6; --w-line:#e0e6e3; --f-en:'Outfit','Noto Sans JP',sans-serif; }
.pg-work main{ display:block; word-break:auto-phrase; }
.pg-work main *{ box-sizing:border-box; }
.pg-work main h1, .pg-work main h2, .pg-work main h3, .pg-work main p,
.pg-work main ul, .pg-work main ol, .pg-work main figure{ margin:0; padding:0; }
.pg-work main ul, .pg-work main ol{ list-style:none; }
.pg-work main a{ color:inherit; }
.pg-work main img{ max-width:100%; }
.pg-work main :focus-visible{ outline-color:var(--w); }

.wp-wrap{ width:100%; max-width:calc(1200px + var(--gutter) * 2); margin:0 auto; padding:0 var(--gutter); }
.wp-arw{ width:16px; height:16px; flex:none; }
.wp-en{ display:block; font-family:var(--f-en); font-weight:500; font-size:13px; letter-spacing:.22em; text-transform:uppercase; color:var(--w); line-height:1.4; }

/* ---------- ボタン・文字リンク ---------- */
.wp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 30px;
  background:var(--w); color:#fff !important; border-radius:999px; font-size:15px; font-weight:700;
  letter-spacing:.04em; text-decoration:none; transition:background-color .2s, box-shadow .2s;
  box-shadow:0 14px 28px -16px rgba(31,107,92,.7);
}
.wp-btn:hover{ background:var(--w-dark); }
.wp-btn .wp-arw{ transition:transform .25s; }
.wp-btn:hover .wp-arw{ transform:translateX(4px); }
.wp-link{
  display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:15px; font-weight:700;
  color:var(--w) !important; text-decoration:none; background:linear-gradient(currentColor,currentColor) 0 calc(100% - 9px) / 100% 1px no-repeat;
}
.wp-link .wp-arw{ transition:transform .25s; }
.wp-link:hover .wp-arw{ transform:translateX(4px); }

/* ---------- ページの頭: 画像生成の背景（右に立体・左は空き）に文字を置く。高さは控えめ ---------- */
.wh{ position:relative; overflow:hidden; background:linear-gradient(100deg,#fff 0%,#f8fbf9 50%,#eef5f1 100%); }
.wh-bg{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.pg-work .wh-bg img{ position:absolute; top:0; right:0; height:100%; width:auto; max-width:none; -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 38%); mask-image:linear-gradient(90deg,transparent 0%,#000 38%); }
.wh-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,255,255,.9) 0%,rgba(255,255,255,.6) 36%,rgba(255,255,255,0) 55%); }
.wh-in{ position:relative; z-index:1; padding-top:20px; padding-bottom:64px; min-height:460px; display:flex; flex-direction:column; }
.wp-crumb{ display:flex; flex-wrap:wrap; align-items:center; gap:0 10px; font-size:14px; color:var(--sub); margin-bottom:36px; }
.wp-crumb a{ display:inline-flex; align-items:center; min-height:44px; min-width:44px; text-decoration:none; }
.wp-crumb a:hover{ text-decoration:underline; }
.wp-crumb span{ color:#7d8985; }
.wp-crumb b{ font-weight:500; color:var(--ink); }
.wh-tag{ display:flex; align-items:center; gap:14px; margin-bottom:14px !important; font-size:14px; font-weight:700; letter-spacing:.14em; color:var(--w); line-height:1; }
.wh-tag i{ display:block; width:28px; height:3px; border-radius:2px; background:var(--w); }
.wh-tag .wp-en{ font-size:12px; color:#6f8a82; }
.wh h1{ font-size:44px; font-weight:700; line-height:1.3; letter-spacing:.04em; color:var(--ink); white-space:nowrap; }
.wh-catch{ margin-top:18px !important; font-size:21px; font-weight:500; line-height:1.6; letter-spacing:.04em; color:var(--ink); }
.wh-lead{ margin-top:10px !important; max-width:30em; font-size:16px; line-height:1.95; color:var(--sub); }
.wp-act{ margin-top:30px; display:flex; flex-wrap:wrap; align-items:center; gap:12px 30px; }

/* ---------- しごとの4つを行き来する帯 ---------- */
.wp-tabs{ position:relative; z-index:2; background:#fff; border-bottom:1px solid var(--w-line); }
.wp-tabs ul{ position:relative; display:flex; gap:40px; overflow-x:auto; scrollbar-width:none; }
.wp-tabs ul::-webkit-scrollbar{ display:none; }
.wp-tabs a{
  position:relative; display:flex; align-items:center; min-height:58px; white-space:nowrap;
  font-size:15px; font-weight:500; letter-spacing:.04em; color:var(--sub); text-decoration:none; transition:color .2s;
}
.wp-tabs a::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:3px; background:var(--w); transform:scaleX(0); transform-origin:left; transition:transform .25s; }
.wp-tabs a:hover{ color:var(--ink); }
.wp-tabs a:hover::after{ transform:scaleX(.4); }
.wp-tabs a[aria-current="page"]{ color:var(--ink); font-weight:700; }
.wp-tabs a[aria-current="page"]::after{ transform:scaleX(1); }

/* ---------- 段（見出しは上、中身は横いっぱい） ---------- */
.ws{ padding:96px 0; }
.ws--tint{ background:var(--w-tint); }
.ws-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:14px 64px; margin-bottom:48px; }
.ws-head p{ max-width:30em; padding-bottom:6px !important; }
.ws-head .wp-en{ margin-bottom:12px; }
.ws-head h2{ font-size:32px; font-weight:700; line-height:1.4; letter-spacing:.05em; color:var(--ink); }
.ws-head p{ font-size:16px; line-height:1.9; color:var(--sub); }

/* 支援できること: 絵つきのカード3枚 */
.wc-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.wc{ display:flex; flex-direction:column; background:#fff; border:1px solid #e4ece8; border-radius:22px; overflow:hidden; box-shadow:0 30px 60px -44px rgba(23,60,50,.45); transition:transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.wc:hover{ transform:translateY(-4px); box-shadow:0 36px 64px -40px rgba(23,60,50,.5); }
.wc-pic{ aspect-ratio:4 / 3; background:var(--w-mint); overflow:hidden; }
.wc-pic img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .8s cubic-bezier(.2,.7,.2,1); }
.wc:hover .wc-pic img{ transform:scale(1.04); }
.wc-body{ padding:26px 28px 30px; display:flex; flex-direction:column; flex:1; }
.wc h3{ font-size:20px; font-weight:700; line-height:1.5; letter-spacing:.04em; color:var(--ink); }
.wc-body > p{ margin-top:10px !important; font-size:15px; line-height:1.9; color:var(--sub); }
.wc-tags{ margin-top:auto !important; padding-top:20px !important; display:flex; flex-wrap:wrap; gap:8px; }
.wc-tags li{ font-size:13px; font-weight:500; line-height:1.5; padding:6px 12px; border-radius:6px; background:var(--w-mint); color:var(--w-dark); }

/* AI活用例: 部品の絵＋「これまで → AIで」 */
.wx-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.wx{ background:#fff; border-radius:20px; padding:26px 26px 24px; border:1px solid #e4ece8; display:flex; flex-direction:column; }
.wx-top{ display:flex; align-items:center; gap:16px; }
.wx-ic{ width:76px; height:76px; flex:none; border-radius:18px; background:var(--w-mint); overflow:hidden; }
.wx-ic img{ display:block; width:100%; height:100%; object-fit:cover; transform:scale(1.18); }
.wx-cat{ display:block; font-size:13px; font-weight:700; letter-spacing:.12em; color:var(--w); line-height:1.6; }
.wx h3{ font-size:17px; font-weight:700; line-height:1.5; color:var(--ink); }
.wx-ba{ margin-top:20px; display:grid; gap:4px; }
.wx .wx-b, .wx .wx-a{ display:grid; grid-template-columns:4.6em minmax(0,1fr); align-items:baseline; column-gap:10px; padding:12px 14px; border-radius:10px; font-size:15px; line-height:1.7; }
.wx-b{ background:#f5f6f6; color:#5d6866; }
.wx-a{ background:var(--w-mint); color:var(--ink); font-weight:500; }
.wx-b span, .wx-a span{ font-size:12px; font-weight:700; letter-spacing:.06em; }
.wx-a span{ color:var(--w); }
.wx-arrow{ display:flex; justify-content:center; height:0; position:relative; z-index:1; }
.wx-arrow i{ position:absolute; top:-13px; }
.wx-arrow i{ display:block; width:22px; height:22px; border-radius:50%; background:var(--w) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow:0 0 0 4px #fff; }
.wp-note{ margin-top:24px !important; font-size:14px; line-height:1.9; color:var(--sub); }

/* 進め方: 線でつながる4つの点 */
.wf{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; counter-reset:st; position:relative; }
.wf::before{ content:""; position:absolute; left:28px; right:28px; top:27px; height:2px; background:linear-gradient(90deg,var(--w) 0%,#bcd6cd 100%); transform-origin:left; }
.wf li{ position:relative; counter-increment:st; }
.wf-dot{ position:relative; display:flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:50%; background:#fff; border:2px solid var(--w); color:var(--w); font-family:var(--f-en); font-size:22px; font-weight:500; line-height:1; box-shadow:0 0 0 8px #fff; }
.wf li:first-child .wf-dot{ background:var(--w); color:#fff; }
.wf h3{ margin-top:22px !important; font-size:18px; font-weight:700; line-height:1.55; letter-spacing:.03em; color:var(--ink); }
.wf p{ margin-top:6px !important; font-size:15px; line-height:1.85; color:var(--sub); }
.ws--tint .wf-dot{ box-shadow:0 0 0 8px var(--w-tint); }

/* お任せいただけること・お渡しするもの: 印つきの短い一覧を淡い面に */
.wk{ margin-top:28px; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:20px 40px; padding:28px 36px; border-radius:20px; background:var(--w-tint); }
.wk h3{ font-size:16px; font-weight:700; letter-spacing:.06em; color:var(--ink); white-space:nowrap; }
.wk ul{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 32px; }
.wk li{ display:flex; align-items:flex-start; gap:10px; font-size:15px; line-height:1.7; color:var(--ink); }
.wk li::before{ content:""; flex:none; width:20px; height:20px; margin-top:.2em; border-radius:50%; background:var(--w) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* 公開中のゲーム（実際のプレイ画面）。article.x-app の形は自動追加の道具が使うので変えない */
.x-apps{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; }
.x-app{ display:flex; flex-direction:column; background:#fff; border:1px solid #e4ece8; border-radius:22px; padding:16px 16px 22px; }
.x-app-shot{ display:flex; justify-content:center; align-items:center; height:320px; padding:24px 0; background:linear-gradient(150deg,#f5f9f7,#e2eee8); border-radius:14px; }
.x-app-phone{ height:100%; }
.x-app-phone img{ display:block; height:100%; width:auto; border-radius:12px; box-shadow:0 14px 28px -12px rgba(23,50,44,.4); }
.x-app-head{ display:flex; align-items:center; gap:12px; margin:20px 6px 8px; }
.x-app-head img{ width:44px; height:44px; border-radius:10px; flex:none; box-shadow:0 0 0 1px rgba(0,0,0,.06); }
.x-app-head h3{ font-size:17px; font-weight:700; line-height:1.5; }
.x-app > p{ margin:0 6px !important; font-size:15px; line-height:1.85; color:var(--ink); word-break:normal; }
.x-app .nw{ white-space:nowrap; }
.x-stores{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:auto; padding:16px 6px 0; }
.x-stores a{ display:inline-flex; min-height:44px; align-items:center; }
.x-stores img{ display:block; height:36px; width:auto !important; }

/* ---------- 最後の相談: 頭と同じ絵を右に敷いた箱 ---------- */
.wcta{ padding:8px 0 104px; }
.ws--tint + .wcta{ padding-top:96px; }
.wcta-in{ position:relative; overflow:hidden; display:flex; align-items:center; min-height:300px; padding:56px 64px; border-radius:28px; background:linear-gradient(100deg,#f6faf8,#e6f0eb); }
.wcta-bg{ position:absolute; inset:0; pointer-events:none; }
.pg-work .wcta-bg img{ position:absolute; top:0; right:0; height:100%; width:auto; max-width:none; -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 40%); mask-image:linear-gradient(90deg,transparent 0%,#000 40%); }
.wcta-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(246,250,248,.9) 0%,rgba(246,250,248,.5) 40%,rgba(246,250,248,0) 60%); }
.wcta-txt{ position:relative; z-index:1; max-width:560px; }
.wcta h2{ margin-top:10px !important; font-size:30px; font-weight:700; line-height:1.5; letter-spacing:.05em; color:var(--ink); }
.wcta p{ margin-top:10px !important; font-size:16px; line-height:1.9; color:var(--sub); }
.wcta .wp-btn{ margin-top:26px; min-height:56px; padding:0 34px; }

/* ---------- 静かな動き（動きを減らす設定の端末ではそのまま見せる） ---------- */
.rv-on .rv{ opacity:0; transform:translateY(24px); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv-on .rv.is-in{ opacity:1; transform:none; }
.rv-on .wc-grid > .rv:nth-child(2), .rv-on .wx-grid > .rv:nth-child(3n+2){ transition-delay:.1s; }
.rv-on .wc-grid > .rv:nth-child(3), .rv-on .wx-grid > .rv:nth-child(3n){ transition-delay:.2s; }
.rv-on .wf::before{ transform:scaleX(0); transition:transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.rv-on .wf.is-in::before{ transform:scaleX(1); }

/* ---------- タブレット ---------- */
@media (max-width:1023px){
  .wh h1{ font-size:38px; }
  .pg-work .wh-bg img{ right:-12%; }
  .ws{ padding:80px 0; }
  .ws-head{ flex-direction:column; align-items:flex-start; }
  .wc-grid{ gap:18px; }
  .wc-body{ padding:22px 22px 26px; }
  .wx-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wf{ grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:40px; }
  .wf::before{ display:none; }
  .x-apps{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wcta-in{ padding:48px 44px; }
}
@media (max-width:860px){
  .wc-grid{ grid-template-columns:1fr; gap:20px; }
  .wc{ display:grid; grid-template-columns:minmax(0,40%) minmax(0,1fr); }
  .wc-pic{ aspect-ratio:auto; height:100%; min-height:220px; }
}

/* ---------- スマホ ---------- */
@media (max-width:767px){
  .wh{ background:#fff; }
  .wh-bg{ position:relative; inset:auto; height:210px; overflow:hidden; margin-top:48px; }
  .pg-work .wh-bg img{ height:300px; width:auto; max-width:none; top:-30px; right:0; -webkit-mask-image:none; mask-image:none; }
  .wh-bg::after{ background:linear-gradient(180deg,rgba(255,255,255,0) 62%,#fff 100%), linear-gradient(90deg,rgba(255,255,255,.7) 0%,rgba(255,255,255,0) 45%); }
  .wh-in{ min-height:0; padding-top:4px; padding-bottom:40px; margin-top:-258px; }
  .wp-crumb{ margin-bottom:198px; }
  .wh h1{ font-size:32px; }
  .wh-catch{ margin-top:12px !important; font-size:18px; }
  .wh-lead{ font-size:15px; }
  .wp-act .wp-btn{ width:100%; }
  .wp-tabs .wp-wrap{ padding:0; }
  .pg-work main .wp-tabs ul{ display:grid; grid-template-columns:1fr 1fr; gap:0 20px; padding:0 var(--gutter); overflow:visible; }
  .wp-tabs li:nth-child(-n+2){ border-bottom:1px solid var(--w-line); }
  .wp-tabs a{ min-height:52px; }
  .ws{ padding:64px 0; }
  .ws-head{ margin-bottom:32px; }
  .ws-head h2{ font-size:25px; }
  .ws-head p{ font-size:15px; }
  .wc{ display:flex; }
  .wc-pic{ aspect-ratio:16 / 10; height:auto; min-height:0; }
  .wc-body{ padding:20px 20px 24px; }
  .wc h3{ font-size:19px; }
  .wx-grid{ grid-template-columns:1fr; gap:16px; }
  .wx{ padding:20px 18px; }
  .wx-ic{ width:64px; height:64px; border-radius:16px; }
  .wf{ grid-template-columns:1fr; row-gap:0; }
  .wf li{ display:grid; grid-template-columns:44px minmax(0,1fr); column-gap:18px; padding-bottom:28px; }
  .wf li::before{ content:""; position:absolute; left:21px; top:44px; bottom:0; width:2px; background:#cfe2db; }
  .wf li:last-child{ padding-bottom:0; }
  .wf li:last-child::before{ display:none; }
  .wf-dot{ width:44px; height:44px; font-size:18px; grid-row:1 / span 2; box-shadow:none; }
  .wf h3{ margin-top:8px !important; font-size:17px; }
  .wk{ grid-template-columns:1fr; padding:24px 20px; }
  .wk ul{ grid-template-columns:1fr; }
  .x-apps{ grid-template-columns:1fr; gap:24px; }
  .x-app-shot{ height:300px; }
  .wcta{ padding:0 0 72px; }
  .ws--tint + .wcta{ padding-top:64px; }
  .wcta-in{ flex-direction:column; align-items:stretch; min-height:0; padding:0 0 36px; border-radius:22px; background:#f1f7f4; }
  .wcta-bg{ position:relative; inset:auto; height:170px; overflow:hidden; }
  .pg-work .wcta-bg img{ height:240px; width:auto; max-width:none; top:-20px; right:-20px; -webkit-mask-image:none; mask-image:none; }
  .wcta-bg::after{ background:linear-gradient(180deg,rgba(241,247,244,0) 50%,#f1f7f4 100%); }
  .wcta-txt{ padding:8px 24px 0; }
  .wcta h2{ font-size:23px; }
  .wcta .wp-btn{ width:100%; }
}
