.work-demo { padding: 78px 0 70px; background: #eef2e7; border-block: 1px solid var(--line); }
.work-heading { display: flex; justify-content: space-between; gap: 36px; align-items: end; margin-bottom: 35px; }
.work-heading h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.55; }
.work-heading .lede { max-width: 430px; }
.work-live-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.work-stage { background: #fff; border: 1px solid #ccd9c4; border-radius: 20px; box-shadow: 0 24px 70px -30px #183f3529; overflow: hidden; }
.work-toolbar { min-height: 68px; padding: 15px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.work-toolbar-label { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; }
.work-demo-badge { font-size: 12px; font-weight: 500; border: 1px solid var(--line); padding: 2px 8px; border-radius: 5px; color: #596b60; }
.work-controls { display: flex; gap: 8px; flex-shrink: 0; }
.work-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 13px; border: 1px solid #d5e0ce; border-radius: 8px; font-size: 13px; line-height: 1.5; background: #f6f8f1; transition: background .2s; }
.work-controls button:hover { background: #e8f1d8; }
.work-controls .icon { width: 15px; height: 15px; }
.work-body { display: grid; grid-template-columns: 350px minmax(0, 1fr); }
.work-teammate { background: radial-gradient(ellipse at 50% 30%, #edf5db, #f8faf4 65%); border-right: 1px solid var(--line); padding: 22px 28px 30px; display: flex; flex-direction: column; align-items: center; position: relative; }
.work-mascot-scene { width: 100%; height: 226px; position: relative; display: grid; place-items: center; }
.work-mascot { width: 220px; height: 220px; position: relative; z-index: 2; transform-origin: center 80%; }
.work-mascot img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 10px #21482d16); }
.work-mascot-shadow { position: absolute; width: 135px; height: 12px; border-radius: 50%; background: #55752c19; bottom: 6px; filter: blur(5px); }
.work-orbit { position: absolute; border: 1px solid #ccdebb; border-radius: 50%; width: 212px; height: 212px; top: 7px; }
.orbit-two { width: 168px; height: 168px; top: 29px; border-style: dashed; opacity: .6; }
.work-particle { position: absolute; z-index: 3; display: grid; place-items: center; width: 38px; height: 38px; background: #fff; border: 1px solid #cbdcbc; border-radius: 10px; color: var(--green); box-shadow: 0 5px 18px #47613812; }
.work-particle .icon { width: 20px; height: 20px; }
.particle-one { right: 12px; top: 46px; transform: rotate(9deg); }
.particle-two { left: 8px; bottom: 42px; transform: rotate(-9deg); }
.work-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.work-sparkles i { width: 8px; height: 8px; border-radius: 50%; background: #a0c34e; position: absolute; opacity: 0; }
.work-sparkles i:nth-child(1) { top: 45px; left: 65px; }
.work-sparkles i:nth-child(2) { top: 92px; right: 40px; }
.work-sparkles i:nth-child(3) { bottom: 55px; right: 70px; }
.work-name { text-align: center; margin-top: 4px; }
.work-name > span { display: block; font-size: 13px; color: #607259; }
.work-name > strong { display: block; font-size: 28px; letter-spacing: -.04em; line-height: 1.6; }
.work-status { display: flex; gap: 7px; align-items: center; margin-top: 15px; font-size: 13px; line-height: 1.8; text-align: center; min-height: 47px; }
.work-status-dot { width: 7px; height: 7px; background: #54803d; border-radius: 50%; flex-shrink: 0; }
.work-total { width: 100%; margin-top: auto; padding-top: 17px; text-align: center; }
.work-total > div:first-child { display: flex; justify-content: center; align-items: baseline; gap: 9px; line-height: 1.3; }
.work-total strong { font-family: var(--mono); font-size: 46px; font-weight: 500; letter-spacing: -.05em; }
.work-total span { font-family: var(--mono); font-size: 18px; color: #77876b; }
.work-total p { font-size: 13px; color: #5c7050; margin: 5px 0 13px; }
.work-total-track { height: 6px; background: #dfe9d2; border-radius: 5px; overflow: hidden; }
.work-total-track i { display: block; height: 100%; background: var(--green); border-radius: 5px; transition: width .3s; }
.work-flow { padding: 26px 32px 24px; min-width: 0; }
.work-queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.work-queue-heading h3 { font-size: 20px; line-height: 1.6; }
.work-queue-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #7c8b73; }
.work-queue { display: flex; flex-direction: column; gap: 12px; }
.work-task { display: flex; gap: 15px; align-items: center; padding: 19px 17px; border: 1px solid #dce5d5; border-radius: 11px; min-width: 0; background: #fcfdf9; transition: border-color .3s, background .3s, box-shadow .3s; }
.work-task-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #edf2e5; color: #607a4e; flex-shrink: 0; }
.work-task-icon .icon { width: 22px; height: 22px; }
.work-task-copy { flex: 1; min-width: 0; }
.work-task h4 { font-size: 17px; line-height: 1.7; font-weight: 700; }
.work-task p { font-size: 13px; line-height: 1.8; color: #64725d; margin-top: 3px; }
.work-task-track { margin-top: 10px; height: 3px; background: #e6ecdd; border-radius: 4px; overflow: hidden; }
.work-task-track i { display: block; height: 100%; background: #3b6753; border-radius: 4px; transition: width .12s linear; }
.work-task-state { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; white-space: nowrap; width: 64px; flex-shrink: 0; color: #788470; padding: 4px; border-radius: 5px; }
.work-task-state .icon { display: none; width: 14px; height: 14px; }
.work-task[data-state="active"] { background: #f2f8e8; border-color: #89ad59; box-shadow: 0 4px 15px #5d783613; }
.work-task[data-state="active"] .work-task-icon { background: var(--forest); color: var(--lime); }
.work-task[data-state="active"] .work-task-state { background: #e2eec8; color: #345830; }
.work-task[data-state="active"] .work-task-state::before { content: ""; width: 9px; height: 9px; border: 1.5px solid #b3c495; border-top-color: var(--forest); border-radius: 50%; animation: work-spin .8s linear infinite; }
.work-task[data-state="done"] { background: #f7faf2; }
.work-task[data-state="done"] .work-task-state { color: #386244; }
.work-task[data-state="done"] .work-task-state .icon { display: block; }
.work-task[data-state="pending"] .work-task-icon { background: #f0f2ec; color: #8e9a82; }
.work-log { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.9; color: var(--green); margin-top: 17px; min-height: 48px; }
.work-log > .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 5px; }
.work-log-cursor { width: 5px; height: 14px; margin-top: 5px; background: #a2bc74; flex-shrink: 0; }
.work-results { border-top: 1px solid #dbe5d2; background: #f6f9f0; padding: 23px 26px 26px; }
.work-results-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: 15px; font-weight: 700; margin-bottom: 17px; }
.work-human-check { display: inline-flex; gap: 6px; align-items: center; color: var(--green); font-size: 13px; font-weight: 500; }
.work-human-check .icon { width: 16px; height: 16px; }
.work-result-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.work-result { display: flex; align-items: flex-start; gap: 10px; padding: 16px 12px; border: 1px solid #d6e1cb; border-radius: 9px; min-width: 0; background: white; transition: opacity .4s, transform .4s, border-color .4s; }
.work-result strong { display: block; font-size: 14px; line-height: 1.8; font-weight: 650; }
.work-result small { display: block; font-size: 12px; color: #6b7a61; margin-top: 4px; line-height: 1.8; }
.work-result-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: var(--lime); flex-shrink: 0; margin-top: 2px; }
.work-result-check .icon { width: 14px; height: 14px; }
.work-result[data-ready="false"] { opacity: .45; transform: translateY(3px); border-style: dashed; }
.work-result[data-ready="false"] .work-result-check { background: #e2e8d9; color: transparent; }
.work-disclaimer { font-size: 13px; line-height: 1.9; color: #65725e; margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* キャラクターの入力動作、データの流れ、完了の小さなリアクション。 */
.work-stage[data-animation="running"] .work-mascot { animation: work-typing .8s ease-in-out infinite; }
.work-stage[data-animation="running"] .orbit-two { animation: work-spin 24s linear infinite; }
.work-stage[data-animation="running"] .particle-one { animation: work-float 2.6s ease-in-out infinite; }
.work-stage[data-animation="running"] .particle-two { animation: work-float 3s ease-in-out infinite reverse; }
.work-stage[data-animation="running"] .work-log-cursor { animation: work-blink 1s steps(1) infinite; }
.work-stage[data-animation="running"] .work-status-dot { animation: work-pulse 1.8s ease-in-out infinite; }
.work-demo[data-phase="complete"] .work-stage[data-animation="running"] .work-mascot { animation: work-celebrate 1.5s ease-in-out; }
.work-demo[data-phase="complete"] .work-stage[data-animation="running"] .work-sparkles i { animation: work-sparkle 1.5s ease-out; }
.work-sparkles i:nth-child(2) { animation-delay: .12s !important; }
.work-sparkles i:nth-child(3) { animation-delay: .24s !important; }
.work-stage[data-animation="paused"] .work-task[data-state="active"] .work-task-state::before { animation-play-state: paused; }
@keyframes work-typing { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
@keyframes work-celebrate { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px) rotate(-3deg); } 60% { transform: translateY(-5px) rotate(3deg); } }
@keyframes work-spin { to { transform: rotate(360deg); } }
@keyframes work-float { 0%, 100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(-13px) rotate(-4deg); } }
@keyframes work-blink { 50% { opacity: 0; } }
@keyframes work-pulse { 50% { box-shadow: 0 0 0 5px #628b3920; } }
@keyframes work-sparkle { 0% { opacity: 0; transform: translateY(15px) scale(.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px) scale(.7); } }

@media (max-width: 1180px) {
  .work-body { grid-template-columns: 300px minmax(0, 1fr); }
  .work-teammate { padding-inline: 22px; }
  .work-flow { padding-inline: 24px; }
  .work-task { gap: 12px; padding-inline: 14px; }
  .work-result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .work-heading { display: block; }
  .work-heading .lede { margin-top: 20px; max-width: none; }
  .work-body { grid-template-columns: 240px minmax(0, 1fr); }
  .work-teammate { padding: 25px 18px; }
  .work-mascot-scene { height: 208px; }
  .work-mascot { width: 190px; height: 190px; }
  .work-orbit { width: 185px; height: 185px; }
  .orbit-two { width: 148px; height: 148px; top: 26px; }
  .work-name > strong { font-size: 25px; }
  .work-status { font-size: 12px; }
  .work-flow { padding: 25px 20px 20px; }
  .work-task { flex-wrap: wrap; gap: 9px; }
  .work-task-icon { width: 34px; height: 34px; }
  .work-task-copy { flex-basis: calc(100% - 43px); }
  .work-task-state { margin-left: 43px; justify-content: flex-start; width: auto; }
  .work-queue-meta { display: none; }
}
@media (max-width: 700px) {
  .work-demo { padding: 52px 0; }
  .work-heading h2 { font-size: clamp(28px, 7.8vw, 34px); line-height: 1.65; }
  .work-heading .lede { font-size: 16px; }
  .work-heading .lede br { display: none; }
  .work-heading { margin-bottom: 25px; }
  .work-toolbar { padding: 14px 16px; display: block; }
  .work-toolbar-label { font-size: 14px; gap: 6px 8px; }
  .work-demo-badge { font-size: 11px; }
  .work-controls { margin-top: 12px; }
  .work-controls button { flex: 1; font-size: 13px; min-height: 44px; }
  .work-body { grid-template-columns: 1fr; }
  .work-teammate { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px 20px; display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 12px; }
  .work-mascot-scene { grid-column: 1; grid-row: 1 / 4; height: 150px; }
  .work-mascot { width: 144px; height: 144px; }
  .work-mascot-shadow { width: 85px; bottom: 3px; }
  .work-orbit { width: 125px; height: 125px; top: 12px; }
  .orbit-two { width: 96px; height: 96px; top: 26px; }
  .work-particle { width: 27px; height: 27px; border-radius: 7px; }
  .work-particle .icon { width: 15px; height: 15px; }
  .particle-one { right: -2px; top: 16px; }
  .particle-two { left: 0; bottom: 18px; }
  .work-name { grid-column: 2; text-align: left; align-self: end; margin-top: 0; }
  .work-name > span { font-size: 12px; }
  .work-name > strong { font-size: 24px; }
  .work-status { grid-column: 2; text-align: left; min-height: 44px; margin-top: 6px; font-size: 13px; gap: 6px; align-items: flex-start; }
  .work-status-dot { margin-top: 8px; }
  .work-total { grid-column: 1 / -1; padding-top: 8px; margin-top: 8px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: center; }
  .work-total > div:first-child { grid-row: 1 / 3; }
  .work-total strong { font-size: 36px; }
  .work-total span { font-size: 16px; }
  .work-total p { margin: 0; text-align: left; font-size: 13px; }
  .work-total-track { width: 100%; height: 5px; }
  .work-flow { padding: 21px 16px 15px; }
  .work-queue-heading { margin-bottom: 15px; }
  .work-queue-heading h3 { font-size: 19px; }
  .work-task { padding: 15px 12px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 5px 10px; align-items: start; }
  .work-task-icon { width: 32px; height: 32px; grid-row: 1 / 3; margin-top: 2px; }
  .work-task-icon .icon { width: 18px; height: 18px; }
  .work-task-copy { display: contents; }
  .work-task h4 { grid-column: 2 / 4; font-size: 16px; line-height: 1.65; }
  .work-task p { grid-column: 2 / 4; font-size: 13px; line-height: 1.8; margin-top: 0; }
  .work-task-track { grid-column: 2; align-self: center; margin-top: 6px; }
  .work-task-state { grid-column: 3; margin-left: 0; font-size: 12px; justify-content: flex-end; }
  .work-log { font-size: 13px; margin-top: 14px; }
  .work-results { padding: 19px 16px 22px; }
  .work-results-heading { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 15px; }
  .work-human-check { font-size: 13px; }
  .work-result-list { grid-template-columns: 1fr; gap: 8px; }
  .work-result { padding: 12px; }
  .work-result strong { font-size: 14px; }
  .work-result small { font-size: 12px; margin-top: 2px; }
  .work-disclaimer { font-size: 13px; }
}
@media (max-width: 370px) {
  .work-teammate { grid-template-columns: 112px minmax(0, 1fr); column-gap: 8px; padding-inline: 16px; }
  .work-mascot { width: 126px; height: 126px; }
  .work-mascot-scene { height: 134px; }
  .work-orbit { width: 105px; height: 105px; top: 12px; }
  .orbit-two { width: 82px; height: 82px; top: 24px; }
  .work-name > strong { font-size: 22px; }
  .work-status { font-size: 12px; }
  .work-flow, .work-results { padding-inline: 12px; }
  .work-task { padding-inline: 10px; gap: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .work-stage *, .work-stage *::before { animation: none !important; transition: none !important; }
}
@media print {
  .work-controls { display: none !important; }
  .work-stage * { animation: none !important; }
  .work-result { opacity: 1 !important; transform: none !important; }
}

/* 軽量なDOMキャラクター。顔・腕・PCを個別に動かせる構成。 */
.ai-avatar { position: absolute; width: 190px; height: 204px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ai-antenna { position: absolute; top: 1px; left: 92px; width: 6px; height: 20px; background: #6b8d58; border-radius: 4px; }
.ai-antenna::before { content: ""; position: absolute; top: -4px; left: -5px; width: 16px; height: 16px; border-radius: 50%; background: #dcf58c; border: 3px solid #476742; box-shadow: 0 2px 6px #37532b20; }
.ai-head { position: absolute; left: 27px; top: 20px; width: 136px; height: 91px; border-radius: 36px; background: linear-gradient(140deg, #fff, #e6ecd9); border: 2px solid #c0d0b1; box-shadow: inset -6px -5px 0 #dbe4cd, 0 8px 16px #2d50241b; z-index: 3; }
.ai-head::before, .ai-head::after { content: ""; width: 9px; height: 25px; position: absolute; top: 29px; background: #a5be92; border-radius: 5px; }
.ai-head::before { left: -9px; }
.ai-head::after { right: -9px; }
.ai-face { position: absolute; inset: 17px 13px 16px; border-radius: 22px; background: linear-gradient(145deg, #244f42, #112f27); box-shadow: inset 0 2px 6px #071d2560; display: flex; justify-content: center; gap: 24px; padding-top: 14px; }
.ai-eye { display: block; width: 10px; height: 14px; border-radius: 6px; background: #dcf58c; box-shadow: 0 0 7px #dcf58c55; }
.ai-smile { position: absolute; width: 17px; height: 8px; border-bottom: 2px solid #c9e989; border-radius: 0 0 15px 15px; bottom: 10px; left: 43px; }
.ai-torso { position: absolute; width: 96px; height: 78px; left: 47px; top: 103px; background: linear-gradient(145deg, #376953, #153c2f); border-radius: 23px 23px 19px 19px; border: 2px solid #123e2f; box-shadow: inset -5px -2px 0 #123c2d; z-index: 2; }
.ai-torso img { width: 27px; height: 27px; position: absolute; top: 8px; left: 33px; filter: none; }
.ai-arm { position: absolute; width: 27px; height: 57px; top: 112px; background: linear-gradient(100deg, #fefef5, #d4e2c6); border: 2px solid #b5cda5; border-radius: 15px; z-index: 4; transform-origin: 50% 15%; }
.arm-left { left: 26px; transform: rotate(-36deg); }
.arm-right { right: 26px; transform: rotate(36deg); }
.ai-foot { position: absolute; top: 170px; width: 35px; height: 28px; background: linear-gradient(#ebf2de, #c5d8b4); border: 2px solid #a8c09b; border-radius: 9px 9px 13px 13px; }
.foot-left { left: 51px; }
.foot-right { right: 51px; }
.ai-laptop { position: absolute; left: 42px; top: 136px; width: 106px; height: 53px; border: 2px solid #577849; border-radius: 7px 7px 3px 3px; background: linear-gradient(135deg, #355b49, #173c30); z-index: 5; transform: perspective(260px) rotateX(-10deg); box-shadow: 0 4px 8px #122f2a2b; display: grid; place-items: center; }
.ai-laptop::after { content: ""; position: absolute; left: -9px; bottom: -6px; width: 120px; height: 6px; border-radius: 2px 2px 8px 8px; background: #adc198; }
.ai-laptop .icon { width: 22px; height: 22px; color: #dcf58c; }
.ai-laptop-line { position: absolute; right: 9px; bottom: 7px; width: 11px; height: 2px; background: #b9d775; }
.work-stage[data-animation="running"] .arm-left { animation: ai-type-left .45s ease-in-out infinite; }
.work-stage[data-animation="running"] .arm-right { animation: ai-type-right .45s ease-in-out infinite; animation-delay: -.22s; }
.work-stage[data-animation="running"] .ai-eye { animation: ai-blink 4s infinite; }
.work-demo[data-phase="complete"] .work-stage[data-animation="running"] .arm-right { animation: ai-wave 1.4s ease-in-out; }
@keyframes ai-type-left { 50% { transform: rotate(-46deg) translateY(-3px); } }
@keyframes ai-type-right { 50% { transform: rotate(46deg) translateY(-3px); } }
@keyframes ai-blink { 0%, 43%, 49%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.15); } }
@keyframes ai-wave { 15%, 65% { transform: rotate(-120deg); } 35%, 85% { transform: rotate(-145deg); } }
@media (max-width: 960px) { .ai-avatar { transform: translate(-50%, -50%) scale(.88); } }
@media (max-width: 700px) { .ai-avatar { transform: translate(-50%, -50%) scale(.68); } }
@media (max-width: 370px) { .ai-avatar { transform: translate(-50%, -50%) scale(.59); } }
