.toptitle01 {
  color: #666666;
  text-align: center;
  padding: 0.7em;
  margin: 0.7em;
  border-top: solid 2px #cccccc;
  border-bottom: solid 2px #cccccc;
  background: -webkit-repeating-linear-gradient(-45deg, #F1F1F1, #F1F1F1 3px,#EEEEEE 3px, #EEEEEE 7px);
  background: repeating-linear-gradient(-45deg, #F1F1F1, #F1F1F1 3px,#EEEEEE 3px, #EEEEEE 7px);
}

.ec-productRole__description h3 {
  padding: 0.25em 0.5em;/*上下 左右の余白*/
  color: #494949;/*文字色*/
  background: transparent;/*背景透明に*/
  border-left: solid 5px #666666;/*左線*/
}

.ec-footerRole {
background-color: #656565;
}


.ec-off1Grid table, td, th {
border: 1px #000000 solid;
text-align: center; 
}


.ec-off1Grid h4 {
  position: relative;
  padding: 0.4em 0;
}

.ec-off1Grid h4:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 7px;
  background: -webkit-repeating-linear-gradient(-45deg, #6ad1c8, #6ad1c8 2px, #fff 2px, #fff 4px);
  background: repeating-linear-gradient(-45deg, #6ad1c8, #6ad1c8 2px, #fff 2px, #fff 4px);
}

/* 商品詳細ページ：商品タグ共通 */
.ec-productRole__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 10px 0;
    list-style: none;
}

.ec-productRole__tags .ec-productRole__tag {
    display: inline-block;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
}

/* 新商品：ブラック */
.ec-productRole__tags .tag_1 {
    background-color: #000000;
}

/* おすすめ商品：ブルー */
.ec-productRole__tags .tag_2 {
    background-color: #23ABDD;
}

/* 限定品：レッド */
.ec-productRole__tags .tag_3 {
    background-color: #FF4040;
}


/* =====================================
   カテゴリーメニュー：白背景・黒文字
===================================== */

/* メニュー全体 */
.ec-categoryNaviRole {
    background-color: #FFFFFF;
}

/* メインメニューを中央揃え */
.ec-categoryNaviRole .ec-itemNav__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* メインメニュー項目 */
.ec-categoryNaviRole .ec-itemNav__nav > li {
    position: relative;
}

/* メインメニュー文字 */
.ec-categoryNaviRole .ec-itemNav__nav > li > a {
    display: block;
    padding: 15px 22px;
    color: #222222 !important;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    background-color: #FFFFFF;
    transition: background-color 0.2s;
}

/* メインメニュー：マウスオーバー */
.ec-categoryNaviRole .ec-itemNav__nav > li > a:hover {
    background-color: #F0F4F7;
    color: #315B75 !important;
}

/* プルダウンメニュー */
.ec-categoryNaviRole .ec-itemNav__nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 5px 0;
    margin: 0;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    list-style: none;
    z-index: 9999;
}

/* プルダウン表示 */
.ec-categoryNaviRole .ec-itemNav__nav li:hover > ul {
    display: block;
}

/* プルダウン文字 */
.ec-categoryNaviRole .ec-itemNav__nav li ul li a {
    display: block;
    padding: 12px 18px;
    color: #222222;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
    background-color: #FFFFFF;
}

/* プルダウン：マウスオーバー */
.ec-categoryNaviRole .ec-itemNav__nav li ul li a:hover {
    color: #315B75;
    background-color: #F0F4F7;
}

/* 最近チェックした商品 */
#recently-viewed-products {
    margin: 40px auto;
    padding: 20px 15px;
    max-width: 1200px;
}


.recently-viewed-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.recently-viewed-item {
    display: block;
    color: #333;
    text-decoration: none;
    min-width: 0;
}

.recently-viewed-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

.recently-viewed-item p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.recently-viewed-item .recently-viewed-price {
    font-weight: bold;
    color: #333;
}

.recently-viewed-item:hover {
    opacity: 0.75;
}

@media screen and (max-width: 768px) {
    #recently-viewed-products {
        margin: 25px auto;
        padding: 15px 10px;
    }

    .recently-viewed-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    #recently-viewed-products h3 {
        font-size: 18px;
    }
}
/* 最近チェックした商品 */
#recently-viewed-products {
    margin: 40px auto;
    padding: 20px 15px;
    max-width: 1200px;
}

#recently-viewed-products h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #4682B4;
}

.recently-viewed-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.recently-viewed-item {
    display: block;
    color: #333;
    text-decoration: none;
    min-width: 0;
}

.recently-viewed-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

.recently-viewed-item p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.recently-viewed-item .recently-viewed-price {
    font-weight: bold;
    color: #333;
}

.recently-viewed-item:hover {
    opacity: 0.75;
}

@media screen and (max-width: 768px) {
    #recently-viewed-products {
        margin: 25px auto;
        padding: 15px 10px;
    }

    .recently-viewed-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    #recently-viewed-products h3 {
        font-size: 18px;
    }
}
/* 最近チェックした商品：PC 5列 */
#recently-viewed-products .recently-viewed-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* 商品画像 */
#recently-viewed-products .recently-viewed-item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
}

/* タブレット・スマートフォン */
@media screen and (max-width: 768px) {
    #recently-viewed-products .recently-viewed-list {
        grid-template-columns: repeat(2, 1fr);
    }

    #recently-viewed-products .recently-viewed-item img {
        height: 150px;
    }
}
/* 商品一覧：PC 5列表示 */
.ec-shelfGrid .ec-shelfGrid__item {
    width: 20%;
}

