/*ヘッダーの位置調整*/
.l-header{  padding-top: 10px;}
.l-header .l-header-group02{  float: left;  margin-right: 20px;  padding-top: 0 !important;}

/*グローバルナビゲーションの位置調整*/
nav{  padding-top:10px !important;}
nav .l-nav-item .c-form-item-title{  font-size: 12px;  color: #505050;}
nav .c-form-selectWrap-ext select{  height: 32px;}
nav .l-nav-search-content{  margin-top: 20px;}
nav .l-nav-brand-total-amount{  margin-top: 27px;  margin-left: 10px;}

/*一覧ページのデザイン調整*/
.p-itemList-result .c-box-col4Wrap{  display: flex;  flex-wrap: wrap;  flex-direction: row;  padding: 0 !important;  gap: 10px;}
.p-itemList-result .c-box-col4Wrap .c-box{  border: solid 1px #ddd;  width: calc( (100% - 40px) / 5);  margin: 0;}
.p-itemList-result .c-box-col4Wrap .c-box .p-item-thumb .imgUrl{}
.p-itemList-result .c-box-col4Wrap .c-box .p-item-thumb img{  width: 100%;  height: 240px;  object-fit: cover;  max-height: 240px;  border-bottom: solid 1px #DDDDDD;}
.p-itemList-result .c-box-col4Wrap .c-box .img-area{  padding-top: 0 !important;}
.p-itemList-result .c-box-col4Wrap .c-box:nth-child(4n){  margin-right: 0 !important;}
.p-itemList-result .c-box-col4Wrap .c-box .p-item-name-ext a{  font-size: 14px;  padding: 15px 5px 5px 5px;  display: block;}
.p-itemList-result .c-box-col4Wrap .c-box .p-item-cd-ext{  font-size: 13px;  padding-right: 5px;  text-align: right;  margin-bottom: 5px; font-weight: bold;}
.p-itemList-result .c-box-col4Wrap .c-box .p-item-cd-ext:before{  content: "品番：";  font-size: 10px;  font-weight: normal;  color: #777;}
.p-itemList-result .c-box-col4Wrap .c-box .flex-container{  justify-content: space-between;  align-items: center;  flex-direction: row;  flex-wrap: nowrap;  border-top: solid 1px #ddd;}
.p-itemList-result .c-box-col4Wrap .c-box .flex-container > .item:first-child {  margin: 0;  width: 100%;}
.p-itemList-result .c-box-col4Wrap .c-box .flex-container > .item:first-child a{  width: 100%;  border: none;  background: #DDD;  color: #333;  padding: 10px 0;}
.p-itemList-result .c-box-col4Wrap .c-box .flex-container > .item:last-child {  margin: 0;}
.p-itemList-result .c-box-col4Wrap .c-box .flex-container > .item:last-child .p-item-favorite{  margin-top: 0 !important;}
.p-itemList-result .c-box-col4Wrap .c-box .flex-container > .item:last-child .p-item-favorite a{  background: none;  border: none;  color: #DDD;}

/*一覧ページのページネーション*/
.nav-pager{  padding-top: 0 !important;  display: flex;  flex-wrap: nowrap;  align-items: center;  align-content: center;  justify-content: flex-start;}
.nav-pager li{  width: 40px;  height: 38px;  text-align: center;  margin-right: 0;  border: solid  1px #ddd;  background: #EEE;  padding-top: 8px;}
.nav-pager li a{  display: block;  width: 100%;  height: calc(100% + 8px);  text-decoration: none;  background: #FFF;  margin-top: -8px;  padding-block: 8px;}
.nav-pager li a:hover{  background: #000;  color: #FFF;}
.nav-pager li.c-pager-prev{  width: 40px;  height: 38px;  border: none;}
.nav-pager li.c-pager-next{  width: 40px;  height: 38px;  border: none;}
.nav-pager li.c-pager-prev a,.nav-pager li.c-pager-next a{  background: #1e1e1e !important;  margin-top: -3px;}

/*未ログイン時の会員登録を促すテキストのリンク*/
#itemDetailSearch .p-fs-matrix-item-table td p a{ text-decoration: underline;}

/*詳細ページのデザイン調整*/
.p-fs-matrix-item-table th, .p-fs-matrix-item-table td{  padding: 5px;}
.p-fs-matrix-item-table th a img{  max-height: 100px;  max-width: 100px;  object-fit: contain;}
.p-fs-matrix-item-table td .p-item-quantity-input-value .p-item-count{  margin-bottom: 0;  height: 30px;  width: 112px;  padding: 0 30px;}
.p-fs-matrix-item-table td .p-item-quantity-input-value .p-item-count .p-item-count-input{  height: 30px;  font-size: 1.3rem;}
.p-fs-matrix-item-table td .p-item-quantity-input-value .p-item-count .p-item-count-button {  height: 30px;  width: 30px;}
.p-fs-matrix-item-table td .p-item-quantity-input-value .p-item-count .p-item-count-button:before{  top:15px;  left: 11px;}
.p-fs-matrix-item-table td .p-item-quantity-input-value .p-item-count .p-item-count-increment:after{  top:11px;  left: 15px;}
.p-itemDetail .c-mode-area{  margin: 0 auto;}
.p-itemDetail .p-fs-item-cart a{  padding: 15px 25px 13px 25px;  font-size: 14px;}
.p-itemDetail .p-itemDetail-thumb{  width: 25%;}
.p-itemDetail .p-itemDetail-thumb .p-item-thumb img{  max-height: 250px;}
.p-itemDetail .p-itemDetail-info{  width: 75%;}
.p-itemDetail .p-itemDetail-info .p-item-group02 .p-itemList-price-value .p-item-sum-quantity{  margin-bottom: 10px;}

/*トップページ 最近注文した商品、お気に入り商品、おすすめ販売ランキング*/
#js-top-recent-ordered-shohin,
#js-top-favorite-shohin,
#js-top-ranking{
  .c-box-col4Wrap{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 0;
    .c-box{
      margin: 0;
      width: calc( (100% - 30px) / 4);
      border: solid 1px #ddd;
      .p-item{
        .p-item-thumb{
          border: none;
          img{
            width: 100%;
            height: 240px;
            object-fit: cover;
            max-height: 240px;
            border-bottom: solid 1px #DDDDDD;
          }
        }
        .u-text-c{
          a{
            display: flex;
          }
        }
        .img-area{
          padding-top: 0 !important;
        }
        .p-item-name{
          a{
            font-size: 14px;
            padding: 15px 5px 5px 5px;
            display: block;
            font-weight: normal;
          }
        }
        .p-item-cd-ext{
          a{
            font-size: 13px;  padding-right: 5px;  text-align: right;  margin-bottom: 5px; font-weight: bold;
          }
        }
        div{
          a{
            width: 100%;  border: none;  background: #DDD;  color: #333;  padding: 10px 0;
          }
        }
        .p-ranking-icon{
          background-color: rgba(0,0,0,.3);
          border-radius: 0;
          height: 35px;
          left: unset;
          right: 0;
          top: 0;
          width: 35px;
          .p-ranking-icon-inner{
            height: 35px;
            width: 35px;
            font-size: 12px;
          }
        }
      }
    }
  }
}

/* 送料無料バーの表示 */
.free-shipping-bars{
  position: sticky;
  z-index: 100;
  background: #393834;
  text-align: center;
  padding: 5px 0;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #FFF;
  span{
    font-size: 11px;
    font-weight: normal;
  }
}
.l-fixed-header{
  position: sticky;
}
#js-contents-margin{
  margin-top: 0 !important;
}

/*カート画面の送料無料テキストを目立たせる*/
.p-tax-group-width{
  div{
    div{
      span{
        font-size: 18px;
        font-weight: bold;
        background: #FF0000;
        color: #FFF;
        padding: 5px 15px;
        display: block;
        text-align: center;

      }
    }
  }
}
/*商品詳細ページ マトリクス表の在庫数を目立たせる*/
.p-fs-matrix-item-table{
  .p-fs-item{
    .p-fs-item-item{
      .p-fs-item-stock-disp{
        span.js-stock{
          font-size: 18px;
        }
      }
    }

  }
}
/*未ログイン時の商品詳細ページ マトリクス表の価格*/
body{
  &:not(.status-Login){
    &.pages-Detail{
      table{
        &.p-fs-matrix-item-table{
          td{
            .memberPrice{
              font-size: 12px;
              span{
                font-size: 16px;
              }
            }
          }
        }
      }
    }
  }
  &.status-Login{
    &.pages-Detail{
      table{
        &.p-fs-matrix-item-table{
          td{
            .p-fs-item-item{
              div:not([class]){
                div:not([class]){
                  p{
                    font-size: 18px;
                    span{
                      font-size: 12px;
                    }
                  }

                }
              }
            }
          }
        }
      }
    }
  }
}

/*ログイン画面で会員登録を目立たせる*/
#login_wrap{
  #user_register{
    a{
      display: block;
      padding: 15px 10px;
      background: #DDD;
      border: solid 1px #CCC;
      text-align: center;
      margin: 10px 0;
      &:before{
        content: "\f044";
        font: normal normal normal 18px/1 FontAwesome;
        vertical-align: middle;
        display: inline-block;
        margin-right: 10px;
      }
      &:hover{
        text-decoration: none;
        opacity: 0.8;
      }
    }
  }
}

/* スタッフ厳選 本日の注目アイテム */
#dayliyitems{
  margin-bottom: 60px;
  h2{
    font-size: 16px;
    font-weight: bold;
    border-bottom: solid 4px #000;
    margin: 0;
    padding: 5px 0;
    span{
      display: inline-block;
      font-size: 11px;
    }
  }
  .contents{
    background: #F5F5F4;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    .image{
      a{
        img{
          object-fit: cover;
          width: 200px;
          height: 200px;
          max-width: 200px;
          max-height: 200px;
          border: solid 1px #E2E2E2;
        }
        &:hover{
          opacity: 0.8;
        }
      }
    }
    .box{
      width: 100%;
      .title{
        font-weight: bold;
        font-size: 16px;
        margin-bottom: 15px;
        span{
          font-size: 11px;
          background: #FFF791;
          padding: 5px 15px;
          margin-right: 15px;
          display: block;
          float: left;
        }
        a{
          color: #000;
          text-decoration: none;
          &:hover{
            text-decoration: underline;
          }
        }
      }
      .text{
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.7;
      }
      .link{
        text-align: right;
        a{
          font-size: 15px;
          font-weight: bold;
          color: #000;
          text-decoration: none;
          border-bottom: #000 solid 4px;
          max-width: 100%;
          padding: 8px 40px 7px 0;
          text-align: left;
          position: relative;
          display: inline-block;
          &::before,&::after{
            content: "";
            position: absolute;
            top: calc(50% - 1px);
            right: 0;
            width: 7px;
            height: 2px;
            border-radius: 9999px;
            background-color: #000000;
            transform-origin: calc(100% - 1px) 50%;
          }
          &::before{
            transform: rotate(45deg);
          }
          &::after{
            transform: rotate(-45deg);
          }
          &:hover{
            &::before,&::after{
              right: 3px;
            }
          }
        }
      }
    }
  }
  .rankingUrl{
    background: #000;
    text-align: center;
    padding: 5px 0;
    a{
      font-size: 14px;
      color: #FFF;
      text-decoration: none;
      max-width: 100%;
      padding: 5px 20px 4px 0;
      text-align: left;
      position: relative;
      display: inline-block;
      &::before,&::after{
        content: "";
        position: absolute;
        top: calc(50% - 1px);
        right: 0;
        width: 7px;
        height: 2px;
        border-radius: 9999px;
        background-color: #FFFFFF;
        transform-origin: calc(100% - 1px) 50%;
      }
      &::before{
        transform: rotate(45deg);
      }
      &::after{
        transform: rotate(-45deg);
      }
      &:hover{
        &::before,&::after{
          right: 3px;
        }
      }
    }
  }
}
@media screen and (max-width: 767px) {
  #dayliyitems{
    padding: 0 10px;
    margin-bottom: 40px;
    .contents{
      flex-direction: column;
      .image{
        a{
          img{
            width: 100%;
            max-width: max-content;
            display: block;
            margin: 0 auto;
          }
        }
      }
      .box{
        .title{
          span{
            display: block;
            width: max-content;
            margin-bottom: 5px;
            float: none;
          }
        }
      }
    }
  }
}

/* 在庫がゼロのときにグレーアウトする */
.stockZero{
  color: #BBB;
}

/* 最新のブログ記事 */
#newBlog{
  width: 100%;
  .news-item{
    border-bottom: dotted 1px #000;
    padding-bottom: 10px;
    margin-bottom: 10px;
    a{
      display: flex;
      text-decoration: none;
      color: #000;
      &:hover{
        h3{
          text-decoration: underline;
        }
      }
      img{
        max-width: 70px;
        display: block;
        margin-right: 10px;
        height: fit-content;
      }
      .text-box{
        h3{
          font-weight: bold;
          font-size: 13px;
          line-height: 1.3;
        }
        p{
          font-size: 11px;
          font-weight: bold;
          color: #6B6B6B;
          margin-bottom: 5px;
          line-height: 1;

        }
      }

    }
  }
}


/* 検索一覧の上部ページネーションのフローティング解除 */
@media print, screen and (min-width: 768px) {
  .p-itemList-sort-float.js-fixed,.p-itemList-pager-float.js-fixed { position: static !important; }
  #js-contents-margin > div > div.l-contents-col2-l > article > section > div.p-itemList-result.u-sp-pdg > div.p-itemLayout-grid.p-itemLayout-grid-scroll.js-adjust-margin-top{ margin-top: 0!important; }
}


@media only screen and (max-width: 767px) {

  /*ヘッダーの位置調整*/
  .l-header .l-header-group01{ padding: 10px 0;}

  .l-nav-cartBox .l-nav-cartBox-list:after{ top:15px; }
  .l-header .l-header-group02{ float: none; margin-right: 0; padding-top: 7px !important; }
  .l-header-logo {    width: 160px;  }
  .l-header-delivery{ font-size: 9px; }
  .l-nav-cartButton .l-nav-cartBox-title,
  .l-nav-spMenu-text{font-size: 9px;}
  .l-header-userNav{ position: absolute; top: 15px; right: 0; }
  .l-header-userNav ul li:nth-child(3){display: block; margin-top: 5px; padding-left: 0 !important; margin-left: 0 !important; }

  header.u-sp-item .l-header-group02 p.c-form-item-title{ font-size: 12px; }

  /*一覧ページのデザイン調整*/
  .p-itemList-result .c-box-col4Wrap{ width: 100%; gap: 10px 0;}
  .p-itemList-result .c-box-col4Wrap .c-box{ padding-left: 0; width: calc( (100% ) / 3) !important; }
  .p-itemList-result .c-box-col4Wrap .c-box .u-text-c a{display: flex; }
  .p-itemList-result .c-box-col4Wrap .c-box .p-item-thumb { border: none; }
  .p-itemList-result .c-box-col4Wrap .c-box .p-item-thumb img{ max-height: 170px; }
  .p-itemList-result .c-box-col4Wrap .c-box .p-item-name-ext a{ font-size: 13px; }
  .p-itemList-result .c-box-col4Wrap .c-box .p-item-cd-ext{ font-size: 10px; }
  .p-itemList-result .c-box-col4Wrap .c-box .p-item-cd-ext:before{ font-size: 7px; }

  /*未ログイン時の会員登録を促すテキストのリンク*/
  #itemDetailSearch .p-fs-matrix-item-table td p a{ }

  /*詳細ページのデザイン調整*/
  .p-itemDetail .p-itemDetail-thumb{ width: 100%; }
  .p-itemDetail .p-itemDetail-info{ width: 100%; }
  .p-itemDetail .p-itemDetail-info .p-item-group01 p{ margin-bottom: 10px; }

  /*トップページ 最近注文した商品、お気に入り商品、おすすめ販売ランキング*/
  #js-top-recent-ordered-shohin,
  #js-top-favorite-shohin,
  #js-top-ranking{
    padding-top: 0;
    .p-itemLayout-grid{
      padding-top: 0 !important;
      .c-box-col4Wrap{
        gap: 10px 0 ;
        .c-box{
          width: calc( 100% / 2) !important;
          padding: 0 !important;
          }
        }
      }
    }
  /*トップページサイドバナーのフルサイズ表示*/
  .l-contents-side{
    a{
      display: block;
      img{
        width: 100% !important;
        height: auto !important;
      }
    }
  }
}

@media only screen and (max-width: 470px) {

}
