{% block main %}
<style>
*,body,ul {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
/* ↓ スライドの外枠 */
.slide-wrapper_b {
width: 100%;
height: auto;
position: relative;
overflow: hidden; /* はみ出したスライドを隠す */
}
/* ↓ スライド(コンテンツ) */
.slide_b { /*スライド全体 */
width: 800%;
height: 100%;
display: flex;
transition: all 3.0s;
}
.slide_b div { /* スライド */
width: 12.5%;
display: flex;
text-align: center;
justify-content: center;
align-items: center;
}
.slide_b1 { /* スライドさせるために必要なクラス */
transform: translateX(0);
}
.slide_b2 { /* スライドさせるために必要なクラス */
transform: translateX(-12.50%);
}
.slide_b3 { /* スライドさせるために必要なクラス */
transform: translateX(-25.00%);
}
.slide_b4 { /* スライドさせるために必要なクラス */
transform: translateX(-37.50%);
}
.slide_b5 { /* スライドさせるために必要なクラス */
transform: translateX(-50.00%);
}
.slide_b6 { /* スライドさせるために必要なクラス */
transform: translateX(-62.50%);
}
.slide_b7 { /* スライドさせるために必要なクラス */
transform: translateX(-75.00%);
}
.slide_b8 { /* スライドさせるために必要なクラス */
transform: translateX(-87.50%);
}
.slide_b div:nth-of-type(1){ /* 背景色 */
/*background-image: url("https://nakatomishop.sakura.ne.jp/prod/MailMagazine/img/sm2025_top.png");*/
background-size: cover;
background-color: #e5fff7;
}
.slide_b div:nth-of-type(2){ /* 背景色 */
background-color: #efffff;
}
.slide_b div:nth-of-type(3){ /* 背景色 */
background-color: #fcfcfc;
}
.slide_b div:nth-of-type(4){ /* 背景色 */
background-color: #fcfcfc;
}
.slide_b div:nth-of-type(5){ /* 背景色 */
background-color: #fcfcfc;
}
.slide_b div:nth-of-type(6){ /* 背景色 */
background-color: #efffff;
}
.slide_b div:nth-of-type(7){ /* 背景色 */
background-color: #f7efff;
}
.slide_b div:nth-of-type(8){ /* 背景色 */
background-color: #ffffe5;
}
/* ↓ 左右のボタン */
.next_b {
position: absolute;
width: 15px;
height: 15px;
right: 10px;
bottom: 50%;
z-index: 10;
cursor: pointer;
border-top: solid 3px #000;
border-right: solid 3px #000;
-webkit-transform: rotate(45deg) translateY(50%);
transform: rotate(45deg) translateY(50%);
}
.prev_b {
position: absolute;
width: 15px;
height: 15px;
left: 25px;
bottom: 50%;
z-index: 10;
cursor: pointer;
border-top: solid 3px #000;
border-right: solid 3px #000;
-webkit-transform: rotate(-135deg) translateY(-50%);
transform: rotate(-135deg) translateY(-50%);
}
/* ↓ インジケーター */
.indicator_b {
width: 100%;
position: absolute;
bottom: 5px;
display: flex;
column-gap: 18px;
z-index: 10;
justify-content: center;
align-items: center;
}
.indicator_b li {
width: 10px;
height: 10px;
border-radius: 50%;
list-style: none;
background-color: #fff;
border: 2px #dcdcdc solid;
cursor: pointer;
}
.indicator_b li:first-of-type {
background-color: #000;
}
.fit-picture_sl {
cursor: pointer;
width: 10%;
padding-top: 0.5%;
padding-bottom: 1%;
padding-right: 1%;
margin-left: -0.4%;
}
.p_example_sm25_sl_b {
font-size: 21px;
font-weight: 700;
text-align: center;
padding-top: 4px;
}
</style>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>スライドショー</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- スライドの外枠 -->
<div class="slide-wrapper_b">
<!-- スライド(コンテンツ) -->
<div id="slide_b" class="slide_b">
<div>
<p class="p_example_sm25_sl_b">スポットクーラー R32 NEW<br>
<a href="https://www.nakatomishop.com/products/list?category_id=76">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/R32NEWMODEL25_TOP_POP_1.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1364">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/R32NEWMODEL25_TOP1.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1365">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/R32NEWMODEL25_TOP2.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1366">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/R32NEWMODEL25_TOP3.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1367">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/R32NEWMODEL25_TOP4.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1369">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/R32NEWMODEL25_TOP5.png" alt="Image 1"></a>
</p>
</div>
<div>
<p class="p_example_sm25_sl_b">スタンダードモデル<br>
<a href="https://www.nakatomishop.com/products/list?category_id=94">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/STANDARD25_TOP_POP1.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1336">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/STANDARD25_TOP1.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1337">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/STANDARD25_TOP2.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1338">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/STANDARD25_TOP3.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1339">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/STANDARD25_TOP4.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1340">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/STANDARD25_TOP5.png" alt="Image 1"></a>
</p>
</div>
<div>
<p class="p_example_sm25_sl_b">ビッグファン<br>
<a href="https://www.nakatomishop.com/products/list?category_id=28">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/BIG_FAN_SL_POP.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1376">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/BIG_FAN_SL1.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1361">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/BIG_FAN_SL2.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1362">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/BIG_FAN_SL3.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1363">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/BIG_FAN_SL4.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1360">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/BIG_FAN_SL5.png" alt="Image 1"></a>
</p>
</div>
<div>
<p class="p_example_sm25_sl_b">工場扇<br>
<a href="https://www.nakatomishop.com/products/list?category_id=17">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/FACTORY_FAN_TOP_POP.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1330">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/FACTORY_FAN_SL1" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1327">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/FACTORY_FAN_SL2.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1331">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/FACTORY_FAN_SL3.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1328">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/FACTORY_FAN_SL4.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1329">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/FACTORY_FAN_SL5.png" alt="Image 1"></a>
</p>
</div>
<div>
<p class="p_example_sm25_sl_b">循環送風機 / 大型送風機<br>
<a href="https://www.nakatomishop.com/products/detail/1351">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/CIR_LAR_TOP_POP.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1351">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/CIR_LAR_SL1.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1351">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/CIR_LAR_SL2.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1351">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/CIR_LAR_SL3.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1351">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/CIR_LAR_SL4.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1351">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/CIR_LAR_SL5.png" alt="Image 1"></a>
</p>
</div>
<div>
<p class="p_example_sm25_sl_b">ミスト発生機 / 冷風扇<br>
<a href="https://www.nakatomishop.com/products/detail/1377">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/MIST_COOL_SL1.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1378">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/MIST_COOL_SL2.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/1379">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/MIST_COOL_SL3.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/436">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/MIST_COOL_SL4.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/437">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/MIST_COOL_SL5.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/438">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/MIST_COOL_SL6.png" alt="Image 1"></a>
</p>
</div>
<div>
<p class="p_example_sm25_sl_b">除湿機<br>
<a href="https://www.nakatomishop.com/products/detail/1372">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/DEHUMIDIFIER_SL1.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/106">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/DEHUMIDIFIER_SL2.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/108">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/DEHUMIDIFIER_SL3.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/668">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/DEHUMIDIFIER_SL4.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/667">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/DEHUMIDIFIER_SL5.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/products/detail/109">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/DEHUMIDIFIER_SL6.png" alt="Image 1"></a>
</p>
</div>
<div>
<p class="p_example_sm25_sl_b">SHOP information<br>
<a href="https://www.nakatomi-sangyo.com/index.html">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/INFO_SL5.png" alt="Image 1"></a>
<a href="https://www.nakatomi-sangyo.com/catalog/index.html">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/25CATALOG_TOP.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/user_data/3nenhosyoukiyaku">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/INFO_SL3.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/entry">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/INFO_SL4.png" alt="Image 1"></a>
<a href="https://page.line.me/420khjyx?openQrModal=true">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/INFO_SL2.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/user_data/2025spop">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/OP_model.png" alt="Image 1"></a>
<a href="https://www.nakatomishop.com/guide">
<img class="fit-picture_sl" src="https://nakatomishop.sakura.ne.jp/prod/merchandiseimage/25slider/INFO_SL1.png" alt="Image 1"></a>
</p>
</div>
</div>
<!-- 左右のボタン -->
<span id="prev_b" class="prev_b"></span>
<span id="next_b" class="next_b"></span>
<!-- インジケーター -->
<ul class="indicator_b" id="indicator_b">
<li class="list_b"></li>
<li class="list_b"></li>
<li class="list_b"></li>
<li class="list_b"></li>
<li class="list_b"></li>
<li class="list_b"></li>
<li class="list_b"></li>
<li class="list_b"></li>
</ul>
</div>
</body>
</html>
<script>
const slide_b = document.getElementById('slide_b');
const prev_b = document.getElementById('prev_b');
const next_b = document.getElementById('next_b');
const indicator_b = document.getElementById('indicator_b');
const lists_b = document.querySelectorAll('.list_b');
const totalSlides_b = lists_b.length;
let count_b = 0;
let autoPlayInterval_b;
function updateListBackground_b() {
for (let i = 0; i < lists_b.length; i++) {
lists_b[i].style.backgroundColor = i === count_b % totalSlides_b ? '#000' : '#fff';
}
}
function nextClick_b() {
slide_b.classList.remove(`slide_b${count_b % totalSlides_b + 1}`);
count_b++;
slide_b.classList.add(`slide_b${count_b % totalSlides_b + 1}`);
updateListBackground_b();
}
function prevClick_b() {
slide_b.classList.remove(`slide_b${count_b % totalSlides_b + 1}`);
count_b--;
if (count_b < 0) count_b = totalSlides_b - 1;
slide_b.classList.add(`slide_b${count_b % totalSlides_b + 1}`);
updateListBackground_b();
}
function startAutoPlay() {
autoPlayInterval_b = setInterval(nextClick_b, 6000);
}
function resetAutoPlayInterval() {
clearInterval(autoPlayInterval_b);
startAutoPlay();
}
prev_b.addEventListener('click', () => {
prevClick_b();
resetAutoPlayInterval();
});
next_b.addEventListener('click', () => {
nextClick_b();
resetAutoPlayInterval();
});
indicator_b.addEventListener('click', (event_b) => {
if (event_b.target_b.classList.contains('list_b')) {
const index_b = Array.from(lists_b).indexOf(event_b.target_b);
slide_b.classList.remove(`slide_b${count_b % totalSlides_b + 1}`);
count_b = index_b;
slide_b.classList.add(`slide_b${count_b % totalSlides_b + 1}`);
updateListBackground_b();
resetAutoPlayInterval();
}
});
startAutoPlay();
</script>
{% endblock %}