/* Public AIO video cards and date controls. */
.aio-video-latest-card { margin: 12px 0; }
.aio-video-latest-card__content, .aio-video-latest-card__link { display: flex; align-items: flex-start; gap: 16px; padding: 12px; color: inherit; }
.aio-video-latest-card__link { border: 3px solid #606060; border-radius: 6px; margin-bottom: 0; background: #fff; text-decoration: none; }
.aio-video-latest-card__thumbnail, .aio-video-latest-card__link > img { display: block; flex: 0 0 38%; width: 38%; min-width: 0; height: auto; }
/* Match the adjacent TOP table image boxes without changing other cards. */
.aio-video-latest-card--top .aio-video-latest-card__content { padding-left: 0; padding-right: 0; }
.aio-video-latest-card--top .aio-video-latest-card__thumbnail { flex-basis: calc(40% - 2px); width: calc(40% - 2px); min-width: calc(10rem - 2px); max-width: 100%; }
.aio-video-latest-card__thumbnail img { display: block; width: 100%; height: auto; }
.aio-video-latest-card__body, .aio-video-card__copy { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 8px; }
.aio-video-latest-card__body strong, .aio-video-card__link h3 { font-size: 1.15em; line-height: 1.5; }
.aio-video-latest-card__body strong, .aio-video-card__link h3, .aio-video-detail h1, .aio-video-detail h3, .aio-video-detail a { overflow-wrap: anywhere; word-wrap: break-word; word-break: break-word; }
.aio-video-latest-card__summary, .aio-video-card__summary { line-height: 1.7; overflow-wrap: anywhere; word-wrap: break-word; word-break: break-word; }
/* Clamp title and summary separately; their complete text remains in the DOM. */
.aio-video-latest-card__body strong, .aio-video-card__link h3, .aio-video-latest-card__summary, .aio-video-card__summary { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.aio-video-latest-card__body strong, .aio-video-card__link h3 { -webkit-line-clamp: 2; max-height: 3em; }
.aio-video-latest-card__summary { -webkit-line-clamp: 4; max-height: 6.8em; }
.aio-video-card__summary { -webkit-line-clamp: 3; max-height: 5.1em; }
.aio-video-card__cta { display: block; width: 100%; box-sizing: border-box; border: 1px solid #a40133; border-radius: 4px; padding: 7px 16px; color: #fff; background: #a40133; font-weight: bold; text-align: center; }
.aio-video-search-form { margin: 0; }
.aio-video-search-date { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 8px; }
.aio-video-search-date__control { display: inline-block; }
.aio-video-search-date input { padding: 5px; width: 100px; }
.aio-video-search-form #id_q { padding: 10px; width: 100%; font-size: 16px; }
.aio-video-search-form h6 label { margin: 0; font-weight: inherit; }
.aio-video-calendar-button { border: 0; padding: 0; margin: 0 3px -7px; background: transparent; vertical-align: baseline; }
.aio-video-calendar-button img { display: block; width: 25px; height: 25px; }
.aio-video-clear-button { background: #9999; cursor: pointer; padding: 2px; margin: -4px; text-shadow: 2px 2px 3px #9999; border-style: outset; }
.aio-video-card { margin: 12px 0; }
.aio-video-card__link { display: block; border: 1px solid #999; border-radius: 4px; padding: 12px; color: inherit; background: #fff; text-decoration: none; }
.aio-video-card__link h3 { margin: 0 0 10px; }
.aio-video-card__body { display: flex; align-items: flex-start; gap: 16px; }
.aio-video-card__body > img { display: block; flex: 0 0 30%; width: 30%; height: auto; object-fit: cover; }
.aio-video-card__date { display: block; margin-top: 8px; text-align: right; }
/* Keep the existing Bootstrap focus fallback and keyboard focus indication. */
.aio-video-latest-card a:active, .aio-video-latest-card a:hover, .aio-video-card a:active, .aio-video-card a:hover, .aio-video-detail a:active, .aio-video-detail a:hover { outline: 0; }
.aio-video-latest-card a:focus, .aio-video-card a:focus, .aio-video-detail a:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; }
@supports selector(:focus-visible) {
  .aio-video-latest-card a:focus:not(:focus-visible), .aio-video-card a:focus:not(:focus-visible), .aio-video-detail a:focus:not(:focus-visible) { outline: none; }
  .aio-video-latest-card a:focus-visible, .aio-video-card a:focus-visible, .aio-video-detail a:focus-visible { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; }
}
@media (max-width: 767px) {
  .aio-video-latest-card__content, .aio-video-latest-card__link, .aio-video-card__body { flex-direction: column; }
  .aio-video-latest-card__thumbnail, .aio-video-latest-card__link > img, .aio-video-card__body > img { flex-basis: auto; width: 100%; max-width: 100%; }
  .aio-video-latest-card--top .aio-video-latest-card__thumbnail { flex-basis: auto; }
  .aio-video-latest-card__body, .aio-video-card__copy { width: 100%; }
  .aio-video-latest-card__body strong, .aio-video-card__link h3 { -webkit-line-clamp: 3; max-height: 4.5em; }
  .aio-video-latest-card__summary, .aio-video-card__summary { -webkit-line-clamp: 4; max-height: 6.8em; }
}

.aio-video-detail { border: 1px solid #ddd; border-radius: 4px; padding: 16px; background: #fff; }
.aio-video-detail-watch { padding: 0; font-size: inherit; }
.aio-video-detail__headlines--with-parts { padding-bottom: 24px; }
.aio-video-detail-watch .search_btn { display: block; width: 100%; box-sizing: border-box; border: 1px solid #999; border-radius: 6px; margin: 15px 0 30px; padding: 15px; color: #606060; background: #ffcc33; font-family: 'メイリオ', Meiryo, 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'ＭＳ Ｐゴシック', -apple-system, BlinkMacSystemFont, "游ゴシック", "Yu Gothic", YuGothic, Arial, 'MS UI Gothic', 'Helvetica', 'Arial', sans-serif; font-size: 1.15em; font-weight: bold; text-align: center; cursor: pointer; }
.aio-video-detail-watch .search_btn:hover { opacity: .7; }
.aio-video-detail > img { display: block; max-width: 100%; height: auto; margin: 16px 0; }

/* Prevent long unbroken text in video detail paragraphs from widening the page. */
.aio-video-detail > p { overflow-wrap: anywhere; word-wrap: break-word; word-break: break-word; }
