{"campaigns":[{"id":1,"edireco_service_id":"bd100727ds1","edireco_area_id":"acc100727r1","deduplication":false,"item_count":10,"filter_conditions":[],"relation_settings":[{"relation_setting_id":10,"item_type":"item_id"},{"relation_setting_id":9,"item_type":"user_id"}],"callback":"function(body) {\n  var divId = \"rec_area\";\n  var target = document.getElementById(divId);\n\n  /* If #rec_area doesn't exist, create and insert it after #sampleId*/\n  if (!target) {\n    target = document.createElement(\"div\");\n    target.id = divId;\n\n    var reference = document.querySelector(\"#MainContent \u003e div:nth-child(9)\");\n    if (reference) {\n      reference.insertAdjacentElement(\"afterend\", target);\n    }\n  }\n\n  var details = body.details;\n  var html = `\n    \u003cdiv class=\"page-width\" style=\"margin-bottom: 75px;\"\u003e\n    \u003cheader class=\"section-header\" style=\"margin-bottom: 50px;\"\u003e\n        \u003ch2 class=\"section-header__title\"\u003eあなたにおすすめの商品\u003c/h2\u003e\n      \u003c/header\u003e\n    \u003cdiv class=\"rec_slide\"\u003e\n      \u003cul class=\"rec_slide_container\"\u003e\n  `;\n\n  for (var i = 0; i \u003c details.length; i++) {\n    var detail = details[i];\n    html += `\n      \u003cli class=\"rktheme-carousel-slide glide__slide\"\u003e\n        \u003cdiv class=\"rktheme-product-card rktheme-grid-product\"\u003e\n          \u003ca class=\"rktheme-product-image-wrap\" href=\"${detail.page_addr}\" serv=\"${body.serv}\" area=\"${body.area}\" req=\"${body.req}\" item=\"${detail.item_id}\"\u003e\n            \u003cimg class=\"rktheme-product-image rktheme-product-image--primary\" loading=\"lazy\" data-sizes=\"auto\" src=\"${detail.img_addr}\" alt=\"${detail.title}\"\u003e\n          \u003c/a\u003e\n          \u003cdiv class=\"rktheme-product-details\" data-align=\"left\"\u003e\n            \u003ca class=\"rktheme-product-title\" href=\"${detail.page_addr}\" serv=\"${body.serv}\" area=\"${body.area}\" req=\"${body.req}\" item=\"${detail.item_id}\"\u003e${detail.title}\u003c/a\u003e\n            \u003cdiv class=\"rktheme-product-price-wrap\"\u003e\n              \u003cspan class=\"rktheme-product-price rktheme-product-price--original\"\u003e\u003cspan class=\"money\"\u003e${Number(detail.sprice).toLocaleString()}円\u003c/span\u003e\u003c/span\u003e\n            \u003c/div\u003e\n          \u003c/div\u003e\n        \u003c/div\u003e\n      \u003c/li\u003e\n    `;\n  }\n\n  html += `\n      \u003c/ul\u003e\n    \u003c/div\u003e\n    \u003c/div\u003e\n  `;\n\n  target.innerHTML = html;\n  target.addEventListener('click', sendRecClick, false);\n\nconst style = document.createElement(\"style\");\nstyle.textContent = `\n  #rec_area{padding-top:80px;}\n.rec_slide_container {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 30px 10px;\n    padding: 0;\n    margin: 0;\n    list-style: none;\n  }\n\n  .rec_slide_container .rktheme-carousel-slide {\n    width: calc((100% - 40px) / 5);\n  }\n\n  @media (max-width: 768px) {\n#rec_area{padding-top:40px;}\n    .rec_slide_container .rktheme-carousel-slide {\n      width: calc((100% - 10px) / 2);\n    }\n  }\n`;\ndocument.head.appendChild(style);\n\n}","env":"","operator":"match","value":"https://www.bless-silver.com/"}]}