CSSjump.htm

戻る

<!DOCTYPE HTML>
<HTML LANG="ja">

<HEAD>
<META CHARSET="Shift_JIS">
<TITLE>スタイルシート ジャンプ ゲーム</TITLE>

<STYLE TYPE="text/css">
<!--

@keyframes run-x {
  from {
    --run-x:0;
  }
  to {
    --run-x:2999;
  }
}

@keyframes repeat {
  from {
    --repeat:0;
  }
  to {
    --repeat:9999;
  }
}

@keyframes jump-y1 {
  from {
    --jump-y:0;
  }
  to {
    --jump-y:80;
  }
}

@keyframes jump-y2 {
  from {
    --jump-y:0;
  }
  to {
    --jump-y:80;
  }
}

@keyframes jumping1 {
  to {
    z-index:2;
  }
}

@keyframes jumping2 {
  to {
    z-index:2;
  }
}

@keyframes fall-y {
  from {
    --fall-y:0;
  }
  to {
    --fall-y:79;
  }
}

@keyframes reset {
  from {
    /* z-index:0 だとマウスを動かすまで #jump1-l,#jump2-l の :hover が発生しない */
    width:0;
  }
  to {
    width:200vw;
  }
}

@keyframes img {
  from {
    box-shadow:var(--img1);
  }
  to {
    box-shadow:var(--img2);
  }
}

@property --run-x {
  syntax:'<integer>';
  inherits:true;
  initial-value:0;
}

@property --repeat {
  syntax: '<integer>';
  inherits: true;
  initial-value: 0;
}

@property --jump-y {
  syntax:'<number>';
  inherits:true;
  initial-value:0;
}

@property --fall-y {
  syntax:'<integer>';
  inherits:true;
  initial-value:0;
}

@counter-style score {
  system:extends decimal;
  pad:5 " ";
}

:root {
  /* 穴の位置・大きさ */
  --hole-x01: 400; --hole-w01:50;
  --hole-x02:1000; --hole-w02:50;
  --hole-x03:1130; --hole-w03:50;
  --hole-x04:1600; --hole-w04:40;
  --hole-x05:1710; --hole-w05:40;
  --hole-x06:1830; --hole-w06:40;
  --hole-x07:2200; --hole-w07:60;
  --hole-x08:2400; --hole-w08:60;
  --hole-x09:2600; --hole-w09:55;
  --hole-x10:2800; --hole-w10:65;
}

body {
  background-color:#CCFFFF;
  overflow:hidden;
}

#title {
  color:#CC0000;
  font-size:large;
  font-weight:bold;
  text-align:center;
}

input {
  display:none;
}

