<!DOCTYPE html>
<html lang="ja">
<head>
  <meta charset="UTF-8">
  <title>+ぶぅたんのねごと+</title>
  <style>
    body {
      margin: 0;
      background: url('app_banner.png') no-repeat top center / cover;
      font-family: 'Rounded Mplus 1c', sans-serif;
    }
    #greeting-box {
      margin-top: 220px;
      text-align: center;
      color: #693b65;
      font-weight: bold;
      font-size: 18px;
      background-color: rgba(255,255,255,0.8);
      display: inline-block;
      padding: 12px 24px;
      border-radius: 16px;
      box-shadow: 0 0 8px #ccc;
    }
  </style>
</head>
<body>
  <div id="greeting-box"></div>

  <script>
    const greetings = [
      { from: 5, to: 10, message: ['ぉはようもふ♪', '今日わ、何して遊ぶもふ？'] },
      { from: 11, to: 13, message: ['こんにちわもふ♪', '午後も、がんばるもふ！'] },
      { from: 14, to: 16, message: ['ぉゃっの時間もふ♪', 'ちょっと一息いれるもふ♪'] },
      { from: 17, to: 18, message: ['晩ごはんの時間もふ♪', 'ぶぅわドーナツが食べたいもふ♪'] },
      { from: 19, to: 23, message: ['こんばんわもふ♪', 'コンテンツ攻略頑張るもふ♪'] },
      { from: 0, to: 4,  message: ['夜ふかしさんもふ♪', '寝る前に、アイテム整理するもふ？'] }
    ];

    const now = new Date();
    const hour = now.getHours();
    const greeting = greetings.find(g => hour >= g.from && hour <= g.to);
    const box = document.getElementById('greeting-box');
    box.innerHTML = greeting.message.join('<br>');
  </script>
</body>
</html>
