@charset 'utf-8';
/*------------------------------------------
Ex. popup window
------------------------------------------*/

#popupProduct{
    z-index: 999 ;
    position: absolute;
    top: 50px ;
    left: 0 ;
    padding: 15px 5px;
    display: none;
    line-height: 1;
}
#popupProduct a{
    color: #333;
}
#popupProduct p{
    margin-bottom: 0;
}
#popupProduct .popupOverray{
    display: none;
    z-index: 9999;
    top: 0 ;
    left: 0 ;
    width: 100%;
    height: 120%;
    position: absolute;
}
#popupProduct .popupWindow{
    border: 2px solid #ea5404;
    padding: 8px;
    width: 378px;
    background: white;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}
#popupProduct .popupWindow:after{
    content:"";
    clear: both;
    display: block;
}

/* Ex.1 popup left layer */
#popupProduct .popupLeft{
    width: 170px;
    height: 238px;
    float:left;
    font-size: 0;
    line-height: 0;
    position: relative;
}
#popupProduct .popupLeft img{
    max-width: 100%;
    max-height: 100%;
    left:0;
    right: 0;
    top:0;
    bottom:0;
    margin:auto;
    position: absolute;
}

/* Ex.2 popup right layer */
#popupProduct .popupRight{
    width: 180px;
    float:right;
    text-align: left;
}
#popupProduct .popupName{
    font-size: 13px;
    line-height: 18px;
    overflow: hidden;
    margin:0 0 10px;
    padding-top:5px;
    text-align: left;
    height: 77px;
    font-weight:bold;
}
#popupProduct .popupStock{
    text-align: right;
    padding-right: 5px;
    font-size: 13px;
    margin: 0;
}
#popupProduct .popupPriceTitle{
    text-align: left;
    color:red;
    font-size: 13px;
    margin:0 0 5px;
    font-weight: bold;
}
#popupProduct .popupPrice{
    clear: both;
    color: red;
    font-size:16px;
    margin: 0 0 15px;
    font-weight: bold;
}

/* Ex.2.1 popup form */

#popupProduct #popupCart label{
    vertical-align: middle;
}

#popupProduct #cartNum{
    border:1px solid #ea5404;
    width: 3em;
    border-radius: 5px;
    padding:2px 5px;
    font-size:14px;
    -webkit-appearance:none;
    vertical-align: middle;
    margin: 0 6px 0 0;
    height: 21px;
}
#popupProduct .cartPlus,
#popupProduct .cartMinus{
    width:27px;
    text-align:center;
    margin-right: 6px;
    border-radius: 5px;
    font-size: 17px;
    line-height: 17px;
    padding:4px 0;
    color: white;
    -webkit-appearance:none;
    outline: none;
    border:1px solid;
    vertical-align: middle;
    font-family: hareruya_icon;
}
#popupProduct .cartPlus{
    background: #E84728;
    border-color:#E84728;
}
#popupProduct .cartPlus:active{
    background:white;
    color:#E84728;
}
#popupProduct .cartMinus{
    background: #204C9F;
    border-color:#204C9F;
}
#popupProduct .cartMinus:active{
    background:white;
    color:#204C9F;
}
#popupProduct .btn_cart_{
    margin-top: 17px;
    cursor: pointer;
}
#popupProduct .popupArrow{
    position: absolute;
    left:150px;
    width: 0;
    height: 0;
    border:26px solid transparent;
    z-index: 1;
}
#popupProduct .popupArrow:after{
    content: "";
    position: absolute;
    left:-26px;
    width: 0;
    height: 0;
    border:26px solid transparent;
    z-index: 2;
}
#popupProduct .popupArrow.downArrow{
    bottom:-11px;
    border-top:26px solid #ea5404;
    border-bottom: 0;
}
#popupProduct .popupArrow.downArrow:after{
    top:-29px;
    border-top:26px solid white;
}
#popupProduct .popupArrow.upArrow{
    top:-11px;
    border-bottom:26px solid #ea5404;
    border-top:0;
}
#popupProduct .popupArrow.upArrow:after{
    bottom:-29px;
    border-bottom:26px solid white;
}

/* Ex.3 popup success */
#popupProduct .cartSuccess{
    font-weight:bold;
    font-size:20px;
    text-align: center;
    color: #ea5404;
    z-index: 10;
    position: absolute;
    width: 100%;
    height: 100%;
    left:0;
    top:0;
    background: white;
    display: none;
}
#popupProduct .cartSuccess p{
    position: absolute;
    left: 0;
    top: -20px;
    right: 0;
    bottom: 0;
    margin:auto;
    height: 20px
}

/* Ex.4 popup error */
#popupProduct .popupErrorLeft{
    font-family: 'Fira Sans', sans-serif;
    font-size: 24px;
    line-height: 24px;
    padding:88px 0;
    background: #FFFCDB;
    text-align:center;
}
#popupProduct .popupErrorRight{
    display: table-cell;
    height: 200px;
    vertical-align: middle;
    padding-left: 10px;
    line-height: 130%;
}

