@charset "utf-8";
ul{
    display: flex;
    list-style: none;
  }
  li{
    padding-left: 0em;
    padding-right: 0em;
    border: 1px solid #000;
    box-sizing: border-box;
    position: relative;
  }
  .inner{
    max-width: 600px;
    margin: 0 auto;
  }
  .pbutton{
    padding: 0.2em 1em;
  }
  #cardlist .name{
    width: calc(39%);
    margin: 0;
    padding: 0.5em;
    padding-right: 0;
    /* height: 4em; */
    line-height: 1em;
  }
  #cardlist .kotei.name{
    background-color: #f1f1f1;
    font-weight: bold;
    text-shadow: 1px 1px white;
    /* font-size: 1.01em; */
  }
  #cardlist .cost{
    width: calc(10%);
    margin: 0;
    padding: 0.3em;
    text-align: center;
  }
  #cardlist .kotei.cost{
    background-color: #f1f1f1;
    font-weight: bold;
    text-shadow: 1px 1px white;
    /* font-size: 1.01em; */
  }

#cardlist{
    flex-wrap: wrap;
    padding: 0;
}

#cardlist .no{
  border: none;
}

.text{
  display: none;
  background-color: #eceeff;
}
.type0 .text{
  background-color: #eceeff;
}
.type1 .text{
  background-color: #ecffed;
}
.type2 .text{
  background-color: #ffecec;
}
.type3 .text{
  background-color: #ecffed;
}
.type4 .text{
  background-color: #ffecec;
}
.type5 .text{
  background-color: #ecffed;
}
.type6 .text{
  background-color: #ecffed;
}
.type7 .text{
  background-color: #fffdec;
}

.type0:before{
    content: "";
    width: 1em;
    height: 1em;
    display: inline-block;
    background-color: rgb(72, 0, 255);
    position: relative;
    top: 0.1em;
    margin-right: 0.3em;
}

.type1:before{
    content: "";
    width: 1em;
    height: 1em;
    display: inline-block;
    background-color: rgb(56 255 0);
    position: relative;
    top: 0.1em;
    margin-right: 0.3em;
}
.type2:before{
    content: "";
    width: 1em;
    height: 1em;
    display: inline-block;
    background-color: red;
    position: relative;
    top: 0.1em;
    margin-right: 0.3em;
}
.type3:before{
    content: "";
    width: 0em;
    height: 0em;
    display: inline-block;
  border-top: 0px solid transparent;
  border-right: 1em solid red;
  border-left: 0em solid transparent;
  border-bottom: 1em solid rgb(56 255 0);
  margin-right: 0.3em;
    position: relative;
}
.type4:before{
  content: "";
  width: 0em;
  height: 0em;
  display: inline-block;
border-top: 0px solid transparent;
border-right: 1em solid red;
border-left: 0em solid transparent;
border-bottom: 1em solid rgb(72, 0, 255);
margin-right: 0.3em;
  position: relative;
}

.type5:before{
  content: "";
  width: 0em;
  height: 0em;
  display: inline-block;
border-top: 0px solid transparent;
border-right: 1em solid rgb(242, 255, 0);
border-left: 0em solid transparent;
border-bottom: 1em solid rgb(56 255 0);
margin-right: 0.3em;
  position: relative;
}

.type6:before{
  content: "";
  width: 0em;
  height: 0em;
  display: inline-block;
border-top: 0px solid transparent;
border-right: 1em solid rgb(72, 0, 255);
border-left: 0em solid transparent;
border-bottom: 1em solid rgb(56 255 0);
margin-right: 0.3em;
  position: relative;
}
.type7:before{
  content: "";
  width: 1em;
  height: 1em;
  display: inline-block;
  background-color: rgb(242, 255, 0);
  position: relative;
  top: 0.1em;
  margin-right: 0.3em;
}

.text h1{
line-height: 1em;
    margin: 0;
    padding-top: 0.2em;
}
.text h2{
    line-height: 1em;
    margin: 0.7em 0;
}
#cardlist .name:hover .text{
    display: block;
    width: calc(100% - 1.2em);
    position: fixed;
    left: 0;
    z-index: 1;
    border: 1px solid #aaa;
    padding: 0.5em;
    line-height: 1em;
    border-radius: 1em;
    bottom: 100px;
}

#news{
  padding-top: 100px;
}

/** チェックONなら表示 */
.checkdiv input:checked ~ .text{
  display: block;
  background-color: #ecffed;
}

.checkdiv.seirei input:checked ~ .text{
  display: block;
  background-color: #eceeff;
}

#news input:checked ~ .text{
  display: block;
  background-color: #ecffed;
}

#fottwip #twitter_button{
  display: none;
}

#fottwip input:checked ~ #twitter_button{
  display: inline; 
}

.small{
  font-size: 0.7em;
}

@media (max-width: 900px){
    #cardlist .cost {
    width: calc(20%);
    margin: 0;
    padding: 0.3em;
    text-align: center;
    }
    #cardlist .name {
    width: calc(80%);
    margin: 0;
    padding: 0.5em;
    padding-right: 0;
    /* height: 4em; */
    line-height: 1em;
    }
    #cardlist .no2{
      display: none;
    }
    body{
      padding-bottom: 6em;
    }
  }

  iframe#twitter-widget-0 {
    border: 0;
    vertical-align: middle;
    margin-left: 1em;
}
p a{
  cursor: pointer!important;
}

@media(prefers-color-scheme: dark){
  body {
    background-color: #000;
    color: #fff;
  }
  #cardlist li{
    border: 1px solid #fff;
  }
  #cardlist li .text{
    color: #000;
  }
  .checkdiv .text{
    color: #000;
  }
  #news .text{
    color: #000;
  }
  #cardlist .kotei.name{
    background-color: #4a4141;
    font-weight: normal;
    text-shadow: 1px 1px #333;
  }
  #cardlist .kotei.cost{
    background-color: #4a4141;
    font-weight: normal;
    text-shadow: 1px 1px #333;
  }
}