/*
Theme Name: vidmov-child
Template: vidmov
Theme URI: https://vm.beeteam368.net/
Author: BeeTeam368
Author URI: http://themeforest.net/user/beeteam368
Description: Video WordPress Theme
Version: 1.0.0
License: Themeforest Licence
License URI: http://themeforest.net/licenses
Text Domain: vidmov
Tags: translation-ready, one-column, two-columns, three-columns, right-sidebar, custom-menu, editor-style, featured-images, theme-options, rtl-language-support
*/
iframe[src*="adfluct"],
#adfluct,
.adfluct {
  position: fixed !important;
  z-index: 999999 !important;
}

h3.entry-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;  /* 表示したい行数 */
  overflow: hidden;
  text-overflow: ellipsis;
}
.mux-video-wrapper{
    margin-top: -56.25%;
    padding: 0px;
}
@media (max-width: 768px) {

  .prev-next-posts-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右2列 */
    gap: 50px;
    background: #000;
    padding: 0px;
    border-radius: 8px;
  }

  /* ボタン風ラベル */
  .nav-post-prev .prev-next-title,
  .nav-post-next .prev-next-title {
    display: block;
    padding: 12px 15px;         /* タッチしやすいサイズ */
    background-color: #282c34;  /* ボタン風背景 */
    border-radius: 8px;
    font-size: 1rem;            /* 少し大きめの文字 */
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-align: center;          /* 中央揃え */
    transition: background 0.3s ease, transform 0.1s ease;
  }

  /* 前後で左右寄せ */
  .nav-post-prev .prev-next-title {
    text-align: left;
  }

  .nav-post-next .prev-next-title {
    text-align: right;
  }

  /* ホバー・アクティブ効果 */
  .nav-post-in-single .prev-next-title:hover {
    background-color: #3a3f4a;
  }

  .nav-post-in-single .prev-next-title:active {
    transform: scale(0.97); /* 押下感 */
  }

  /* タイトル・サムネ非表示 */
  .nav-post-in-single .post-title,
  .nav-post-in-single .nav-post-thumb {
    display: none;
  }

  /* 余白・ボーダー無効化 */
  .nav-post-in-single.nav-post-prev:not(:last-child) {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
  }
.beeteam368-related-posts:not(:first-child) {
    padding-top: 0px;
}
}


/* コンテナ全体 */
#chapterContainer {
    background: #1e1e1e; /* ダーク背景 */
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
}

/* リスト全体 */
#chapterList {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 各リストアイテム */
#chapterList li {
    border-bottom: 1px solid #333;
}

#chapterList li:last-child {
    border-bottom: none;
}

/* リンク全体 */
#chapterList a {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
    color: #ccc;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

/* マウスオーバー */
#chapterList a:hover {
    background: #333;
    color: #fff;
}

/* 現在のチャプター */
#chapterList a.active {
    background: #0056b3;
    color: #fff;
    font-weight: bold;
}

/* タイトルの見出し */
.post-description-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}
/* --- 横スクロールタブ + グラデーション + 矢印 --- */
.multi-genre-filters-wrapper {
  position: relative;
  margin: 0 -10px 20px;
}
.multi-genre-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: visible;
  white-space: nowrap;
  padding: 10px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
}
.multi-genre-filters:active {
  cursor: grabbing;
}
.multi-genre-filters::-webkit-scrollbar {
  display: none;
}
.multi-genre-filters button {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #333;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
  font-size: 14px;
}
.multi-genre-filters button:hover {
  background: #555;
  transform: translateY(-2px);
}
.multi-genre-filters button.active {
  background: #2463ae;
  color: #fff;
}
.multi-genre-filters-wrapper .scroll-left,
.multi-genre-filters-wrapper .scroll-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}
.multi-genre-filters-wrapper .scroll-left:hover,
.multi-genre-filters-wrapper .scroll-right:hover {
  background: rgba(0, 0, 0, 0.7);
}
.multi-genre-filters-wrapper .scroll-left { left: 0; }
.multi-genre-filters-wrapper .scroll-right { right: 0; }
.multi-genre-filters-wrapper::before,
.multi-genre-filters-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.multi-genre-filters-wrapper::before { left: 0; }
.multi-genre-filters-wrapper::after { right: 0; }

/* --- グリッドレイアウト（カード） --- */
#multi-genre-post-block {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* --- カード --- */
.video-item {
  position: relative;
  background: #181a1d;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
}
.video-item:hover {
  transform: translateY(-1px);
}
.video-item img {
  width: 100%;
  height: auto;
  display: block;
}
.video-item h3 {
  font-size: 14px !important;
  margin: 20px 8px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.video-item .video-info .date {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 5px;
}

/* --- スマホ表示調整 --- */
@media (max-width: 768px) {
  .multi-genre-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  #multi-genre-post-block {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0 4px;
  }
  .video-item {
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  .video-item h3 {
    font-size: 13px;
    margin: 8px 4px;
  }
}
#post-content-wrapper {
    max-height: 300px; /* 折りたたみ時の高さ */
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#post-content-wrapper.expanded {
    max-height: 5000px; /* フル表示 */
}

/* 全体をぼかしにした折りたたみボタン */
.toggle-content-btn {
    width: 100%;
    padding: 14px 18px;

    background: rgba(255, 255, 255, 0.1); /* 半透明白 */
    border-radius: 7px; /* 全体丸み */
    border: none;

    /* ぼかし効果 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0.03em;
    text-align: center;

    cursor: pointer;

    margin-top: 14px;
    transition: 
        background 0.25s ease,
        transform 0.25s ease;
}

/* ホバー時 */
.toggle-content-btn:hover {
    background: rgba(255, 255, 255, 0.18); /* 少し濃く */
    transform: translateY(-1px);
}

/* 押したとき */
.toggle-content-btn:active {
    transform: translateY(0.5px);
}
/* 投稿本文内の画像をブロック表示 */
.entry-content img,
.entry-content-in-single img {
    float: none !important;       /* 回り込みを解除 */
    display: block;               /* ブロック化 */
    width: 100%;                  /* 親幅に合わせる */
    height: auto;                 /* アスペクト比維持 */
    margin: 12px 0;               /* 上下の余白 */
}