#base {
  position:relative;
  width:480px;
  height:240px;
  margin-left:auto;
  margin-right:auto;
  background-color:#FFFFE0;

  animation:run-x 18s steps(3000, jump-none) infinite paused,
            repeat 180000s steps(10000, jump-none) forwards paused,
            300ms ease-out alternate 2 paused;
  --jump-y:0;

  /* 二巡目以降は穴を少し広げる */
  --w-exp:calc(min(var(--repeat), 1) * 4);

  --hole-e01:calc(var(--hole-x01) + var(--hole-w01) + var(--w-exp));
  --hole-e02:calc(var(--hole-x02) + var(--hole-w02) + var(--w-exp));
  --hole-e03:calc(var(--hole-x03) + var(--hole-w03) + var(--w-exp));
  --hole-e04:calc(var(--hole-x04) + var(--hole-w04) + var(--w-exp));
  --hole-e05:calc(var(--hole-x05) + var(--hole-w05) + var(--w-exp));
  --hole-e06:calc(var(--hole-x06) + var(--hole-w06) + var(--w-exp));
  --hole-e07:calc(var(--hole-x07) + var(--hole-w07) + var(--w-exp));
  --hole-e08:calc(var(--hole-x08) + var(--hole-w08) + var(--w-exp));
  --hole-e09:calc(var(--hole-x09) + var(--hole-w09) + var(--w-exp));
  --hole-e10:calc(var(--hole-x10) + var(--hole-w10) + var(--w-exp));

  --hole01:calc(clamp(0, var(--run-x) - var(--hole-x01) + 1, 1)
                  * clamp(0, var(--hole-e01) - var(--run-x), 1));
  --hole02:calc(clamp(0, var(--run-x) - var(--hole-x02) + 1, 1)
                  * clamp(0, var(--hole-e02) - var(--run-x), 1));
  --hole03:calc(clamp(0, var(--run-x) - var(--hole-x03) + 1, 1)
                  * clamp(0, var(--hole-e03) - var(--run-x), 1));
  --hole04:calc(clamp(0, var(--run-x) - var(--hole-x04) + 1, 1)
                  * clamp(0, var(--hole-e04) - var(--run-x), 1));
  --hole05:calc(clamp(0, var(--run-x) - var(--hole-x05) + 1, 1)
                  * clamp(0, var(--hole-e05) - var(--run-x), 1));
  --hole06:calc(clamp(0, var(--run-x) - var(--hole-x06) + 1, 1)
                  * clamp(0, var(--hole-e06) - var(--run-x), 1));
  --hole07:calc(clamp(0, var(--run-x) - var(--hole-x07) + 1, 1)
                  * clamp(0, var(--hole-e07) - var(--run-x), 1));
  --hole08:calc(clamp(0, var(--run-x) - var(--hole-x08) + 1, 1)
                  * clamp(0, var(--hole-e08) - var(--run-x), 1));
  --hole09:calc(clamp(0, var(--run-x) - var(--hole-x09) + 1, 1)
                  * clamp(0, var(--hole-e09) - var(--run-x), 1));
  --hole10:calc(clamp(0, var(--run-x) - var(--hole-x10) + 1, 1)
                  * clamp(0, var(--hole-e10) - var(--run-x), 1));

  --hole:calc(var(--hole01) + var(--hole02) + var(--hole03) + var(--hole04) + var(--hole05)
            + var(--hole06) + var(--hole07) + var(--hole08) + var(--hole09) + var(--hole10));

  counter-reset:score calc(var(--repeat) * 10
                             + clamp(0, var(--run-x) - var(--hole-e01), 1)
                             + clamp(0, var(--run-x) - var(--hole-e02), 1)
                             + clamp(0, var(--run-x) - var(--hole-e03), 1)
                             + clamp(0, var(--run-x) - var(--hole-e04), 1)
                             + clamp(0, var(--run-x) - var(--hole-e05), 1)
                             + clamp(0, var(--run-x) - var(--hole-e06), 1)
                             + clamp(0, var(--run-x) - var(--hole-e07), 1)
                             + clamp(0, var(--run-x) - var(--hole-e08), 1)
                             + clamp(0, var(--run-x) - var(--hole-e09), 1)
                             + clamp(0, var(--run-x) - var(--hole-e10), 1));
}

/* 得点 */
#base::after {
  position:absolute;
  left:6px;
  top:20px;
  color:#0000FF;
  font-family:monospace;
  font-size:18px;
  font-weight:bold;
  text-shadow:0.4px 0;
  white-space:pre;
  content:counter(score, score);
}

#clip {
  position:absolute;
  left:0;
  top:0;
  width:480px;
  height:240px;
  overflow:clip;
}

#top {
  position:absolute;
  left:calc(var(--run-x) * -1px);
  top:0;
  width:4480px;
  height:16px;
  background:linear-gradient(to right, #00C0E0 8px, #00E0FF 8px) 0 0   / 16px 8px repeat-x,
             linear-gradient(to right, #00E0FF 8px, #00C0E0 8px) 0 8px / 16px 8px repeat-x;
}

#gnd {
  position:absolute;
  left:calc(var(--run-x) * -1px);
  top:208px;
  width:4480px;
  height:32px;
  background:linear-gradient(to right, #804000 8px, #C06000 8px) 0 0    / 16px 8px repeat-x,
             linear-gradient(to right, #C06000 8px, #804000 8px) 0 8px  / 16px 8px repeat-x,
             linear-gradient(to right, #804000 8px, #C06000 8px) 0 16px / 16px 8px repeat-x,
             linear-gradient(to right, #C06000 8px, #804000 8px) 0 24px / 16px 8px repeat-x;
}

/* 穴 */
.hole {
  position:absolute;
  left:calc((120 + var(--hole-x) - var(--run-x)) * 1px);
  top:208px;
  width:calc((var(--hole-w) + var(--w-exp)) * 1px);
  height:32px;
  background-color:#FFFFE0;
}

#hole01 {
  --hole-x:var(--hole-x01);
  --hole-w:var(--hole-w01);
}
#hole02 {
  --hole-x:var(--hole-x02);
  --hole-w:var(--hole-w02);
}
#hole03 {
  --hole-x:var(--hole-x03);
  --hole-w:var(--hole-w03);
}
#hole04 {
  --hole-x:var(--hole-x04);
  --hole-w:var(--hole-w04);
}
#hole05 {
  --hole-x:var(--hole-x05);
  --hole-w:var(--hole-w05);
}
#hole06 {
  --hole-x:var(--hole-x06);
  --hole-w:var(--hole-w06);
}
#hole07 {
  --hole-x:var(--hole-x07);
  --hole-w:var(--hole-w07);
}
#hole08 {
  --hole-x:var(--hole-x08);
  --hole-w:var(--hole-w08);
}
#hole09 {
  --hole-x:var(--hole-x09);
  --hole-w:var(--hole-w09);
}
#hole10 {
  --hole-x:var(--hole-x10);
  --hole-w:var(--hole-w10);
}

