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;
  /* Non-grid specific CSS */  
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}


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



.header{
  width: 80%;
  display: flex;
  font-family: arial;
}
.header img{
  width: 250px;
  height: 80px;
}
.header a{
  text-decoration: none;
  color: black;
  margin: 0;
}
.chapter{
  display: flex;
  flex-direction: row;
  border: 1px solid;
  vertical-align: middle;
  background: white;
}
.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;
}
.caption{
  text-align: left;
  font-family: "Bangers", system-ui;
  font-size: 35px;
  color: OrangeRed; 
  -webkit-text-stroke: 1px black;
  text-stroke: 1px black;
  border: 1px solid black;
  background-color: 	Gold;
  line-height: 28px;
  padding: 5px;
}
.sp{
  color: MediumSpringGreen; 
  background-color: MediumSlateBlue;
}



.header summary{
  display: block;
  list-style: none;
  text-align: left;
  font-family: "Bangers", system-ui;
  font-size: 25px;
  color: black; 
  -webkit-text-stroke: 0px black;
  text-stroke: 0px black;
  line-height: 15px;
  padding: 5px;
}
summary span{
  background-color: 	white;
  border: solid 2px;
  padding: 2px 5px 2px 5px;
}
.jptext{
  display: block;
  list-style: none;
  text-align: left;
  font-family: "M PLUS 1", sans-serif;
  font-size: 15px;
  color: black; 
  -webkit-text-stroke: 0px black;
  text-stroke: 0px black;
  line-height: 15px;
  padding: 5px;
  font-weight: 900;
}

.navi{
  display: flex;
}
.navi a{
  display: block;
  list-style: none;
  text-align: left;
  font-family: "Bangers", system-ui;
  font-size: 25px;
  color: black; 
  -webkit-text-stroke: 0px black;
  text-stroke: 0px black;
  line-height: 15px;
  padding: 5px;
}
.navi a span{
  background-color: 	gold;
  border: solid 2px;
  padding: 2px 5px 2px 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;
   padding: 0px;
   width: 80%;
 　display: flex;
 　flex-wrap: wrap;
 　flex-direction: column;
   column-count: 4;
   column-gap: 0.5em;
}

.text {
  background-color: white;
  color: black;
  text-align: left;
  line-height: 18px;
}
.text p{
  padding: 12px;
}

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



@media (max-width: 1200px) {
.grid{
   width: 95%;
   column-count: 3;
   column-gap: 3px;
}
.content {
  margin: 2px;
}
}

@media (max-width: 619px) {
.grid{
   margin-top: 10px;
   width: 80%;
 　display: flex;
 　flex-wrap: wrap;
 　flex-direction: column;
   column-count: 2;
   column-gap: 3px;
}
.content {
  margin: 2px;
}
 .pagetop img{
    width: 16.12903226vw; /* 100(px) / 620(px) * 100vw */
  }

.header{
  width: 100%;
  display: flex;
  flex-direction: column;
}
.header img{
  width: 250px;
  height: 100%;
}
.navi{
  flex-direction: row;
}


}
