h1 {
  font-size: 1.5em;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  width: 95%;
  margin-left: 5%;
  padding: 0px;
}

.bookblock {
  display: flex;
  justify-content: start;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  width: 220px;
  height: 380px;
  padding: 0 10px 0px 0px;
  margin-top: 10px;
}

.classtext,
.classtextmark {
  width: 100%;
  font-size: 1em;
  height: 1.5em;
  box-sizing: border-box;
  position: absolute;
  margin: 0 10px 0 10px;
}

.classtextmark {
  color: red;
  font-weight: bold;
  text-align: center;
  padding: 0px 20px 0 0;
}

.calasspic {
  width: 100%;
  height: 300px;
  position: absolute;
  margin-top: 1.5em;
}

.classtext {
  text-align: left;
  padding: 0px 20px 0 10px;
  margin-top: calc(1.5em + 300px);
}

.classimg {
  width: 200px;
  height: 280px;
  vertical-align: bottom;
}


/*--------------- 小さな画面 ------------------*/

@media screen and (max-width: 520px) {

  h1 {
    font-size: 1.25em;
  }
  
  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    width: calc(100% - 5px);
    margin-left: 5px;
    padding: 0px;
  }
}