.video-auto-grid {
  width: min(1100px, calc(100% - 32px));
  margin: 25px auto 35px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px
}

.video-auto-card {
  min-width: 0
}

.video-auto-card a {
  display: block;
  text-decoration: none;
  color: inherit
}

.video-auto-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  background: #eee
}

.video-auto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s
}

.video-auto-card a:hover img {
  transform: scale(1.04)
}

.video-auto-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 38px;
  border-radius: 12px;
  background: #e21b1b;
  color: #fff;
  font-size: 19px
}

.video-auto-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 10px;
  overflow-wrap: anywhere
}

.video-auto-date {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 5px
}

.video-auto-pages {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto 45px
}

.video-auto-pages a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #ddd;
  border-radius: 30px;
  color: inherit;
  text-decoration: none
}

.video-auto-pages a[aria-current="page"] {
  background: #333;
  color: #fff
}

.video-empty {
  text-align: center;
  grid-column: 1/-1;
  padding: 30px 0
}

@media(max-width:760px) {
  .video-auto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px
  }
}

@media(max-width:575px) {
  .video-auto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px
  }
}

.video-auto-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 12px;
  overflow: hidden
}

.video-auto-trigger {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #111
}

.video-auto-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s
}

.video-auto-trigger:hover img {
  transform: scale(1.04)
}

.video-auto-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0
}

.video-auto-player .video-auto-play {
  pointer-events: none
}

/* VIDEO: スマホは2列の一覧から大きなモーダルで再生 */
@media screen and (max-width:575px) {
  .video-auto-grid {
    width: 100%;
    max-width: none;
    padding: 0 4px;
    box-sizing: border-box;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4px;
    row-gap: 20px
  }

  .video-auto-play {
    width: 34px;
    height: 25px;
    font-size: 12px;
    border-radius: 7px
  }

  .video-auto-title {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 6px
  }

  .video-auto-date {
    font-size: 10px;
    margin-top: 3px
  }
}

.video-modal-open {
  overflow: hidden
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(0, 0, 0, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box
}

.video-modal-panel {
  width: min(100%, 720px);
  display: flex;
  flex-direction: column;
  gap: 10px
}

.video-modal-close {
  align-self: flex-end;
  min-height: 42px;
  padding: 7px 14px;
  background: #fff;
  color: #222;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer
}

.video-modal-viewport {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden
}

.video-modal-viewport iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0
}

/* PC・スマホ共通：拡大再生ウィンドウ */
.video-modal-panel {
  width: min(100%, 960px)
}

.video-modal {
  padding: clamp(10px, 3vw, 30px)
}

.video-modal-close:hover {
  background: #eee
}

@media(max-width:575px) {
  .video-modal-panel {
    width: 100%
  }
}

/* VIDEOページネーション */
.video-auto-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px auto 48px;
  padding: 0 10px;
  box-sizing: border-box
}

.video-page-numbers {
  display: flex;
  align-items: center;
  gap: 5px
}

.video-auto-pages a,
.video-auto-pages .video-page-arrow {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, color .2s
}

.video-auto-pages a:hover {
  background: #f1f1f1;
  color: #111
}

.video-auto-pages a[aria-current="page"] {
  background: #252525;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .13);
  pointer-events: none
}

.video-auto-pages .video-page-arrow {
  gap: 5px;
  min-width: 70px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 999px
}

.video-auto-pages .video-page-arrow:hover {
  background: #252525;
  color: #fff
}

.video-auto-pages .video-page-arrow.is-disabled {
  opacity: .3;
  cursor: default
}

.video-page-dots {
  padding: 0 3px;
  color: #999
}

@media(max-width:575px) {
  .video-auto-pages {
    gap: 5px;
    margin: 26px auto 38px;
    padding: 0 4px
  }

  .video-page-numbers {
    gap: 1px
  }

  .video-auto-pages a,
  .video-auto-pages .video-page-arrow {
    min-width: 30px;
    height: 34px;
    padding: 0 6px;
    font-size: 12px;
    border-radius: 8px
  }

  .video-auto-pages .video-page-arrow {
    min-width: 48px;
    border-radius: 999px
  }

  .video-page-dots {
    padding: 0 1px
  }
}

/* 2026-11-07: PCでも必ず画面全体の拡大プレイヤーを使用 */
body .video-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, .52) !important;
  padding: clamp(12px, 3vw, 32px) !important
}

body .video-modal .video-modal-panel {
  width: min(960px, 100%) !important;
  max-width: 960px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important
}

body .video-modal .video-modal-viewport {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
  overflow: hidden !important;
  background: #000 !important;
  border-radius: 12px !important
}

body .video-modal .video-modal-viewport iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  border: 0 !important
}

body .video-auto-pages {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin: 36px auto 48px !important;
  padding: 0 12px !important
}

body .video-auto-pages .video-page-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  height: 42px !important;
  border: 1px solid #ddd !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #222 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: nowrap !important
}

body .video-auto-pages a.video-page-arrow:hover {
  background: #222 !important;
  color: #fff !important;
  border-color: #222 !important
}

body .video-auto-pages .video-page-arrow.is-disabled {
  opacity: .28 !important
}

