{"id":15,"date":"2025-05-07T19:48:00","date_gmt":"2025-05-07T10:48:00","guid":{"rendered":"https:\/\/demo.lite-word.com\/theme-001\/?page_id=15"},"modified":"2025-05-07T19:48:00","modified_gmt":"2025-05-07T10:48:00","slug":"contact","status":"publish","type":"page","link":"https:\/\/demo.lite-word.com\/theme-001\/contact\/","title":{"rendered":"\u304a\u554f\u3044\u5408\u308f\u305b"},"content":{"rendered":"\n<div class=\"wp-block-wdl-shin-gas-station-01-fv-lower-01 shin-gas-station-01-fv-lower-01 min-h-pc-380px min-h-tb-300px min-h-sp-220px\"><div class=\"shin-gas-station-01-fv-lower-01_inner\" style=\"max-width:100%\"><h1><span class=\"main\">\u304a\u554f\u3044\u5408\u308f\u305b<\/span><span class=\"sub\">Contact<\/span><\/h1><\/div><div class=\"filter\" style=\"background-color:#f7fcfd;opacity:1\"><\/div><\/div>\n\n\n\n<div class=\"wp-block-wdl-lw-space-1 lw_space_1\"><div class=\"pc\" style=\"height:64px\"><\/div><div class=\"tb\" style=\"height:40px\"><\/div><div class=\"sp\" style=\"height:32px\"><\/div><\/div>\n\n\n\n<div class=\"wp-block-wdl-shin-gas-station-01-contact shin-gas-station-01-contact\">    <form class=\"lw_mail_form\" id=\"lw_mail_form_1\" enctype=\"multipart\/form-data\" method=\"post\">\r\n        <input type=\"hidden\" id=\"lw_mail_nonce\" name=\"lw_mail_nonce\" value=\"e7e40b6084\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/theme-001\/wp-json\/wp\/v2\/pages\/15\" \/>        <input type=\"hidden\" name=\"lw_mail_form_set_no\" value=\"1\">\r\n        <input type=\"hidden\" name=\"lw_current_post_id\" value=\"15\">\r\n        <div class=\"form_group\">\r\n\t<div class=\"label_in\">\r\n\t\t<label>\r\n\t\t\t<span class=\"text\">\u304a\u540d\u524d<\/span>\r\n\t\t\t<span class=\"required is-required\">\r\n\t\t\t\t\u5fc5\u9808\t\t\t<\/span>\r\n\t\t<\/label>\r\n\t<\/div>\r\n\r\n\t<div class=\"form_in\">\r\n\r\n\t\t\t\t<input type=\"text\"\r\n\t\t       name=\"form_1\"\r\n\t\t       placeholder=\"\"\r\n\t\t       required >\r\n        \r\n\t\t\t\t\t<p class=\"supplement_text\">\u4f8b\uff09\u5c71\u7530\u592a\u90ce<\/p>\r\n\t\t\r\n\t<\/div>\r\n\r\n\t<!-- \/.form_in -->\r\n<\/div><!-- \/.form_group -->\r\n<div class=\"form_group\">\r\n\t<div class=\"label_in\">\r\n\t\t<label>\r\n\t\t\t<span class=\"text\">\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/span>\r\n\t\t\t<span class=\"required is-required\">\r\n\t\t\t\t\u5fc5\u9808\t\t\t<\/span>\r\n\t\t<\/label>\r\n\t<\/div>\r\n\r\n\t<div class=\"form_in\">\r\n\r\n\t\t\t\t<input type=\"text\"\r\n\t\t       name=\"form_2\"\r\n\t\t       placeholder=\"\"\r\n\t\t       required >\r\n        \r\n\t\t\t\t\t<p class=\"supplement_text\">\u4f8b\uff09sample@gmail.com<\/p>\r\n\t\t\r\n\t<\/div>\r\n\r\n\t<!-- \/.form_in -->\r\n<\/div><!-- \/.form_group -->\r\n<div class=\"form_group last_form\">\r\n\t<div class=\"label_in\">\r\n\t\t<label>\r\n\t\t\t<span class=\"text\">\u304a\u554f\u5408\u305b\u5185\u5bb9<\/span>\r\n\t\t\t<span class=\"required is-optional\">\r\n\t\t\t\t\u4efb\u610f\t\t\t<\/span>\r\n\t\t<\/label>\r\n\t<\/div>\r\n\r\n\t<div class=\"form_in\">\r\n\r\n\t\t\t\t<textarea name=\"form_3\"\r\n\t\t          placeholder=\"\"\r\n\t\t          ><\/textarea>\r\n\r\n\t\t\r\n\t\t\t\t\t<p class=\"supplement_text\">\u4f8b\uff09000-0000-0000<\/p>\r\n\t\t\r\n\t<\/div>\r\n\r\n\t<!-- \/.form_in -->\r\n<\/div><!-- \/.form_group -->\r\n\r\n\r\n                        <div class=\"submit_wrap\">\r\n            <button type=\"submit\">\r\n                <span class=\"text\">\u9001\u4fe1\u3059\u308b<\/span>\r\n                <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 448 512\"><!--!Font Awesome Free 6.7.2 by @fontawesome - https:\/\/fontawesome.com License - https:\/\/fontawesome.com\/license\/free Copyright 2025 Fonticons, Inc.--><path d=\"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z\"\/><\/svg>\r\n            <\/button>\r\n        <\/div>\r\n        <div class=\"lw_mail_result\"><\/div>\r\n    <\/form>\r\n        \t<script>\r\n\tdocument.addEventListener('DOMContentLoaded', function () {\r\n\t\tconst form = document.getElementById('lw_mail_form_1');\r\n\t\tif (!form) return;\r\n\r\n\t\t\/\/ required \u304c\u4ed8\u3044\u305f\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e name \u3092\u53ce\u96c6\r\n\t\tconst requiredNames = Array.from(\r\n\t\t\tform.querySelectorAll('input[type=\"checkbox\"][required]')\r\n\t\t).map(cb => cb.name);\r\n\r\n\t\t\/\/ \u91cd\u8907\u9664\u53bb\r\n\t\tconst uniqueNames = Array.from(new Set(requiredNames));\r\n\r\n\t\tuniqueNames.forEach(name => {\r\n\t\t\tconst cbs = form.querySelectorAll('input[type=\"checkbox\"][name=\"' + name + '\"]');\r\n\r\n\t\t\tconst toggleRequired = () => {\r\n\t\t\t\tconst anyChecked = Array.from(cbs).some(cb => cb.checked);\r\n\t\t\t\tif (anyChecked) {\r\n\t\t\t\t\tcbs.forEach(cb => cb.removeAttribute('required'));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcbs[0].setAttribute('required', 'required');\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\t\/\/ \u5909\u66f4\u30a4\u30d9\u30f3\u30c8\r\n\t\t\tcbs.forEach(cb => cb.addEventListener('change', toggleRequired));\r\n\r\n\t\t\t\/\/ \u521d\u671f\u72b6\u614b\r\n\t\t\ttoggleRequired();\r\n\t\t});\r\n\t});\r\n\t<\/script>\r\n\t<script>\r\n\t\tdocument.addEventListener('DOMContentLoaded', () => {\r\n\r\n\t\t\t\/* \u753b\u50cf\u30d7\u30ec\u30d3\u30e5\u30fc ----------------------------- *\/\r\n\t\t\tdocument.querySelectorAll('.lw_mail_form .lw_image_input').forEach(input => {\r\n\t\t\t\tinput.addEventListener('change', e => {\r\n\t\t\t\t\tconst file   = e.target.files?.[0];\r\n\t\t\t\t\tconst box    = e.target.closest('.image_field_wrap')?.querySelector('.lw_preview_box img');\r\n\t\t\t\t\tif (!box) return;\r\n\r\n\t\t\t\t\tif (file && file.type.startsWith('image\/')) {\r\n\t\t\t\t\t\t\/* Object-URL \u3067\u5373\u6642\u30d7\u30ec\u30d3\u30e5\u30fc *\/\r\n\t\t\t\t\t\tconst url = URL.createObjectURL(file);\r\n\t\t\t\t\t\tbox.src          = url;\r\n\t\t\t\t\t\tbox.style.display= 'block';\r\n\r\n\t\t\t\t\t\t\/* \u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u9632\u6b62\uff1a\u6b21\u56de\u8aad\u307f\u8fbc\u307f\u6642\u306b revoke *\/\r\n\t\t\t\t\t\tbox.onload = () => URL.revokeObjectURL(url);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\/* \u753b\u50cf\u3067\u306f\u306a\u3044 or \u672a\u9078\u629e \u21d2 \u975e\u8868\u793a\u306b\u623b\u3059 *\/\r\n\t\t\t\t\t\tbox.src = '';\r\n\t\t\t\t\t\tbox.style.display = 'none';\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t});\r\n\t<\/script>\r\n\r\n    <\/div>\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":{"footnotes":""},"class_list":["post-15","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.lite-word.com\/theme-001\/wp-json\/wp\/v2\/pages\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.lite-word.com\/theme-001\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.lite-word.com\/theme-001\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.lite-word.com\/theme-001\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.lite-word.com\/theme-001\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":1,"href":"https:\/\/demo.lite-word.com\/theme-001\/wp-json\/wp\/v2\/pages\/15\/revisions"}],"predecessor-version":[{"id":16,"href":"https:\/\/demo.lite-word.com\/theme-001\/wp-json\/wp\/v2\/pages\/15\/revisions\/16"}],"wp:attachment":[{"href":"https:\/\/demo.lite-word.com\/theme-001\/wp-json\/wp\/v2\/media?parent=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}