html{
	background-color: #CCC;
	text-align: center;
	margin-top: 10px;
  scroll-behavior: smooth;
}
body{
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items:center;
  overflow-x: hidden;
} 
 /* === ラジオボタンは非表示 ================== */
#langChenge input[type="radio"]{
  display    : none;
}
 
 /* === 各ラジオボタンのラベルをボタンに変更 == */
#langChenge label{
  display    : inline-block;
  border     : 1px solid #ccc;
  box-shadow : 2px 2px #999;
  padding    : 6px;
  color      : black;
  height     : 20px;
}
 
 /* === 選択されていない言語は非表示にする ==== */
#langEn:not(:checked) ~ * *:lang(en) {
  display    : none;
}
#langJa:not(:checked) ~ * *:lang(ja) {
  display    : none;
}
 
 /* === 選択されている言語のラベル色を変更 ==== */
#langEn:checked ~ label[for="langEn"] {
  background : white;
}
#langJa:checked ~ label[for="langJa"] {
  background : white;
}



/*タブボタン部分*/
.goblin-one-regular {
  font-family: "Goblin One", serif;
  font-weight: 400;
  font-style: normal;
}
.tab a{
	text-decoration: none;
	color: white;
}
.tab li{
  padding: 5px 0.3em 0px 0.3em;
  cursor: pointer;
  font-family: "Goblin One", serif;
  font-size: 25px;
  background:black;
	border: 2px solid #cccccc;
	border-color: whitesmoke whitesmoke black black;
  list-style-type: none;
  border-radius: 5px 5px 0 0;
}
/*タブを選択したとき*/
.tab .clicked a{
	color: black;
}
.tab .clicked {
  background:white;
	border: 2px solid #cccccc;
	border-color: black black whitesmoke whitesmoke;
	color: black;
}
.tab{
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
}


/*ラジオボタンのデザイン*/
/* === ラジオボタンは非表示 ================== */
input[type="radio"]{
  display    : none;
}
 
 /* === 各ラジオボタンのラベルをボタンに変更 == */
label{
  font-weight: bold;
  font-style: italic;
  display    : inline-block;
  border     : 1px solid black;
  padding    : 4px;
  color      : white;
  background-color: red;
  height     : 10px;
  line-height: 6px;
  cursor: pointer;
}
label:hover {
  color      : yellow;
  background-color: blue;
}

.main{
  width: 70%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: auto;
}
.recent{
  width: 300px;
  background-color: white;
  border: solid 1px black;
}
.recent img{
  width: 300px;
  height: 380px;
  object-fit: cover;
  border: solid 1px;  
}
.recentimgs{
  display: flex;
  flex-direction: row;
}

.pages{
  width: 60%;
  color: black;
  background-color: limegreen;
  border: solid 1px black;
}
.pages table{
  color: black;
  border: solid 1px black;
}
.categorytable table{
  justify-content: center;
  margin: auto;
}

img{
  vertical-align: bottom;
}
.homebtn img{
  width: 100px;
}
.homebtn a{
	text-decoration:none;
  
}

.sumb{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.header{
  font-family: arial;
  margin: 20px 5px 0px 5px;
  transition: transform 0.3s;
}
.header img{
  width: 280px;
  height: 380px;
  object-fit: cover;
  border: solid 1px;
}

.header a{
  text-decoration: none;
  color: black;
  margin: 0;
}
.header:hover {
  transform: translateY(-10px);
}
.chapter{
  width: 280px;
  display: flex;
  flex-direction: row;
  border: 1px solid;
  vertical-align: middle;
  background: white;
}
.comicportal{
  background: limegreen;
}
.chaptertitle{
  vertical-align: middle;
  text-align: left;
  line-height: 15px;
  padding: 4px 4px 2px 3px;
}
.year span{
  background: white;
  border-radius: 50%;
  padding: 3px;
}
.year{
  font-family: arial black;
  background: black;
  padding: 5px;
}
.content{
  transition: transform 0.3s;
  margin: 5px;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  border: 1px solid;
}
.content:hover {
  transform: translateY(-10px);
}
.grid{
   margin: auto;
   margin-top: 10px;
   margin-bottom: 100px;
   padding: 0px;
   width: 80%;
 　display: flex;
 　flex-wrap: wrap;
 　flex-direction: column;
   column-count: 3;
   column-gap: 0.5em;
}
.grid img{
  width: 100%;
  
}
.text {
  background-color: white;
  color: black;
  text-align: left;
  line-height: 18px;
}
.text p{
  padding: 12px;
}
.text {
  background-color: white;
  color: black;
  text-align: left;
  line-height: 18px;
}
.text p{
  padding: 12px;
}

li{
  list-style: none;
}


#page-top {
    position: fixed;
    right: 5px;
    bottom: 5px;  
}



@media (max-width: 1200px) {
.grid {
   margin-top: 10px;
   width: 95%;
   grid-gap: 3px;
   grid-template-columns: repeat(3, minmax(33%,1fr));
}
.content {
  margin: 2px;
}
.main{
  width: 80%;
  flex-direction: column;
}
}

@media (max-width: 619px) {
.grid {
   margin-top: 10px;
   width: 98%;
   grid-gap: 3px;
   grid-template-columns: repeat(2, minmax(50%,1fr));
}
.content {
  margin: 2px;
}
.main{
  width: 95%;
  flex-direction: column;
}
  
.tab{
  width: 100%;
  margin: 0px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
} 
.tab li{
  width: 100%;
  height: 35px;
  font-size: 20px;
  line-height: 35px;
}

 .pagetop img{
    width: 16.12903226vw; /* 100(px) / 620(px) * 100vw */
  }
  
}


