{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'front_page' %}
{% block stylesheet %}
<style>
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
content: " ";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;
}
.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}
.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
@supports (content-visibility: auto) {
.top-ranking,
.ec-role.top-ranking,
.news, .top-news, .ec-newsRole,
footer {
content-visibility: auto;
contain-intrinsic-size: 800px;
}
}
@media (max-width: 767px) {
.main_visual {
aspect-ratio: 640 / 360;
}
.ec-newsRole {
min-height: 600px;
}
}
.fa, .fas {
width: 1em;
display: inline-block;
}
</style>
{% endblock %}
{% block javascript %}
<script>
document.addEventListener('DOMContentLoaded', function () {
if (!(window.jQuery && jQuery.fn && jQuery.fn.slick)) return;
var $mv = $('.main_visual');
if (!$mv.hasClass('slick-initialized')) {
$mv.slick({
dots: true,
arrows: false,
autoplay: true,
speed: 300,
lazyLoad: 'ondemand'
});
}
});
</script>
{% endblock javascript %}
{% block main %}
<div class="ec-sliderRole">
<div class="main_visual">
<div class="item">
<a href="{{ url('homepage') }}campaign/summer-campaign"
onClick="ga('send','event','click','top', 'slide_2026smr' ,1,{'nonInteraction':1});">
<picture>
<source media="(max-width: 767px)" type="image/webp"
srcset="{{ asset('assets/img/top/bnr_2026smr_800w.webp') }}">
<source media="(max-width: 767px)"
srcset="{{ asset('assets/img/top/bnr_2026smr_800w.jpg') }}">
<source type="image/webp"
srcset="{{ asset('assets/img/top/bnr_2026smr_1090w.webp') }}">
<img src="{{ asset('assets/img/top/bnr_2026smr_1090w.jpg') }}" alt="夏まとめ買いキャンペーン 最大20%OFF" width="1090" height="450" fetchpriority="high" style="width:100%;height:auto;">
</picture>
</a>
</div>
<div class="item">
<a href="{{ url('homepage') }}healthfood/collagen-2set"
onClick="ga('send','event','click','top', 'slide_cox2' ,1,{'nonInteraction':1});">
<picture>
<source media="(max-width: 767px)" type="image/webp"
srcset="{{ asset('assets/img/top/bnr_cox2_800w.webp') }}">
<source media="(max-width: 767px)"
srcset="{{ asset('assets/img/top/bnr_cox2_800w.jpg') }}">
<source type="image/webp"
srcset="{{ asset('assets/img/top/bnr_cox2_1090w.webp') }}">
<img src="{{ asset('assets/img/top/bnr_cox2_1090w.jpg') }}" alt="コラーゲン2個セット・送料無料8000円" width="1090" height="392" fetchpriority="high" style="width:100%;height:auto;">
</picture>
</a>
</div>
<div class="item">
<a href="{{ url('homepage') }}goods/perfect-lifty"
onClick="ga('send','event','click','top', 'slide_pl' ,1,{'nonInteraction':1});">
<picture>
<source media="(max-width: 767px)" type="image/webp"
srcset="{{ asset('assets/img/top/bnr_pl_800w.webp') }}">
<source media="(max-width: 767px)"
srcset="{{ asset('assets/img/top/bnr_pl_800w.jpg') }}">
<source type="image/webp"
srcset="{{ asset('assets/img/top/bnr_pl_1090w.webp') }}">
<img src="{{ asset('assets/img/top/bnr_pl_1090w.jpg') }}" alt="【3回撫でて5秒でピンハリ】パーフェクトリフティ" width="1090" height="392" fetchpriority="high" style="width:100%;height:auto;">
</picture>
</a>
</div>
<div class="item">
<a href="{{ url('homepage') }}goods/hot-bubble"
onClick="ga('send','event','click','top', 'slide_5252milkx3' ,1,{'nonInteraction':1});">
<picture>
<source media="(max-width: 767px)" type="image/webp"
srcset="{{ asset('assets/img/top/bnr_hb_800w.webp') }}">
<source media="(max-width: 767px)"
srcset="{{ asset('assets/img/top/bnr_hb_800w.jpg') }}">
<source type="image/webp"
srcset="{{ asset('assets/img/top/bnr_hb_1090w.webp') }}">
<img src="{{ asset('assets/img/top/bnr_hb_1090w.jpg') }}" alt="Hot Bubble PRO(ホットバブルプロ)" width="1090" height="392" fetchpriority="high" style="width:100%;height:auto;">
</picture>
</a>
</div>
<div class="item">
<a href="{{ url('homepage') }}health-trend/dashsyoku"
onClick="ga('send','event','click','top', 'slide_dash' ,1,{'nonInteraction':1});">
<picture>
<source media="(max-width: 767px)" type="image/webp"
srcset="{{ asset('assets/img/top/bnr_dash_800w.webp') }}">
<source media="(max-width: 767px)"
srcset="{{ asset('assets/img/top/bnr_dash_800w.jpg') }}">
<source type="image/webp"
srcset="{{ asset('assets/img/top/bnr_dash_1090w.webp') }}">
<img src="{{ asset('assets/img/top/bnr_dash_1090w.jpg') }}" alt="DASH食" width="1090" height="392" fetchpriority="high" style="width:100%;height:auto;">
</picture>
</a>
</div>
</div>
</div>
{% endblock %}