
<style>
    #global-chat-container {
        max-width: 80%; /* チャット全体の横幅を80%に設定 */
        margin: auto;
    }

    #global-chat-messages {
        padding-top: 10px;
    }

    #global-chat-messages div {
        margin: 10px 0;
        padding: 10px;
        border-radius: 15px;
        background-color: #f1f1f1;
        display: block; /* 吹き出しを縦に並べる */
        width: 80%; /* 吹き出しの横幅を80%に設定 */
        position: relative;
    }

    #global-chat-messages div::after {
        content: '';
        position: absolute;
        top: 10px;
        left: -10px;
        border-width: 10px;
        border-style: solid;
        border-color: transparent #f1f1f1 transparent transparent;
    }

    #global-chat-messages div strong {
        display: block;
        margin-bottom: 5px;
    }

    #global-chat-input {
        width: calc(100% - 50px); /* 送信ボタンのスペースを考慮 */
    }

    #global-send-button {
        height: 50px; /* テキストエリアの高さに合わせる */
    }
</style><div id="calendar-container" style="text-align: center;"><h2 id="calendar-title">2026年4月</h2><div style="margin-bottom: 20px;"><button onclick="changeMonth(-1)">前月</button> | <button onclick="changeMonth(1)">次月</button></div><div id="calendar-content"><table border="1" cellspacing="0" cellpadding="5" style="text-align: center; width: 80%; margin: 0 auto;"><tr><th>日</th><th>月</th><th>火</th><th>水</th><th>木</th><th>金</th><th style="color:blue;">土</th></tr><tr><td></td><td></td><td></td><td  >1</td><td  >2</td><td  >3</td><td style="color:blue;" >4</td></tr><tr><td style="color:red;" >5</td><td  >6</td><td  >7</td><td  >8</td><td  >9</td><td  >10</td><td style="color:blue;" >11</td></tr><tr><td style="color:red;" >12</td><td  >13</td><td  >14</td><td  >15</td><td  >16</td><td  >17</td><td style="color:blue;" >18</td></tr><tr><td style="color:red;" >19</td><td  >20</td><td  >21</td><td  >22</td><td  style="background-color:lightblue;">23</td><td  >24</td><td style="color:blue;" >25</td></tr><tr><td style="color:red;" >26</td><td  >27</td><td  >28</td><td  >29</td><td  >30</td></tr></table><div style="margin-top: 20px; width: 80%; text-align: left; margin: 0 auto;"><h3>今月のイベント一覧</h3><p>今月のイベントはありません。</p></div></div></div>
    <script>
        function changeMonth(offset) {
            const xhr = new XMLHttpRequest();
            const calendarContainer = document.getElementById("calendar-content");
            const calendarTitle = document.getElementById("calendar-title");

            xhr.open("POST", "https://ishimine.infoworld.jp/wp-admin/admin-ajax.php", true);
            xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4 && xhr.status === 200) {
                    const response = JSON.parse(xhr.responseText);
                    calendarContainer.innerHTML = response.content;
                    calendarTitle.textContent = response.title;
                }
            };

            const currentTitle = calendarTitle.textContent;
            const currentYear = parseInt(currentTitle.split("年")[0]);
            const currentMonth = parseInt(currentTitle.split("年")[1].split("月")[0]);
            xhr.send("action=update_calendar&year=" + currentYear + "&month=" + currentMonth + "&offset=" + offset);
        }
    </script>{"id":238,"date":"2024-11-08T16:53:28","date_gmt":"2024-11-08T07:53:28","guid":{"rendered":"https:\/\/ishimine.infoworld.jp\/?page_id=238"},"modified":"2024-11-09T15:31:54","modified_gmt":"2024-11-09T06:31:54","slug":"%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc","status":"publish","type":"page","link":"https:\/\/ishimine.infoworld.jp\/?page_id=238","title":{"rendered":"\u30ab\u30ec\u30f3\u30c0\u30fc"},"content":{"rendered":"\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-238","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ishimine.infoworld.jp\/index.php?rest_route=\/wp\/v2\/pages\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ishimine.infoworld.jp\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ishimine.infoworld.jp\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ishimine.infoworld.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ishimine.infoworld.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=238"}],"version-history":[{"count":5,"href":"https:\/\/ishimine.infoworld.jp\/index.php?rest_route=\/wp\/v2\/pages\/238\/revisions"}],"predecessor-version":[{"id":331,"href":"https:\/\/ishimine.infoworld.jp\/index.php?rest_route=\/wp\/v2\/pages\/238\/revisions\/331"}],"wp:attachment":[{"href":"https:\/\/ishimine.infoworld.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}