<div id="counter_wrap"><div id="counter"></div><div><script>let target = new Date(2024, 3, 1, 0, 0, 0);const countdown = ()=>{const targetObj = document.getElementById("counter");const now = new Date();const differ = target.getTime() - now.getTime();if(differ < 0){targetObj.innerHTML = "<br>0時間0分0秒00";return false;};const myDay = Math.floor(differ / 1000 / 60 / 60 / 24);const myHour = Math.floor(differ / 1000 / 60 / 60 % 24);const myMin = Math.floor(differ / 1000 / 60 % 60);const mySec = Math.floor(differ / 1000 % 60);const myMsec= Math.floor(differ);targetObj.innerHTML = + "<br>" + String(myHour).padStart(2, '0') + '時間' + String(myMin).padStart(2, '0') + '分' + String(mySec).padStart(2, '0') +'秒' + String(myMsec).slice(-3, -1);if(differ < 0){clearInterval(countdown);};};setInterval(countdown, 1);</script></div><style>#counter{display:block; max-width:100%; margin:0 auto; width:680px; padding:20px 15px 20px; color:#FF0000; background:#000000; text-align:center; font-size:20px; line-height:1.5em; font-weight:bold;}</style></div>