body .video-auto-pages .video-page-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 14px !important;
  color: #888 !important;
  white-space: nowrap !important
}

body .video-auto-pages .video-page-status strong {
  font-size: 18px !important;
  color: #222 !important;
  font-weight: 800 !important
}

body .video-auto-pages .video-page-slash {
  color: #bbb !important
}

@media(max-width:575px) {
  body .video-auto-pages {
    gap: 12px !important
  }

  body .video-auto-pages .video-page-arrow {
    min-width: 78px !important;
    height: 38px !important;
    font-size: 12px !important
  }

  body .video-modal .video-modal-viewport {
    border-radius: 8px !important
  }
}

/* v3: 全ページ番号を表示し、横幅が足りない場合は折り返す */
body .video-auto-pages {
  flex-wrap: wrap !important;
  gap: 10px !important
}

body .video-auto-pages .video-page-numbers {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 6px !important;
  max-width: 100% !important
}

body .video-auto-pages .video-page-numbers a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 9px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  text-decoration: none !important
}

body .video-auto-pages .video-page-numbers a:hover {
  background: #f2f2f2 !important;
  border-color: #ccc !important
}

body .video-auto-pages .video-page-numbers a[aria-current="page"] {
  background: #292929 !important;
  color: #fff !important;
  border-color: #292929 !important;
  pointer-events: none !important
}

@media(max-width:575px) {
  body .video-auto-pages {
    gap: 8px !important
  }

  body .video-auto-pages .video-page-numbers {
    gap: 4px !important
  }

  body .video-auto-pages .video-page-numbers a {
    min-width: 32px !important;
    height: 34px !important;
    padding: 0 7px !important;
    font-size: 12px !important
  }
}

/* 動画の閉じるボタン：青い枠・タップ時のハイライトを除去 */
.video-modal-close,
.video-modal-close:focus,
.video-modal-close:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* スマホ版：動画タイトル・ページネーションをゴシック体に */
@media screen and (max-width: 575px) {
  .video-title,
  .video-pagination,
  .video-pagination a,
  .video-pagination button,
  .video-pagination span {
    font-family: Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN",
                 "Yu Gothic", Meiryo, sans-serif !important;
    font-weight: 500;
  }
}
/* VIDEO: iPhoneを含む日本語表示を角ゴシックに固定 */
@media screen and (max-width: 575px) {
  body .video-auto-grid .video-auto-title,
  body .video-auto-pages,
  body .video-auto-pages *,
  body .video-auto-pages a,
  body .video-auto-pages span {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif !important;
    font-style: normal !important;
  }
}

/* VIDEO：日付も角ゴシック体に統一（スマホ・PC） */
body .video-auto-grid .video-auto-date {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif !important;
  font-style: normal !important;
}

/* BLOG・SONGSと共通の検索フォームデザイン */
.video-auto-search.search-form {
  display: flex;
  align-items: center;
  width: calc(100% - 24px);
  max-width: 560px;
  margin: 40px auto 50px;
  padding: 5px 5px 5px 48px;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  background: #fff;
  position: relative;
  transition: border-color .3s, box-shadow .3s;
}
.video-auto-search.search-form::before {
  content: "";
  position: absolute;
  left: 19px;
  width: 17px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.video-auto-search.search-form input {
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: none;
  padding: 12px 5px;
  border: 0;
  outline: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  color: #222;
}
.video-auto-search.search-form input::placeholder { color: #aaa; }
.video-auto-search.search-form:focus-within { border-color: #333; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.video-auto-search.search-form button {
  flex-shrink: 0;
  padding: 13px 26px;
  border: 0;
  border-radius: 50px;
  background: #171717;
  color: #fff;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s, transform .25s;
}
@media (hover: hover) and (pointer: fine) {
  .video-auto-search.search-form button:hover { background: #444; transform: scale(1.03); }
}
.video-search-feedback { max-width: 560px; margin: -28px auto 20px; padding: 0 12px; box-sizing: border-box; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; font-size: 13px; }
.video-search-feedback a { color: #555; text-decoration: underline; font-size: inherit; letter-spacing: normal; }
@media (max-width: 575px) {
  .video-auto-search.search-form { width: calc(100% - 24px); max-width: 100%; margin: 30px auto 40px; padding: 0 0 0 42px; overflow: hidden; }
  .video-auto-search.search-form::before { left: 16px; width: 16px; height: 16px; }
  .video-auto-search.search-form input { padding: 8px 3px; font-size: 16px; }
  .video-auto-search.search-form button { margin: 0; padding: 9px 20px; font-size: 13px; align-self: stretch; }
  .video-search-feedback { margin-top: -20px; }
}

/* VIDEO検索結果の件数を中央揃え */
.video-search-feedback {
  justify-content: center !important;
  text-align: center !important;
}
.video-search-feedback span {
  display: block;
  width: 100%;
  text-align: center;
}

/* VIDEOページネーション：PC・スマホとも円形 */
body .video-auto-pages .video-page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px !important;
}
body .video-auto-pages .video-page-numbers a {
  box-sizing: border-box;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
}
@media screen and (max-width: 575px) {
  body .video-auto-pages .video-page-numbers a {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
  }
}
