/* ----------------------------------------
   🌙 書斎背景・ランプ点灯アニメーションつき
---------------------------------------- */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Yu Gothic', sans-serif;
  height: 100%;
  /*background: url('書斎.jpg') no-repeat center center fixed;*/
  background-color: #223a70;
  background-size: cover;
  color: white;
}

#mainContents{
  width: 90%;
  position: relative;
  padding: 60px 20px;
}

.overlay-img {
  z-index: 1;
  position: absolute;
  width: 100%;
  animation: fadeTop 3s ease-out forwards;
}
.overlay-img img{
  width: 180px;
}



@keyframes fadeTop {
  0% { top:-15px ;}
  100% { top:15px ;}
}

/* 書斎の上に暗がり→徐々に明るくなる */
.overlay {
  position: absolute;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ----------------------------------------
   📖 小説エリア
---------------------------------------- */

.novel-container {
  width: 100%;
  max-width: 960px;
  box-sizing: border-box; /* ← あると安全 */
  margin: 0 auto;
}


.novel-entry {
  margin-bottom: 40px;
  text-align: center;
}

/* ✅ 小説リンクのスタイル */
.novel-link {
  text-decoration: none;
  color: white;
  display: inline-block;
  padding: 20px;
  border-radius: 10px;
  transition: background-color 0.3s, transform 0.3s;
}

.novel-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.novel-link h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.novel-link p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ----------------------------------------
   🔗 下部リンク
---------------------------------------- */

.footer-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin: 80px auto 0;
  font-weight: bold;
  font-size: 1.1rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #cce6ff;
}

/* ----------------------------------------
   📱 レスポンシブ対応
---------------------------------------- */

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .novel-link h2 {
    font-size: 1.3rem;
  }

  .novel-link p {
    font-size: 1rem;
  }

  .overlay-img {
    position: relative;
    text-align: center;
  }
}
