
.mypage-navi {
  background: #fff;
  border-top: 1px solid #707070;
  border-bottom: 1px solid #707070;
  margin-top: 60px;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mypage-navi-text {
  font-size: 14px;
  font-weight: bold;
}

.mypage-navi-list {
  display: flex;
}

.mypage-navi-item {
  margin-left: 10px;
  text-align: center;
}

.mypage-navi-item a {
  display: block;
  padding: 5px 10px;
  font-size: 12px;
}

.mypage-navi-item.active a {
  border: 1px solid #707070;
  border-radius: 5px;
}

/**マイページTOP
*******************/
.mypage {
  margin-top: 15px;

}

.mypage-detail {
  background: #fff;
  padding: 30px;
}

.mypage-header {
  background: #DEDEDD;
  border-top: 1px solid #707070;
  border-bottom: 1px solid #707070;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.mypage-header-date {
  font-size: 14px;
  font-weight: bold;
}

.mypage-header-number {
  margin-left: 20px;
  font-size: 12px;
}

.mypage-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mypage-detail-left{
  width: calc(100% - 280px);
}

.mypage-detail-wrap{
  display: flex;
  border-bottom: 1px solid #707070;
  padding: 16px 0 16px 10px;
}

.mypage-detail-img {
  max-width: 100px;
}

.mypage-detail-info {
  padding-left: 20px;
}

.mypage-detail-title {
  color: #16599A;
  font-size: 18px;
  line-height: 1.75;
}

.mypage-detail-price {
  margin-top: 5px;
  font-size: 23px;
  font-weight: bold;
}

.mypage-detail-price span {
  font-size: 14px;
  font-weight: normal;
}

.mypage-detail-quantity {
  margin-top: 10px;
}

.mypage-detail-right {
  margin-left: 40px;
  width: 240px;
}

.mypage-detail-order {
  font-size: 12px;
  text-align: center;
}

.mypage-detail-order span {
  font-size: 17px;
  font-weight: bold;
}

.mypage-detail-link {
  display: block;
  width: 240px;
  background: #F5F5F5;
  border: 1px solid #A3A3A3;
  border-radius: 5px;
  margin-top: 18px;
  padding: 5px 0;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .mypage-detail {
    padding: 20px;
  }
    
  .mypage-detail-left {
    width: calc(100% - 200px);
  }

  .mypage-detail-info {
    padding-left: 20px;
  }
  
  .mypage-detail-title {
    font-size: 16px;
  }
  
  .mypage-detail-price {
    font-size: 20px;
  }
  
  .mypage-detail-right {
    margin-left: 20px;
    width: 180px;
  }
  
  .mypage-detail-link {
    display: block;
    width: 180px;
  }
}

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

  .mypage-header {
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;  
  }

  .mypage-header-date {
    font-size: 12px;
  }

  .mypage-header-number {
    margin-top: 5px;
    margin-left: 0;
    font-size: 10px;
  }

  .mypage-detail {
    padding: 20px 10px;
    flex-wrap: wrap;
  }
    
  .mypage-detail-left {
    width: 100%;
    justify-content: center;
  }

  .mypage-detail-info {
    padding-left: 7px;
  }
  
  .mypage-detail-title {
    font-size: 14px;
  }
  
  .mypage-detail-price {
    font-size: 14px;
  }

  .mypage-detail-price span {
    font-size: 10px;
  }

  .mypage-detail-quantity {
    font-size: 12px;
  }
  
  .mypage-detail-right {
    margin-top: 15px;
    margin-left: 0;
    width: 100%;
  }

  .mypage-detail-order span {
    font-size: 16px;
  }
  
  .mypage-detail-link {
    width: 100%;
    max-width: 240px;
    margin: 10px auto 0;
  }
}

/**購入履歴詳細
*******************/
.history {
  background: #fff;
  padding: 30px;
  margin-top: 15px;
}

.history-top {
  margin-top: 35px;
}

.history-wrap {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 0;
}

.history-wrap dt {
  width: 20%;
}

.history-wrap dd {
  width: 80%;
}

.ec-orderMail__link {
  margin-top: 5px;
}

.ec-orderMail__link a {
  display: block;
  color: #16599A;
  font-size: 14px;
  text-decoration: underline;
}

