body {
  background: #f8fafc;
  color: #2f3a45;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  font-family: "Zen Maru Gothic", sans-serif;
}

body::before {
  content: "";
  display: block;
  width: 100%;
  height: 15px;
  background: #4a6887;
}

.wrapper {
  width: 600px;
  margin: 0 auto;
}

/* ヘッダー */
.header {
  text-align: center;
}

a {
  color: #4a6887;
  text-decoration: none;
}

.header img {
  width: 90%;
}

.header h1 {
  letter-spacing: 0.2em;
  margin: 1em 0;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #4a6887;
  font-size: 0.9rem;
  font-weight: 600;
}

.update-box {
  margin: 42px auto 48px;
  padding: 12px 12px;

  border: 1px solid #4a6887;
  width: 50%;
}

.update-text {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #4a6887;
  text-align: center;
}


section {
  margin-bottom: 2.4em;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1.2em;          /* 文字と線の間隔 */
  margin: 3.2em 0 1.5em;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  font-weight: 600;
}

.section-info {
  margin-top: 4.5em; /* 好きなだけ増やせる */
}

/* 左右の線 */
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2f3a45;
}

/* 文字 */
.section-title span {
  white-space: nowrap;
}

h3 {
  margin: 2em 0 1em;
  padding: 6px 14px;

  display: inline-block;
  background: #dee9f2;

  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #2f3a45;
}

.info-text {
  letter-spacing: 0.18em;
}

/* アコーディオン */
.accordion-btn {
  width: 100%;
  padding: 14px 16px;
  margin-top: 12px;

  background: #dee9f2;
  border: none;

  color: #2f3a45;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;

  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 10px;
}

.accordion-content p {
  margin: 12px 0;
}

.novel-page {
  background: #f8fafc;
  color: #2f3a45;
}

.novel-wrapper {
  width: 600px;
  margin: 80px auto 120px;
}

.novel-text {
  line-height: 2.1;
  letter-spacing: 0.04em;
}

.novel-text p {
  margin-bottom: 2em;
}

.back-link {
  margin-top: 80px;
  text-align: center;
}

.back-link a {
  color: #4a6887; /* 青強めにした色 */
  letter-spacing: 0.15em;
  text-decoration: none;
}

.link-list {
  display: flex;
  gap: 30px; /* ← ここで余白サイズを一括管理 */
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list li a {
  color: #4a6887;
  text-decoration: none;
  letter-spacing: 0.15em;
}

.works-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.works-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.works-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #a8c4e6;
}

.works-title {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.works-links {
  display: flex;
  gap: 16px;
}

.works-links::before {
  content: "|";
  color: #a8c4e6;
}

.works-links a {
  color: #4a6887;
  text-decoration: none;
}

.caution {
  color: #b35a5a;
}

.site-footer {
  margin-top: 120px;
  padding: 24px 0 32px;
  text-align: center;
}

.copyright {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #6f7f90; /* #4a6887より一段淡く */
}

#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid #2f3a45;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* 矢印（上向き） */
#toTop::before,
#toTop::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #2f3a45;
}

#toTop::before {
  left: 42%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

#toTop::after {
  left: 58%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 表示 */
#toTop.show {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 768px) {

body {
  font-size: 13px;
}

  .wrapper,
  .novel-wrapper {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .header img {
    width: 100%;
  }

  .header h1 {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
  }

  .link-list {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  nav a {
    font-size: 0.8rem;
  }

.update-box {
  width: 80%;
}

  .section-title {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    margin: 2.8em 0 1.2em;
  }

  h3 {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .accordion-btn {
    font-size: 0.7rem;
    padding: 12px 14px;
  }

  .works-list li {
    gap: 6px;
  }

  .novel-wrapper {
    margin: 48px auto 80px;
  }

  .novel-text {
    font-size: 0.9rem;
    line-height: 2.2;
  }

  .site-footer {
    margin-top: 80px;
  }

  #toTop {
    width: 38px;
    height: 38px;
    right: 16px;
    bottom: 16px;
  }

}