/* スマートフォン：2列表示 */
@media screen and (max-width: 768px) {
    .ec-shelfGrid .ec-shelfGrid__item {
        width: 50%;
    }
}
/* 商品詳細ページ パンくずリスト */
.ec-topicpath {
    width: 100%;
    margin: 15px auto 25px;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 13px;
}

.ec-topicpath__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ec-topicpath__item {
    display: inline-block;
    color: #666666;
}

.ec-topicpath__item:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #999999;
}

.ec-topicpath__item a {
    color: #4682B4;
    text-decoration: none;
}

.ec-topicpath__item a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .ec-topicpath {
        margin: 10px auto 15px;
        font-size: 12px;
    }
}
/* パンくずリスト全体 */
.ec-topicpath {
    color: #333333;
    font-size: 14px;
}

/* パンくずの各項目 */
.ec-topicpath__item {
    color: #333333;
}

/* リンクの通常時 */
.ec-topicpath__item a {
    color: #23ABDD;
    text-decoration: none;
}

/* マウスオーバー時 */
.ec-topicpath__item a:hover {
    color: #23ABDD;
    text-decoration: underline;
}

/* 項目間の区切り文字 */
.ec-topicpath__item:not(:last-child)::after {
    content: "＞";
    margin: 0 10px;
    color: #999999;
}
/* パンくずリンクの下線を強制表示 */
.ec-topicpath a:hover {
    color: #23ABDD;
    text-decoration: underline !important;
}
/* サイト全体のリンク */
a {
    color: #23ABDD;
    text-decoration: none;
}

/* サイト全体のリンクにマウスを乗せたとき */
a:hover {
    color: #23ABDD;
    text-decoration: underline;
}
/* ポイント還元表示 */
.ec-productRole__point {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.ec-productRole__point-label {
    display: inline-block;
    background: #f6f4f3;
    padding: 5px 10px;
    margin-right: 8px;
    border-radius: 3px;
}

.ec-productRole__point-number {
    color: #d65a5a;
    font-weight: bold;
    font-size: 16px;
}
/* カート・お気に入り全体 */
.purchase-action-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    grid-template-rows: auto 45px;
    column-gap: 0;
    row-gap: 10px;
    width: 100%;
    align-items: stretch;
}

/* カートフォーム */
.purchase-action-buttons > form:first-child {
    display: contents;
}

/* 数量・規格選択欄 */
.purchase-action-buttons .ec-productRole__actions {
    grid-column: 1 / 3;
    grid-row: 1;
}

/* ボタン共通 */
.purchase-action-buttons .ec-productRole__btn {
    height: 45px;
    margin: 0;
    padding: 0;
}

/* カートボタン */
.purchase-action-buttons > form:first-child > .ec-productRole__btn {
    grid-column: 1;
    grid-row: 2;
}

.purchase-action-buttons .add-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 45px;
    min-height: 45px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    line-height: 1;
    background-color: #23ABDD;
    border-color: #23ABDD;
    color: #FFFFFF;
}

/* お気に入りボタン */
.purchase-action-buttons .favorite-form {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
}

.purchase-action-buttons .favorite-form .ec-blockBtn--cancel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 45px;
    min-height: 45px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    line-height: 1;
    background-color: #FF7683;
    border-color: #FF7683;
    color: #FFFFFF;
    white-space: nowrap;
}

/* マウスオーバー */
.purchase-action-buttons .add-cart:hover {
    background-color: #23ABDD;
    opacity: 0.85;
}

.purchase-action-buttons .favorite-form .ec-blockBtn--cancel:hover {
    background-color: #FF7683;
    opacity: 0.85;
}
/* 品切れ中ボタンの高さ・背景色調整 */
.ec-blockBtn--soldout {
    min-height: 45px !important;
    height: 45px !important;
    padding: 8px 10px !important;
    line-height: 24px !important;
    box-sizing: border-box;
    background-color: #FFFFFF !important;
    border-color: #D3D3D3 !important;
    color: #333333 !important;
    opacity: 1 !important;
}

/* =====================================
   商品画像の右側拡大表示
   ===================================== */

#sg-product-zoom {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 550px;
    height: 550px;
    background-color: #fff;
    background-repeat: no-repeat;
    border: 1px solid #ddd;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* 拡大対象の商品画像 */
.ec-sliderItemRole .item_visual .slide-item img {
    cursor: zoom-in;
}

/* スマートフォンでは無効 */
@media screen and (max-width: 768px) {
    #sg-product-zoom {
        display: none !important;
    }

    .ec-sliderItemRole .item_visual .slide-item img {
        cursor: default;
    }
}

/* 商品一覧画面：カートに入れるボタン */
.ec-shelfGrid .ec-blockBtn--action {
    background-color: #23ABDD !important;
    border-color: #23ABDD !important;
    color: #FFFFFF !important;
}

/* マウスオーバー時 */
.ec-shelfGrid .ec-blockBtn--action:hover {
    background-color: #168FBF !important;
    border-color: #168FBF !important;
    color: #FFFFFF !important;
}

/* 品切れ中はグレーを維持 */
.ec-shelfGrid .ec-blockBtn--action:disabled {
    background-color: #FFFFFF !important;
    border-color: #D3D3D3 !important;
    color: #333333 !important;
    opacity: 1 !important;
}