🗺️北海道知事:
🗾東京都知事:
以下から知事の政治的立場を選んでください:
```html
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>都道府県知事の投票アプリ</title>
<style>
@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-30px); }
60% { transform: translateY(-15px); }
}
@keyframes rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div style="width: 400px; height: 400px; overflow: auto; border: 5px solid #FFD700; border-radius: 10px; padding: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.5); background-color: #FFE4B5;">
<div style="text-align: center; margin-bottom: 10px;">
<h1 style="color: #FF4500;">🗳️ 日本全国知事 投票 🗳️</h1>
<p>以下から知事の政治的立場を選んでください:</p>
</div>
<div id="content">
<!-- 知事のリスト (サンプル) -->
<div style="margin-bottom: 20px;">
<span style="font-size: 20px;">🗺️北海道知事: </span>
<button style="margin: 5px;" onclick="vote(this, '右')">👉 右</button>
<button style="margin: 5px;" onclick="vote(this, '保守')">✊ 保守</button>
<button style="margin: 5px;" onclick="vote(this, '左')">👈 左</button>
</div>
<div style="margin-bottom: 20px;">
<span style="font-size: 20px;">🗾東京都知事: </span>
<button style="margin: 5px;" onclick="vote(this, '右')">👉 右</button>
<button style="margin: 5px;" onclick="vote(this, '保守')">✊ 保守</button>
<button style="margin: 5px;" onclick="vote(this, '左')">👈 左</button>
</div>
<!-- 他の知事も同様に追加できます -->
</div>
</div>
<script>
function vote(button, position) {
// 投票メッセージを表示
alert('「' + position + '」に投票しました!🗳️');
// ボタンをアニメーションさせる
button.style.animation = 'bounce 1s ease';
setTimeout(() => {
button.style.animation = '';
}, 1000);
// ボタンの背景色を変える
button.style.backgroundColor = '#ADFF2F';
// 🎉を回転させる
const emoji = document.createElement('span');
emoji.innerHTML = '🎉';
emoji.style.fontSize = '20px';
emoji.style.animation = 'rotate 2s ease infinite';
button.parentNode.appendChild(emoji);
}
</script>
</body>
</html>
```