/* ジャンパー */
#jumper {
  position:absolute;
  left:calc((104 + min(var(--fall-y), 1)
                     /* 穴に落ちるときの横位置の調整 */
                     * (var(--hole01) * (max(var(--hole-x01) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e01) + 16, 0))
                      + var(--hole02) * (max(var(--hole-x02) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e02) + 16, 0))
                      + var(--hole03) * (max(var(--hole-x03) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e03) + 16, 0))
                      + var(--hole04) * (max(var(--hole-x04) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e04) + 16, 0))
                      + var(--hole05) * (max(var(--hole-x05) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e05) + 16, 0))
                      + var(--hole06) * (max(var(--hole-x06) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e06) + 16, 0))
                      + var(--hole07) * (max(var(--hole-x07) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e07) + 16, 0))
                      + var(--hole08) * (max(var(--hole-x08) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e08) + 16, 0))
                      + var(--hole09) * (max(var(--hole-x09) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e09) + 16, 0))
                      + var(--hole10) * (max(var(--hole-x10) - var(--run-x) + 16, 0)
                                           - max(var(--run-x) - var(--hole-e10) + 16, 0))
                       )) * 1px);
  top:calc((168 - var(--jump-y) + var(--fall-y)) * 1px);
  width:1px;
  height:1px;
  color:#070;

  animation:img 300ms steps(2, jump-none) infinite paused,
            fall-y 300ms steps(80, jump-none) forwards paused;
  box-shadow:var(--img1);
}

#jump1-l, #jump2-l {
  display:inline-block;
  position:absolute;
  left:-100vw;
  top:-100vh;
  width:200vw;
  height:200vh;
  z-index:1;
}

:is(#jump1-l, #jump2-l):hover ~ #base {
  animation-play-state:running;
}

:is(#jump1-l, #jump2-l):hover ~ #base #jumper {
  animation-play-state:running, paused;
}

#jumping {
  position:absolute;
  left:-100vw;
  top:-100vh;
  width:200vw;
  height:200vh;
  z-index:0;

  animation:600ms step-start paused;
}

#jumping:hover {
  animation-play-state:running;
}

#jumping:hover ~ #base {
  animation-play-state:running;
}

#jumping:hover ~ #base #jumper {
  animation-name:none, fall-y;
}

#falling {
  position:absolute;
  left:-100vw;
  top:-100vh;
  width:200vw;
  height:200vh;
  z-index:var(--hole);
}

#falling:hover ~ #clip > #jumper {
  animation-play-state:paused, running;
}

#falling:hover ~ #reset-l {
  animation-play-state:running;
}

#jump1:checked ~ #jump1-l {
  z-index:0;
}

#jump2:checked ~ #jump2-l {
  z-index:0;
}

#jump1:checked ~ #base {
  animation-name:run-x, repeat, jump-y1;
}

#jump2:checked ~ #base {
  animation-name:run-x, repeat, jump-y2;
}

#jump1:checked ~ #jumping {
  animation-name:jumping1;
}

#jump2:checked ~ #jumping {
  animation-name:jumping2;
}

#start-l {
  display:inline-block;
  position:absolute;
  left:-100vw;
  top:-100vh;
  width:200vw;
  height:200vh;
  z-index:1;
}

