/* 商品画像スライダー：サムネイルを右側に配置 */
.ec-productRole .ec-sliderItemRole {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    align-items: start;
    gap: 15px;
}

/* メイン画像 */
.ec-productRole .item_visual {
    min-width: 0;
    width: 100%;
}

/* 右側のサムネイル */
.ec-productRole .item_nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90px;
}

.ec-productRole .slideThumb {
    width: 90px;
    cursor: pointer;
}

.ec-productRole .slideThumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* スマートフォンでは従来どおり画像の下に表示 */
@media (max-width: 767px) {
    .ec-productRole .ec-sliderItemRole {
        display: block;
    }

    .ec-productRole .item_nav {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 12px;
    }

    .ec-productRole .slideThumb {
        width: 65px;
    }
}
/* 商品コード・カテゴリとカートの間隔を調整 */
.ec-productRole .ec-productRole__code {
    margin-bottom: 8px !important;
}

.ec-productRole .ec-productRole__category {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* マトリクス全体の余白 */
.ec-productRole #pcm-cart {
    margin-top: 12px !important;
    margin-bottom: 20px !important;
}

/* 規格行の上下余白 */
.ec-productRole #pcm-cart .pcm-row {
    padding-top: 10px;
    padding-bottom: 10px;
}
/* 関連カテゴリの余分な点線を削除 */
.ec-productRole .ec-productRole__category {
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 8px;
    padding-bottom: 8px;
}
/* 商品詳細：関連カテゴリを横並びにする */
.ec-productRole .ec-productRole__category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

/* 関連カテゴリの見出し */
.ec-productRole .ec-productRole__category > div:first-child {
    margin: 0;
    white-space: nowrap;
}

/* カテゴリリンク */
.ec-productRole .ec-productRole__category a {
    display: inline-block;
    margin: 0;
    text-decoration: none;
}
/* 規格から選んで購入 の見出しを非表示 */
#pcm-cart h3 {
    display: none !important;
}
        .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;
        }
/* =========================================
   EC-CUBE 4.3.1 商品詳細ページ 商品名
   ========================================= */
.ec-productRole .ec-productRole__title {
    margin: 0 0 24px;
    padding: 0 0 18px 16px;
    border-left: 4px solid #52765d;
    border-bottom: 1px solid #e5e7eb;
}
.ec-productRole .ec-productRole__title h2 {
    font-size: 23px !important;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0.025em;
    color: #344054;
    margin: 0;
    overflow-wrap: anywhere;
}
/* タブレット */
@media (max-width: 991px) {
    .ec-productRole .ec-productRole__title h2 {
        font-size: 21px !important;
    }
}
/* スマートフォン */
@media (max-width: 767px) {
    .ec-productRole .ec-productRole__title {
        margin-bottom: 18px;
        padding: 0 0 14px 12px;
    }
    .ec-productRole .ec-productRole__title h2 {
        font-size: 19px !important;
        line-height: 1.55;
    }
}

/* 商品詳細：画像 → 商品名 → 説明 → 購入欄の縦並び */
.pcm-vertical-product { width: 100%; }
.pcm-vertical-product .pcm-product-images { max-width: 550px; margin: 0 auto 30px; }
.pcm-vertical-product .ec-sliderItemRole { width: 100%; }
.pcm-vertical-product .pcm-product-info { width: 100%; max-width: none; margin-bottom: 18px; }
.pcm-vertical-product .pcm-product-purchase { width: 100%; max-width: none; margin-top: 20px; }
.pcm-vertical-product #pcm-cart { width: 100%; }
.pcm-vertical-product .ec-productRole__title { margin-top: 12px; }
@media (max-width: 767px) {
  .pcm-vertical-product .pcm-product-images { max-width: 100%; margin-bottom: 22px; }
  .pcm-vertical-product .pcm-product-purchase { margin-top: 12px; }
  .pcm-vertical-product #pcm-cart .pcm-row { flex-wrap: wrap; }
}

/* =========================================
   那須自然農園 こだわりの米作り
   商品説明専用デザイン
   ========================================= */

/* 商品説明全体 */
.ec-productRole .kodawari-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* こだわりの米作りバナー */
.ec-productRole .kodawari-banner {
    display: block;
    width: 100%;
    margin: 0 auto 28px;
    overflow: hidden;
    border-radius: 9px;
    box-shadow: 0 4px 16px rgba(35,65,35,.10);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ec-productRole .kodawari-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (hover: hover) {
    .ec-productRole .kodawari-banner:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(35,65,35,.16);
    }
}

