@charset "UTF-8";

/* 全体レイアウト - 768px幅制限
--------------------------------------*/
/* プロジェクト要件：全ページで最大幅768pxに統一*/
body {
    max-width: 768px !important;
    margin: 0 auto !important;
    color: #6F6969 !important;
}

/* アイテム一覧のスタイル
--------------------------------------*/
.collection{
  position: relative;
}
.item-card-img{
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
}
.collection .nft-card .nft-card-front {
  transform: rotateY(0deg);
}
.collection .item-card-img,
.nft-card-front .item-card-img{
  padding-bottom: 80%;
}
.item-card-img img {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
  max-height: 100%;
  max-width: 150%;
  z-index: 1;
}
.number1 .item-card-content,
.number2 .item-card-content,
.number3 .item-card-content{
  padding:25px 50px;
}
.number4 .item-card-content,
.number5 .item-card-content{
  padding:10px 25px;
}
.item-tag-wrap{
  display: flex;
  justify-content: space-between;
}
.collection .item-card-content{
  padding:15px 30px;
}
.item-title{
  line-height: 1.6;
  font-weight: normal;
  font-size: var(--fs-normal);
}
@media only screen and (max-width: 1260px){
  .collection .item-card-content,
  .item-card-content{
    padding:10px 20px;
    background-color: white;
    margin-top: -10px;
    position: relative;
    z-index: 1;
  }
  .nft-card-list .item-card-content{
    display: none;
  }
  .nft-card-list .item-card-img {
    margin-top: 20%;
    padding-bottom: 100%;
}
  .item-card-content .badge{
    line-height: 1.1;
    padding: 2px 5px;
  }
  .item-card-footer .btn-md{
    --xs:5px;
    --md:15px;
  }
}

.emission_rate_wrap{
  position: absolute;
  right:-10px;
  top:-10px;
  z-index: 5;
  display: flex;
  background-color: var(--main-color);
  box-shadow:0px 3px 10px 0px rgb(100,100,100,0.5);
  color:#fff;
  border:var(--bd-width) solid #fff;
  font-weight: bold;
  border-radius: 50%;
  width:60px;
  height:60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  line-height: 1.3;
}
.emission_rate_wrap .unit{
  display: block;
  text-align: center;
  width: 100%;
}

/* 抽選一覧のスタイル
--------------------------------------*/
.card-price{
  padding-top: var(--sm);
}
.card-price .price-row{
  width:100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price .price-label{
  width:50%;
  display: inline-block;
  padding: 3px 10px;
  color:#666;
  background-color:#eee;
  border-radius: 5px;
  margin-right: var(--xs);
  text-align: center;
  font-weight: bold;
  font-size: var(--fs-xs);
}
.card-price .price{
  width:44%;
  display: inline-block;
  text-align: right;
  font-weight: bold;
}

/*抽選ページのスタイル
---------------------------------------*/
#lottery-wrapper{
  position: relative;
  width:80%;
  height: 0;
  padding-top:50%;
  margin-left:auto;
  margin-right:auto;
  overflow: hidden;
}
#lottery-footer{
 display: none;
}
#volume{
  display: none;
  opacity: 1;
  transition: opacity 1s ease-out;
  position: absolute;
  width:40px;
  height:40px;
  z-index: 20;
  top:65px;
  right:20px;
  cursor: pointer;
  color:var(--main-color);
}
#volume i{
  pointer-events: none;
}
#skip{
  display: none;
  opacity: 0;
  transition: opacity 1s ease-out;
  position: absolute;
  z-index: 20;
  width:180px;
  height:40px; 
  top:15px;
  right:15px;
}
#start{
  transition: opacity 1s ease-out;
  position: absolute;
  z-index: 20;
  width:60%;
  height:60px; 
  top:50%;
  left:50%;
  margin-top:-30px;
  margin-left:-30%;
}
#lottery-img{
  opacity: 1;
  transition: opacity 1s ease-out;
  position: absolute;
  width:100%;
  height:100%;
  z-index: 10;
  top:0;
  left:0;
}
#lottery-img img{
  width:100%;
  height:100%;
  object-fit: contain;
}
#lottery-video{
  display: none;
  opacity: 1;
  transition: opacity 1s ease-out;
  position: absolute;
  width:100%;
  height:100%;
  z-index: 10;
  top:0;
  left:0;
}
#lottery-contents{   
  display: none;
  opacity: 0;
  transition: opacity 1s ease-out;
  position: absolute;
  width:100%;
  height:100%;
  z-index: 1;
  top:0;
  left:0;
  overflow: auto;
}

