@charset "UTF-8";

/* 最近見た商品のレコメンド (Swiper版) */

section.recentlyViewed {
    margin: 50px 0;
    padding: 50px 0;
     /* 画像に合わせた黒背景 */
    color: #666; /* 全体的な文字色 */
}

section.recentlyViewed .recentlyViewed__inner {
    /* max-width: 1500px; */
    margin: 0 auto;
    /* padding: 0 20px; */
}

/* ヘッダー周り（タイトルと矢印ボタンを左右に配置） */
section.recentlyViewed .recentlyViewed__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

section.recentlyViewed h2.section__title {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}


/* Swiper ナビゲーションボタン（赤丸） */
section.recentlyViewed .recentlyViewed__nav {
    display: flex;
    margin: 0 0 50px;
}

section.recentlyViewed .custom-prev,
section.recentlyViewed .custom-next {
    position: static;
    width: 35px;
    height: 35px;
    /* background-color: #5a0000; */ /* 暗い赤 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0;
    /* border: 1px solid #7a0000; */
    top: unset;
    transform: unset;
}

section.recentlyViewed .custom-prev::after,
section.recentlyViewed .custom-next::after {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    width: 35px;
    height: 35px;
}
section.recentlyViewed .custom-prev::after{
    background: url(../img/slide-arrow-left-c.svg)no-repeat;
    background-size: contain;
}
section.recentlyViewed .custom-next::after {
    background: url(../img/slide-arrow-right-c.svg)no-repeat;
}
section.recentlyViewed .custom-prev{
    margin: 0 35px 0 0;
}

/* スライドアイテム */
section.recentlyViewed .swiper-slide a {
    text-decoration: none;
    color: inherit;
    display: block;
}

section.recentlyViewed p.item-img {
    margin: 0 0 15px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    display: block;
}

section.recentlyViewed p.item-img img {
    width: 100%;
    height: auto;
    display: block;
}

section.recentlyViewed p.item-name {
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.6;
    color: #444; /* 画像に合わせた暗めの文字色 */
}

section.recentlyViewed p.item-price {
    display: flex;
    align-items: baseline;
     font-size: 23px;
    color: #555;
}

section.recentlyViewed p.item-price span {   
    margin-left: 2px;
}
section.recentlyViewed p.item-price span span{
    font-size: 12px;
}



section.recentlyViewed .swiper-slide{
    width: 20%;
}
/* スマホ表示の調整 */
@media screen and (max-width: 768px) {
    section.recentlyViewed .recentlyViewed__header {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 15px;
    }
    section.recentlyViewed h2.section__title .en {
        font-size: 40px;
    }
    section.recentlyViewed .recentlyViewed__nav {
        align-self: flex-end;
        margin: 0 0 20px;
    }
}

@media screen and (max-width: 580px) {
    section.recentlyViewed .custom-prev,
    section.recentlyViewed .custom-next {
        position: static;
        width: 25px;
        height: 25px;
        /* background-color: #5a0000; */ /* 暗い赤 */
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        margin: 0;
        /* border: 1px solid #7a0000; */
        top: unset;
        transform: unset;
    }
    
    section.recentlyViewed .custom-prev::after,
    section.recentlyViewed .custom-next::after {
        font-size: 12px;
        color: #fff;
        font-weight: bold;
        width: 25px;
        height: 25px;
    }
    section.recentlyViewed .custom-prev{
    margin: 0 25px 0 0;
}

    section.recentlyViewed p.item-name {
    font-size: 13px;
    margin: 0 0 10px;
    line-height: 1.6;
    color: #444; /* 画像に合わせた暗めの文字色 */
}

section.recentlyViewed p.item-price {
    display: flex;
    align-items: baseline;
     font-size: 18px;
    color: #555;
}

section.recentlyViewed p.item-price span {   
    margin-left: 2px;
}
section.recentlyViewed p.item-price span span{
    font-size: 11px;
}
}