var/cache/dev/twig/22/228e6e8f4d3fcee9e7f0d90e14f0350f.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* index.twig */
  14. class __TwigTemplate_add854ba1de75c41a2fec1ef53fb8753 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  40.         // line 13
  41.         $context["body_class"] = "front_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""index.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "<style>
  60.     .slick-slider {
  61.         margin-bottom: 30px;
  62.     }
  63.     .slick-dots {
  64.         position: absolute;
  65.         bottom: -45px;
  66.         display: block;
  67.         width: 100%;
  68.         padding: 0;
  69.         list-style: none;
  70.         text-align: center;
  71.     }
  72.     .slick-dots li {
  73.         position: relative;
  74.         display: inline-block;
  75.         width: 20px;
  76.         height: 20px;
  77.         margin: 0 5px;
  78.         padding: 0;
  79.         cursor: pointer;
  80.     }
  81.     .slick-dots li button {
  82.         font-size: 0;
  83.         line-height: 0;
  84.         display: block;
  85.         width: 20px;
  86.         height: 20px;
  87.         padding: 5px;
  88.         cursor: pointer;
  89.         color: transparent;
  90.         border: 0;
  91.         outline: none;
  92.         background: transparent;
  93.     }
  94.     .slick-dots li button:hover,
  95.     .slick-dots li button:focus {
  96.         outline: none;
  97.     }
  98.     .slick-dots li button:hover:before,
  99.     .slick-dots li button:focus:before {
  100.         opacity: 1;
  101.     }
  102.     .slick-dots li button:before {
  103.         content: \" \";
  104.         line-height: 20px;
  105.         position: absolute;
  106.         top: 0;
  107.         left: 0;
  108.         width: 12px;
  109.         height: 12px;
  110.         text-align: center;
  111.         opacity: .25;
  112.         background-color: black;
  113.         border-radius: 50%;
  114.     }
  115.     .slick-dots li.slick-active button:before {
  116.         opacity: .75;
  117.         background-color: black;
  118.     }
  119.     .slick-dots li button.thumbnail img {
  120.         width: 0;
  121.         height: 0;
  122.     }
  123. </style>
  124. ";
  125.         
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127.         
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129.     }
  130.     // line 93
  131.     public function block_javascript($context, array $blocks = [])
  132.     {
  133.         $macros $this->macros;
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  138.         // line 94
  139.         echo "<script>
  140.   \$(function () {
  141.     function fixHeroImagePriority(\$slider) {
  142.       // いったん全部lazy(clone含めて事故防止)
  143.       \$slider.find('.slick-slide img')
  144.         .attr('loading', 'lazy')
  145.         .removeAttr('fetchpriority');
  146.       // 表示中だけ eager + high
  147.       \$slider.find('.slick-slide.slick-current img')
  148.         .attr('loading', 'eager')
  149.         .attr('fetchpriority', 'high');
  150.     }
  151.     var \$mv = \$('.main_visual');
  152.     \$mv
  153.       .on('init', function () { fixHeroImagePriority(\$mv); })
  154.       .on('afterChange', function () { fixHeroImagePriority(\$mv); })
  155.       .slick({
  156.         dots: true,
  157.         arrows: false,
  158.         autoplay: true,
  159.         speed: 300
  160.         // 余裕あれば:, lazyLoad: 'ondemand'
  161.       });
  162.     // 念のため保険
  163.     setTimeout(function(){ fixHeroImagePriority(\$mv); }, 0);
  164.   });
  165. </script>
  166. ";
  167.         
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169.         
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171.     }
  172.     // line 129
  173.     public function block_main($context, array $blocks = [])
  174.     {
  175.         $macros $this->macros;
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  180.         // line 130
  181.         echo "<div class=\"ec-sliderRole\">
  182. <div class=\"main_visual\">
  183.     <div class=\"item\">
  184.         <a href=\"";
  185.         // line 133
  186.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  187.         echo "goods/locomo-cream-2set\"
  188.             onClick=\"ga('send','event','click','top', 'slide_locomox2' ,1,{'nonInteraction':1});\">
  189.             <picture>
  190.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  191.                     srcset=\"";
  192.         // line 137
  193.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_locomox2_750x390.webp"), "html"nulltrue);
  194.         echo "\">
  195.                 <source media=\"(max-width: 767px)\"
  196.                     srcset=\"";
  197.         // line 139
  198.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_locomox2_750x390.jpg"), "html"nulltrue);
  199.         echo "\">
  200.                 <source type=\"image/webp\"
  201.                     srcset=\"";
  202.         // line 141
  203.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_locomox2_1000x360.webp"), "html"nulltrue);
  204.         echo "\">
  205.                 <img
  206.                     src=\"";
  207.         // line 143
  208.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_locomox2_1000x360.jpg"), "html"nulltrue);
  209.         echo "\"
  210.                     alt=\"ロコモクリーム331 2個セット\"
  211.                     width=\"1000\" height=\"360\"
  212.                     style=\"width:100%;height:auto;\"
  213.                     loading=\"lazy\">
  214.             </picture>
  215.         </a>
  216.     </div>
  217.     <div class=\"item\">
  218.         <a href=\"";
  219.         // line 153
  220.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  221.         echo "healthfood/tsukudani\"
  222.             onClick=\"ga('send','event','click','top', 'slide_tsukudani' ,1,{'nonInteraction':1});\">
  223.             <picture>
  224.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  225.                     srcset=\"";
  226.         // line 157
  227.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_tsukudani_750x390.webp"), "html"nulltrue);
  228.         echo "\">
  229.                 <source media=\"(max-width: 767px)\"
  230.                     srcset=\"";
  231.         // line 159
  232.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_tsukudani_750x390.jpg"), "html"nulltrue);
  233.         echo "\">
  234.                 <source type=\"image/webp\"
  235.                     srcset=\"";
  236.         // line 161
  237.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_tsukudani_1000x360.webp"), "html"nulltrue);
  238.         echo "\">
  239.                 <img
  240.                     src=\"";
  241.         // line 163
  242.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_tsukudani_1000x360.jpg"), "html"nulltrue);
  243.         echo "\"
  244.                     alt=\"ミリオン佃煮3点セット\"
  245.                     width=\"1000\" height=\"360\"
  246.                     style=\"width:100%;height:auto;\"
  247.                     loading=\"lazy\">
  248.             </picture>
  249.         </a>
  250.     </div>
  251.     <div class=\"item\">
  252.         <a href=\"";
  253.         // line 173
  254.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  255.         echo "goods/beauty-box\"
  256.             onClick=\"ga('send','event','click','top', 'slide_amane' ,1,{'nonInteraction':1});\">
  257.             <picture>
  258.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  259.                     srcset=\"";
  260.         // line 177
  261.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_amane_750x390.webp"), "html"nulltrue);
  262.         echo "\">
  263.                 <source media=\"(max-width: 767px)\"
  264.                     srcset=\"";
  265.         // line 179
  266.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_amane_750x390.jpg"), "html"nulltrue);
  267.         echo "\">
  268.                 <source type=\"image/webp\"
  269.                     srcset=\"";
  270.         // line 181
  271.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_amane_1000x360.webp"), "html"nulltrue);
  272.         echo "\">
  273.                 <img
  274.                     src=\"";
  275.         // line 183
  276.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_amane_1000x360.jpg"), "html"nulltrue);
  277.         echo "\"
  278.                     alt=\"amaneジュエリービューティーボックス\"
  279.                     width=\"1000\" height=\"360\"
  280.                     style=\"width:100%;height:auto;\"
  281.                     loading=\"lazy\">
  282.             </picture>
  283.         </a>
  284.     </div>
  285.     <div class=\"item\">
  286.         <a href=\"";
  287.         // line 193
  288.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  289.         echo "health-trend/dashsyoku\"
  290.             onClick=\"ga('send','event','click','top', 'slide_dash' ,1,{'nonInteraction':1});\">
  291.             <picture>
  292.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  293.                     srcset=\"";
  294.         // line 197
  295.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_dash_750x390.webp"), "html"nulltrue);
  296.         echo "\">
  297.                 <source media=\"(max-width: 767px)\"
  298.                     srcset=\"";
  299.         // line 199
  300.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_dash_750x390.jpg"), "html"nulltrue);
  301.         echo "\">
  302.                 <source type=\"image/webp\"
  303.                     srcset=\"";
  304.         // line 201
  305.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_dash_1000x360.webp"), "html"nulltrue);
  306.         echo "\">
  307.                 <img
  308.                     src=\"";
  309.         // line 203
  310.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_dash_1000x360.jpg"), "html"nulltrue);
  311.         echo "\"
  312.                     alt=\"DASH食\"
  313.                     width=\"1000\" height=\"360\"
  314.                     style=\"width:100%;height:auto;\"
  315.                     loading=\"lazy\">
  316.             </picture>
  317.         </a>
  318.     </div>
  319.     <div class=\"item\">
  320.         <a href=\"";
  321.         // line 213
  322.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  323.         echo "health-trend/beta-carotene\"
  324.             onClick=\"ga('send','event','click','top', 'slide_carotene' ,1,{'nonInteraction':1});\">
  325.             <picture>
  326.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  327.                     srcset=\"";
  328.         // line 217
  329.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_carotene_750x390.webp"), "html"nulltrue);
  330.         echo "\">
  331.                 <source media=\"(max-width: 767px)\"
  332.                     srcset=\"";
  333.         // line 219
  334.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_carotene_750x390.jpg"), "html"nulltrue);
  335.         echo "\">
  336.                 <source type=\"image/webp\"
  337.                     srcset=\"";
  338.         // line 221
  339.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_carotene_1000x360.webp"), "html"nulltrue);
  340.         echo "\">
  341.                 <img
  342.                     src=\"";
  343.         // line 223
  344.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_carotene_1000x360.jpg"), "html"nulltrue);
  345.         echo "\"
  346.                     alt=\"β-カロテンで今日からできる美肌作り\"
  347.                     width=\"1000\" height=\"360\"
  348.                     style=\"width:100%;height:auto;\"
  349.                     loading=\"lazy\">
  350.             </picture>
  351.         </a>
  352.     </div>
  353.     <div class=\"item\">
  354.         <a href=\"";
  355.         // line 233
  356.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  357.         echo "vegetable-juice/sdgs-episode\"
  358.             onClick=\"ga('send','event','click','top', 'slide_sdgs' ,1,{'nonInteraction':1});\">
  359.             <picture>
  360.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  361.                     srcset=\"";
  362.         // line 237
  363.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_sdgs_750x390.webp"), "html"nulltrue);
  364.         echo "\">
  365.                 <source media=\"(max-width: 767px)\"
  366.                     srcset=\"";
  367.         // line 239
  368.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_sdgs_750x390.png"), "html"nulltrue);
  369.         echo "\">
  370.                 <source type=\"image/webp\"
  371.                     srcset=\"";
  372.         // line 241
  373.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_sdgs_1000x360.webp"), "html"nulltrue);
  374.         echo "\">
  375.                 <img
  376.                     src=\"";
  377.         // line 243
  378.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/bnr_sdgs_1000x360.png"), "html"nulltrue);
  379.         echo "\"
  380.                     alt=\"SDGs達成のため、「食品ロス」を減らそう、なくそう。\"
  381.                     width=\"1000\" height=\"360\"
  382.                     style=\"width:100%;height:auto;\"
  383.                     loading=\"lazy\">
  384.             </picture>
  385.         </a>
  386.     </div>
  387. </div>
  388. </div>
  389. ";
  390.         
  391.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  392.         
  393.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  394.     }
  395.     public function getTemplateName()
  396.     {
  397.         return "index.twig";
  398.     }
  399.     public function isTraitable()
  400.     {
  401.         return false;
  402.     }
  403.     public function getDebugInfo()
  404.     {
  405.         return array (  423 => 243,  418 => 241,  413 => 239,  408 => 237,  401 => 233,  388 => 223,  383 => 221,  378 => 219,  373 => 217,  366 => 213,  353 => 203,  348 => 201,  343 => 199,  338 => 197,  331 => 193,  318 => 183,  313 => 181,  308 => 179,  303 => 177,  296 => 173,  283 => 163,  278 => 161,  273 => 159,  268 => 157,  261 => 153,  248 => 143,  243 => 141,  238 => 139,  233 => 137,  226 => 133,  221 => 130,  211 => 129,  168 => 94,  158 => 93,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  406.     }
  407.     public function getSourceContext()
  408.     {
  409.         return new Source("{#
  410. This file is part of EC-CUBE
  411. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  412. http://www.ec-cube.co.jp/
  413. For the full copyright and license information, please view the LICENSE
  414. file that was distributed with this source code.
  415. #}
  416. {% extends 'default_frame.twig' %}
  417. {% set body_class = 'front_page' %}
  418. {% block stylesheet %}
  419. <style>
  420.     .slick-slider {
  421.         margin-bottom: 30px;
  422.     }
  423.     .slick-dots {
  424.         position: absolute;
  425.         bottom: -45px;
  426.         display: block;
  427.         width: 100%;
  428.         padding: 0;
  429.         list-style: none;
  430.         text-align: center;
  431.     }
  432.     .slick-dots li {
  433.         position: relative;
  434.         display: inline-block;
  435.         width: 20px;
  436.         height: 20px;
  437.         margin: 0 5px;
  438.         padding: 0;
  439.         cursor: pointer;
  440.     }
  441.     .slick-dots li button {
  442.         font-size: 0;
  443.         line-height: 0;
  444.         display: block;
  445.         width: 20px;
  446.         height: 20px;
  447.         padding: 5px;
  448.         cursor: pointer;
  449.         color: transparent;
  450.         border: 0;
  451.         outline: none;
  452.         background: transparent;
  453.     }
  454.     .slick-dots li button:hover,
  455.     .slick-dots li button:focus {
  456.         outline: none;
  457.     }
  458.     .slick-dots li button:hover:before,
  459.     .slick-dots li button:focus:before {
  460.         opacity: 1;
  461.     }
  462.     .slick-dots li button:before {
  463.         content: \" \";
  464.         line-height: 20px;
  465.         position: absolute;
  466.         top: 0;
  467.         left: 0;
  468.         width: 12px;
  469.         height: 12px;
  470.         text-align: center;
  471.         opacity: .25;
  472.         background-color: black;
  473.         border-radius: 50%;
  474.     }
  475.     .slick-dots li.slick-active button:before {
  476.         opacity: .75;
  477.         background-color: black;
  478.     }
  479.     .slick-dots li button.thumbnail img {
  480.         width: 0;
  481.         height: 0;
  482.     }
  483. </style>
  484. {% endblock %}
  485. {% block javascript %}
  486. <script>
  487.   \$(function () {
  488.     function fixHeroImagePriority(\$slider) {
  489.       // いったん全部lazy(clone含めて事故防止)
  490.       \$slider.find('.slick-slide img')
  491.         .attr('loading', 'lazy')
  492.         .removeAttr('fetchpriority');
  493.       // 表示中だけ eager + high
  494.       \$slider.find('.slick-slide.slick-current img')
  495.         .attr('loading', 'eager')
  496.         .attr('fetchpriority', 'high');
  497.     }
  498.     var \$mv = \$('.main_visual');
  499.     \$mv
  500.       .on('init', function () { fixHeroImagePriority(\$mv); })
  501.       .on('afterChange', function () { fixHeroImagePriority(\$mv); })
  502.       .slick({
  503.         dots: true,
  504.         arrows: false,
  505.         autoplay: true,
  506.         speed: 300
  507.         // 余裕あれば:, lazyLoad: 'ondemand'
  508.       });
  509.     // 念のため保険
  510.     setTimeout(function(){ fixHeroImagePriority(\$mv); }, 0);
  511.   });
  512. </script>
  513. {% endblock javascript %}
  514. {% block main %}
  515. <div class=\"ec-sliderRole\">
  516. <div class=\"main_visual\">
  517.     <div class=\"item\">
  518.         <a href=\"{{ url('homepage') }}goods/locomo-cream-2set\"
  519.             onClick=\"ga('send','event','click','top', 'slide_locomox2' ,1,{'nonInteraction':1});\">
  520.             <picture>
  521.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  522.                     srcset=\"{{ asset('assets/img/top/bnr_locomox2_750x390.webp') }}\">
  523.                 <source media=\"(max-width: 767px)\"
  524.                     srcset=\"{{ asset('assets/img/top/bnr_locomox2_750x390.jpg') }}\">
  525.                 <source type=\"image/webp\"
  526.                     srcset=\"{{ asset('assets/img/top/bnr_locomox2_1000x360.webp') }}\">
  527.                 <img
  528.                     src=\"{{ asset('assets/img/top/bnr_locomox2_1000x360.jpg') }}\"
  529.                     alt=\"ロコモクリーム331 2個セット\"
  530.                     width=\"1000\" height=\"360\"
  531.                     style=\"width:100%;height:auto;\"
  532.                     loading=\"lazy\">
  533.             </picture>
  534.         </a>
  535.     </div>
  536.     <div class=\"item\">
  537.         <a href=\"{{ url('homepage') }}healthfood/tsukudani\"
  538.             onClick=\"ga('send','event','click','top', 'slide_tsukudani' ,1,{'nonInteraction':1});\">
  539.             <picture>
  540.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  541.                     srcset=\"{{ asset('assets/img/top/bnr_tsukudani_750x390.webp') }}\">
  542.                 <source media=\"(max-width: 767px)\"
  543.                     srcset=\"{{ asset('assets/img/top/bnr_tsukudani_750x390.jpg') }}\">
  544.                 <source type=\"image/webp\"
  545.                     srcset=\"{{ asset('assets/img/top/bnr_tsukudani_1000x360.webp') }}\">
  546.                 <img
  547.                     src=\"{{ asset('assets/img/top/bnr_tsukudani_1000x360.jpg') }}\"
  548.                     alt=\"ミリオン佃煮3点セット\"
  549.                     width=\"1000\" height=\"360\"
  550.                     style=\"width:100%;height:auto;\"
  551.                     loading=\"lazy\">
  552.             </picture>
  553.         </a>
  554.     </div>
  555.     <div class=\"item\">
  556.         <a href=\"{{ url('homepage') }}goods/beauty-box\"
  557.             onClick=\"ga('send','event','click','top', 'slide_amane' ,1,{'nonInteraction':1});\">
  558.             <picture>
  559.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  560.                     srcset=\"{{ asset('assets/img/top/bnr_amane_750x390.webp') }}\">
  561.                 <source media=\"(max-width: 767px)\"
  562.                     srcset=\"{{ asset('assets/img/top/bnr_amane_750x390.jpg') }}\">
  563.                 <source type=\"image/webp\"
  564.                     srcset=\"{{ asset('assets/img/top/bnr_amane_1000x360.webp') }}\">
  565.                 <img
  566.                     src=\"{{ asset('assets/img/top/bnr_amane_1000x360.jpg') }}\"
  567.                     alt=\"amaneジュエリービューティーボックス\"
  568.                     width=\"1000\" height=\"360\"
  569.                     style=\"width:100%;height:auto;\"
  570.                     loading=\"lazy\">
  571.             </picture>
  572.         </a>
  573.     </div>
  574.     <div class=\"item\">
  575.         <a href=\"{{ url('homepage') }}health-trend/dashsyoku\"
  576.             onClick=\"ga('send','event','click','top', 'slide_dash' ,1,{'nonInteraction':1});\">
  577.             <picture>
  578.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  579.                     srcset=\"{{ asset('assets/img/top/bnr_dash_750x390.webp') }}\">
  580.                 <source media=\"(max-width: 767px)\"
  581.                     srcset=\"{{ asset('assets/img/top/bnr_dash_750x390.jpg') }}\">
  582.                 <source type=\"image/webp\"
  583.                     srcset=\"{{ asset('assets/img/top/bnr_dash_1000x360.webp') }}\">
  584.                 <img
  585.                     src=\"{{ asset('assets/img/top/bnr_dash_1000x360.jpg') }}\"
  586.                     alt=\"DASH食\"
  587.                     width=\"1000\" height=\"360\"
  588.                     style=\"width:100%;height:auto;\"
  589.                     loading=\"lazy\">
  590.             </picture>
  591.         </a>
  592.     </div>
  593.     <div class=\"item\">
  594.         <a href=\"{{ url('homepage') }}health-trend/beta-carotene\"
  595.             onClick=\"ga('send','event','click','top', 'slide_carotene' ,1,{'nonInteraction':1});\">
  596.             <picture>
  597.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  598.                     srcset=\"{{ asset('assets/img/top/bnr_carotene_750x390.webp') }}\">
  599.                 <source media=\"(max-width: 767px)\"
  600.                     srcset=\"{{ asset('assets/img/top/bnr_carotene_750x390.jpg') }}\">
  601.                 <source type=\"image/webp\"
  602.                     srcset=\"{{ asset('assets/img/top/bnr_carotene_1000x360.webp') }}\">
  603.                 <img
  604.                     src=\"{{ asset('assets/img/top/bnr_carotene_1000x360.jpg') }}\"
  605.                     alt=\"β-カロテンで今日からできる美肌作り\"
  606.                     width=\"1000\" height=\"360\"
  607.                     style=\"width:100%;height:auto;\"
  608.                     loading=\"lazy\">
  609.             </picture>
  610.         </a>
  611.     </div>
  612.     <div class=\"item\">
  613.         <a href=\"{{ url('homepage') }}vegetable-juice/sdgs-episode\"
  614.             onClick=\"ga('send','event','click','top', 'slide_sdgs' ,1,{'nonInteraction':1});\">
  615.             <picture>
  616.                 <source media=\"(max-width: 767px)\" type=\"image/webp\"
  617.                     srcset=\"{{ asset('assets/img/top/bnr_sdgs_750x390.webp') }}\">
  618.                 <source media=\"(max-width: 767px)\"
  619.                     srcset=\"{{ asset('assets/img/top/bnr_sdgs_750x390.png') }}\">
  620.                 <source type=\"image/webp\"
  621.                     srcset=\"{{ asset('assets/img/top/bnr_sdgs_1000x360.webp') }}\">
  622.                 <img
  623.                     src=\"{{ asset('assets/img/top/bnr_sdgs_1000x360.png') }}\"
  624.                     alt=\"SDGs達成のため、「食品ロス」を減らそう、なくそう。\"
  625.                     width=\"1000\" height=\"360\"
  626.                     style=\"width:100%;height:auto;\"
  627.                     loading=\"lazy\">
  628.             </picture>
  629.         </a>
  630.     </div>
  631. </div>
  632. </div>
  633. {% endblock %}
  634. ""index.twig""/home/xs080051/million-store.com/public_html/st.million-store.com/ec/app/template/million01/index.twig");
  635.     }
  636. }