#reset-l {
  display:inline-block;
  position:absolute;
  left:-100vw;
  top:-100vh;
  height:200vh;
  z-index:1;

  animation:reset 300ms step-end forwards paused;
}

#start:checked ~ #form #start-l {
  /* z-index:0 だとマウスを動かすまで #jump1-l,#jump2-l の :hover が発生しない */
  width:0;
}

#start:not(:checked) ~ #form #jumper {
  animation:none;
  box-shadow:var(--img2);
}

/* 詳細度を上げるために ID を重複して指定している */
#reset#reset:active ~ #base {
  animation:none;
}

#reset:active ~ #base #jumper {
  animation:none;
}

#reset:active ~ #base #reset-l {
  width:200vw;

  animation:none;
}

/* インベーダー */
#inv1, #inv2, #inv3 {
  position:absolute;
  left:calc((var(--x) - var(--run-x)) * 1px);
  top:46px;
  width:3px;
  height:3px;

  animation:img 1600ms steps(2, jump-none) infinite;
}

#inv1 {
  color:#F0F;

  --x:1200;
}

#inv2 {
  color:#0FF;

  --x:2000;
}

#inv3 {
  color:#0F0;

  --x:2800;
}

/* ジャンパー画像 */

#jumper {
  --img1:
20px 0 #070D,21px 0,22px 0,23px 0 #0705,19px 1px,20px 1px,21px 1px,22px 1px,23px 1px,
24px 1px #0708,18px 2px,19px 2px,20px 2px,21px 2px,22px 2px,23px 2px,24px 2px #070D,
25px 2px #0701,18px 3px,19px 3px,20px 3px,21px 3px,22px 3px,23px 3px,24px 3px,25px 3px #0705,
18px 4px #070C,19px 4px,20px 4px,21px 4px,22px 4px,23px 4px,24px 4px,25px 4px #0705,18px 5px,
19px 5px,20px 5px,21px 5px,22px 5px,23px 5px,24px 5px,19px 6px #070B,20px 6px,21px 6px,22px 6px,
23px 6px,20px 7px #0701,21px 7px #0703,18px 8px #070D,19px 8px #070E,20px 8px #070E,
21px 8px #0708,10px 9px #0705,11px 9px #0704,12px 9px #070B,13px 9px #070C,14px 9px #070E,
15px 9px #070D,16px 9px #070E,17px 9px,18px 9px,19px 9px,20px 9px,21px 9px,22px 9px #070A,
9px 10px #0704,10px 10px,11px 10px,12px 10px,13px 10px,14px 10px,15px 10px,16px 10px,17px 10px,
18px 10px,19px 10px,20px 10px,21px 10px,22px 10px,9px 11px #070D,10px 11px,11px 11px,12px 11px,
13px 11px,14px 11px #070E,15px 11px #070E,16px 11px,17px 11px,18px 11px,19px 11px,20px 11px,
21px 11px,22px 11px,8px 12px #0704,9px 12px,10px 12px,11px 12px #070E,16px 12px,17px 12px,
18px 12px,19px 12px,20px 12px,21px 12px,22px 12px,8px 13px #070E,9px 13px,10px 13px,
15px 13px #0709,16px 13px,17px 13px,18px 13px,19px 13px,20px 13px,21px 13px,22px 13px,
7px 14px #0703,8px 14px,9px 14px,10px 14px,15px 14px #070B,16px 14px,17px 14px,18px 14px,
19px 14px,20px 14px,21px 14px,22px 14px,23px 14px #0707,7px 15px #0704,8px 15px,9px 15px,
10px 15px #070E,14px 15px #0703,15px 15px,16px 15px,17px 15px,18px 15px,19px 15px,20px 15px,
21px 15px,22px 15px,23px 15px,7px 16px #070D,8px 16px,9px 16px,14px 16px #070B,15px 16px,
16px 16px,17px 16px,18px 16px,19px 16px,20px 16px,21px 16px,22px 16px,23px 16px,7px 17px,
8px 17px,9px 17px #070E,14px 17px #070E,15px 17px,16px 17px,17px 17px,18px 17px,19px 17px,
20px 17px #070E,21px 17px #070E,22px 17px,23px 17px #070E,24px 17px #0705,25px 17px #0708,
26px 17px #0709,27px 17px #0709,28px 17px #070B,29px 17px,30px 17px #070C,31px 17px #0701,
7px 18px #070E,8px 18px,13px 18px #0708,14px 18px,15px 18px,16px 18px,17px 18px,18px 18px,
19px 18px,20px 18px #070B,21px 18px #0702,22px 18px,23px 18px,24px 18px #070E,25px 18px #070E,
26px 18px #070E,27px 18px #070E,28px 18px #070E,29px 18px #070E,30px 18px,31px 18px #070A,
13px 19px #070E,14px 19px,15px 19px,16px 19px,17px 19px,18px 19px,19px 19px,20px 19px #0702,
22px 19px #070E,23px 19px,24px 19px,25px 19px,26px 19px,27px 19px,28px 19px,29px 19px #070E,
30px 19px #070D,13px 20px,14px 20px,15px 20px,16px 20px,17px 20px,18px 20px,19px 20px,
22px 20px #0703,23px 20px #070A,24px 20px #0706,25px 20px #0702,12px 21px #070B,13px 21px,
14px 21px,15px 21px,16px 21px,17px 21px,18px 21px,19px 21px,20px 21px,21px 21px #070E,
22px 21px #070B,23px 21px #0702,12px 22px,13px 22px,14px 22px,15px 22px,16px 22px,17px 22px,
18px 22px,19px 22px,20px 22px,21px 22px,22px 22px,23px 22px,24px 22px #070D,25px 22px #070C,
26px 22px #0706,12px 23px,13px 23px,14px 23px #070E,15px 23px #070E,18px 23px #070D,
19px 23px #070D,20px 23px,21px 23px,22px 23px,23px 23px,24px 23px,25px 23px,26px 23px,
27px 23px,28px 23px #0709,11px 24px #070B,12px 24px,13px 24px,14px 24px #070C,20px 24px #0701,
21px 24px #070B,22px 24px,23px 24px,24px 24px,25px 24px,26px 24px,27px 24px,28px 24px,11px 25px,
12px 25px,13px 25px,14px 25px #070E,22px 25px #0701,23px 25px,24px 25px,25px 25px,26px 25px,
27px 25px,28px 25px,11px 26px,12px 26px,13px 26px,14px 26px #0706,21px 26px #0701,22px 26px,
23px 26px,24px 26px,25px 26px,26px 26px,27px 26px,10px 27px #070E,11px 27px,12px 27px,
13px 27px #070E,20px 27px #070B,21px 27px,22px 27px,23px 27px,24px 27px,25px 27px,10px 28px,
11px 28px,12px 28px,13px 28px #070E,18px 28px #0701,19px 28px #070E,20px 28px #070D,21px 28px,
22px 28px #070E,23px 28px,24px 28px #070D,25px 28px #0701,8px 29px #0706,9px 29px #070C,
10px 29px,11px 29px,12px 29px,13px 29px #0705,17px 29px #0705,18px 29px #070E,19px 29px,
20px 29px,21px 29px,22px 29px #070E,23px 29px #070B,6px 30px #070C,7px 30px,8px 30px,
9px 30px #070E,10px 30px,11px 30px,12px 30px,17px 30px #0708,18px 30px,19px 30px,20px 30px,
21px 30px,3px 31px #0708,4px 31px #070C,5px 31px,6px 31px,7px 31px,8px 31px,9px 31px,10px 31px,
11px 31px,17px 31px,18px 31px,19px 31px,20px 31px #0708,0 32px #0704,1px 32px,2px 32px #070D,
3px 32px,4px 32px,5px 32px,6px 32px,7px 32px,8px 32px,9px 32px #070A,0 33px,1px 33px,2px 33px,
3px 33px,4px 33px,5px 33px,6px 33px #070E,7px 33px #0703,0 34px,1px 34px,2px 34px,3px 34px,
4px 34px #070E,5px 34px #0702,0 35px #0708,1px 35px,2px 35px #0703;
  --img2:
