/* ==========================
   全体
   ========================== */
body {
  background: #1b1f2a; /* 夜色 */
  margin: 0;
  padding: 0;
  color: #eae7df;
  font-family: "Hiragino Mincho ProN", serif;
  line-height: 2;
}

#dream10 {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ==========================
   ヘッダー
   ========================== */
.dream-header h1 {
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  margin-bottom: .3rem;
  color: #f5f3eb;
}

.dream-header .subtitle {
  opacity: .8;
  font-size: .95rem;
  letter-spacing: .05em;
}

/* ==========================
   序セクション
   ========================== */
#about {
  background: rgba(243, 239, 231, 0.07); /* 和紙を暗背景に馴染ませた薄層 */
  border-left: 2px solid #d9c99a;       /* 薄金の細い縦線 */
  padding: 1.6rem 1.4rem;
  margin: 2.5rem 0;
  border-radius: 4px;
}

#about h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  letter-spacing: 0.08em;
  color: #f5f3eb;
}

#about p {
  margin: 0 0 1.2rem;
  font-size: .95rem;
  line-height: 1.95;
  color: #e8e4dd;
}

/* 夢翻訳リンク部分 */
#about .dreamlink a {
  color: #d9c99a; /* 薄金 */
  text-decoration: none;
  border-bottom: 1px dotted #d9c99a;
}

#about .dreamlink a:hover {
  border-bottom-style: solid;
}

/* ==========================
   目次
   ========================== */
.dream-nav ul {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.2rem;
}

.dream-nav a {
  color: #d9c99a; /* 薄金 */
  text-decoration: none;
  border-bottom: 1px dotted #d9c99a;
}

.dream-nav a:hover {
  border-bottom-style: solid;
}

/* ==========================
   夜エントリ（和紙カード）
   ========================== */
.night-entry {
  background: #f3efe7; /* 和紙 */
  color: #242424;
  border: 1px solid #d9c99a; /* 金 */
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  margin-bottom: 2rem;
}

.night-entry h3 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  cursor: pointer;
  position: relative;
  margin-top: 0;
}

/* 折りたたみアイコン（…） */
.night-entry h3::after {
  content: "…";
  position: absolute;
  right: .2rem;
  top: .25rem;
  font-size: 1.2rem;
  opacity: .4;
}

/* 開いた状態では少し濃く */
.night-entry:not(.night-collapsed) h3::after {
  opacity: .8;
}

/* 折りたたみ */
.night-collapsed > *:not(h3) {
  display: none;
}

/* ==========================
   見出し・本文
   ========================== */
.night-entry h4 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  margin-bottom: .4rem;
  color: #3a3a3a;
  letter-spacing: 0.08em;
}

.aozora-link {
  margin: .4rem 0 .8rem;
  font-size: .9rem;
}

/* ==========================
   フッター
   ========================== */
#dream-footer {
  color: #aaa;
  text-align: center;
  margin-top: 3rem;
  font-size: .8rem;
}
#dream-footer a {
  color: inherit;               /* 親の #aaa を継承 */
  text-decoration: none;        /* 下線消す */
}

#dream-footer a:hover {
  text-decoration: underline;   /* 任意。不要なら消せます */
  text-decoration-color: #aaa;  /* 色は継承色で統一 */
}

#toc-button {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #aaa;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
}

#toc-button:hover {
  background: rgba(255,255,255,0.15);
  color: #ddd;
}

/* 夢の断片／夢翻訳／神話の余白 見出しのうっすら下線 */
.night-entry h4 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  margin-bottom: .8rem;       /* 下線ぶん少しだけ余白を増やす */
  color: #3a3a3a;
  letter-spacing: 0.08em;
  position: relative;         /* 擬似要素配置のため */
  padding-bottom: 0.25rem;    /* 文字と線の間に少し余白 */
}

.night-entry h4::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;                   /* 見出し幅いっぱいに線 */
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.06),
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.06)
  );                          /* 中央だけ少し濃い、うっすら線 */
  pointer-events: none;
}