* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  font-family: 'Kiwi Maru', serif;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  body {
    font-size: 0.9rem;
  }
}

a {
  text-decoration: none;
  color: #000;
}

a:hover {
  opacity: 0.7;
  cursor: pointer;
}

li {
  list-style: none;
}

img {
  max-width: 100%;
}

.wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  margin-bottom: 30px;
}

/* header */
header {
  height: 70px;
  text-align: center;
}

header .wrapper {
  padding: 10px;
}

header .header-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 5px;
}

@media (min-width: 768px) {
  header .wrapper {
    padding: 10px;
    display: flex;
    align-items: center;
  }

  header .header-list {
    margin-left: 50px;
  }
}

/* mainvisual */
.mainvisual {
  background-image: url(../img/book/bookstore_blue.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 100px;
}

.mainvisual p {
  background-color: #fff;
  opacity: 0.6;
  border-radius: 24px;
  display: inline-block;
  padding: 50px;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.2em;
}

@media (min-width: 768px) {
  .mainvisual {
    margin-top: 0;
  }
}

/* about */
#about {
  margin-bottom: 100px;
}

#about .flex {
  margin-bottom: 40px;
}

#about .flex .image {
  width: 100%;
  margin-bottom: 30px;
}

#about .flex .image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

#about .flex .text {
  width: 100%;
  padding: 0 5%;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.75;
}

#about .flex .text .text-title {
  margin-bottom: 16px;
}

#about .flex.reverse {
  flex-direction: row-reverse;
}

@media (min-width: 768px) {
  #about .flex {
    display: flex;
    align-items: center;
  }
  
  #about .flex .image {
    width: 50%;
    margin-bottom: 30px;
  }
  
  #about .flex .text {
    width: 40%;
  }
}

/* news */
#news {
  margin-bottom: 100px;
}

#news table {
  width: 100%;
}

#news th {
  width: 15%;
  border-bottom: 1px solid skyblue;
  padding: 10px;
}

#news td {
  width: 75%;
  border-bottom: 1px solid skyblue;
  padding: 10px;
}

#news .btn {
  width: 180px;
  margin: 30px auto 0;
}

#news .btn a {
  display: block;
  padding: 10px;
  background-color: skyblue;
  font-weight: bold;
  text-align: center;
  border-radius: 24px;
}

#news ul {
  margin-top: 70px;
  text-align: center;
}

#news ul li + li {
  margin-top: 40px;
}


@media (min-width: 768px) {
  #news table {
    width: 400px;
    margin-right: 60px;
    border-top: 1px solid skyblue;
  }

  #news .flex {
    display: flex;
  }

  #news ul {
    display: flex;
    margin-top: 70px;
    gap: 15px;
  }

  #news ul li + li {
    margin-top: 0;
  }
}

/* event */
#event {
  margin-bottom: 100px;
}

#event .flex .image {
  width: 100%;
  text-align: center;
  margin-bottom: 50px;
}

#event .event-text {
  width: 100%;
}

#event .event-text h3 {
  text-align: center;
}

#event .event-text .inner-text {
  background-color: aliceblue;
  padding: 40px;
  margin-top: 30px;
  border-radius: 20%;
}

#event .inner-text dt {
  border-bottom: 1px solid skyblue;
  padding: 5px;
  display: inline-block;
}

#event .inner-text dd {
  padding: 7px;
  margin-left: 7px;
}

#event .event-text p {
  margin-top: 30px;
}

@media (min-width: 768px) {
  #event .flex {
    display: flex;
    gap: 15px;
  }
  
  #event .flex .image {
    width: 50%;
    margin-bottom: 0;
  }
  
  #event .event-text {
    width: 45%;
  }
}

/* contact */
#contact {
  margin-bottom: 100px;
}

#contact .wrapper {
  text-align: center;
}

#contact input {
  width: 50%;
  padding: 5px;
  border: 1px solid #ccc;
}

#contact textarea {
  width: 50%;
  height: 100px;
  padding: 5px;
  border: 1px solid #ccc;
}

#contact dt {
  margin-bottom: 7px;
}

#contact dd {
  margin-bottom: 20px;
}

#contact .btn {
  display: inline-block;
  margin-top: 50px;
}

#contact .btn input {
  width: 200px;
  background-color: skyblue;
  border: 1px dotted skyblue;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  border-radius: 24px;
  cursor: pointer;
}

/* footer */
footer {
  font-size: 0.875rem;
  background-color: aliceblue;
  padding: 30px 20px;
  text-align: center;
}

footer ul {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

footer .copyright {
  font-size: 0.6rem;
  margin-top: 50px;
}