app/template/default/Product/detail.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'product_page' %}
  10. {% set main_class = 'l-main l-main--products-detail' %}
  11. {% block stylesheet %}
  12.     <style>
  13.         .p-product-detail__slider {
  14.             margin-bottom: 20px;
  15.         }
  16.         @media (max-width: 1024px){}
  17.         .p-product-detail__slider .slick-track {
  18.             display: flex;
  19.         }
  20.         .p-product-detail__slider .slick-slide {
  21.             height: 500px !important;
  22.         }
  23.         @media (max-width: 1024px){
  24.             .p-product-detail__slider .slick-slide {
  25.                 height: 295px !important;
  26.             }
  27.         }
  28.         .p-product-detail__slider .slick-slide > div {
  29.             display: flex;
  30.             justify-content: center;
  31.             align-items: center;
  32.             height: 100%;
  33.         }
  34.         .p-product-detail__slider .slide-item {
  35.             max-height: 100%;
  36.         }
  37.         .p-product-detail__slider .slick-slide img {
  38.             object-fit: cover;
  39.             width: 100% !important;
  40.             height: 500px;
  41.         }
  42.         @media (max-width: 1024px){
  43.             .p-product-detail__slider .slick-slide img {
  44.                 height: 295px;
  45.             }
  46.         }
  47.         .p-product-detail__slider .slick-dots {
  48.             position: absolute;
  49.             bottom: -36px;
  50.             display: block;
  51.             width: 100%;
  52.             padding: 0;
  53.             list-style: none;
  54.             text-align: center;
  55.         }
  56.         .p-product-detail__slider .slick-dots li {
  57.             position: relative;
  58.             display: inline-block;
  59.             width: 20px;
  60.             height: 20px;
  61.             margin: 0 5px;
  62.             padding: 0;
  63.             cursor: pointer;
  64.         }
  65.         .p-product-detail__slider .slick-dots li button {
  66.             font-size: 0;
  67.             line-height: 0;
  68.             display: block;
  69.             width: 12px;
  70.             height: 12px;
  71.             padding: 5px;
  72.             cursor: pointer;
  73.             color: transparent;
  74.             border: 0;
  75.             outline: none;
  76.             background: transparent;
  77.         }
  78.         .p-product-detail__slider .slick-dots li button:hover,
  79.         .p-product-detail__slider .slick-dots li button:focus {
  80.             outline: none;
  81.         }
  82.         .p-product-detail__slider .slick-dots li button:hover:before,
  83.         .p-product-detail__slider .slick-dots li button:focus:before {
  84.             opacity: 1;
  85.         }
  86.         .p-product-detail__slider .slick-dots li button:before {
  87.             content: " ";
  88.             line-height: 20px;
  89.             position: absolute;
  90.             top: 0;
  91.             left: 0;
  92.             width: 12px;
  93.             height: 12px;
  94.             text-align: center;
  95.             opacity: .25;
  96.             background-color: black;
  97.             border-radius: 50%;
  98.         }
  99.         .p-product-detail__slider .slick-dots li.slick-active button:before {
  100.             opacity: .75;
  101.             background-color: black;
  102.         }
  103.         .p-product-detail__slider .slick-dots li button.thumbnail img {
  104.             width: 0;
  105.             height: 0;
  106.         }
  107.     </style>
  108. {% endblock %}
  109. {% block javascript %}
  110.     <script>
  111.         eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
  112.         // 規格2に選択肢を割り当てる。
  113.         function fnSetClassCategories(form, classcat_id2_selected) {
  114.             var $form = $(form);
  115.             var product_id = $form.find('input[name=product_id]').val();
  116.             var $sele1 = $form.find('select[name=classcategory_id1]');
  117.             var $sele2 = $form.find('select[name=classcategory_id2]');
  118.             eccube.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
  119.         }
  120.         {% if form.classcategory_id2 is defined %}
  121.         fnSetClassCategories(
  122.             $('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
  123.         );
  124.         {% elseif form.classcategory_id1 is defined %}
  125.         eccube.checkStock($('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
  126.         {% endif %}
  127.     </script>
  128.     <script>
  129.         $(function() {
  130.             // bfcache無効化
  131.             $(window).bind('pageshow', function(event) {
  132.                 if (event.originalEvent.persisted) {
  133.                     location.reload(true);
  134.                 }
  135.             });
  136.             // Core Web Vital の Cumulative Layout Shift(CLS)対策のため
  137.             // img タグに width, height が付与されている.
  138.             // 630px 未満の画面サイズでは縦横比が壊れるための対策
  139.             // see https://github.com/EC-CUBE/ec-cube/pull/5023
  140.             $('.ec-grid2__cell').hide();
  141.             var removeSize = function () {
  142.                 $('.slide-item').height('');
  143.                 $('.slide-item img')
  144.                     .removeAttr('width')
  145.                     .removeAttr('height')
  146.                     .removeAttr('style');
  147.             };
  148.             var slickInitial = function(slick) {
  149.                 $('.ec-grid2__cell').fadeIn(1500);
  150.                 var baseHeight = $(slick.target).height();
  151.                 var baseWidth = $(slick.target).width();
  152.                 var rate = baseWidth / baseHeight;
  153.                 $('.slide-item').height(baseHeight * rate); // 余白を削除する
  154.                 // transform を使用することでCLSの影響を受けないようにする
  155.                 $('.slide-item img')
  156.                     .css(
  157.                         {
  158.                             'transform-origin': 'top left',
  159.                             'transform': 'scaleY(' + rate + ')',
  160.                             'transition': 'transform .1s'
  161.                         }
  162.                     );
  163.                 // 正しいサイズに近くなったら属性を解除する
  164.                 setTimeout(removeSize, 500);
  165.             };
  166.             $('.item_visual').on('init', slickInitial);
  167.             // リサイズ時は CLS の影響を受けないため属性を解除する
  168.             $(window).resize(removeSize);
  169.             $('.item_visual').slick({
  170.                 dots: false,
  171.                 arrows: false,
  172.                 responsive: [{
  173.                     breakpoint: 1025,
  174.                     settings: {
  175.                         dots: true
  176.                     }
  177.                 }]
  178.             });
  179.             $('.slideThumb').on('click', function() {
  180.                 var index = $(this).attr('data-index');
  181.                 $('.item_visual').slick('slickGoTo', index, false);
  182.             })
  183.         });
  184.     </script>
  185.     <script>
  186.         $(function() {
  187.             $('.add-cart').on('click', function(event) {
  188.                 {% if form.classcategory_id1 is defined %}
  189.                 // 規格1フォームの必須チェック
  190.                 if ($('#classcategory_id1').val() == '__unselected' || $('#classcategory_id1').val() == '') {
  191.                     $('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  192.                     return true;
  193.                 } else {
  194.                     $('#classcategory_id1')[0].setCustomValidity('');
  195.                 }
  196.                 {% endif %}
  197.                 {% if form.classcategory_id2 is defined %}
  198.                 // 規格2フォームの必須チェック
  199.                 if ($('#classcategory_id2').val() == '__unselected' || $('#classcategory_id2').val() == '') {
  200.                     $('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
  201.                     return true;
  202.                 } else {
  203.                     $('#classcategory_id2')[0].setCustomValidity('');
  204.                 }
  205.                 {% endif %}
  206.                 // 個数フォームのチェック
  207.                 if ($('#quantity').val() < 1) {
  208.                     $('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  209.                     return true;
  210.                 } else {
  211.                     $('#quantity')[0].setCustomValidity('');
  212.                 }
  213.                 event.preventDefault();
  214.                 $form = $('#form1');
  215.                 $.ajax({
  216.                     url: $form.attr('action'),
  217.                     type: $form.attr('method'),
  218.                     data: $form.serialize(),
  219.                     dataType: 'json',
  220.                     beforeSend: function(xhr, settings) {
  221.                         // Buttonを無効にする
  222.                         $('.add-cart').prop('disabled', true);
  223.                     }
  224.                 }).done(function(data) {
  225.                     // レスポンス内のメッセージをalertで表示
  226.                     $.each(data.messages, function() {
  227.                         $('#ec-modal-header').html(this);
  228.                     });
  229.                     $('.ec-modal').show()
  230.                     // カートブロックを更新する
  231.                     $.ajax({
  232.                         url: "{{ url('block_cart') }}",
  233.                         type: 'GET',
  234.                         dataType: 'html'
  235.                     }).done(function(html) {
  236.                         $('.ec-headerRole__cart').html(html);
  237.                     });
  238.                 }).fail(function(data) {
  239.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  240.                 }).always(function(data) {
  241.                     // Buttonを有効にする
  242.                     $('.add-cart').prop('disabled', false);
  243.                 });
  244.             });
  245.         });
  246.         $('.ec-modal-wrap').on('click', function(e) {
  247.             // モーダル内の処理は外側にバブリングさせない
  248.             e.stopPropagation();
  249.         });
  250.         $('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  251.             $('.ec-modal').hide()
  252.         });
  253.     </script>
  254.     <script type="application/ld+json">
  255.     {
  256.         "@context": "https://schema.org/",
  257.         "@type": "Product",
  258.         "name": "{{ Product.name }}",
  259.         "image": [
  260.             {% for img in Product.ProductImage %}
  261.                 "{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}"{% if not loop.last %},{% endif %}
  262.             {% else %}
  263.                 "{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}"
  264.             {% endfor %}
  265.         ],
  266.         "description": "{{ Product.description_list | default(Product.description_detail) | replace({'\n': '', '\r': ''}) | slice(0,300) }}",
  267.         {% if Product.code_min %}
  268.         "sku": "{{ Product.code_min }}",
  269.         {% endif %}
  270.         "offers": {
  271.             "@type": "Offer",
  272.             "url": "{{ url('product_detail', {'id': Product.id}) }}",
  273.             "priceCurrency": "{{ eccube_config.currency }}",
  274.             "price": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
  275.             "availability": "{{ Product.stock_find ? "InStock" : "OutOfStock" }}"
  276.         }
  277.     }
  278.     </script>
  279. {% endblock %}
  280. {% block main %}
  281.     <div class="l-page-heading">
  282.         <ul class="c-breadcrumb">
  283.             <li class="c-breadcrumb__item"><a href="{{ url('homepage') }}" class="c-breadcrumb__link c-btn-txt">TOP</a></li>
  284.             <li class="c-breadcrumb__item"><a href="{{ url('product_list') }}" class="c-breadcrumb__link c-btn-txt">商品リスト</a></li>
  285.             <li class="c-breadcrumb__item"><span class="c-breadcrumb__txt">{{ Product.name |raw}}</span></li>
  286.         </ul>
  287.         <h1 class="l-page-heading__ttl">
  288.             <span class="l-page-heading__ttl-jp">商品情報</span>
  289.             <span class="l-page-heading__ttl-en">PRODUCTS</span>
  290.         </h1>
  291.     </div>
  292.     <div class="p-product-detail">
  293.         <div class="p-product-detail__col p-product-detail__col--slider">
  294.             <div class="item_visual p-product-detail__slider">
  295.                 {% for ProductImage in Product.ProductImage %}
  296.                     <div class="slide-item"><img src="{{ asset(ProductImage, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}" width="550" height="550"{% if loop.index > 1 %} loading="lazy"{% endif %}></div>
  297.                 {% else %}
  298.                     <div class="slide-item"><img src="{{ asset(''|no_image_product, 'save_image') }}" alt="{{ loop.first ? Product.name : '' }}" width="550" height="550"></div>
  299.                 {% endfor %}
  300.             </div>
  301.             <div class="item_nav">
  302.                 {% for ProductImage in Product.ProductImage %}
  303.                     <div class="slideThumb" data-index="{{ loop.index0 }}"><img src="{{ asset(ProductImage, 'save_image') }}" alt="" width="133" height="133" loading="lazy"></div>
  304.                 {% endfor %}
  305.             </div>
  306.         </div>
  307.         <div class="p-product-detail__col p-product-detail__col--txt">
  308.             <div class="p-product-detail__info">
  309.                 {# 「定期便対応」以外のカテゴリを出力 ここから #}
  310.                 {% if Product.ProductCategories is not empty %}
  311.                     {% for ProductCategory in Product.ProductCategories %}
  312.                         {% if ProductCategory.Category.path[0].id != '11' %}
  313.                             <ul class="p-product-detail__cats">
  314.                                 <li class="p-product-detail__cats-cat">
  315.                                     {% for Category in ProductCategory.Category.path %}
  316.                                         <a href="{{ url('product_list') }}?category_id={{ Category.id }}">{{ Category.name }}</a> {%- if loop.last == false %}
  317.                                         <span>></span>{% endif -%}
  318.                                     {% endfor %}
  319.                                 </li>
  320.                             </ul>
  321.                         {% endif %}
  322.                     {% endfor %}
  323.                 {% endif %}
  324.                 {# 「定期便対応」以外のカテゴリを出力 ここまで #}
  325.                 {# タグと「定期便対応」カテゴリを出力 ここから #}
  326.                 {% if Product.ProductCategories is not empty %}
  327.                     {% if Product.Tags is not empty %}
  328.                         <ul class="c-tags p-product-detail__tags">
  329.                             {% for Tag in Product.Tags %}
  330.                                 <li class="c-tags__tag p-product-detail__tags-tag tag_{{ Tag.id }}">{{ Tag }}</li>
  331.                             {% endfor %}
  332.                             {% for ProductCategory in Product.ProductCategories %}
  333.                                 {% if ProductCategory.Category.path[0].id == '11' %}
  334.                                     {% for Category in ProductCategory.Category.path %}
  335.                                         <li class="c-tags__tag p-product-detail__tags-tag tag_cat{{ Category.id }}">{{ Category.name }}</li>
  336.                                     {% endfor %}
  337.                                 {% endif %}
  338.                             {% endfor %}
  339.                         </ul>
  340.                     {% elseif Product.Tags is empty %}
  341.                         {% for ProductCategory in Product.ProductCategories %}
  342.                             {% if ProductCategory.Category.path[0].id == '11' %}
  343.                                 <ul class="c-tags p-product-detail__tags">
  344.                                     {% for Category in ProductCategory.Category.path %}
  345.                                         <li class="c-tags__tag p-product-detail__tags-tag tag_cat{{ Category.id }}">{{ Category.name }}</li>
  346.                                     {% endfor %}
  347.                                 </ul>
  348.                             {% endif %}
  349.                         {% endfor %}
  350.                     {% endif %}
  351.                 {% elseif Product.ProductCategories is empty and Product.Tags is not empty %}
  352.                     <ul class="c-tags p-product-detail__tags">
  353.                         {% for Tag in Product.Tags %}
  354.                             <li class="c-tags__tag p-product-detail__tags-tag tag_{{ Tag.id }}">{{ Tag }}</li>
  355.                         {% endfor %}
  356.                     </ul>
  357.                 {% endif %}
  358.                 {# タグと「定期便対応」カテゴリを出力 ここまで #}
  359.                 {# お気に入り #}
  360.                 {% if is_granted('ROLE_USER') %}{# ログインしている場合 #}
  361.                     {% if BaseInfo.option_favorite_product %}
  362.                         <form action="{{ url('product_add_favorite', {id:Product.id}) }}" method="post">
  363.                             <div class="p-product-detail__fav">
  364.                                 {% if is_favorite == false %}
  365.                                     <button type="submit" id="favorite" class="p-product-detail__fav-btn">
  366.                                         <img src="{{ asset('assets/img/common/ic_fav.svg') }}" alt="お気に入りに追加">
  367.                                     </button>
  368.                                 {% else %}
  369.                                     <button type="submit" id="favorite" class="p-product-detail__fav-btn p-product-detail__fav-btn--disabled" disabled="disabled">
  370.                                         <img src="{{ asset('assets/img/common/ic_fav_disabled.svg') }}" alt="お気に入りに追加済です">
  371.                                     </button>
  372.                                 {% endif %}
  373.                             </div>
  374.                         </form>
  375.                     {% endif %}
  376.                 {% endif %}
  377.             </div>
  378.             {# 商品名 #}
  379.             <h2 class="p-product-detail__ttl">{{ Product.name }}</h2>
  380.             {# 商品説明 #}
  381.             <div class="p-product-detail__description">
  382.                 {{ Product.description_detail|raw|nl2br }}
  383.             </div>
  384.             <div class="p-product-detail__price-row">
  385.                 {% if Product.production_capacity is not empty %}
  386.                     <div class="p-product-detail__capacity">容量:{{ Product.production_capacity }}</div>
  387.                 {% endif %}
  388.                 <div class="p-product-detail__price-area">
  389.                     {# 通常価格 #}
  390.                     {% if Product.hasProductClass -%}
  391.                         <div class="p-product-detail__price p-product-detail__price--regular">
  392.                             {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  393.                                 <span class="p-product-detail__price-ttl">{{ '通常価格'|trans }}:</span>
  394.                                 <span class="p-product-detail__price-num price01-default">{{ Product.getPrice01IncTaxMin|number_format }}</span>
  395.                                 <span class="p-product-detail__price-tax">{{ '円(税込)'|trans }}</span>
  396.                             {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  397.                                 <span class="p-product-detail__price-ttl">{{ '通常価格'|trans }}:</span>
  398.                                 <span class="p-product-detail__price-num price01-default">{{ Product.getPrice01IncTaxMin|number_format }}~ {{ Product.getPrice01IncTaxMax|number_format }}</span>
  399.                                 <span class="p-product-detail__price-tax">{{ '円(税込)'|trans }}</span>
  400.                             {% endif %}
  401.                         </div>
  402.                     {% else %}
  403.                         {% if Product.getPrice01Max is not null %}
  404.                             <div class="p-product-detail__price p-product-detail__price--regular">
  405.                                 <span class="p-product-detail__price-ttl">{{ '通常価格'|trans }}:</span>
  406.                                 <span class="p-product-detail__price-num">{{ Product.getPrice01IncTaxMin|number_format }}</span>
  407.                                 <span class="p-product-detail__price-tax">{{ '円(税込)'|trans }}</span>
  408.                             </div>
  409.                         {% endif %}
  410.                     {% endif %}
  411.                     {# 販売価格 #}
  412.                     <div class="p-product-detail__price">
  413.                         {% if Product.hasProductClass -%}
  414.                             {% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  415.                                 <span class="p-product-detail__price-num price02-default">{{ Product.getPrice02IncTaxMin|number_format }}</span>
  416.                                 <span class="p-product-detail__price-tax">{{ '円(税込)'|trans }}</span>
  417.                             {% else %}
  418.                                 <span class="p-product-detail__price-num price02-default">{{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}</span>
  419.                                 <span class="p-product-detail__price-tax">{{ '円(税込)'|trans }}</span>
  420.                             {% endif %}
  421.                         {% else %}
  422.                             <span class="p-product-detail__price-num">{{ Product.getPrice02IncTaxMin|number_format }}</span>
  423.                             <span class="p-product-detail__price-tax">{{ '円(税込)'|trans }}</span>
  424.                         {% endif %}
  425.                     </div>
  426.                 </div>
  427.             </div>
  428.             <form action="{{ url('product_add_cart', {id:Product.id}) }}" method="post" id="form1" name="form1">
  429.                 <div class="p-product-detail__cart-row">
  430.                     {% if Product.stock_find %}
  431.                         <div class="p-product-detail__actions">
  432.                             {% if form.classcategory_id1 is defined %}
  433.                                 <div class="p-product-detail__select">
  434.                                     {{ form_row(form.classcategory_id1) }}
  435.                                     {{ form_errors(form.classcategory_id1) }}
  436.                                 </div>
  437.                                 {% if form.classcategory_id2 is defined %}
  438.                                     <div class="p-product-detail__select">
  439.                                         {{ form_row(form.classcategory_id2) }}
  440.                                         {{ form_errors(form.classcategory_id2) }}
  441.                                     </div>
  442.                                 {% endif %}
  443.                             {% endif %}
  444.                             <div class="p-product-detail__count">
  445.                                 <span class="p-product-detail__count-ttl">{{ '数量'|trans }}</span>
  446.                                 {{ form_widget(form.quantity) }}
  447.                                 {{ form_errors(form.quantity) }}
  448.                             </div>
  449.                         </div>
  450.                         <div class="p-product-detail__btn-row">
  451.                             <button type="submit" class="c-btn c-btn--gr p-product-detail__btn add-cart">
  452.                                 <img src="{{ asset('assets/img/common/ic_cart_wh.svg') }}" alt="">
  453.                                 {{ 'カートに入れる'|trans }}
  454.                             </button>
  455.                         </div>
  456.                     {% else %}
  457.                         <div class="p-product-detail__btn-row">
  458.                             <button type="button" class="c-btn c-btn--gy p-product-detail__btn" disabled="disabled">
  459.                                 {{ 'ただいま品切れ中です。'|trans }}
  460.                             </button>
  461.                         </div>
  462.                     {% endif %}
  463.                     {{ form_rest(form) }}
  464.                 </div>{# .p-product-detail__cart-row ここまで #}
  465.             </form>
  466.             {# カートに追加 モーダル #}
  467.             <div class="ec-modal">
  468.                 <div class="ec-modal-overlay">
  469.                     <div class="ec-modal-wrap">
  470.                         <span class="ec-modal-close"><span class="ec-icon"><img src="{{ asset('assets/icon/cross-dark.svg') }}" alt=""/></span></span>
  471.                         <div id="ec-modal-header" class="text-center">{{ 'カートに追加しました。'|trans }}</div>
  472.                         <div class="ec-modal-box">
  473.                             <div class="ec-role">
  474.                                 <span class="ec-inlineBtn--cancel">{{ 'お買い物を続ける'|trans }}</span>
  475.                                 <a href="{{ url('cart') }}" class="ec-inlineBtn--action">{{ 'カートへ進む'|trans }}</a>
  476.                             </div>
  477.                         </div>
  478.                     </div>
  479.                 </div>
  480.             </div>
  481.             <div class="p-product-detail__return">
  482.                 <p class="p-product-detail__return-txt">返品について</p>
  483.                 <p class="p-product-detail__return-txt">弊社では、返品をお受けしておりません。<br>製品お受取後7⽇以内、未開封に限り交換を承ります。<br>詳しくは<a href="{{ url('help_guide') }}#return" class="c-btn-txt">こちら</a>。</p>
  484.             </div>
  485.         </div>{# .p-product-detail__col--txt ここまで #}
  486.     </div>{# .p-product-detail ここまで #}
  487.     {% if Product.freearea %}
  488.         <div class="p-product-description">
  489.              {{ include(template_from_string(Product.freearea)) }}
  490.         </div>
  491.     {% endif %}
  492.     {% if Product.ProductCategories is not empty %}
  493.         {% set displayed_categories = [] %}
  494.         {% for ProductCategory in Product.ProductCategories %}
  495.             {% for Category in ProductCategory.Category.path %}
  496.                 {% if Category.id not in displayed_categories and (Category.id == '8' or Category.id == '9') %}
  497.                     {% set displayed_categories = displayed_categories|merge([Category.id]) %} {# 処理済みカテゴリIDを追加 #}
  498.                     <div class="p-product-nature">
  499.                         <div class="p-product-nature__txt-wrap">
  500.                             <h2 class="p-product-nature__ttl"><span class="large">Nature.</span><span class="jp">シリーズとは?</span><span class="small">What's Nature.series</span></h2>
  501.                             <p class="p-product-nature__txt">Nature.シリーズは、びわを使⽤したカラダにやさしい商品です。<br>厳選した「和漢エキス(ビワ葉エキス)」と「天然温泉⽔」をたっぶりと配合した⾃然派化粧品です。<br>みなさまと、みなさまの⼤切な⼈に、毎⽇安⼼して使っていただけるよう、そんな願いを込めて商品をお届けいたします。</p>
  502.                         </div>
  503.                         <div class="p-product-nature__img-wrap">
  504.                             <picture>
  505.                                 <source media="(min-width: 1025px)" srcset="{{ asset('assets/img/product/nature.webp') }}">
  506.                                 <source media="(max-width: 1024px)" srcset="{{ asset('assets/img/product/nature_sp.webp 2x') }}">
  507.                                 <img src="{{ asset('assets/img/product/nature.webp') }}" alt="">
  508.                             </picture>
  509.                         </div>
  510.                     </div>
  511.                 {% endif %}
  512.             {% endfor %}
  513.         {% endfor %}
  514.     {% endif %}
  515.     <span class="p-product-related" id="js-related-area"></span>
  516.     <span class="p-product-checked" id="js-checked-area"></span>
  517.     <div class="p-product-btn">
  518.         <a href="{{ url('product_list') }}" class="p-product-btn__btn c-btn">すべての商品をみる</a>
  519.     </div>
  520. {% endblock %}