{"id":4398,"date":"2025-05-08T21:03:46","date_gmt":"2025-05-08T12:03:46","guid":{"rendered":"https:\/\/tiss-japan.com\/?p=4398"},"modified":"2025-05-16T20:41:57","modified_gmt":"2025-05-16T11:41:57","slug":"%e3%80%8echatgpt%e3%81%ab%e6%98%9f%e5%ba%a7%e5%8d%a0%e3%81%84%e3%82%92%e4%bd%9c%e6%88%90%e3%81%97%e3%81%a6%e3%82%82%e3%82%89%e3%81%86%e3%80%8f","status":"publish","type":"post","link":"https:\/\/tiss-japan.com\/?p=4398","title":{"rendered":"\u300eChatGPT\u306b\u661f\u5ea7\u5360\u3044\u3092\u4f5c\u6210\u3057\u3066\u3082\u3089\u3046\u300f"},"content":{"rendered":"\n<p class=\"has-border -border02\"><span class=\"swl-fz u-fz-xl\"><span class=\"swl-marker mark_orange\"><strong>ChatGPT\u306b\u8a95\u751f\u65e5\u3092\u5165\u529b\u3057\u3066\u661f\u5ea7\u5360\u3044\u3092\u4f5c\u6210\u3057\u3066\u3082\u3089\u3046\u3002\uff01\uff01<\/strong><\/span><\/span><\/p>\n\n\n\n<!DOCTYPE html>\n<html lang=\"ja\">\n<head>\n  <meta charset=\"UTF-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  <title>\u8a95\u751f\u65e5\u3067\u5360\u304612\u661f\u5ea7\u5360\u3044<\/title>\n  <style>\n    body {\n      font-family: 'Arial', sans-serif;\n      background: linear-gradient(#f0f8ff, #fff);\n      text-align: center;\n      padding: 40px;\n    }\n\n    h1 {\n      font-size: 2em;\n      margin-bottom: 20px;\n    }\n\n    input, button {\n      padding: 10px;\n      font-size: 1em;\n      margin: 10px;\n    }\n\n    #result {\n      margin-top: 30px;\n      font-size: 1.3em;\n      color: #333;\n    }\n\n    .fortune {\n      font-size: 2em;\n      font-weight: bold;\n      margin-top: 10px;\n    }\n  <\/style>\n<\/head>\n<body>\n\n  <h1>&#x1f52e; \u8a95\u751f\u65e5\u304b\u3089\u5360\u304612\u661f\u5ea7\u5360\u3044 &#x1f52e;<\/h1>\n\n  <p>\u3042\u306a\u305f\u306e\u8a95\u751f\u65e5\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p>\n  <input type=\"date\" id=\"birthday\">\n  <button onclick=\"startFortune()\">\u5360\u3046\uff01<\/button>\n\n  <div id=\"result\"><\/div>\n\n  <script>\n    const fortunes = [\n      { label: \"\u5927\u5409\", message: \"\u6700\u9ad8\u306e\u4e00\u65e5\u306b\u306a\u308a\u305d\u3046\uff01\u601d\u3044\u5207\u3063\u305f\u884c\u52d5\u304c\u5409\u3002\" },\n      { label: \"\u4e2d\u5409\", message: \"\u306a\u304b\u306a\u304b\u826f\u3044\u65e5\u3002\u53cb\u4eba\u3068\u306e\u4ea4\u6d41\u3092\u5927\u5207\u306b\u3002\" },\n      { label: \"\u5409\",   message: \"\u5b89\u5b9a\u3057\u305f\u65e5\u3002\u81ea\u5206\u306e\u30da\u30fc\u30b9\u3067\u9032\u3082\u3046\u3002\" },\n      { label: \"\u672b\u5409\", message: \"\u63a7\u3048\u3081\u306a\u884c\u52d5\u304c\u904b\u3092\u547c\u3076\u304b\u3082\u3002\" },\n      { label: \"\u51f6\",   message: \"\u4eca\u65e5\u306f\u7121\u7406\u3092\u305b\u305a\u614e\u91cd\u306b\u884c\u52d5\u3057\u307e\u3057\u3087\u3046\u3002\" }\n    ];\n\n    function getZodiac(month, day) {\n      const signs = [\n        { name: \"\u3084\u304e\u5ea7\", from: [12, 22], to: [1, 19] },\n        { name: \"\u307f\u305a\u304c\u3081\u5ea7\", from: [1, 20], to: [2, 18] },\n        { name: \"\u3046\u304a\u5ea7\", from: [2, 19], to: [3, 20] },\n        { name: \"\u304a\u3072\u3064\u3058\u5ea7\", from: [3, 21], to: [4, 19] },\n        { name: \"\u304a\u3046\u3057\u5ea7\", from: [4, 20], to: [5, 20] },\n        { name: \"\u3075\u305f\u3054\u5ea7\", from: [5, 21], to: [6, 21] },\n        { name: \"\u304b\u306b\u5ea7\", from: [6, 22], to: [7, 22] },\n        { name: \"\u3057\u3057\u5ea7\", from: [7, 23], to: [8, 22] },\n        { name: \"\u304a\u3068\u3081\u5ea7\", from: [8, 23], to: [9, 22] },\n        { name: \"\u3066\u3093\u3073\u3093\u5ea7\", from: [9, 23], to: [10, 23] },\n        { name: \"\u3055\u305d\u308a\u5ea7\", from: [10, 24], to: [11, 22] },\n        { name: \"\u3044\u3066\u5ea7\", from: [11, 23], to: [12, 21] }\n      ];\n\n      for (const sign of signs) {\n        const [fromM, fromD] = sign.from;\n        const [toM, toD] = sign.to;\n\n        if ((month === fromM && day >= fromD) || (month === toM && day <= toD)) {\n          return sign.name;\n        }\n      }\n\n      return \"\u4e0d\u660e\";\n    }\n\n    function startFortune() {\n      const birthday = document.getElementById('birthday').value;\n      if (!birthday) {\n        alert(\"\u8a95\u751f\u65e5\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff01\");\n        return;\n      }\n\n      const date = new Date(birthday);\n      const month = date.getMonth() + 1;\n      const day = date.getDate();\n\n      const sign = getZodiac(month, day);\n      const result = fortunes[Math.floor(Math.random() * fortunes.length)];\n\n      document.getElementById('result').innerHTML = `\n        <p>\u3042\u306a\u305f\u306e\u661f\u5ea7\u306f <strong>${sign}<\/strong> \u3067\u3059\u3002<\/p>\n        <p>\u4eca\u65e5\u306e\u904b\u52e2\u306f\u2026<\/p>\n        <div class=\"fortune\">${result.label}<\/div>\n        <p>${result.message}<\/p>\n      `;\n    }\n  <\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>ChatGPT\u306b\u8a95\u751f\u65e5\u3092\u5165\u529b\u3057\u3066\u661f\u5ea7\u5360\u3044\u3092\u4f5c\u6210\u3057\u3066\u3082\u3089\u3046\u3002\uff01\uff01 \u8a95\u751f\u65e5\u3067\u5360\u304612\u661f\u5ea7\u5360\u3044 &#x1f52e; \u8a95\u751f\u65e5\u304b\u3089\u5360\u304612\u661f\u5ea7\u5360\u3044 &#x1f52e; \u3042\u306a\u305f\u306e\u8a95\u751f\u65e5\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a \u5360\u3046\uff01<\/p>\n","protected":false},"author":1,"featured_media":4400,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[27,1],"tags":[],"class_list":["post-4398","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chatgpt","category-1"],"_links":{"self":[{"href":"https:\/\/tiss-japan.com\/index.php?rest_route=\/wp\/v2\/posts\/4398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tiss-japan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tiss-japan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tiss-japan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tiss-japan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4398"}],"version-history":[{"count":0,"href":"https:\/\/tiss-japan.com\/index.php?rest_route=\/wp\/v2\/posts\/4398\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tiss-japan.com\/index.php?rest_route=\/wp\/v2\/media\/4400"}],"wp:attachment":[{"href":"https:\/\/tiss-japan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tiss-japan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tiss-japan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}