{"_id":"66160c090084722a46990dbd","shop":"d10093.myshopify.com","currency":{"code":"JPY","decimal_digits":0,"name":"Japanese Yen","name_plural":"Japanese yen","rounding":0,"symbol":"¥","symbol_native":"￥"},"showCurrency":true,"side":true,"symbol":"￥","hidecartbuttons":true,"hidequantity":false,"hidevariants":true,"variant_selector":"","swapscript":"/* ============================================================\n   Product Image Swap Script — Expanse (Archetype Themes) 用\n   ------------------------------------------------------------\n   貼り付け先:\n     Option Calculator → Settings → Product Image Swap Script\n     → 「Product Swap Function( swapImageid )」の入力欄\n\n   ※ 「Choose a Product Swap Function Template」は\n      \"-- Choose One --\" のままにして、下記のコードを貼り付けてください。\n\n   ------------------------------------------------------------\n   【2026-08-18 修正】ページが画像だけの表示に飛ぶ不具合を解消\n     旧版は thumb.click() でサムネイルをクリックしていましたが、\n     Expanse のサムネイルは <a href=\"画像ファイル\"> なので、\n     クリックすると画像ファイル単体のページに移動してしまい、\n     ブラウザの「戻る」を押す必要がありました。\n     新版は Flickity を直接操作するため、ページは移動せず\n     メイン画像だけが切り替わります。\n     （サムネイルの選択枠はテーマ側が自動で追従します）\n\n   動作確認済み: 2026-08-18\n     https://misakazoo.info/products/renovation-ask\n     （swapImageid = \"carport\" でメイン画像が切替・URLは不変）\n   ============================================================ */\n\ntry {\n  var SLIDE_SEL = '.product-slideshow .product-main-slide';\n\n  /* 対象画像が何枚目かを調べる ------------------------------- */\n  var findIndex = function (key) {\n    /* 1) alt属性が完全一致する画像を探す */\n    var img = document.querySelector(SLIDE_SEL + ' img[alt=\"' + key + '\"]');\n\n    /* 2) 見つからなければ部分一致で探す（大文字小文字は無視） */\n    if (!img) {\n      var all = document.querySelectorAll(SLIDE_SEL + ' img');\n      var k = String(key).toLowerCase();\n      for (var i = 0; i < all.length; i++) {\n        var a = (all[i].getAttribute('alt') || '').toLowerCase();\n        if (a && a.indexOf(k) !== -1) { img = all[i]; break; }\n      }\n    }\n    if (!img) return -1;\n\n    var cell = img.closest('.product-main-slide');\n    if (!cell) return -1;\n\n    var idx = parseInt(cell.getAttribute('data-index'), 10);\n    if (isNaN(idx) && cell.parentNode) {\n      idx = Array.prototype.indexOf.call(cell.parentNode.children, cell);\n    }\n    return (idx >= 0) ? idx : -1;\n  };\n\n  /* メイン画像だけを切り替える（ページは移動しない） --------- */\n  var swapTo = function (idx, retry) {\n    var ss = document.querySelector('.product-slideshow');\n    var fl = (ss && window.Flickity) ? window.Flickity.data(ss) : null;\n\n    if (fl) {\n      /* PC・スマホ共通。サムネイルの選択枠はテーマ側が追従します */\n      fl.select(idx, false, false);\n      return;\n    }\n\n    /* ギャラリーの初期化がまだのときは少し待って再試行 */\n    if (retry > 0) {\n      setTimeout(function () { swapTo(idx, retry - 1); }, 200);\n    }\n  };\n\n  var target = findIndex(swapImageid);\n  if (target >= 0) swapTo(target, 10);\n\n} catch (e) {}\n\n","addscript":"","showCurrencyTotal":true,"inventory_track":false,"inventory_quantity":500,"add_Method":"popup","theme_ID":"173987561786","theme_store_id":"unknown","theme_Name":"[03DEC24-CA] Expanse (2023-12-13) V.6.0.0","cart_mobileselectors":false,"cart_reverseorder":false,"slideout_reverseorder":false,"slideout_enableInject":false,"image_url":"","image_name":"","popup_TitleColor":"#000000","popup_LinkColor":"#bd10e0","popup_Buttonbackgroundcolor":"#9013fe","popup_Buttontextcolor":"#FFFFFF","is_forcefully_close":true,"justAdded":"追加された商品","viewCart":"カートを見る","checkoutButton":"カートに入れる","continueShopping":"買い物を続ける","addtoBase":false,"rules_version":"2.0","after_spinner_product_page":"true","spinner_type":"button","translations":{"trans_atleast":"複数選択可能で1つ以上選択してください","trans_exactly":"選択数：","trans_between":"選択範囲：","trans_required":"必須項目が入力されていません","trans_available":"この商品は現在ご購入いただけません","trans_remaining":"残りの在庫はすべてカートに入っています","trans_min":"最小値：","trans_max":"最大値：","trans_minvalue":"最小値","trans_maxvalue":"最大値","trans_minshort":"最小","trans_maxshort":"最大","trans_is":"は","trans_and":"～","trans_only":"小数点以下は","trans_allowed":"桁までです","trans_select":"選択してください","trans_outofstock":"在庫切れ","trans_validdimension":"有効なサイズ","trans_invaliddimension":"無効なサイズ","trans_selecteddimension":"選択中のサイズ","trans_customerlogin":"この商品をご購入いただくにはログインしてください","trans_quantity":"数量","trans_savings":"割引","trans_save":"お得","you_saved":"割引額","trans_filesize":"ファイルサイズの上限：","trans_dropfiles":"ここにファイルをドロップしてアップロード","trans_selectfiles":"ファイルを選択","trans_allowedfiletypes":"対応ファイル形式","trans_allfiles":"すべてのファイル形式に対応","trans_filesselected":"件のファイルを選択中","trans_or":"または","trans_filemax":"ファイル数の上限","trans_fileerror":"アップロードに失敗しました","trans_calcLoading":"計算しています...","by_ordering":"ご注文で","units":"個","add":"追加","more_save_additional":"個追加でさらにお得","add_to_cart":"カートに入れる","adding":"追加中","added":"追加しました","updating":"更新中","remove":"削除","removing":"削除中","trans_calculator_discount":"オプション割引","trans_quantity_discount":"数量割引"},"rendersection":[],"feature_product_list":["10257776607546","10257808949562","10273257750842"],"__v":0,"opcFunctionDiscountId":"gid://shopify/DiscountAutomaticNode/1564467003706","cartTransformId":"gid://shopify/CartTransform/112099642","weightCatalogProductId":"gid://shopify/Product/10350559887674","cartTransformButtonMode":"theme_button","cartTransformThemeButtonSelector":"","cart_Image":"","cart_Image_mobile":"","cart_Imageheight":"100","cart_Imagewidth":"100","cart_Line_discount_amount":"","cart_Line_discount_amount_mobile":"","cart_Line_discount_price":"","cart_Line_discount_price_mobile":"","cart_Lineprice":"","cart_Lineprice_discount":"","cart_Lineprice_discount_mobile":"","cart_Lineprice_mobile":"","cart_Properties":"","cart_Properties_mobile":"","cart_Subtotal":"","cart_Subtotal2":"","cart_Subtotal2_mobile":"","cart_Subtotal_mobile":"","cart_Title":"","cart_Title_mobile":"","cart_description_Line_discount_amount":"","cart_description_Line_discount_amount_mobile":"","cart_description_Line_discount_price":"","cart_description_Line_discount_price_mobile":"","cart_description_Lineprice":"","cart_description_Lineprice_discount":"","cart_description_Lineprice_discount_mobile":"","cart_description_Lineprice_mobile":"","drawer_CloseScript":"","editButtonBorderradius":3,"editButtonColor":"#56CB95","editButtonhovercolor":"#007a5c","editButtonhovertextcolor":"#FFFFFF","editButtontext":"Edit Options","editButtontextcolor":"#FFFFFF","editCancelbuttoncolor":"#dedede","editCanceltext":"Cancel","editCanceltextcolor":"#000000","editCartDrawerSelector":"","editCartDrawerSelector_mobile":"","editCartPageSelector":"","editCartPageSelector_mobile":"","editSavebuttoncolor":"#4682de","editSavetext":"Save","editSavetextcolor":"#FFFFFF","emailDisplayName":"美坂(Misaka,MisakaZoo)","emailSender":"zenbu@misakazoo.info","slideout_Discounted_Subtotal":"","slideout_Image":"","slideout_Imageheight":"","slideout_Imagewidth":"","slideout_Itemhtml":"","slideout_Line_discount_amount":"","slideout_Line_discount_price":"","slideout_Lineprice":"","slideout_Lineprice_discount":"","slideout_Parent":"","slideout_Properties":"","slideout_Subtotal":"","slideout_Title":"","slideout_description_Line_discount_amount":"","slideout_description_Line_discount_price":"","slideout_description_Lineprice":"","slideout_description_Lineprice_discount":"","emailIdentityId":"351ndgwvw5qlzqx8","youMightAlsoLike":"こちらもまとめ買いでいかがですか？","enableEdit":false,"multiCurrency":false,"showCalcLoadingBar":true,"EXTENSION_URL":"https://cdn.shopify.com/extensions/019fb909-974f-7535-9946-e5be46b07ba1","EXTENSION_VERSION":"option-price-calculator-472"}