フォークリフトが納品Forklift Delivery
.cg-hr-lift {
position: relative;
width: 300px;
height: 190px;
border-radius: 12px;
background: #F1ECE0;
overflow: hidden;
animation: cg-hr-lift-fade 7s ease infinite;
}
.cg-hr-lift::before {
content: "";
position: absolute;
inset: auto 0 0 0;
height: 12px;
background: repeating-linear-gradient(-45deg, #F2B707 0 12px, #1B1A17 12px 24px);
opacity: .85;
}
/* 納品される貨物カード(降ろされた後にIN STOCKスタンプ) */
.cg-hr-lift .cargo {
position: absolute;
left: 58px;
bottom: 20px;
width: 70px;
height: 58px;
background: #C89B6C;
border: 2px solid #1B1A17;
border-radius: 6px;
box-sizing: border-box;
animation: cg-hr-lift-cargo 7s cubic-bezier(.35, .6, .45, 1) infinite;
}
.cg-hr-lift .cargo .tape { position: absolute; left: -2px; right: -2px; top: 8px; height: 7px; background: repeating-linear-gradient(-45deg, #F2B707 0 7px, #1B1A17 7px 14px); }
.cg-hr-lift .cargo b {
position: absolute;
left: 6px;
right: 6px;
top: 22px;
background: #fff;
border: 1.5px solid #1B1A17;
font-family: monospace;
font-size: 7.5px;
font-weight: 700;
text-align: center;
padding: 2px 0;
color: #1B1A17;
}
.cg-hr-lift .cargo .bars {
position: absolute;
left: 8px;
bottom: 6px;
width: 34px;
height: 9px;
background: repeating-linear-gradient(90deg, #1B1A17 0 2px, transparent 2px 5px, #1B1A17 5px 6px, transparent 6px 9px);
}
.cg-hr-lift .cargo::after {
content: "IN STOCK";
position: absolute;
right: -14px;
top: -12px;
font-family: monospace;
font-size: 8px;
font-weight: 700;
letter-spacing: .1em;
color: #2F8A59;
border: 2px solid #2F8A59;
border-radius: 3px;
padding: 2px 5px;
background: rgba(255, 255, 255, .85);
transform: rotate(-10deg) scale(0);
animation: cg-hr-lift-stamp 7s cubic-bezier(.34, 1.56, .64, 1) infinite;
}
/* CSSだけで描いたフォークリフト(進入→荷降ろし→バック退場) */
.cg-hr-lift .truck {
position: absolute;
left: 132px;
bottom: 18px;
width: 104px;
height: 84px;
animation: cg-hr-lift-truck 7s cubic-bezier(.35, .6, .45, 1) infinite;
}
.cg-hr-lift .mast { position: absolute; left: 12px; bottom: 4px; width: 6px; height: 72px; border-radius: 3px; background: #1B1A17; }
.cg-hr-lift .fork {
position: absolute;
left: -46px;
bottom: 6px;
width: 58px;
height: 6px;
border-radius: 3px;
background: #5A5650;
animation: cg-hr-lift-fork 7s cubic-bezier(.35, .6, .45, 1) infinite;
}
.cg-hr-lift .cab {
position: absolute;
left: 20px;
bottom: 10px;
width: 66px;
height: 34px;
border-radius: 8px 12px 6px 6px;
background: #E8590C;
border: 2px solid #1B1A17;
box-sizing: border-box;
}
.cg-hr-lift .roof {
position: absolute;
left: 30px;
bottom: 42px;
width: 42px;
height: 32px;
border: 3px solid #1B1A17;
border-bottom: none;
border-radius: 8px 8px 0 0;
box-sizing: border-box;
}
.cg-hr-lift .lamp {
position: absolute;
left: 44px;
bottom: 76px;
width: 10px;
height: 7px;
border-radius: 3px 3px 0 0;
background: #F2B707;
animation: cg-hr-lift-lamp 7s step-end infinite;
}
.cg-hr-lift .w {
position: absolute;
bottom: -4px;
width: 20px;
height: 20px;
border-radius: 50%;
background: #1B1A17;
animation: cg-hr-lift-wheel 7s cubic-bezier(.35, .6, .45, 1) infinite;
}
.cg-hr-lift .w::after { content: ""; position: absolute; left: 8px; top: 2px; width: 4px; height: 7px; border-radius: 2px; background: #E9E7E0; }
.cg-hr-lift .wf { left: 22px; }
.cg-hr-lift .wb { left: 62px; }
/* 貨物: 入場はフォーク上(浮いた状態)→40-52%で接地→そのまま残る */
@keyframes cg-hr-lift-cargo {
0% { transform: translate(240px, -22px); }
34% { transform: translate(0, -22px); }
40% { transform: translate(0, -22px); }
52% { transform: translate(0, 0); }
100% { transform: translate(0, 0); }
}
@keyframes cg-hr-lift-truck {
0% { transform: translateX(240px); }
34% { transform: translateX(0); }
62% { transform: translateX(0); }
88%, 100% { transform: translateX(250px); }
}
@keyframes cg-hr-lift-fork {
0%, 40% { transform: translateY(-22px); }
52%, 100% { transform: translateY(0); }
}
@keyframes cg-hr-lift-wheel {
0% { transform: rotate(0); }
34% { transform: rotate(-2.5turn); }
62% { transform: rotate(-2.5turn); }
88%, 100% { transform: rotate(0); }
}
@keyframes cg-hr-lift-lamp {
0%, 8%, 16%, 24%, 32% { background: #F2B707; }
4%, 12%, 20%, 28% { background: #C0392B; }
36%, 60% { background: #F2B707; }
64%, 72%, 80% { background: #C0392B; }
68%, 76%, 84%, 100% { background: #F2B707; }
}
@keyframes cg-hr-lift-stamp {
0%, 56% { transform: rotate(-10deg) scale(0); }
63% { transform: rotate(-10deg) scale(1.15); }
67%, 100% { transform: rotate(-10deg) scale(1); }
}
@keyframes cg-hr-lift-fade {
0%, 93% { opacity: 1; }
100% { opacity: 0; }
}
<div class="cg-hr-lift" aria-hidden="true"><div class="cargo"><i class="tape"></i><b>CSS CARGO</b><i class="bars"></i></div><div class="truck"><i class="mast"></i><i class="fork"></i><i class="cab"></i><i class="roof"></i><i class="lamp"></i><i class="w wf"></i><i class="w wb"></i></div></div>