/* 採用ページ試作（すっきりした大人のイラスト×本物の社員・七色の線）2026-11-05 作り直し */
:root {
  --paper: #fffdf8;
  --ink: #2b2f45;
  --ink-soft: #626781;
  --red: #ef4b4b; --orange: #ff9a3c; --yellow: #ffd23f; --green: #3dbf6e;
  --blue: #3a8dde; --indigo: #5160c9; --purple: #a35fd1;
  --col: 520px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #eef6fb; line-height: 1.85; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; }
a { color: inherit; }

/* パソコンの両側 */
.side { display: none; }
@media (min-width: 900px) {
  .side { display: block; position: fixed; top: 0; bottom: 0; width: calc((100vw - var(--col)) / 2); overflow: hidden; z-index: 0; }
  .side.left { left: 0; } .side.right { right: 0; }
  .side svg { position: absolute; inset: 0; width: 100%; height: 100%; }
}

/* まんなかの紙 */
.col { position: relative; z-index: 1; max-width: var(--col); margin: 0 auto; min-height: 100vh; background: var(--paper); overflow: clip;
  box-shadow: 0 0 0 1px rgba(43,47,69,.05), 0 20px 60px rgba(43,47,69,.14); }
.rainbow { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; }
.rainbow path { fill: none; stroke-width: 2; stroke-linecap: round; opacity: .6; }
.col > section, .col > footer { position: relative; z-index: 1; }

/* 上の帯・メニュー */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(255,253,248,.9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(43,47,69,.08); }
.logo { font-weight: 900; font-size: 18px; text-decoration: none; letter-spacing: .02em; }
.logo b { color: var(--red); } .logo i { font-style: normal; color: #fff; background: var(--blue); border-radius: 6px; padding: 0 6px; margin-left: 4px; font-size: 13px; }
.menu-btn { font-family: var(--font); font-weight: 700; font-size: 14px; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.nav { position: fixed; inset: 0; z-index: 30; background: rgba(255,253,248,.98); display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 24px 28px; max-width: var(--col); margin: 0 auto; transform: translateY(-105%); transition: transform .45s cubic-bezier(.7,0,.2,1); }
.nav.open { transform: none; }
.nav a { font-weight: 900; font-size: 26px; text-decoration: none; line-height: 1.35; }
.nav a small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.nav .close { position: absolute; top: 16px; right: 20px; }

/* 文字 */
.sec { padding: 60px 22px; }
.kicker { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--ink-soft); }
.kicker::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 3px; background: var(--k, var(--red)); vertical-align: middle; margin-right: 8px; }
.big { font-weight: 900; font-size: clamp(38px, 12vw, 62px); line-height: 1.2; margin: 6px 0 18px; letter-spacing: .01em; }
.mid { font-weight: 900; font-size: clamp(26px, 7.6vw, 36px); line-height: 1.35; margin: 4px 0 14px; }
.lead { font-size: 17px; font-weight: 700; }
p { margin: 0 0 14px; font-size: 16px; }
.c-red{color:var(--red)} .c-orange{color:var(--orange)} .c-yellow{color:#e0a800} .c-green{color:var(--green)}
.c-blue{color:var(--blue)} .c-indigo{color:var(--indigo)} .c-purple{color:var(--purple)}
.pop .ch { display: inline-block; opacity: 0; transform: translateY(.45em) scale(.7);
  transition: opacity .3s ease, transform .5s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(var(--i) * 40ms); }
.pop.on .ch { opacity: 1; transform: none; }
.uline { display: block; width: 100%; height: 14px; margin-top: -4px; }
.uline path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease .3s; }
.on .uline path { stroke-dashoffset: 0; }
.rise { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rise.on { opacity: 1; transform: none; }
.art { display: block; width: 100%; height: auto; }

/* ── 3コマで動く（パラパラ漫画） ── */
.k3 > g, .talk3 > g, .k3s > g { opacity: 0; animation: koma .9s steps(1) infinite; }
.k3 > .f1, .talk3 > .f1, .k3s > .f2, .k2 > .f1 { opacity: 1; }
.k2 > g { opacity: 0; animation: koma2 .5s steps(1) infinite; } .k2 > .f2 { animation-delay: -.25s; }
@keyframes koma2 { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } } /* 動きが止まっている時も1コマ目は見える */
.k3 > .f2 { animation-delay: -.6s; } .k3 > .f3 { animation-delay: -.3s; }
.k3.fast > g { animation-duration: .3s; } .k3.fast > .f2 { animation-delay: -.2s; } .k3.fast > .f3 { animation-delay: -.1s; }
.k3.slow > g { animation-duration: 2.4s; } .k3.slow > .f2 { animation-delay: -1.6s; } .k3.slow > .f3 { animation-delay: -.8s; }
.talk3 > g { animation-duration: 4.5s; } .talk3 > .f2 { animation-delay: -3s; } .talk3 > .f3 { animation-delay: -1.5s; }
.k3s > g { animation-duration: 3.6s; } .k3s > .f2 { animation-delay: -2.4s; } .k3s > .f3 { animation-delay: -1.2s; }
@keyframes koma { 0% { opacity: 1; } 33.333% { opacity: 0; } 100% { opacity: 0; } }
.boil { animation: boil .75s steps(1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes boil { 0% { transform: none; } 33.333% { transform: translateY(-5px) rotate(1.5deg) scale(1.01, .99); } 66.666% { transform: translateY(-2px) rotate(-1.5deg); } }
/* ペコペコ歩き（4コマ：つぶれる→跳ねる→反対へ傾く→跳ねる） */
.walking .me { animation: peko .5s steps(1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes peko { 0% { transform: rotate(-7deg) scale(1.04, .95); } 25% { transform: translateY(-16px) rotate(0) scale(.97, 1.04); }
  50% { transform: rotate(7deg) scale(1.04, .95); } 75% { transform: translateY(-16px) rotate(0) scale(.97, 1.04); } }
.walking .boil:not(.me) { animation: peko .5s steps(1) infinite; }
/* 話す時はうなずく・怒る時はぷるぷる・やられた時は倒れる */
.standing .pose-talk .me { animation: nod .9s steps(1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes nod { 0% { transform: rotate(-3deg); } 33.333% { transform: translateY(-6px) rotate(2deg) scale(1.02); } 66.666% { transform: rotate(3deg); } }
.standing .pose-angry .me { animation: ika .24s steps(1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes ika { 0% { transform: translateX(-4px) scale(1.06); } 50% { transform: translateX(4px) translateY(-6px) scale(1.08); } }
.standing .pose-down .me { animation: none; transform-box: fill-box; transform-origin: 50% 100%; transform: translate(40px, 0) rotate(-84deg) scale(.95); }
.standing .pose-happy .me { animation: hop .6s steps(1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes hop { 0% { transform: none; } 50% { transform: translateY(-20px) scale(.97, 1.05); } }
.driving > g { animation: drive .3s steps(1) infinite; }
@keyframes drive { 0% { transform: none; } 50% { transform: translateY(-2px); } }
.drift { animation: drift 6s steps(6) infinite alternate; }
@keyframes drift { to { transform: translateX(22px); } }

/* 仕事のカード */
.cards { display: grid; gap: 16px; }
.card { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 16px; border-radius: 22px; background: #fff;
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--k, var(--yellow)); transition: transform .2s; }
.card:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--k, var(--yellow)); }
.card .ph { flex: 0 0 84px; height: 96px; border-radius: 16px; background: color-mix(in srgb, var(--k) 22%, #fff); overflow: hidden; position: relative; }
.card .ph img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 112%; max-width: none; }
.card h3 { font-weight: 900; font-size: 21px; margin: 0 0 2px; line-height: 1.35; }
.card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.card .go { margin-left: auto; font-weight: 900; font-size: 22px; color: var(--k); }

/* 横に進む一日 */
.story { position: relative; }
.story-stick { position: relative; height: min(100svh, 740px); overflow: hidden; background: var(--paper); border-top: 2px dashed rgba(43,47,69,.12); border-bottom: 2px dashed rgba(43,47,69,.12); }
.story-dots i { cursor: pointer; }
.story-title { position: absolute; top: 62px; left: 22px; right: 22px; z-index: 3; }
.story-title .mid { margin: 0; }
.story-world { position: absolute; left: 0; bottom: 0; height: 72%; display: flex; will-change: transform; }
.story-world svg { flex: 0 0 auto; height: 100%; overflow: visible; }
.story-me { position: absolute; bottom: 0; left: 0; width: 100%; height: 72%; pointer-events: none; z-index: 2; }
.story-cap { position: absolute; left: 16px; right: 16px; top: 140px; z-index: 3; font-weight: 900; font-size: clamp(18px, 5.4vw, 23px); line-height: 1.45;
  background: rgba(255,255,255,.94); border-radius: 18px; padding: 12px 16px 12px 52px; box-shadow: 0 8px 24px rgba(43,47,69,.12); transition: opacity .3s, transform .3s; }
.story-cap b { position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 15px; display: grid; place-items: center; }
.story-cap.hide { opacity: 0; transform: translateY(8px); }
.story-cap small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin-top: 4px; }
.story-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.story-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(43,47,69,.2); transition: all .2s; }
.story-dots i.on { background: var(--red); width: 22px; border-radius: 9px; }

/* 吹き出し・リスト */
.bubble { position: relative; background: #fff; border-radius: 20px; padding: 16px 18px; margin: 0 0 22px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--k, var(--green)); }
.bubble::after { content: ""; position: absolute; left: 30px; bottom: -11px; width: 18px; height: 18px; background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.bubble h3 { font-weight: 900; font-size: 19px; margin: 0 0 6px; line-height: 1.45; }
.bubble p { margin: 0; font-size: 15px; }
.list { list-style: none; padding: 0; margin: 0 0 10px; }
.list li { padding: 9px 0 9px 32px; position: relative; font-size: 16px; border-bottom: 1px solid rgba(43,47,69,.1); }
.list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--k, var(--blue)); }

/* 条件（小さく、角に） */
.joken-wrap { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.joken { flex: 0 1 230px; font-size: 12.5px; line-height: 1.7; border: 1px dashed var(--ink-soft); border-radius: 14px; padding: 10px 12px; background: #fff; }
.joken b { font-weight: 900; font-size: 15px; display: block; }
.joken dl { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; }
.joken dt { color: var(--ink-soft); } .joken dd { margin: 0; }
.mi { display: inline-block; font-size: 11px; background: #eef0f6; color: #59607a; border-radius: 6px; padding: 0 6px; }

/* 夢の階段・写真・動画・応募 */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.steps li .n { flex: 0 0 auto; font-weight: 900; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--k); color: #fff; }
.steps li h4 { margin: 4px 0 2px; font-weight: 900; font-size: 19px; }
.steps li p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.photo-row { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 10px 0 18px; }
.photo-row img { height: 190px; width: auto; filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 6px 10px rgba(43,47,69,.2)); margin: 0 -14px; }
.movie { aspect-ratio: 16/9; border-radius: 18px; background: #2b2f45; color: #fff; display: grid; place-items: center; text-align: center; padding: 12px; font-size: 14px; }
.movie .play { width: 60px; height: 60px; border-radius: 50%; background: var(--red); display: grid; place-items: center; margin: 0 auto 6px; }
.movie .play::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px; }
.btn { display: block; text-align: center; font-weight: 900; font-size: 20px; text-decoration: none; background: var(--red); color: #fff; border-radius: 999px; padding: 15px 18px; box-shadow: 0 6px 0 #b8312f; margin-bottom: 14px; }
.btn.alt { background: var(--green); box-shadow: 0 6px 0 #2a8d50; }
.oubo { text-align: center; }
.oubo .note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.foot { padding: 30px 22px 60px; text-align: center; font-size: 12px; color: var(--ink-soft); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 10px; font-size: 14px; }
.draft { position: fixed; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 40; font-size: 11px; background: var(--ink); color: #fff; border-radius: 8px; padding: 3px 8px; opacity: .75; }
@media (prefers-reduced-motion: reduce) {
  .pop .ch, .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .boil, .drift { animation: none; }
}
.card.plain { display: block; }
.card.plain h3 { margin-bottom: 4px; }

/* 乗り物はガタガタ弾む */
.driving .bounce { animation: gata .22s steps(1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes gata { 0% { transform: none; } 33% { transform: translateY(-5px) rotate(-1.2deg); } 66% { transform: translateY(-2px) rotate(.8deg); } }
/* 言い返す時はぴょんぴょん */
.retort { animation: hop .45s steps(1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }

/* ── 4コマで動く（本物の絵を4枚順に出す・2026-11-06） ── */
.k4 > g { opacity: 0; animation: koma4 var(--t, 1.6s) steps(1) infinite; animation-delay: calc(var(--o, 0s) - var(--d, 0ms)); }
.k4 > .f1 { opacity: 1; }
.k4 > .f2 { --o: calc(var(--t, 1.6s) * -.75); } .k4 > .f3 { --o: calc(var(--t, 1.6s) * -.5); } .k4 > .f4 { --o: calc(var(--t, 1.6s) * -.25); }
@keyframes koma4 { 0% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
.k4w { --t: .56s; } .k4t { --t: 2.2s; } .k4x { --t: 1.4s; }
/* 4コマの人は、絵そのものが動くので体を揺らさない（歩く時だけ小さく上下） */
.walking .still { animation: bob .28s steps(1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bob { 0% { transform: none; } 50% { transform: translateY(-4px); } }
.standing .pose-talk .still, .standing .pose-happy .still { animation: none; }
.standing .pose-angry .still { animation: ika .24s steps(1) infinite; }
.retort.still, .retort .still { animation: none; }
/* 吹き出しは、立ち止まっている時だけ・頭の上に出す */
.story-stick .talk3 { transition: opacity .25s; }
.story-stick.moving .talk3 { opacity: 0; }
/* 見出しの下のペンキのローラーの帯（ChatGPTで作った絵・2026-11-06） */
.roller { display: block; width: 78%; max-width: 340px; height: 22px; margin-top: 2px; background: url(img/deco_stroke.webp) left center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.6,0,.2,1) .25s; }
.on .roller { clip-path: inset(0 0 0 0); }
body { background: #1b1f2e; }
/* 説明の箱を上へ詰め、吹き出し（頭の上）と重ならないようにする（2026-11-06） */
.story-title { top: 10px; }
.story-title .mid { font-size: 18px; line-height: 1.3; }
.story-cap { top: 44px; padding: 8px 12px 8px 46px; font-size: clamp(16px, 4.6vw, 19px); }
.story-cap b { top: 9px; left: 12px; width: 26px; height: 26px; }
.story-cap small { font-size: 12px; line-height: 1.55; margin-top: 2px; }