20px 0 #070A,21px 0 #070E,22px 0,23px 0,24px 0 #0702,19px 1px #070E,20px 1px,21px 1px,22px 1px,
23px 1px,24px 1px,25px 1px #0702,19px 2px,20px 2px,21px 2px,22px 2px,23px 2px,24px 2px,25px 2px,
18px 3px #0701,19px 3px,20px 3px,21px 3px,22px 3px,23px 3px,24px 3px,25px 3px,19px 4px,20px 4px,
21px 4px,22px 4px,23px 4px,24px 4px,25px 4px #070D,19px 5px,20px 5px,21px 5px,22px 5px,23px 5px,
24px 5px,25px 5px #0707,20px 6px #070C,21px 6px,22px 6px,23px 6px #070E,24px 6px #070A,
18px 8px #070B,19px 8px,20px 8px,21px 8px,22px 8px #0708,11px 9px,12px 9px,13px 9px,14px 9px,
15px 9px,16px 9px,17px 9px,18px 9px,19px 9px,20px 9px,21px 9px,22px 9px,23px 9px #0704,
11px 10px,12px 10px,13px 10px,14px 10px,15px 10px,16px 10px,17px 10px,18px 10px,19px 10px,
20px 10px,21px 10px,22px 10px,23px 10px,10px 11px #070A,11px 11px,12px 11px,13px 11px #070D,
14px 11px,15px 11px,16px 11px #070B,17px 11px,18px 11px,19px 11px,20px 11px,21px 11px,22px 11px,
23px 11px,10px 12px,11px 12px,12px 12px,16px 12px #0709,17px 12px,18px 12px,19px 12px,20px 12px,
21px 12px,22px 12px,23px 12px #0706,10px 13px #070E,11px 13px,12px 13px #070D,16px 13px #070D,
17px 13px,18px 13px,19px 13px,20px 13px,21px 13px,22px 13px,23px 13px #0702,9px 14px #0706,
10px 14px,11px 14px,12px 14px #070A,15px 14px #0702,16px 14px,17px 14px,18px 14px,19px 14px,
20px 14px,21px 14px,22px 14px,23px 14px,28px 14px,29px 14px,9px 15px #070B,10px 15px,11px 15px,
15px 15px #070A,16px 15px,17px 15px,18px 15px,19px 15px,20px 15px,21px 15px,22px 15px,23px 15px,
26px 15px,27px 15px,28px 15px,29px 15px,30px 15px #070D,9px 16px,10px 16px,11px 16px,
15px 16px #070D,16px 16px,17px 16px,18px 16px,19px 16px,20px 16px,21px 16px,22px 16px,23px 16px,
24px 16px,25px 16px #070E,26px 16px,27px 16px,28px 16px,29px 16px,9px 17px #070E,10px 17px,
11px 17px #070D,14px 17px #0705,15px 17px,16px 17px,17px 17px,18px 17px,19px 17px,20px 17px,
21px 17px,22px 17px,23px 17px,24px 17px,25px 17px,26px 17px #070E,27px 17px,28px 17px #0707,
9px 18px #0704,10px 18px #0705,14px 18px #070E,15px 18px,16px 18px,17px 18px,18px 18px,
19px 18px,20px 18px,21px 18px #070D,22px 18px,23px 18px,24px 18px,25px 18px #070C,
26px 18px #0705,14px 19px #070D,15px 19px,16px 19px,17px 19px,18px 19px,19px 19px,
20px 19px #070D,22px 19px #070D,23px 19px #070E,24px 19px #070B,14px 20px #070B,15px 20px,
16px 20px,17px 20px,18px 20px,19px 20px,20px 20px #0706,15px 21px,16px 21px,17px 21px,18px 21px,
19px 21px #070D,5px 22px #070E,15px 22px,16px 22px,17px 22px,18px 22px,19px 22px #070E,4px 23px,
5px 23px,6px 23px,7px 23px #0707,15px 23px,16px 23px,17px 23px,18px 23px,19px 23px,
20px 23px #0706,4px 24px,5px 24px #070E,6px 24px,7px 24px,8px 24px #070B,14px 24px #070C,
15px 24px,16px 24px,17px 24px,18px 24px,19px 24px,20px 24px #070D,4px 25px #0702,5px 25px #070D,
6px 25px,7px 25px,8px 25px,9px 25px #0707,14px 25px,15px 25px,16px 25px,17px 25px,18px 25px,
19px 25px,20px 25px #070E,21px 25px #070D,5px 26px #0708,6px 26px,7px 26px,8px 26px,9px 26px,
10px 26px #070A,13px 26px #070C,14px 26px,15px 26px,16px 26px,18px 26px,19px 26px,20px 26px,
21px 26px,22px 26px #070E,7px 27px,8px 27px,9px 27px,10px 27px,11px 27px #0706,13px 27px #070C,
14px 27px,15px 27px,16px 27px,19px 27px,20px 27px,21px 27px,22px 27px,8px 28px #070C,9px 28px,
10px 28px,11px 28px,12px 28px #070E,13px 28px,14px 28px,15px 28px,19px 28px #0701,
20px 28px #070E,21px 28px,22px 28px,23px 28px,8px 29px #0702,9px 29px #070E,10px 29px #070E,
11px 29px,12px 29px,13px 29px,14px 29px,15px 29px,20px 29px #070B,21px 29px,22px 29px,23px 29px,
10px 30px #070E,11px 30px,12px 30px,13px 30px,14px 30px,15px 30px #070A,20px 30px #0705,
21px 30px,22px 30px,23px 30px,24px 30px #070B,10px 31px #0702,11px 31px #070E,12px 31px,
13px 31px,14px 31px #070E,21px 31px #070D,22px 31px,23px 31px,24px 31px,12px 32px #070E,
13px 32px,14px 32px #0705,21px 32px #0704,22px 32px,23px 32px,24px 32px,25px 32px #0702,
22px 33px #070D,23px 33px #070E,24px 33px,25px 33px #070A,22px 34px #0702,23px 34px #070E,
24px 34px,25px 34px,26px 34px #0702,23px 35px #070E,24px 35px,25px 35px,26px 35px #0709,
23px 36px #0702,24px 36px,25px 36px,26px 36px,27px 36px #0706,24px 37px,25px 37px,26px 37px,
27px 37px,24px 38px #0706,25px 38px,26px 38px,27px 38px #070D,25px 39px #070E,26px 39px,
27px 39px #0705;
}