/* Ex.5 ecb build */
a.popup_product{
    display:inline-block;
}

.listRow a.ecb_popup_product{
        display:inline;
}

#jscart_replace_{
        display:inline;
}

#popupProduct .popupClose{
    display: none;
}

.cart_to_order_ {
    height: 25px;
    position: absolute;
    top: 45px;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

@media only screen and (max-width: 600px){
    #contents{
        transform: none;
        will-change: auto;
    }
    #popupProduct {
        position: fixed;
        width: calc(100% - 10px);
        margin: auto;
        right: 0;
        height: 100%;
    }

    #popupProduct .popupOverray{
        display: block;
    }

    #popupProduct .popupWindow {
        width: calc(100% - 15px);
        margin: auto;
        position: absolute;
        z-index: 10000;
    }

    #popupProduct .popupRight {
        width: calc(100% - 180px);
    }

    #popupProduct .btn_cart_{
        display: block;
    }

    .popupArrow{
        display: none;
    }

    #popupProduct .popupClose{
        display: block;
        position: absolute;
        //bottom: -90px;
        right: 20px;
        color: #ea5404;
        font-size: 36px;
        line-height: 36px;
        padding: 12px 0;
        box-sizing: border-box;
        text-align: center;
        width: 64px;
        height: 64px;
        background: white;
        border-radius: 50%;
        box-shadow: 10px 10px 10px -1px rgba(0,0,0,0.5);
        border: 2px solid #ea5404;
        font-family: hareruya_icon;
        top: 300px;
    }
}



@media only screen and (max-width: 414px){
    #popupProduct .popupWindow {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #popupProduct .popupLeft{
        display: block;
        text-align: center;
        width: 40%;
        height: 169px;
        margin-right: 8px;
    }

    #popupProduct .popupRight {
        width: calc(60% - 8px);
        font-size: 12px;
    }

    #popupProduct .popupName {
        font-size: 12px;
        line-height: 15px;
        height: 50px;
        margin-bottom: 6px;
    }

    #popupProduct .popupStock {
        margin: 0;
        font-size: 12px;
    }

    #popupProduct .popupPriceTitle {
        margin: 0 0 5px;
        font-size: 12px;
    }

    #popupProduct .popupPrice {
        margin: 0 0 5px;
        font-size: 14px;
    }

    #popupProduct #cartNum {
        margin: 0 4px 0 0;
        vertical-align: middle;
    }

    #popupProduct .cartPlus, #popupProduct .cartMinus {
        margin-right: 4px;
        width: 22px;
        font-size: 12px;
        line-height: 12px;
    }

    #popupProduct .btn_cart_ {
        width: 100%;
        max-width: 200px;
        margin: 10px auto 0;
    }

    #popupProduct .popupClose{
        top: 250px;
        right: 25px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        line-height: 14px;
    }

}

/*same name search*/

#popupProduct .popupName{
    margin-bottom: 0;
}

#popupProduct .popupPrice{
    margin-bottom: 10px;
}

.popup_same_card_search{
    margin-top: 5px;
}

#popupProduct .btn_cart_{
    margin-top: 5px;
}

.popup_same_card_search_input {
    -webkit-appearance: none;
    width: 180px;
    background: #3A9AD1;
    font-weight: bold;
    color: white;
    font-size: 15px;
    border: none;
    height: 26px;
    cursor: pointer;
}

@media only screen and (max-width: 414px){
    .popup_same_card_search_input {
        width: 100%;
    }
}

