/* Added custom scrollbar to search filter side */
#search-menu ::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}

#search-menu ::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

#search-menu li:hover, #search-menu li .label:hover, #search-menu li input:hover{
  cursor: pointer;
}

.prod-sale {
  height: 20px;
  min-height: 20px;
  background: url("//d1gt5dppxgb6oq.cloudfront.net/topimg/HLJHeader/onSaleItemGraphic.png?v=20140214.1120.1")
    no-repeat left bottom;
  background-size: contain;
  display: block;
}
.add-cart-success {
  display: none;
  margin-left: 10px;
  color: #f58345;
  font-weight: bold;
}

.page-main.search {
  max-width: 100%;
}

.search .column-2 {
  display: grid;
  grid-template-columns: 240px auto;
}

.pages {
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.pages.bottom-right {
  display: flex;
  justify-content: flex-end;
  border-bottom: solid 1px #f0f0f0;
}

.pages li {
  text-align: center;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  padding: 5px;
  border: 1px solid #f0f0f0;
}

.pages li:first-child {
  border-radius: 5px 0 0 5px;
}

.pages li:last-child {
  border-radius: 0 5px 5px 0;
}

.pages li a {
  color: #0066c8;
  display: block;
}

.pages li .selected-page {
  color: black !important;
  font-weight: bold;
}

.search-menu {
  width: 240px;
  margin-bottom: 0 !important;
}

.white-button {
  width: 100%;
}

.notify-button {
  width: 100%;
  background-color: #0f6bd0;
  color: white;
}

.result.search-header {
  display: flex;
  justify-content: space-between;
  border-bottom: solid 1px #f0f0f0;
}

.search-menu ul li {
  width: 100%;
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  flex-direction: column;
  padding: 16px 0;
}

.search-menu ul li a {
  display: flex;
  color: #4d4d4d;
}

.search-menu ul li .pointer {
  cursor: pointer !important;
}

.search-menu ul li span {
  display: block;
}

.search-menu ul li span:last-of-type {
  margin-right: 0;
  margin-left: auto;
  font-size: 1.8rem;
}

.search-menu ul li ul li {
  border: none;
  padding: 10px;
}

.search-menu ul li ul {
  height: initial;
  max-height: 400px;
  overflow-y: scroll;
}

.search-menu ul li ul li {
  flex-direction: row;
  padding: 10px 0;
  align-items: center;
}

.search-menu ul li ul li:first-of-type {
  margin-top: 10px;
}

.search-menu ul li ul li:last-of-type {
  padding-bottom: 0;
}

.search-menu ul li ul li input {
  width: initial;
  margin-right: 10px;
  height: initial;
}

.sorted-by {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.sort-list {
  display: flex;
  border: 1px solid #ccc;
  height: 30px;
  margin-left: 15px;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2043%22%3E%0A%20%20%3Cpath%20fill%3D%22%234d4d4d%22%20fill-rule%3D%22evenodd%22%20d%3D%22M0%203.8l16%2019.4%2016%2019.5%2032-39L61%200%2032%2035%203%200%22/%3E%0A%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  background-color: #fff;
  background-size: 10px 10px;
  padding: 0 30px 0 16px;
}

.sort-list:hover {
  cursor: pointer;
}

.sorted-by-and-group-by {
  display: flex;
  flex-wrap: wrap;
}

.group-by {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.group-list {
  display: flex;
  border: 1px solid #ccc;
  height: 30px;
  margin-left: 15px;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2043%22%3E%0A%20%20%3Cpath%20fill%3D%22%234d4d4d%22%20fill-rule%3D%22evenodd%22%20d%3D%22M0%203.8l16%2019.4%2016%2019.5%2032-39L61%200%2032%2035%203%200%22/%3E%0A%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  background-color: #fff;
  background-size: 10px 10px;
  padding: 0 30px 0 16px;
  cursor: pointer;
}

.inStock-by {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.inStock-by span {
  display: flex;
  width: 130px;
  align-items: center;
}

/* ---  アイテムウィジェット--- */

.widget h3 {
  text-align: center;
}

.search-widget-blocks {
  /* display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  justify-content: flex-start; */
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.search-widget-block {
  /* min-width: 140px; */
  /* width: calc(100% / 2.15); */
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  max-width: 300px;
  background: #fff;
  margin: 8px !important;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #f0f0f0;
  border-radius: 3px;
  transition: box-shadow 0.4s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.search-widget-block:hover {
  box-shadow: 0 0 10px rgb(0 0 0 / 20%);
}

.widget-block a,
.search- img,
.widget-block p,
.search- div {
  margin-bottom: 5px;
}

/* .widget-block:nth-of-type(6n) {
margin-right: 0;
} */

.item-img-wrapper {
  min-width: 120px;
  width: calc(100% / 1.1);
  max-height: 180px;
  overflow: hidden;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}

.item-img-wrapper img {
  transition: 0.4s;
}

.search-:hover img {
  transform: scale(1.1);
}

.release {
  color: #fff;
  height: 24px;
  border-radius: 2px;
  min-width: fit-content;
  background-color: #0066c8;
  margin: 6px 6px 6px 0;
  padding: 5px;
  display: inline-block;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.8em;
}

.release.green {
  background: #267536;
}

.release.orange {
  background: #f53d19;
}

.release.sale {
  background: rgb(233, 28, 36);
}

.release.blue {
  background: #1075bc;
}

.product-item-name {
  -webkit-hyphens: auto;
  display: block;
  hyphens: auto;
  margin: 8px 0;
  word-wrap: break-word;
  height: 35px;
  overflow: hidden;
  font-style: normal;
  font-weight: 700;
  line-height: 1.42857143;
  font-size: 1.3rem;
}

.product-item-name.adult a:before {
  content: "18+";
  font-weight: 700;
  color: rgb(233, 28, 36);
  margin-right: 5px;
}

.button {
  margin-top: 5px;
  text-align: center;
}

.price {
  margin-top: 15px;
  margin-bottom: 10px;
  position: relative;
  font-size: 1.5rem !important;
}

.price span:last-of-type {
  text-decoration: line-through;
}

.price .usuallyShips {
  font-size: 1.2rem !important;
}

.price .remaining {
  font-size: 1.2rem !important;
}

.product-item-name a {
  color: #4d4d4d;
}

.product-item-name a:hover {
  text-decoration: underline;
}

.price .remaining {
  font-size: 0.9rem;
  color: rgb(233, 28, 36);
  font-weight: 400;
}

.stock {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.stock:hover {
  cursor: default;
}

.filter-fn span {
  cursor: pointer;
}

#notification {
  display: none;
  position: fixed;
  right: -5px;
  top: 100px;
  background: white;
  border-radius: 5px;
  border: 2px solid green;
  color: green;
  font-weight: bold;
  padding: 10px;
}

#error-notification {
  display: none;
  position: fixed;
  right: -5px;
  top: 100px;
  background: white;
  border-radius: 5px;
  border: 2px solid red;
  color: red;
  font-weight: bold;
  padding: 10px;
}

#notification3 {
  display: none;
  position: fixed;
  right: -5px;
  top: 100px;
  background: white;
  border-radius: 5px;
  border: 2px solid green;
  color: green;
  font-weight: bold;
  padding: 10px;
}

#error-notification3 {
  display: none;
  position: fixed;
  right: -5px;
  top: 100px;
  background: white;
  border-radius: 5px;
  border: 2px solid red;
  color: red;
  font-weight: bold;
  padding: 10px;
}

.search-menu ul li.mbl-filter-hide {
  display: none;
}
.search-menu ul li.mbl-filter-hide-child-show {
  display: flex;
}
.search-menu ul li.mbl-filter-hide-child-hide {
  display: flex;
}

.filter-box{
  cursor: pointer;
}
.filter-default{
  cursor: default;
}
.stock-fn{
display: flex;
width: 130px;
align-items: center;
cursor: pointer;
}

/*MODAL*/
.modal-found {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #F9FCFF;
  margin: 15% auto;
  padding: 10px;
  border: 4px solid #1DA1F2;
  width: 80%;
}
.modal-header {
  display: flex;
  justify-content: end;
}.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
 .modal-body > ul > li:first-child {
   font-weight: 600;
   color: #0f6bd0;
 }
 .modal-body > ul > li {
   list-style: disc;
   font-size: 16px;
   margin: 0 0 10px 0;
 }
 .modal-span {
   font-weight: 600;
 }
.modal-body > p {
   font-size: 16px;
   margin: 0 0 10px 0;
 }

.modal-footer {
  display: flex;
    justify-content: center;
    gap: 20px;
}
.btn-close {
    font-size: 16px;
        border: 1px solid #c70328;
        border-radius: 5px;
        padding: 5px;
        background-color: #c70328;
        color: #fff;
    }.btn-close:hover {
        border: 1px solid #ef0f39;
        background-color: #ef0f39;
        color: #fff;
}
.btn-go-to-cart {
  font-size: 16px;
    border: 1px solid #1DA1F2;
    border-radius: 5px;
    padding: 5px;
    background-color: #1DA1F2;
    color: #fff;
}.btn-go-to-cart:hover {
    border: 1px solid #71bbea;
    background-color: #71bbea;
    color: #fff;
}

 .body-header {
   font-size: 24px;
   margin: 0 0 20px 0;
 }
.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button2 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
  .search-menu ul li.mbl-filter-hide {
    display: flex;
  }
  .search-menu ul li.mbl-filter-hide-child-show {
    display: flex;
  }
  .search-menu ul li.mbl-filter-hide-child-hide {
    display: none;
  }
  .search .column-2 {
    display: block;
  }
  .column {
    width: 100%;
  }
  .column.search-menu {
    margin-bottom: 0;
    margin-top: 5px;
    padding-top: 5px;
    padding-bottom: 4px;
  }
  .search-menu ul li span:last-of-type {
    position: absolute;
    left: 120px;
  }
  .search-widget-blocks {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    place-content: center;
  }
  #notification {
    top: 125px;
  }

  .pages {
    font-size: 1.3rem !important;
  }

  .pages li a {
    font-size: 1.2em;
  }
}

.rotate180 {
  transform: rotate(180deg);
}

.jp_name {
  display: none;
}

@media only screen and (max-width: 500px) {
  .result.search-header {
    flex-direction: column;
    align-items: center;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .result.search-header span {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media only screen and (max-width: 348px) {
  .result.search-header span {
    display: flex;
    justify-content: flex-end;
  }
  .result.search-header .bold {
    font-size: 1.2em;
    align-self: center;
  }
  .pages {
    font-size: 1.5rem !important;
    margin-bottom: 10px;
  }
  .pages li {
    padding: 2px;
  }
}

@media only screen and (max-width: 281px) {
  .pages li:first-child {
    display: none;
  }
  
  .pages li:last-child {
    display: none;
  }
  .pages li:nth-child(2){
    border-radius: 5px 0 0 5px;
  }
  .pages li:nth-last-child(2) {
    border-radius: 0 5px 5px 0;
  }
}