<template>
  <div :class="$style.totalSales" @click="() => $router.push('/mypage/sale')">
    <div :class="$style.in">
      <div :class="$style.text">
        累計売上
      </div>
      <div :class="$style.sale">
        <span :class="$style.unit">¥</span><span :class="$style.number">
          <slot name="totalSales"></slot>
        </span>
      </div>
    </div>
  </div>
</template>
<script>
export default {

}
</script>

<style module lang="scss">

.totalSales {
  cursor: pointer;
  /* padding: 3rem; */
  position: relative;
  transition: 0.3s;
}

.totalSales:before,
.totalSales:after {
  @include mq-sp {
    width: 2.4rem;
    height: 2.4rem;
    content: "";
    background-position: center 0.65em;
    background-repeat: no-repeat;
    background-size: 1rem auto;
  }
  width: 4rem;
  height: 4rem;
  content: "";
  background-position: center 1em;
  background-repeat: no-repeat;
  background-size: 1.3rem auto;
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  border: 1px #d9d4fa solid;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity .3s ease;
}
.totalSales:hover {
  opacity: 0.6;
}
.totalSales:before {
  background-image: url("~assets/images/shared/arrow-next-purple.svg");
}
.totalSales:after {
  background-image: url("~assets/images/shared/arrow-next-short-white.svg");
  background-color: #2f2f33;
  border: 1px #2f2f33 solid;
  opacity:0;
}
.totalSales:hover:before {
  opacity:0;
}
.totalSales:hover:after {
  display: block;
}
.totalSales:hover:after,
.totalSales:hover:after {

  opacity:1;
}

.in {
  @include mq-sp {
    margin: 0 4rem 0 0;
  }
  background-color: #f1effd;
  padding: 1rem 1.5rem 1rem 1.5rem;
  border-radius: 0.4rem;
  margin: 0 6rem 0 0;
}

.sale{
  font-family: din-2014, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: #725feb;
  text-align: right;
  letter-spacing: -0.023em;
  margin-top: -1.5rem;
}
.unit {

  font-size:2.4rem;
}

.number {
  font-size:4.4rem;
  margin-left: 1rem;
}

.text {
  font-size:1.4rem;
}
  @include mq-pc {
  }
  @include mq-sp {

  }

</style>