.ec-orderMail__close {
  margin-top: 5px;
}

.ec-orderMail__close a {
  display: block;
  color: #16599A;
  font-size: 14px;
  text-decoration: underline;
}

.ec-orderMail__body {
  display: none;
}

.history-item {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #333;
}

.history-item:first-child {
  border-top: 1px solid #333;
}

.history-item-img {
  width: 100px;
}

.history-item-content {
  width: calc(100% - 100px);
  padding-left: 30px;
}

.history-item-title {
  line-height: 1.7;
}

.history-item-price {
  font-size: 20px;
  font-weight: bold;
}

.history-item-price span {
  font-size: 12px;
}

.history-item-amount {
  margin-top: 5px;
  line-height: 1.7;
}

.history-order-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.history-order-wrap dt {
  font-size: 18px;
  font-weight: normal;
}

.history-order-wrap dd {
  font-size: 18px;
}

.history-order-total {
  border-top: 1px solid #707070;
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.history-order-total-text{
  color: #B71C25;
  font-size: 23px;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .history {
    padding: 10px;
  }
  
  .history-top {
    margin-top: 20px;
  }

  .history-wrap dt {
    width: 100%;
  }
  
  .history-wrap dd {
    margin-top: 5px;
    width: 100%;
    line-height: 1.5;
  }

  .history-item-img {
    width: 80px;
  }
  
  .history-item-content {
    width: calc(100% - 80px);
    padding-left: 10px;
  }
  
  .history-item-title {
    font-size: 14px;
  }
  
  .history-item-price {
    font-size: 14px;
  }
  
  .history-item-amount {
    font-size: 14px;
  }

  .history-order-wrap dt {
    font-size: 14px;
  }
  
  .history-order-wrap dd {
    font-size: 14px;
  }
  
  .history-order-total {
    padding-top: 15px;
    margin-top: 15px;
  }
  
  .history-order-total-text{
    font-size: 14px;
  }
}

/**お気に入り
*******************/

.favorite-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #a3a3a3;
  padding-bottom: 10px;

}

.favorite-title {
  border-bottom: none
}

.favorite-count span {
  color: #B71C25;
  font-weight: bold;
}

.favorite-list {
  background: #fff;
  margin-top: 30px;
  padding: 0 20px;
}

.favorite-item {
  padding: 30px 0;
  border-bottom: 1px solid #707070;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.favorite-item:last-child {
  border-bottom: none;
}

.favorite-item-link {
  display: flex;
}

.favorite-item-img {
  width: 100px;
}

.favorite-item-title {
  padding-left: 20px;
  color: #16599A;
  font-size: 16px;
  line-height: 1.7;
}

.favorite-item-right {
  display: flex;
  align-items: center;
}

.favorite-item-price {
  width: 95px;
  font-size: 23px;
  font-weight: bold;
  text-align: center;
}

.favorite-item-price span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: normal;
}

.favorite-item-button {
  display: block;
  border: 1px solid #A3A3A3;
  border-radius: 5px;
  width: 82px;
  padding: 8px 0;
  margin-left: 35px;
  font-size: 14px;
  text-align: center;
}


/*退会手続き
********************/

.form-withdraw {
  margin-top: 60px;
}

.withdraw-title {
  margin-top: 40px;
  color: #B71C25;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.withdraw-description {
  margin: 30px auto 0;
  max-width: 600px;
  text-align: center;
  line-height: 1.5;
}

@media screen and (max-width: 600px) {
  /*マイページナビゲーション
  *********************/
  .mypage-navi {
    margin-top: 20px;
    padding: 7px 0;
    background: transparent;
    border: none;
    display: block;
  }
  
  .mypage-navi-text {
    display: none;
  }
  
  .mypage-navi-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .mypage-navi-item {
    margin-top: 8px;
  }

  .mypage-navi-item:first-child {
    margin-left: 0;
  }
  
  .mypage-navi-item a {
    display: block;
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .mypage-navi-item.active a {
    border: 1px solid #707070;
    border-radius: 5px;
  }

  .form-withdraw {
    margin-top: 30px;
  }
  
  .withdraw-title {
    font-size: 16px;
  }
  
  .withdraw-description {
    font-size: 14px;
  }
}