/*Popup*/
  #popupProduct .popupLeft {
      width: 120px;
      height: 168px;
      margin: 0 0 16px 0;
  }

  #popupProduct .popupRight {
      width: 235px;
  }

  #popupProduct .popupName {
      font-size: 12px;
      line-height: 16px;
      height: 50px;
      padding: 0;
  }

  #popupProduct .popupData {
      position: absolute;
      top: 59px;
  }

  #popupProduct .popupPrice {
      font-size: 18px;
      line-height: 24px;
      color: #222;
      margin: 0;
  }

  #popupProduct .popupStock {
      font-size: 18px;
      line-height: 24px;
      margin: 0 0 0 -6px;
  }

  #popupProduct .popupCartNumber {
      font-size: 0;
      border: 1px solid #dedede;
      display: inline-block;
      vertical-align: middle;
      width: 100px;
      text-align: center;
      position: absolute;
      right: 0;
      white-space: nowrap;
      margin-right: 6px;
  }

  #popupProduct #cartNum {
      display: inline-block;
      width: 33%;
      font-size: 16px;
      height: 24px;
      line-height: 24px;
      padding: 0;
      vertical-align: middle;
      border: 0;
      text-align: center;
      margin: 0;
      background-color: transparent;
  }

  #popupProduct .cartPlus, #popupProduct .cartMinus {
      background: transparent;
      padding: 0;
      height: 44px;
      vertical-align: middle;
      width: 33%;
      font-size: 18px;
      line-height: 34px;
      font-weight: normal;
      border: 0;
      color: #222!important;
      margin: 0;
  }

  #popupProduct .cartMinus {
      font-weight: bold;
      padding-left: 12%;
  }

  #popupProduct .cartPlus {
      font-size: 12px;
      padding-right: 12%;
  }

  #popupProduct .btn_cart_wrapper {
      position: absolute;
      top: 119.6px;
      width: 100px;
      border: 0;
      right: 6px;
  }

  #popupProduct .btn_cart_ {
      color: white;
      text-align: center;
      background: #e60012;
      padding: 0;
      line-height: 12.8px;
      text-indent: 0;
      font-size: 12px;
      height: 60px;
      width: 100px;
      border-radius: 10px;
      border: 0;
      font-weight: bold;
      margin: 0;
  }

  #popupProduct .btn_cart_ span{
      position: relative;
      left: -12px;
  }

  #popupProduct .btn_cart_::after {
      content: '';
      display: inline-block;
      background: url(https://www.hareruyamtg.com/ja/assets/img/cart_white.png);
      position: absolute;
      background-position: center;
      background-repeat: no-repeat;
      top: 0;
      bottom: 0;
      margin: auto;
      height: 36px;
      margin-left: 6px;
      right: auto;
      background-size: 20px;
      width: 20px;
  }

  .popupSales {
      position: absolute;
      left: 132px;
      top: 130px;
      font-size: 12px;
      line-height: 14.4px;
      text-align: center;
      color: #D15A27;
  }

  .popupSalesNumber {
      font-size: 20px;
      line-height: 26px;
  }

  .popup_same_card_search {
      right: calc(2% + 104px);
      margin-top: 0;
      top: 119.6px;
      position: absolute;
      display: block!important;
  }

  .popup_same_card_search_input {
      border-radius: 10px;
      height: 60px;
      width: 67px;
      font-size: 12px;
      line-height: 12.8px;
  }

  @media only screen and (max-width: 600px) {
    #popupProduct {
        padding: 15px 0;
        width: 97%;
    }

    #popupProduct .popupWindow {
        align-items: normal;
        width: 100%;
    }

    #popupProduct .popupLeft {
        width: 27.5vw;
        height: 38.5vw;
        margin: 0 0 3.5vw 0vw;
    }

    #popupProduct .popupRight {
        width: calc(100% - 29.5vw);
        margin-left: 1.5vw;
    }

    #popupProduct .popupName {
        font-size: 2.8vw;
        line-height: 3.8vw;
        height: 11.4vw;
    }

    #popupProduct .popupData {
        top: 13.5vw;
    }

    #popupProduct .popupPrice {
        font-size: 4.5vw;
        line-height: 6vw;
        color: #222;
    }

    #popupProduct .popupStock {
        font-size: 4.5vw;
        line-height: 6vw;
        margin: 0 0 0 -1.5vw;
    }

    #popupProduct .popupCartNumber {
        width: 26.25vw;
        margin-right: 2vw;
    }

    #popupProduct #cartNum {
        width: 33%;
        font-size: 4vw;
        height: 6vw;
        line-height: 6vw;
    }

    #popupProduct .cartPlus, #popupProduct .cartMinus {
        height: 11vw;
        width: 33%;
        font-size: 4.5vw;
        line-height: 8.5vw;
        color: #222!important;
    }

    #popupProduct .cartMinus {
        padding-left: 12%;
    }

    #popupProduct .cartPlus {
        padding-right: 12%;
    }

    #popupProduct .btn_cart_wrapper {
        top: 27.4vw;
        width: 26.25vw;
        right: 2vw;
    }

    #popupProduct .btn_cart_ {
        line-height: 3.2vw;
        font-size: 3vw;
        height: 15vw;
        width: 26.25vw;
    }

    #popupProduct .btn_cart_ span{
        left: -3vw;
    }

    #popupProduct .btn_cart_::after {
        height: 9vw;
        margin-left: 1.5vw;
        background-size: 5vw;
        width: 5vw;
    }

    .popupSales {
        left: 31vw;
        top: 31.5vw;
        font-size: 3vw;
        line-height: 2.6vw;
    }

    .popupSalesNumber {
        font-size: 5vw;
        line-height: 6.5vw;
    }

    .popup_same_card_search {
        right: calc(2% + 28.25vw);
        top: 27.4vw;
    }

    .popup_same_card_search_input {
        height: 15vw;
        width: 17.5vw;
        font-size: 3vw;
        line-height: 3.2vw;
    }
  }
