/* カスタマイズ用CSS */
@media only screen and (min-width: 768px) {
    .slider-sp .slick-slide img {
        display: none;
    }
    .ec-newItemRole .ec-newItemRole__list {
        flex-wrap: wrap;
    }
}

/* スライダー
========================================================================== */
.slider-pc {
    visibility: hidden;
    height: 0;
}
.slider-sp {
    margin-top: 80px;
}

/* タブレット（768px〜1000px） */
@media only screen and (max-width: 1000px) and (min-width: 768px) {
    .slider-pc {
        visibility: visible;
        height: 400px;
    }
    .slider-sp {
        visibility: hidden;
        height: 0;
    }
}

/* パソコン（1000px以上） */
@media only screen and (min-width: 1000px) {
    .slider-pc {
        visibility: visible;
        height: 450px;
    }
    .slider-sp {
        visibility: hidden;
        height: 0;
    }
}

/* 大きいパソコン（1200px以上） */
@media only screen and (min-width: 1200px) {
    .slider-pc {
        visibility: visible;
        height: 460px;
    }
    .item.slick-slide img {
        max-height: 440px !important;   /* ブロックに直接書かれた max-height:500px を上書き */
    }
    .slider-sp {
        visibility: hidden;
        height: 0;
    }
}

/* ページ全体の枠
========================================================================== */
.ec-role {
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    max-width: 1150px;
}
.ec-newItemRole__list .right-items {
    width: 50%;
}

/* サイドバー・絞り込み
========================================================================== */
.sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: column;
}
.ec-productRole-custom__tags {
    list-style: none;
    margin-top: 15px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.price-range-slider {
    margin: 20px 0;
}
#slider-range {
    width: 100%;
    height: 8px;
    margin-top: 10px;
    background: #ddd;
    border-radius: 5px;
}
#price-range {
    width: 100%;
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}
.ui-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    background: #f6931f;
    border-radius: 50%;
    cursor: pointer;
}

/* レイアウトの余白（固定ヘッダーの分）
========================================================================== */
.ec-layoutRole__contents {
    padding-top: 120px;
}
.ec-layoutRole__mainBottom {
    margin-top: -180px;
}

/* お客様の声
========================================================================== */
.voice-section {
    padding: 40px 20px;
    background-color: #f4f4f4;
}
.voice-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.voice-scroll-box {
    width: 70%;
    max-width: 1200px;
    max-height: 400px;
    overflow-y: auto;
    margin: 0 auto;
    padding: 50px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.voice-card {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.voice-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.voice-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.voice-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}
.voice-info {
    flex-grow: 1;
}
.voice-product {
    font-weight: bold;
    font-size: 16px;
}
.voice-date {
    font-size: 14px;
    color: #777;
}
.voice-comment {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}
@media screen and (max-width: 768px) {
    .voice-scroll-box {
        max-height: 300px;
        width: 100%;
        padding: 30px;
    }
}

/* 3つの特徴（pctopic）
========================================================================== */
.ec-role3 {
    max-width: 1150px;
    margin: 0 auto;
    padding: 48px 20px;
}
.ec-role3 .ec-eyecatchRole__items {
    display: flex;
    justify-content: center;
    gap: 32px;
}
.ec-role3 .ec-eyecatchRole__item {
    flex: 1 1 0;
    max-width: 340px;
    text-align: center;
}
.ec-role3 .ec-eyecatchRole__item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 140px;           /* アイコンの高さ */
    object-fit: contain;
    margin: 0 auto 20px;
}
.ec-role3 .ec-eyecatchRole__item-text h3 {
    font-size: 20px;         /* 見出しの大きさ */
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px;
}
.ec-role3 .ec-eyecatchRole__item-text p {
    font-size: 13px;         /* 説明文の大きさ */
    line-height: 1.8;
    color: #666;
    margin: 0;
}
@media (max-width: 767px) {
    .ec-role3 .ec-eyecatchRole__items {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }
    .ec-role3 .ec-eyecatchRole__item img {
        height: 110px;
    }
    .ec-role3 .ec-eyecatchRole__item-text h3 {
        font-size: 18px;
    }
    .ec-role3 .ec-eyecatchRole__item-text p br {
        display: none;
    }
}
/* 大口注文の案内（ec-role2）
========================================================================== */
.ec-role2 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 20px;
}
.ec-role2 .ec-eyecatchRole {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
}
.ec-role2 .ec-eyecatchRole__image1 {
    flex: 0 1 500px;          /* 写真の横幅（最大500px） */
    margin: 0;
}
.ec-role2 .ec-eyecatchRole__image1 img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;      /* 角を少し丸く */
    box-shadow: 0 12px 30px rgba(15, 55, 91, .12);
}
.ec-role2 .ec-eyecatchRole__intro {
    flex: 0 1 420px;
    padding: 0;
    text-align: center;
}
.ec-role2 .ec-eyecatchRole__introTitle {
    margin: 0 0 28px;
    font-size: 20px;          /* 文字の大きさ */
    font-weight: 700;
    line-height: 1.9;
    letter-spacing: .04em;
    color: #102b4c;
}
/* お問い合わせボタン（紺色の丸いボタン） */
.ec-role2 .ec-blockBtn--top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 220px;
    height: auto;
    padding: 14px 32px;
    border: 0;
    border-radius: 999px;
    background: #061a30;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}
