{"id":14008,"date":"2025-11-20T23:59:00","date_gmt":"2025-11-20T14:59:00","guid":{"rendered":"http:\/\/fukugyou-info.net\/?p=14008"},"modified":"2025-11-20T23:59:00","modified_gmt":"2025-11-20T14:59:00","slug":"%e3%82%a6%e3%82%a8%e3%83%ab%e6%b4%bbx%e3%83%96%e3%83%a9%e3%83%83%e3%82%af%e3%83%95%e3%83%a9%e3%82%a4%e3%83%87%e3%83%bc-20%e9%82%84%e5%85%83-%e8%87%aa%e5%8b%95%e8%a8%88%e7%ae%97","status":"publish","type":"post","link":"https:\/\/fukugyou-info.net\/?p=14008","title":{"rendered":"\u30a6\u30a8\u30eb\u6d3b\u00d7\u30d6\u30e9\u30c3\u30af\u30d5\u30e9\u30a4\u30c7\u30fc 20%\u9084\u5143 \u81ea\u52d5\u8a08\u7b97"},"content":{"rendered":"\n<!-- WP QUADS Content Ad Plugin v. 2.0.39 -->\n<div class=\"quads-location quads-ad1\" id=\"quads-ad1\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n<a href=\"https:\/\/www.infotop.jp\/click.php?aid=368111&iid=81397\" rel=\"sponsored\"><img src=\"https:\/\/www.infotop.jp\/img\/banner1_81397.PNG\" border=\"0\" \/><\/a>\n<\/div>\n<div style=\"text-align:center\"><a href=\"https:\/\/hazuki77.up.seesaa.net\/image\/IMG_1614.jpeg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" border=\"0\" alt=\"IMG_1614.jpeg\" src=\"https:\/\/hazuki77.up.seesaa.net\/image\/IMG_1614-thumbnail2.jpeg\" width=\"400\" height=\"224\" style=\"cursor:pointer\" \/><\/a><\/div>\n<p>\u30a6\u30a8\u30eb\u6d3b\u00d7\u30d6\u30e9\u30c3\u30af\u30d5\u30e9\u30a4\u30c7\u30fc\u3067\u5b9f\u8cea\u3044\u304f\u3089\u306b\u306a\u308b\u304b\u306e\u81ea\u52d5\u8a08\u7b97\u8868\u4f5c\u308a\u307e\u3057\u305f\uff01<\/p>\n<p><!-- \u4fee\u6b63\u7248\uff1a\u30a6\u30a8\u30eb\u6d3b\u00d7\u30d6\u30e9\u30c3\u30af\u30d5\u30e9\u30a4\u30c7\u30fc 20%\u9084\u5143 \u8a08\u7b97\u30c4\u30fc\u30eb\uff08\u00f71.5 \u3092\u78ba\u5b9f\u306b\u56db\u6368\u4e94\u5165\uff09 --><\/p>\n<div style=\"max-width:720px;margin:10px auto;padding:14px;border:1px solid #eee;border-radius:10px;background:#fff\">  <\/p>\n<h2 style=\"margin:0 0 10px 0;font-size:18px\">\u30a6\u30a8\u30eb\u6d3b\u00d7\u30d6\u30e9\u30c3\u30af\u30d5\u30e9\u30a4\u30c7\u30fc 20%\u9084\u5143 \u8a08\u7b97<\/h2>\n<p>  <\/p>\n<p style=\"margin:0 0 12px 0;color:#666;font-size:13px\">    \u203b\u4e00\u5ea6\u306b\u5408\u8a08 <strong>5,000\u5186\u4ee5\u4e0a<\/strong> \u304b\u3064 <strong>3\u70b9\u4ee5\u4e0a<\/strong> \u306e\u8cfc\u5165\u524d\u63d0\u306720%\u9084\u5143\u3068\u3057\u3066\u8a08\u7b97<\/p>\n<p>    <code>\u3010\u30a6\u30a8\u30eb\u6d3b\u3011\u5546\u54c1\u4fa1\u683c \u00f7 1.5\uff08\u56db\u6368\u4e94\u5165\uff09 - \u3010\u30d6\u30e9\u30d5\u30e9\u3011\u5546\u54c1\u4fa1\u683c \u00d7 0.2\uff08\u5207\u308a\u6368\u3066\uff09<\/code><\/p>\n<p>\u5546\u54c1\u4fa1\u683c\u3092\u8907\u6570\u5165\u308c\u308b\u3068\u3001\u5404\u5546\u54c1\u306e\u9084\u5143\u8a08\u7b97\u51fa\u307e\u3059\u3002<\/p>\n<p><span style=\"color:#cc0000\">\u203b5000\u5186\u8d85\u3048\u306f1000\u5186\u5206\u306e\u9084\u5143\u3067\u3059<\/span><br \/>\u8a08\u7b97\u4e0a1000\u5186\u4ee5\u4e0a\u51fa\u3066\u3057\u307e\u3044\u307e\u3059\u3013<\/p>\n<p>\u5165\u529b\u4f8b)437.8<\/p>\n<div id=\"itemsContainer\" style=\"flex-direction:column;margin-bottom:10px\">    <\/p>\n<div class=\"itemRow\" style=\"align-items:center\">\n<p>      <button class=\"removeBtn\" style=\"padding:8px 10px;border:0;background:#f2f2f2;border-radius:6px;cursor:pointer\">\u524a\u9664<\/button>    <\/div>\n<p>    <\/p>\n<div class=\"itemRow\" style=\"align-items:center\">\n<p>      <button class=\"removeBtn\" style=\"padding:8px 10px;border:0;background:#f2f2f2;border-radius:6px;cursor:pointer\">\u524a\u9664<\/button>    <\/div>\n<p>    <\/p>\n<div class=\"itemRow\" style=\"align-items:center\">\n<p>      <button class=\"removeBtn\" style=\"padding:8px 10px;border:0;background:#f2f2f2;border-radius:6px;cursor:pointer\">\u524a\u9664<\/button>    <\/div>\n<p>  <\/div>\n<div style=\"margin-bottom:12px\">    <button id=\"addItem\" style=\"padding:8px 12px;border:0;background:#e6f7ff;border-radius:8px;cursor:pointer\">\u9805\u76ee\u3092\u8ffd\u52a0<\/button><br \/>    <button id=\"calculate\" style=\"padding:8px 12px;border:0;background:#ffe9e9;border-radius:8px;cursor:pointer\">\u8a08\u7b97\u3059\u308b<\/button><br \/>    <button id=\"clearAll\" style=\"padding:8px 12px;border:0;background:#f6f6f6;border-radius:8px;cursor:pointer\">\u30af\u30ea\u30a2<\/button>  <\/div>\n<div id=\"resultBox\" style=\"padding:10px;border-radius:8px;background:#fafafa;border:1px dashed #eee\">    <\/p>\n<div id=\"summary\" style=\"font-size:14px;color:#333\"><\/div>\n<p>    <\/p>\n<div id=\"perItemArea\" style=\"margin-top:8px\"><\/div>\n<p>  <\/div>\n<p><\/div>\n<p>(function(){<br \/>\n  const container = document.getElementById(&#8216;itemsContainer&#8217;);<br \/>\n  const addBtn = document.getElementById(&#8216;addItem&#8217;);<br \/>\n  const calcBtn = document.getElementById(&#8216;calculate&#8217;);<br \/>\n  const clearBtn = document.getElementById(&#8216;clearAll&#8217;);<br \/>\n  const summary = document.getElementById(&#8216;summary&#8217;);<br \/>\n  const perItemArea = document.getElementById(&#8216;perItemArea&#8217;);<\/p>\n<p>  function addRow(){<br \/>\n    const row = document.createElement(&#8216;div&#8217;);<br \/>\n    row.className = &#8216;itemRow&#8217;;<br \/>\n    row.style.display = &#8216;flex&#8217;;<br \/>\n    row.style.gap = &#8216;8px&#8217;;<br \/>\n    row.style.alignItems = &#8216;center&#8217;;<\/p>\n<p>    const input = document.createElement(&#8216;input&#8217;);<br \/>\n    input.type = &#8216;number&#8217;;<br \/>\n    input.step = &#8216;0.01&#8217;;<br \/>\n    input.min = &#8216;0&#8217;;<br \/>\n    input.className = &#8216;priceInput&#8217;;<br \/>\n    input.placeholder = &#8216;\u5546\u54c1\u4fa1\u683c\uff08\u5186\uff09&#8217;;<br \/>\n    input.style.flex = &#8216;1&#8217;;<br \/>\n    input.style.padding = &#8216;8px&#8217;;<br \/>\n    input.style.border = &#8216;1px solid #ddd&#8217;;<br \/>\n    input.style.borderRadius = &#8216;6px&#8217;;<\/p>\n<p>    const remove = document.createElement(&#8216;button&#8217;);<br \/>\n    remove.type = &#8216;button&#8217;;<br \/>\n    remove.className = &#8216;removeBtn&#8217;;<br \/>\n    remove.textContent = &#8216;\u524a\u9664&#8217;;<br \/>\n    remove.style.padding = &#8216;8px 10px&#8217;;<br \/>\n    remove.style.border = &#8216;0&#8217;;<br \/>\n    remove.style.background = &#8216;#f2f2f2&#8217;;<br \/>\n    remove.style.borderRadius = &#8216;6px&#8217;;<br \/>\n    remove.style.cursor = &#8216;pointer&#8217;;<br \/>\n    remove.addEventListener(&#8216;click&#8217;, function(){ container.removeChild(row); });<\/p>\n<p>    row.appendChild(input);<br \/>\n    row.appendChild(remove);<br \/>\n    container.appendChild(row);<br \/>\n  }<\/p>\n<p>  \/\/ \u521d\u671f\u524a\u9664\u30dc\u30bf\u30f3\u306e\u6319\u52d5\u8a2d\u5b9a<br \/>\n  container.querySelectorAll(&#8216;.removeBtn&#8217;).forEach(btn=&gt;{<br \/>\n    btn.addEventListener(&#8216;click&#8217;,()=&gt;btn.parentElement.remove());<br \/>\n  });<\/p>\n<p>  addBtn.addEventListener(&#8216;click&#8217;,()=&gt;addRow());<\/p>\n<p>  clearBtn.addEventListener(&#8216;click&#8217;,()=&gt;{<br \/>\n    container.innerHTML=&#8221;;<br \/>\n    addRow(); addRow(); addRow();<br \/>\n    summary.innerHTML=&#8221;;<br \/>\n    perItemArea.innerHTML=&#8221;;<br \/>\n  });<\/p>\n<p>  \/\/ \u56db\u6368\u4e94\u5165\uff08\u00f71.5\uff09\u3068\u5207\u308a\u6368\u3066\uff08\u00d70.2\uff09<br \/>\n  function calcForPrice(price){<br \/>\n    \/\/ price \u306f\u5c0f\u6570\u3092\u542b\u3080\u6570\u5024<br \/>\n    \/\/ \u751f\u306e\u5272\u7b97\u5024\uff08\u8868\u793a\u7528\u3001\u5c0f\u6570\u3042\u308a\uff09<br \/>\n    const rawDivide = price \/ 1.5;<br \/>\n    \/\/ \u56db\u6368\u4e94\u5165\uff08\u6574\u6570\uff09\uff1aMath.round \u3092\u78ba\u5b9f\u306b\u9069\u7528<br \/>\n    const roundDivide = Math.round(rawDivide);<br \/>\n    \/\/ \u5207\u308a\u6368\u3066\uff1a price * 0.2 \u3092 Math.floor \u3067\u5207\u308a\u6368\u3066\uff08\u6574\u6570\uff09<br \/>\n    const floorMultiply = Math.floor(price * 0.2);<br \/>\n    \/\/ \u6700\u7d42\u7d50\u679c\uff08\u6574\u6570\u540c\u58eb\u306e\u5dee\uff09<br \/>\n    const result = roundDivide &#8211; floorMultiply;<br \/>\n    return { rawDivide, roundDivide, floorMultiply, result };<br \/>\n  }<\/p>\n<p>  calcBtn.addEventListener(&#8216;click&#8217;,()=&gt;{<br \/>\n    const inputs = Array.from(container.querySelectorAll(&#8216;.priceInput&#8217;));<br \/>\n    const prices = inputs.map(i=&gt; {<br \/>\n      const v = parseFloat(i.value);<br \/>\n      return (!isNaN(v) &amp;&amp; v&gt;0) ? v : 0;<br \/>\n    });<\/p>\n<p>    const activePrices = prices.filter(p=&gt;p&gt;0);<br \/>\n    const total = activePrices.reduce((a,b)=&gt;a+b,0);<br \/>\n    const itemCount = activePrices.length;<\/p>\n<p>    perItemArea.innerHTML=&#8221;;<\/p>\n<p>    activePrices.forEach((p, idx) =&gt; {<br \/>\n      const { rawDivide, roundDivide, floorMultiply, result } = calcForPrice(p);<br \/>\n      const div = document.createElement(&#8216;div&#8217;);<br \/>\n      div.style.padding=&#8217;8px&#8217;;<br \/>\n      div.style.borderBottom=&#8217;1px dashed #eee&#8217;;<br \/>\n      div.style.fontSize=&#8217;13px&#8217;;<br \/>\n      div.innerHTML = `<br \/>\n        <strong>\u5546\u54c1${idx+1}<\/strong>\uff1a${p.toLocaleString(undefined,{minimumFractionDigits:2, maximumFractionDigits:2})} \u5186<br \/>\n        \u30fb\u751f\u306e\u8a08\u7b97\uff1a ${p.toFixed(4)} \u00f7 1.5 = ${rawDivide.toFixed(4)}\uff08\u5c0f\u6570\uff09<br \/>\n        \u30fb\u30a6\u30a8\u30eb\u6d3b\u306b\u5fc5\u8981\u306a\u30dd\u30a4\u30f3\u30c8(\u56db\u6368\u4e94\u5165)\uff1a ${rawDivide.toFixed(4)} \u2192 <strong>${roundDivide.toLocaleString()}<\/strong><br \/>\n        \u30fb\u30d6\u30e9\u30c3\u30af\u30d5\u30e9\u30a4\u30c7\u30fc\u9084\u5143(\u5207\u308a\u6368\u3066)\uff1a ${ (p * 0.2).toFixed(4) } \u2192 <strong>${floorMultiply.toLocaleString()}<\/strong><br \/>\n        \u2192 \u6700\u7d42\uff1a <strong>${result.toLocaleString()} \u5186<\/strong><br \/>\n      `;<br \/>\n      perItemArea.appendChild(div);<br \/>\n    });<\/p>\n<p>    if(total &gt;= 5000 &amp;&amp; itemCount &gt;= 3){<br \/>\n      const totalResult = activePrices.reduce((s,p)=&gt; s + calcForPrice(p).result, 0);<br \/>\n      summary.innerHTML = `<\/p>\n<div>\u5408\u8a08\u8cfc\u5165\u91d1\u984d\uff1a <strong>${total.toLocaleString(undefined,{minimumFractionDigits:2,maximumFractionDigits:2})} \u5186<\/strong>\uff08\u5546\u54c1\u6570\uff1a<strong>${itemCount} \u70b9<\/strong>\uff09<\/div>\n<div style=\"margin-top:6px;color:#006600\"><strong>\u9084\u5143\u9069\u7528\uff1a\u3042\u308a<\/strong><\/div>\n<div style=\"margin-top:6px\">\u5404\u5546\u54c1\u8a08\u7b97\u306e\u5408\u8a08\uff08\u76ee\u5b89\uff09\uff1a <strong>${totalResult.toLocaleString()} \u5186<\/strong><\/div>\n<p>      `;<br \/>\n    } else {<br \/>\n      let reason = [];<br \/>\n      if(total &lt; 5000) reason.push(`\u5408\u8a08\u304c5,000\u5186\u672a\u6e80 (${total.toLocaleString(undefined,{minimumFractionDigits:2})} \u5186)`);<br \/>\n      if(itemCount &lt; 3) reason.push(`\u8cfc\u5165\u70b9\u6570\u304c3\u70b9\u672a\u6e80 (${itemCount} \u70b9)`);<br \/>\n      summary.innerHTML = `<\/p>\n<div>\u5408\u8a08\u8cfc\u5165\u91d1\u984d\uff1a <strong>${total.toLocaleString(undefined,{minimumFractionDigits:2,maximumFractionDigits:2})} \u5186<\/strong>\uff08\u5546\u54c1<br \/>\n      `;<br \/>\n    }<br \/>\n  });<br \/>\n})();<br \/>\n<a name=\"more\"><\/a><br \/>\nSource: N\u5c02\u696d\u4e3b\u5a66\u306e\u304a\u5c0f\u9063\u3044\u7a3c\u304e\u306f\u3058\u3081\u307e\u3057\u305f\u3002ew feed\n","protected":false},"excerpt":{"rendered":"<p>\u30a6\u30a8\u30eb\u6d3b\u00d7\u30d6\u30e9\u30c3\u30af\u30d5\u30e9\u30a4\u30c7\u30fc\u3067\u5b9f\u8cea\u3044\u304f\u3089\u306b\u306a\u308b\u304b\u306e\u81ea\u52d5\u8a08\u7b97\u8868\u4f5c\u308a\u307e\u3057\u305f\uff01 \u30a6\u30a8\u30eb\u6d3b\u00d7\u30d6\u30e9\u30c3\u30af\u30d5\u30e9\u30a4\u30c7\u30fc 20%\u9084\u5143 \u8a08\u7b97 \u203b\u4e00\u5ea6\u306b\u5408\u8a08 5,000\u5186\u4ee5\u4e0a \u304b\u3064 3\u70b9\u4ee5\u4e0a \u306e\u8cfc\u5165\u524d\u63d0\u306720%\u9084\u5143\u3068\u3057\u3066\u8a08\u7b97 \u3010\u30a6\u30a8\u30eb\u6d3b\u3011\u5546\u54c1 &#8230; <a class=\"more\" href=\"https:\/\/fukugyou-info.net\/?p=14008\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":0,"featured_media":14009,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[2],"tags":[],"jetpack_featured_media_url":"https:\/\/fukugyou-info.net\/wp-content\/uploads\/2025\/11\/IMG_1614-thumbnail2.jpeg","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fukugyou-info.net\/index.php?rest_route=\/wp\/v2\/posts\/14008"}],"collection":[{"href":"https:\/\/fukugyou-info.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fukugyou-info.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/fukugyou-info.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14008"}],"version-history":[{"count":0,"href":"https:\/\/fukugyou-info.net\/index.php?rest_route=\/wp\/v2\/posts\/14008\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fukugyou-info.net\/index.php?rest_route=\/wp\/v2\/media\/14009"}],"wp:attachment":[{"href":"https:\/\/fukugyou-info.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fukugyou-info.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fukugyou-info.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}