/* インベーダー画像 */

#inv1 {
  --img1:
12px 0,15px 0,18px 0,21px 0,3px 3px,6px 3px,9px 3px,12px 3px,15px 3px,18px 3px,21px 3px,
24px 3px,27px 3px,30px 3px,0 6px,3px 6px,6px 6px,9px 6px,12px 6px,15px 6px,18px 6px,21px 6px,
24px 6px,27px 6px,30px 6px,33px 6px,0 9px,3px 9px,6px 9px,9px 9px #444,12px 9px #444,15px 9px,
18px 9px,21px 9px #444,24px 9px #444,27px 9px,30px 9px,33px 9px,0 12px,3px 12px,6px 12px,
9px 12px,12px 12px,15px 12px,18px 12px,21px 12px,24px 12px,27px 12px,30px 12px,33px 12px,
9px 15px,12px 15px,21px 15px,24px 15px,6px 18px,9px 18px,15px 18px,18px 18px,24px 18px,
27px 18px,0 21px,3px 21px,30px 21px,33px 21px;
  --img2:
12px 0,15px 0,18px 0,21px 0,3px 3px,6px 3px,9px 3px,12px 3px,15px 3px,18px 3px,21px 3px,
24px 3px,27px 3px,30px 3px,0 6px,3px 6px,6px 6px,9px 6px,12px 6px,15px 6px,18px 6px,21px 6px,
24px 6px,27px 6px,30px 6px,33px 6px,0 9px,3px 9px,6px 9px,9px 9px #444,12px 9px #444,15px 9px,
18px 9px,21px 9px #444,24px 9px #444,27px 9px,30px 9px,33px 9px,0 12px,3px 12px,6px 12px,
9px 12px,12px 12px,15px 12px,18px 12px,21px 12px,24px 12px,27px 12px,30px 12px,33px 12px,
6px 15px,9px 15px,12px 15px,21px 15px,24px 15px,27px 15px,3px 18px,6px 18px,15px 18px,
18px 18px,27px 18px,30px 18px,6px 21px,9px 21px,24px 21px,27px 21px;
}

