@charset "UTF-8";
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@800&display=swap');

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: #ccc;
  text-align: center;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a,
a:visited {
  color: #000;
}

.menu-toggle {
  position: fixed;
  top: 15px;
  right: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.menu-toggle i {
  font-size: 24px;
  color: #333;
}

.menu-list {
  position: fixed;
  top: 0;
  right: -250px; /* 最初は隠れてる */
  width: 250px;
  height: 100%;
  text-align: left;
  background: #e8e8e8;
  transition: 0.3s;
  z-index: 999;
  overflow-y: auto;   /* 縦方向にスクロールを許可 */
  padding:80px 0 20px 0; /* 一番下の話数が隠れないように余白を作る */
}
.menu-list.active {
  right: 0; /* activeがつくと出てくる */
}
.menu-list ul {
  list-style: none;
  padding: 20px;
}

.menu-list li {
  margin-bottom: 16px;
}

.menu-list a {
  display: block;
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0; /* 下線を入れるとさらに見やすい */
  font-size: 16px;
}

.header-wrapper {
  background: #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-direction: row-reverse;
  flex-wrap: wrap;
}

header .logo img {
  height: 40px;
  vertical-align: middle;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

header nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

header nav a:hover {
  opacity: 0.7;
}

nav{
  font-family: "Noto Serif JP", serif;
}

nav .menu-list{
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

/* ナビゲーション全体のコンテナ */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

/* 共通のボタンデザイン */
.nav-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #333;     /* 基本はダークトーン */
  color: #fff !important;
  border-radius: 50px;   /* 丸みをつけて今風に */
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid #333;
  min-width: 120px;
}

/* ホバーした時の動き */
.nav-btn:hover {
  background: #fff;
  color: #333 !important;
  transform: translateY(-3px); /* ちょっと浮く演出 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 「次の話」 */
.nav-btn.next {
  background: #000; /* キャラのイメージカラー等に */
  border-color: #000;
}

.nav-btn.next:hover {
  color: #ffffff !important;
}

/* リンクがない時のグレーアウト */
.nav-btn.disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

/* 本編 */
.spread {
  display: flex;
  flex-direction: column;
  margin: 0 0 40px 0;
}

@media screen and (min-width: 769px) {
  .spread {
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .spread img {
    height: 90vh;
    width: auto;
    object-fit: contain;
    max-width: none;
  }
}

@media screen and (max-width: 768px) {
  .spread {
    margin: 0 0 20px;
  }

  .spread img {
    width: 90%;
    height: auto;
    max-width: 500px;
    margin: 20px auto 0;
  }

  .spread img:first-child {
    margin-top: 0;
  }

  .spread img:last-child {
    margin-bottom: 20px;
  }
}

/* ======================== */
/* フッター */
/* ======================== */

.footer-wrap {
  background: #e8e8e8;
  padding: 20px;
  text-align: center;
  max-width: 100vw;
  overflow: hidden;
}

.footer-wrap .post {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-wrap .post a {
  font-size: 22px;
}

.footer-wrap .post input[type="text"] {
  font-size: 18px;
  padding: 10px;
  width: 300px;
  border: 1px solid #aaa;
  border-radius: 6px;
}

.footer-wrap .post input[type="submit"] {
  font-size: 16px;
  padding: 8px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.footer-wrap .post input[type="submit"]:hover {
  background: #555;
}

/* ======================== */
/* ⬆️ ページトップボタン */
/* ======================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;           /* 最初は透明 */
  visibility: hidden;   /* クリックもできない状態 */
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 表示された時の状態 */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #660000; /* キャラのイメージカラー等に合わせると◎ */
  transform: translateY(-5px);
}

