body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* 横スクロールを無効化 */
}

h2 {
  text-align: center;
  color: rgb(255, 255, 255);
  background-color: blueviolet;
  margin: 5px;
  border-radius: 3px;
}

h3 {
  text-align: center;
  color: rgb(255, 255, 255);
  background-color: blueviolet;
  margin: 5px;
  border-radius: 3px;
}

.header {
  width: 100%;
  background-color: blueviolet;
  text-align: center;
  padding: 10px 0;
  color: white;
  border-radius: 3px;
}

.header h1 {
 font-size: 2.5rem;
 margin: -5px;
}

.header a {
  text-decoration: none;
  color: inherit;
}

.header a:hover {
  color: inherit;
  text-decoration: none;
}

.header p {
  font-size: 0.8rem;
  margin: -5px;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  margin-bottom: 5px;
}

.breadcrumb a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #0056b3;
}

.breadcrumb span {
  color: #333;
}

.breadcrumb a, .breadcrumb span {
  display: inline-block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.breadcrumb > *:not(:last-child)::after {
  content: ">";
  margin: 0 8px;
  color: #ccc;
}

/* 漫画ジャンル */
.comic-genre {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.comic-genre a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  background-color: #f8f9fa;
  border: #333;
  border-radius: 4px;
  overflow: hidden;
  width: calc(50% - 20px);
  text-align: center;
  margin: 3px;
  padding: 3px;
}

.comic-genre img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.comic-genre p {
  margin: 5px 0 0 ;
  font-size: 14px;
  color: #333;
}

.comic-page {
  margin: 5px auto;
  text-align: center;
}

.comic-page a {
  text-decoration: none;
  color: blue;
  width: 75%;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #ff00cc;
  text-decoration: none;
  border-radius: 5px; /* 角を丸める */
  border: none;
  transition: background-color 0.3s ease
}

.comic-page a:hover {
  text-decoration: underline;
}

/* カード全体を囲む親コンテナ */
.comic-container {
  display: flex;
  flex-wrap: wrap; /* 複数行に対応 */
  justify-content: center; /* 水平中央揃え */
  gap: 10px;
}

/* 各カードのスタイル */
.comic-card {
  background-color: #f8f9fa; /* カードの背景色 */ 
  border: 1px solid #ddd; /* 枠線 */
  border-radius: 4px; /* 角を丸くする */
  overflow: hidden; /* 内容がはみ出さないようにする */
  width: calc(50% - 20px); /* カードの幅 */
  text-align: center; /* テキストを中央揃え */
}

/* カード内の画像スタイル */
.comic-image {
  width: 100%; /* カード内で画像を幅いっぱいに表示 */
  height: auto; /* アスペクト比を保持 */
}

/* カード内のタイトルスタイル */
.comic-title {
  font-size: 16px;
  color: #333;
  padding: 5px;
  background-color: #f0f0f0; /* タイトル部分の背景色 */
  margin: 0; /* デフォルトの余白をリセット */
  white-space: nowrap; /* １行に制限 */
  overflow: hidden; /* 溢れる部分を隠す */
  text-overflow: ellipsis; /* 省略記号 */
}

.comicpape-size {
  width: 100%;
  background-color: #f8f9fa; /* カードの背景色 */ 
  border: 1px solid #ddd; /* 枠線 */
  border-radius: 4px; /* 角を丸くする */
  overflow: hidden; /* 内容がはみ出さないようにする */
  text-align: center; /* テキストを中央揃え */
}

.comicpape-size img {
  width: 100%;
  height: auto;
}

.button-container {
  text-align: center;
}

.button {
  width: 75%;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #007bff;
  text-decoration: none;
  border-radius: 5px; /* 角を丸める */
  border: none;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0056b3; /* ホバー時の背景色 */
}

/* 漫画試し読みページ */
.comic-img {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
}

/* ページネーションリンク */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px;
  flex-wrap: wrap;
}

.pagination a {
  text-decoration: none;
  margin: 0 5px;
  padding: 5px 10px;
  color: #007bff;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  pointer-events: none;
}

.pagination a:hover {
  background-color: #0056b3;
  color: white;
}

.pagination span {
  margin:  0 5px;
  color: #999;
}

.footer {
  background-color: blueviolet;
  text-align: center;
  color: white;
  border-radius: 3px;
}

/* ハンバーガーメニュー */
.menu-toggle {
  font-weight: 100;
  font-family: Arial, sans-serif;
  position: absolute;
  top: 0;
  left: 15px;
  font-size: 35px;
  cursor: pointer;
  color: white;
  z-index: 5000;
}

.menu-toggle span {
  display: block;
  height: 2.5px; /* 線の太さ（数値を小さくすれば細くなる） */
  width: 100%;
  background-color: rgb(255, 255, 255); /* 色を変更可能 */
}

/* メニューリスト */
.nav-menu {
  position: fixed;
  top: -1000px; /* 初期状態で隠す */
  left: 0;
  width: 200px;
  height: 100vh;
  background-color: rgba(137, 43, 226, 0.95);
  text-align: center;
  transition: top 0.3s ease-in-out;
  z-index: 3000;
  padding-top: 50px;
  margin-left: -35px;
}

.nav-menu li {
  padding: 0;
  list-style-type: none;
}

.nav-menu li a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 18px;
  display: block;
  line-height: 45px;
}

.nav-menu li a:hover {
  background-color: rgba(137, 43, 226,);
}

/* メニューが開いたとき */
.nav-menu.active {
  top: -30px; /* ヘッダーの下に表示 */
}