#inv2 {
  --img1:
6px 0,24px 0,9px 3px,21px 3px,6px 6px,9px 6px,12px 6px,15px 6px,18px 6px,21px 6px,24px 6px,
3px 9px,6px 9px,9px 9px #444,12px 9px,15px 9px,18px 9px,21px 9px #444,24px 9px,27px 9px,0 12px,
3px 12px,6px 12px,9px 12px,12px 12px,15px 12px,18px 12px,21px 12px,24px 12px,27px 12px,
30px 12px,0 15px,6px 15px,9px 15px,12px 15px,15px 15px,18px 15px,21px 15px,24px 15px,30px 15px,
0 18px,6px 18px,24px 18px,30px 18px,9px 21px,12px 21px,18px 21px,21px 21px;
  --img2:
6px 0,24px 0,0 3px,9px 3px,21px 3px,30px 3px,0 6px,6px 6px,9px 6px,12px 6px,15px 6px,18px 6px,
21px 6px,24px 6px,30px 6px,0 9px,3px 9px,6px 9px,9px 9px #444,12px 9px,15px 9px,18px 9px,
21px 9px #444,24px 9px,27px 9px,30px 9px,0 12px,3px 12px,6px 12px,9px 12px,12px 12px,15px 12px,
18px 12px,21px 12px,24px 12px,27px 12px,30px 12px,3px 15px,6px 15px,9px 15px,12px 15px,
15px 15px,18px 15px,21px 15px,24px 15px,27px 15px,6px 18px,24px 18px,3px 21px,27px 21px;
}

