.ns-slider-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
    font-family: sans-serif;
}

.ns-slider-header {
    /* display:flex; や align-items, height は使わない */
    position: relative;      /* 矢印の基準にする */
    text-align: center;      /* 中身のテキストを中央寄せ */
    margin-bottom: 10px;
    padding: 8px 0;          /* 好みで調整 */
    padding-top: 0;
}

.ns-slider-title {
    /* いったんリセット */
    position: static;        /* absolute をやめる */
    left: auto;
    transform: none;
    white-space: normal;

    /* 見た目用 */
    display: inline-block;   /* テキスト幅だけの箱にする */
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    color: #3d5969;
}

.ns-slider-subtitle {
    font-size: 12px;       /* 小さめ文字 */
    margin-top: 4px;       /* 少しだけ余白 */
    color: #555;           /* 薄めの色（お好みで） */
    letter-spacing: 1px;   /* ほんの少し広げるときれい */
}

.ns-slider-arrows {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

.ns-arrow {
    width: 32px;
    height: 32px;
    border: none;
    padding: 0;
    background: #000;      /* 有効時：黒背景 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ns-arrow img {
    width: 32px;           /* 好みで調整 */
    height: 32px;
}

/* これ以上進めないときの見た目 */
.ns-arrow:disabled {
    background: #aaa;      /* 無効時：グレー */
    cursor: default;
    opacity: 0.3;          /* 少し薄くする（お好み） */
}


.ns-slider-container {
    overflow: hidden;
    position: relative;
}

.ns-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* ドラッグ中は追従させたいのでアニメーションを切る */
.ns-slider-track.is-dragging {
    transition: none;
}

.ns-slide {
    min-width: 25%;   /* PCで4つ並べるイメージ */
    padding: 10px;
    box-sizing: border-box;
}

.ns-box {
    width: 100%;
    padding-bottom: 100%; /* 正方形ベース */
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.ns-box--img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ns-item-title, .ns-item-regular {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

.ns-item-price {
    font-size: 14px;
    color: #c00;
}

/* スマホ（例：768px未満）は2列にする */
@media (max-width: 767px) {
    .ns-slider-wrapper{
    padding-left: 10px;
    padding-right: 10px;
    }
    .ns-slide {
    min-width: 50%;   /* 2つ並び */
    }
    .ns-slider-arrows {
    right: 12px;
    }

    .ns-slider-header {
    text-align: left;
    }

    .ns-slider-title {
    font-size: 24px;
    text-align: left;
    padding-left: 12px;
    }
    .exfe_wlapper .ns-slider-header .ns-slider-title{
    padding-left: 2px;
    }

    .front_page .ns-slider-header{
    padding-bottom: 0!important;
    margin-bottom: 0!important;
    }
    .front_page .ns-slider-wrapper{
    margin-bottom: 30px!important;
    }
    .ns-slider-subtitle {
    margin-top: 0;       /* 少しだけ余白 */
    }
}