.ec-role2 .ec-blockBtn--top:hover {
    background: #0877ee;
    color: #fff;
    transform: translateY(-2px);
}

/* スマホでは縦に並べる */
@media (max-width: 767px) {
    .ec-role2 {
        padding: 40px 16px;
    }
    .ec-role2 .ec-eyecatchRole {
        flex-direction: column;
        gap: 28px;
    }
    .ec-role2 .ec-eyecatchRole__image1,
    .ec-role2 .ec-eyecatchRole__intro {
        flex: none;
        width: 100%;
    }
    .ec-role2 .ec-eyecatchRole__introTitle {
        font-size: 17px;
    }
}
/* カテゴリ一覧（hd-cat）
========================================================================== */
.hd-cat {
    background: #f2f7fc;
    padding: 56px 20px;
}
.hd-cat__title {
    margin: 0 0 32px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #102b4c;
}
.hd-cat__title::after {        /* 見出しの下の青い短い線 */
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin: 12px auto 0;
    background: #0877ee;
}
.hd-cat__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.hd-cat__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 20px 22px;
    background: #fff;
    border: 1px solid #e0eaf4;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(15, 55, 91, .05);
    text-decoration: none;
    transition: .25s;
}
.hd-cat__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 55, 91, .12);
    text-decoration: none;
}
.hd-cat__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;              /* 写真の高さ */
}
.hd-cat__img img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.hd-cat__name {
    font-size: 17px;
    font-weight: 700;
    color: #102b4c;
}
.hd-cat__name::after {
    content: " →";
    color: #0877ee;
}
.hd-cat__card:hover .hd-cat__name {
    color: #0877ee;
}

/* スマホ */
@media (max-width: 767px) {
    .hd-cat {
        padding: 40px 16px;
    }
    .hd-cat__list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hd-cat__img {
        height: 140px;
    }
}
/* 商品の並び（hd-items）
========================================================================== */
.hd-items {
    max-width: 1150px;
    margin: 0 auto;
    padding: 56px 16px;
}
.hd-items__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}
.hd-items__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #102b4c;
}
.hd-items__title::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-top: 12px;
    background: #0877ee;
}
.hd-items__more {
    font-size: 13px;
    font-weight: 700;
    color: #0877ee;
    text-decoration: none;
}
.hd-items__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hd-items__card {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 18px;
    background: #fff;
    border: 1px solid #e0eaf4;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(15, 55, 91, .05);
    text-decoration: none;
    transition: .25s;
}
.hd-items__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 55, 91, .12);
    text-decoration: none;
}
.hd-items__img {
    position: relative;
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
}
.hd-items__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hd-items__img .hd-items__sold {   /* SOLDの印（左上） */
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: auto;
}
.hd-items__name {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    color: #102b4c;
    display: -webkit-box;          /* 2行を超えたら「…」 */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hd-items__price {
    margin: auto 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #0877ee;
}
.hd-items__card.is-sold .hd-items__img > img:first-child,
.hd-items__card.is-sold .hd-items__price {
    opacity: .5;                    /* 売り切れは少し薄く */
}

/* タブレット・スマホ */
@media (max-width: 1000px) {
    .hd-items__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .hd-items {
        padding: 40px 12px;
    }
    .hd-items__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hd-items__card {
        padding: 12px;
    }
    .hd-items__name {
        font-size: 13px;
    }
}
/* カテゴリごとの商品（hd-groups）
========================================================================== */
.hd-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* 2つのカテゴリを横に並べる */
    gap: 40px;
}
.hd-group .hd-items__title {
    font-size: 20px;
}
.hd-items__grid.hd-items__grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.hd-group .hd-items__card {
    padding: 12px 12px 14px;
}
.hd-group .hd-items__name {
    font-size: 13px;
}
.hd-group .hd-items__price {
    font-size: 15px;
}

/* 「お探しします」のカード */
.hd-items__card.hd-items__request {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f2f7fc;
    border: 1px dashed #9cc4ea;
    box-shadow: none;
}
.hd-items__request-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.hd-items__request-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: #102b4c;
}
.hd-items__request-text {
    margin: 0 0 14px;
    font-size: 12px;
    color: #5f7187;
}
.hd-items__request-btn {
    padding: 8px 18px;
    border-radius: 999px;
    background: #061a30;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.hd-items__card.hd-items__request:hover .hd-items__request-btn {
    background: #0877ee;
}

@media (max-width: 1000px) {
    .hd-groups {
        grid-template-columns: 1fr;
    }
}
/* 検索のカテゴリ選択を隠す(常に全商品から検索) */
.ec-headerSearch__category { display: none !important; }
.ec-headerSearch__keyword { border-radius: 50px !important; }

/* スマホで横にはみ出さないようにする */
.ec-headerRole-inner,
.ec-headerRole__inner {
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}