/* 本文 */
.ec-productRole .kodawari-description {
    width: 100%;
    color: #475569;
    font-size: 15px;
    line-height: 1.9;
}

/* メイン見出し */
.ec-productRole .rice-intro {
    margin: 0 0 22px;
}

.ec-productRole .rice-intro span {
    display: block;
    margin-bottom: 6px;
    color: #718774;
    font-size: 12px;
    letter-spacing: .08em;
}

.ec-productRole .rice-intro h3 {
    margin: 0;
    color: #315b3b;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.5;
}

/* 特別栽培米の説明：白いカード */
.ec-productRole .kodawari-description .rice-info {
    display: block;
    margin: 0 0 18px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #dce6d6;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(40,70,40,.04);
}

/* 農園のこだわり：淡い緑のカード */
.ec-productRole .kodawari-description .rice-farm {
    display: block;
    margin: 0 0 18px;
    padding: 24px 28px;
    background: #eaf2e6;
    border: 1px solid #d3e2cc;
    border-radius: 10px;
}

/* カード内の見出し */
.ec-productRole .kodawari-description .rice-info h4,
.ec-productRole .kodawari-description .rice-farm h4 {
    margin: 0 0 16px;
    color: #315b3b;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

/* カード内の本文 */
.ec-productRole .kodawari-description .rice-info p,
.ec-productRole .kodawari-description .rice-farm p {
    margin: 0 0 14px;
    color: #475569;
    font-size: 15px;
    line-height: 1.9;
}

/* 最終段落 */
.ec-productRole .kodawari-description .rice-info p:last-child,
.ec-productRole .kodawari-description .rice-farm p:last-child {
    margin-bottom: 0;
}

/* 重要な説明 */
.ec-productRole .kodawari-description strong {
    color: #315b3b;
    font-weight: 700;
}

/* 年間契約 */
.ec-productRole .kodawari-description .rice-contract {
    margin: 20px 0 0;
    padding: 14px 18px;
    background: #fff5e6;
    border-radius: 7px;
    color: #965f2f;
    font-size: 15px;
    font-weight: 700;
}

/* スマートフォン */
@media (max-width: 767px) {

    .ec-productRole .kodawari-banner {
        margin-bottom: 20px;
        border-radius: 6px;
    }

    .ec-productRole .kodawari-description {
        font-size: 14px;
    }

    .ec-productRole .rice-intro h3 {
        font-size: 19px;
    }

    .ec-productRole .kodawari-description .rice-info,
    .ec-productRole .kodawari-description .rice-farm {
        padding: 18px 16px;
        margin-bottom: 14px;
    }

    .ec-productRole .kodawari-description .rice-info h4,
    .ec-productRole .kodawari-description .rice-farm h4 {
        font-size: 17px;
    }

    .ec-productRole .kodawari-description .rice-info p,
    .ec-productRole .kodawari-description .rice-farm p {
        font-size: 14px;
        line-height: 1.85;
    }

    .ec-productRole .kodawari-description .rice-contract {
        padding: 12px 14px;
        font-size: 14px;
    }
}


/* =========================================
   こだわりの米作り：商品説明の最終調整
   この商品説明にのみ適用
   ========================================= */
.ec-productRole .ec-productRole__description:has(.kodawari-content) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 20px 0 28px;
}
.ec-productRole .kodawari-content {
    max-width: 900px;
    margin: 0 auto;
}
.ec-productRole .rice-intro {
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid #dce6d6;
}
.ec-productRole .kodawari-description .rice-info {
    background: #fff;
    border: 1px solid #dce6d6;
    padding: 24px 28px;
    margin-bottom: 16px;
}
.ec-productRole .kodawari-description .rice-farm {
    background: #edf3e8;
    border: 1px solid #d3e2cc;
    padding: 24px 28px;
    margin-bottom: 16px;
}
@media (max-width: 767px) {
    .ec-productRole .ec-productRole__description:has(.kodawari-content) {
        padding: 0;
        margin: 14px 0 22px;
    }
    .ec-productRole .kodawari-description .rice-info,
    .ec-productRole .kodawari-description .rice-farm {
        padding: 18px 16px;
    }
}
