@charset "utf-8";

/* =========================
   Header（簡素）
========================= */
.simple-header {
  border-bottom: 1px solid #eee;
}

/* =========================
   Illust Page 全体
========================= */
.illust-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1rem 5rem;
  text-align: center; /* 基本中央寄せ */
}

.illust-figure {
  margin: 0 auto;
}

.illust-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 2px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}


.illust-caption {
  max-width: 640px;
  margin: 1.2rem auto 0;
  text-align: left;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
}

.illust-nav {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.illust-nav a {
  color: #666;
  text-decoration: none;
}

.illust-nav a:hover {
  color: #000;
}




/* =========================
   フッター
========================= */
.novel-footer {
  margin-top: 5rem;
  padding: 2.5rem 1rem 2rem;
  border-top: 1px solid #eee;
  text-align: center;   /* ← 文字中央 */
}

.novel-footer-nav {
  display: flex;
  justify-content: center; /* ← 横中央 */
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.novel-footer-nav a {
  text-align: center;  /* ← 念押し */
}

.novel-footer-nav a:hover {
  text-decoration: underline;
}

.novel-footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin: 0;
}
.novel-footer .container {
  text-align: center;
}



/* =========================
   タブレット（～1024px）
========================= */
@media (max-width: 1024px) {
  .illust-page {
    padding: 3rem 1rem 4rem;
  }

  .illust-figure img {
    max-width: 90%;       /* 画面端にくっつかない */
    max-height: 80vh;     /* 高さを画面に収める */
    margin: 0 auto;
  }

  .illust-caption {
    max-width: 90%;
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .illust-nav {
    gap: 1rem;
    font-size: 0.84rem;
  }
}

/* =========================
   スマホ（～600px）
========================= */
@media (max-width: 600px) {
  .illust-page {
    padding: 2.5rem 1rem 3.5rem; /* 横パディング確保 */
  }

  .illust-figure img {
    width: 100%;       /* 画面幅いっぱいではなく、親幅いっぱい */
    max-width: 100%;
    height: auto;
    max-height: 75vh;  /* 高さは画面に収める */
    display: block;
    margin: 0 auto;
    box-sizing: border-box; /* 枠込み計算 */
  }

  .illust-caption {
    max-width: 100%;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0.8rem auto 0;
  }

  .illust-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
  }
}

/* 横スクロール防止 */
body, html {
  overflow-x: hidden;
}