#inv3 {
  --img1:
9px 0,12px 0,6px 3px,9px 3px,12px 3px,15px 3px,3px 6px,6px 6px,9px 6px,12px 6px,15px 6px,
18px 6px,0 9px,3px 9px,6px 9px #444,9px 9px,12px 9px,15px 9px #444,18px 9px,21px 9px,0 12px,
3px 12px,6px 12px,9px 12px,12px 12px,15px 12px,18px 12px,21px 12px,
3px 15px,9px 15px,12px 15px,18px 15px,0 18px,21px 18px,3px 21px,18px 21px;
  --img2:
9px 0,12px 0,6px 3px,9px 3px,12px 3px,15px 3px,3px 6px,6px 6px,9px 6px,12px 6px,15px 6px,
18px 6px,0 9px,3px 9px,6px 9px #444,9px 9px,12px 9px,15px 9px #444,18px 9px,21px 9px,0 12px,
3px 12px,6px 12px,9px 12px,12px 12px,15px 12px,18px 12px,21px 12px,
6px 15px,15px 15px,3px 18px,9px 18px,12px 18px,18px 18px,0 21px,6px 21px,15px 21px,21px 21px;
}

-->
</STYLE>

</HEAD>

<BODY>
<BR>
<DIV ID="title">スタイルシート ジャンプ ゲーム</DIV>
<BR>

<INPUT TYPE=RADIO ID="start">
<FORM ID="form">
<INPUT TYPE=RESET ID="reset">
<INPUT TYPE=RADIO NAME="jump" ID="jump1">
<INPUT TYPE=RADIO NAME="jump" ID="jump2">

<LABEL ID="jump1-l" FOR="jump1"></LABEL>
<LABEL ID="jump2-l" FOR="jump2"></LABEL>
<DIV ID="jumping"></DIV>
<DIV ID="base">
<DIV ID="falling"></DIV>

<DIV ID="clip">
<DIV ID="top"></DIV>
<DIV ID="gnd"></DIV>

<!-- 穴 -->
<DIV ID="hole01" CLASS="hole"></DIV>
<DIV ID="hole02" CLASS="hole"></DIV>
<DIV ID="hole03" CLASS="hole"></DIV>
<DIV ID="hole04" CLASS="hole"></DIV>
<DIV ID="hole05" CLASS="hole"></DIV>
<DIV ID="hole06" CLASS="hole"></DIV>
<DIV ID="hole07" CLASS="hole"></DIV>
<DIV ID="hole08" CLASS="hole"></DIV>
<DIV ID="hole09" CLASS="hole"></DIV>
<DIV ID="hole10" CLASS="hole"></DIV>

<DIV ID="jumper"></DIV>
<DIV ID="inv1"></DIV>
<DIV ID="inv2"></DIV>
<DIV ID="inv3"></DIV>
</DIV>

<LABEL ID="start-l" FOR="start"></LABEL>
<LABEL ID="reset-l" FOR="reset"></LABEL>
</DIV>

</FORM>

</BODY>

</HTML>