body { font-size: 16px; line-height : 1.6; } #control { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; /* margin-top: 10pxと同じ働き*/ z-index: 1000; } #control button { width: 50px; height: 50px; font-size: 24px; background-color: rgba(100, 150, 255, 0.3); border: 1px solid rgba(100, 150, 255, 0.6); color: #333; border-radius: 8px; cursor: pointer; transition: background-color 0.3s, opacity 0.3s; opacity: 0.7; } #control button: hover { background-color: rgba(100, 150, 255, 0.5); opacity: 1; }