section > section:first-of-type {
  margin-top: 0;
  /* 打消しのため */
}

.denshi h2#head-title {
  margin-bottom: 0;
  text-align: center;
  font-size: 3rem;
  padding: 1rem;
  padding-top: 1.1rem;
  background-color: #709b01;
  color: #fff;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}
@media screen and (max-width: 576px) {
  .denshi h2#head-title::after {
    min-width: 60px;
  }
}
.denshi .denshi__notice {
  background-color: #fff;
  padding: 1rem 1.5rem;
  color: #666666;
}
.denshi .denshi__notice a {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 1px;
}

.book {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
}
.book h2 {
  background-color: transparent;
  padding: 0;
}

.book img {
  width: 300px;
  height: auto;
  max-width: 300px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 15%);
}

.book-details {
  padding: 1rem 0;
}

.table-of-contents {
  margin-top: 2rem;
  background-color: #f8f8f8;
  border-radius: 5px;
}

.toc-toggle {
  display: block;
  cursor: pointer;
  padding: 1rem;
  margin: 0;
  background-color: #76a87c;
  border-radius: 5px 5px 0 0;
}

.toc-toggle .toggle-icon {
  float: right;
  transition: transform 0.3s ease;
}

.toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.table-of-contents.open .toc-content {
  max-height: 3000px;
}

.table-of-contents.open .toggle-icon {
  transform: rotate(180deg);
}

.author-info {
  margin-top: 2rem;
  padding: 2rem;
  background-color: #e1f2e3;
  border-radius: 5px;
}

.author-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 769px) {
  .book {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }

  .book img {
    width: 98%;
    margin-right: 2%;
  }

  .book-details {
    max-width: 75%;
  }
}

@media (max-width: 768px) {
  .book {
    align-items: center;
  }

  .book-details {
    text-align: center;
    width: 100%;
  }

  .author-photo {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }
}

.ebook-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.store-link {
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.store-link:hover {
  background-color: #e0e0e0;
}

@media (max-width: 768px) {
  .ebook-stores {
    justify-content: center;
  }
}

.ebook-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-link {
  padding: 5px 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
}

.bookslink {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.bookslink-button {
  display: inline-block;
  background-color: #ffa500;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.bookslink-button:hover {
  background-color: #ff8c00;
}

.issues-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列のグリッド */
  gap: 20px; /* グリッド間のギャップ */
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  gap: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.grid-item img {
  width: 100%;
  object-fit: contain;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 4px rgb(0 0 0 / 15%);
}
@media screen and (max-width: 576px) {
  .issues-grid {
    grid-template-columns: repeat(2, 1fr); /* 3列のグリッド */
  }
}