@media only screen and (max-width: 567px){
  #lottery-wrapper{
    width:100%;
    padding-top:75%;
  }
  #start{
    width:80%;
    margin-left:-40%;
  }
  #lottery-video{
    width:125%;
    height:100%;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  #lottery-contents{   
    display: none;
    opacity: 0;
    transition: opacity 1s ease-out;
    position: absolute;
    width:100%;
    height:100%;
    z-index: 1;
    top:0;
    left:0;
  }
}
/* 当選アイテム一覧のスタイル
---------------------------------------*/
ul.nft-card-list{
  display:flex;
  justify-content: center;
  flex-wrap:wrap;/*折り返しあり*/        
}
ul.nft-card-list li{
  /*width:35%;*/
  padding:6px;
}
ul.nft-card-list.number1 li,
ul.nft-card-list.number2 li{
  width:35%;
}
ul.nft-card-list.number3 li{
  width:30%;
}
ul.nft-card-list.number4 li{
  width:25%;
}
ul.nft-card-list.number5 li{
  width:20%;
}
.nft-card {
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  transform-origin: center;
}
.nft-card::before {
  content: "";
  display: block;
  padding-top: 142.5%;
}
.nft-card img {
  /*width: 100%;*/
}
.nft-card .nft-card-front,.nft-card .nft-card-back{
  transition: all 0.5s;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}
.nft-card .nft-card-front img.base,
.nft-card .nft-card-front img.frame{
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
}
.nft-card .nft-card-front img.base{
  z-index: 1;
}
.base{
  position: relative;
}
.base::after{
  content: "";
  width:100%;
  height: 100%;
  position: absolute;
  top:0;
  left:0;
  background-size: cover;
  z-index: 1;
}
.nft-card-list .nft-card .nft-card-back {
  transform: rotateY(0);
}
.nft-card-list .nft-card .nft-card-front {
  transform: rotateY(-180deg);
}
.nft-card-list .nft-card.rotate .nft-card-back{
animation: roll_up_card_back 2s linear;
animation-fill-mode: forwards;
}
.nft-card-list .nft-card.rotate .nft-card-front{
animation: roll_up_card_front 2s linear;
animation-fill-mode: forwards;
}
@keyframes roll_up_card_back {
0% {
  transform: rotateY(0deg) scaleX(1);
}
50% {
  transform: rotateY(85deg) scaleX(1.4);
  box-shadow: 0 0 0 2px #ccc, 2px 2px 4px 0 rgba(0,0,0,.1), -5px 0 0 2px #333;
}
51% {
  transform: rotateY(95deg) scaleX(1.4);
}
100% {
  transform: rotateY(180deg) scaleX(1);
}
}
@keyframes roll_up_card_front {
0% {
  transform: rotateY(-180deg) scaleX(1);
}
50% {
  transform: rotateY(-265deg) scaleX(1.4);
}
51% {
  transform: rotateY(-275deg) scaleX(1.4);
  box-shadow: 0 0 0 2px #ccc, 2px 2px 4px 0 rgba(0,0,0,.1), 5px 0 0 2px #333;    
}
100% {
  transform: rotateY(-360deg) scaleX(1);
}
}
@media screen and (max-width: 567px) {
  ul.nft-card-list li{
    width:50%;
    padding:6px;
  }
  ul.nft-card-list.number1 li{
    width:50%;
  }
  ul.nft-card-list.number2 li{
    width:35%;
  }
}
.badge.rest-stock{
  color: #000;
  background-color: #ffffff;
  border: 1px solid #ccc;
}