/* ====== Reset CSS ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====== Body Styling ====== */
body {
  font-family: 'Arial', sans-serif;
  color: #333;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto; /* ページ全体のスクロールを許可 */
  overflow-x: hidden; /* 横スクロールを無効化 */
}

h2 {
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: #ff8bbb;
  color: rgb(19, 19, 19);
}

/* ====== Header Styling ====== */
.header {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  background-color: #ff4f99;
  color: rgb(19, 19, 19);
}

.title {
  font-size: 2.5rem;
  font-weight: bold;
}

/* ヘッダータイトルリンクのスタイル */
.header .title a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: inherit;
}

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

.subtitle {
  font-size: 1rem;
  margin-top: 5px;
}

/*　パンくずリスト */
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px ;
  color: #666;
  margin-top: 10px; /* パンくずリストとコンテンツの間に余白を追加 */
  margin-bottom: -3px;
}

.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; /* 区切り文字の色 */
}

/* ====== 動画カード背景スタイル ====== */
.video-card-background {
  padding: 20px; /* カード内の余白 */
  margin: 20px auto; /* 上下のマージン */
  max-width: 800px; /* カードの最大幅 */
  width: 100vw;  /* ビューポート幅いっぱいに */
  height: 70vh; 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* movie-title font */
.movie-title {
  text-align: center;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  padding: 5px 30px;
  background-color: #ff86b8;
  color: #191919;
}


/* ====== Video Gallery Styling ====== */
.video-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.video-card {
  background-color: #ececec; /* カードの背景色 */ 
  border-radius: 4px; /* 角を丸くする */
  overflow: hidden; /* 内容がはみ出さないようにする */
  width: calc(50% - 10px); /* カードの幅 */
  max-width: 300px;
  flex-grow: 1;
  text-align: center;
}

.video-img {
  border-radius: 5px;
  width: 95%;
  margin: 5px;
  height: auto;
  display: cover;
}

/* カテゴリのリンク文字のスタイル */
.video-title {
  text-decoration: none;
  font-size: 16px;
  color: #333;
}

.video-title2 {
  color: #333;
  padding: 5px;
  margin: 0; /* デフォルトの余白をリセット */
  white-space: nowrap; /* １行に制限 */
  overflow: hidden; /* 溢れる部分を隠す */
  text-overflow: ellipsis; /* 省略記号 */
}

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




/* ====== Pagination Styling ====== */
.pagination {
  text-align: center;
  margin: 20px 0;
}

.page-link {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.page-link.active {
  background-color: #ff4f99;
  color: white;
}

/* ====== Responsive Embed Wrapper ====== */
.responsive-iframe {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  padding-bottom: 56.25%; /* アスペクト比 16:9 に調整 */
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;

}

/* genre-card */
.genre-card {
  text-align: center;
  background-color: #e8e8e8;
  color: #242424;
  padding: 5px 15px;
  width: 100vw;
  border-radius: 8px;

}

/* ====== Footer Styling ====== */
.footer {
  width: 100%;
  margin-top: 20px;
  text-align: center;
  padding: 20px 50px;
  background-color: #ff4f99;
  color: rgb(19, 19, 19);
  position: relative;
}

.affiliate-button {
  display: inline-block;
  padding: 12px 18px;
  width: 100vw;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #ff4f99;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.affiliate-button:hover {
  background-color: #ff6fab;
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.affiliate-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* ハンバーガーメニュー */
.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: -800px; /* 初期状態で隠す */
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #ff4f98eb;
  list-style: none;
  text-align: center;
  padding-top: 5px;
  transition: top 0.3s ease-in-out;
  z-index: 3000;
  padding-top: 70px;

}



.nav-menu li {
  padding: 0;
}

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

.nav-menu li a:hover {
  background-color: #ff4f98;
}

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