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;
  background-color: white;
}
 
 /* === 選択されていない言語は非表示にする ==== */
#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;
}

a{
  display: inline-block;
}
.btn{
	width: 10em;
	margin: auto;
}
.btn a{
	text-decoration:none;
	padding: 5px;
	line-height: 25px;
	margin-bottom: 5px;
	border: 2px solid #cccccc;
	border-bottom-color: black;
	border-right-color: black;
	border-top-color: whitesmoke;
	border-left-color: whitesmoke;
	color: black;
}
.btn a:hover {
	border-bottom-color: whitesmoke;
	border-right-color: whitesmoke;
	border-top-color: black;
	border-left-color: black;
}

 /* 上部ヘッダー */
.topbunner{
  top: 0;
  right: 0;
  height: 8%;
  margin-top: 0px;
  position: fixed;
}
.langbtns{
  padding: 12px;
  font-family: "Arial Black",sans-serif;
  font-weight: bold;
}
header{
  display: flex;
  flex-direction: row;
  align-items:flex-start;
  justify-content: space-between;
}

 /* タイトル画像とメイン画像 */
 
.b20{
  max-width: 100%;
  margin: auto;
  margin-top: 20px;
  }
.mainimg{
  max-width: 800px;
  margin: auto;
}


 /* ==B20のウィキペディア引用== */
 
.wikiimage{
  width: 90%;
  margin: 0 auto;
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}  
.wiki{
  min-width: 30%;
  display: flex;
  flex-direction: column;
} 
.wiki img{
  height: 250px;
}
.doctextlink{
  min-width: 30%;
}
.doctextlink img{
  max-width: 500px;
  height: auto;
}

 /* ==CD,CDDのキャラ紹介== */
 
.CDDtable{
  width: 65%;
  margin: auto;
  margin-bottom: 100px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}
.character{
  width: 30%;
  border: 1.5px solid black;
  background-color: white;
  margin: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.characterimg{
  height: 80%;
}
.characterimg img{
  width: 80%;
}
.text{
  width: 100%;
  border: 1px solid black;
  background-color: white;
}
.name{
  width: 100%;
  font-size: 20px;
  font-weight: bold;
  border: 1px solid black;
  background-color: white;
}
.name span{
  text-align: center;
}



.ocpage{
  font-weight: bold;
}
.lastward{
	margin-top: 20px;
	margin-bottom: 40px;
}


img{
  vertical-align: bottom;
}
.homebtn img{
  width: 100px;
}
.homebtn a{
	text-decoration:none;
}

.main{
  width: 70%;
  margin: auto;
}
.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;
}

.exptext{
  width: 85%;
  margin: auto;
}
.eximgs{
  display: flex;
   max-width: 800px;
   margin: auto;
}
.eximgs img{
  border: 1px solid;
   width: 100%;
}

#page-top {
    position: fixed;
    right: 5px;
    bottom: 5px;  
}

#footer{
clear:both;
}



@media (max-width: 1200px) {

.grid{
   width: 95%;
   column-count: 2;
   }
}

@media (max-width: 619px) {
 .pagetop img{
    width: 16.12903226vw; /* 100(px) / 620(px) * 100vw */
  }
header{
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
header .btn{
  position: absolute;
  right: 0;
  left: 0;
  margin: 0 auto;
}
body{
  margin: 0px;
}

.main{
  width: 95%;
  margin: auto;
}
.sumb{
   width: 100%;
 　display: flex;
 　flex-direction: row;
 　flex-wrap: wrap;
   column-count: 2;
}

.header{
  width: 45%;
  font-family: arial;
}

.header img{
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border: solid 1px;
}

.header a{
  text-decoration: none;
  color: black;
  margin: 0;
}
.chapter{
  width: 100%;
  display: flex;
  flex-direction: row;
  border: 1px solid;
  vertical-align: middle;
}

.grid{
   width: 100%;
   column-gap: 0px;}

.wikiimage{
  width: 95%;
  margin: 20 auto;
  flex-wrap: nowrap;
}  
.wiki{
  min-width: 30%;
} 
.wiki img{
  height: 120px;
}

.doctextlink{
  display: none;
}

.CDDtable{
  width: 90%;
  margin: auto;
  margin-bottom: 100px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}
.character{
  width: 45%;
}
.characterimg{
  height: 80%;
}

.eximgs{
  flex-wrap: wrap;
}

}
  

