@charset "utf-8";

/* ====== 2025年10月3日最新追加 ====== */
img.monitorrankimg{
  position: absolute;
    bottom: 0;
    left: 0;
    width: 30% !important;
}
div.video-block{
  width: 31%;
  margin-bottom: 50px;
}
div.video-list{
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
}
p.monitorlinkbtm{
  /*width: 320px;
  margin: 0 10px 10px 10px;*/
  margin: 0;
}
p.monitorlinkbtm a span{
  display: block;
  text-align: center;
  padding: 5px;
  background-color: #000;
}
p.monitorlinkbtm a{
  color: #fff;
}
.term-buttons {
    margin-bottom: 20px;
}
.term-btn {
    display: inline-block;
    margin: 4px 4px 4px 0;
    padding: 6px 12px;
    background: white;
    color: black;
    border-radius: 12px; /* 角丸 */
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ccc;
    transition: all 0.2s;
}
.term-btn:hover {
    background: #f0f0f0;
}
.term-btn.active {
    background: #2f86c9;
    color: #fff;
    border-color: #2f86c9;
}
/* サムネイルスタイル */
.video-thumb {
    display: inline-block;
    cursor: pointer;
    position: relative;
}
.video-thumb img {
    width: 100%;
    display: block;
}
.video-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    text-shadow: 0 0 5px black;
}

/* カテゴリ表示 */
.video-category-list {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.video-category-list li{
background: blue;
       padding: 4px 8px;
    font-size: 13px;
    font-weight: bold;
    margin-right: 5px;
    word-break: keep-all;
}
.video-category-list li a{
    color: white !important;
}

.video-category-list li:first-child{
  display: none;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
}
.modal-content iframe {
    width: 100%;
    height: 450px;
}
.close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #fff;
    border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 24px;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
}
.term-buttons { margin-bottom: 20px; }
.term-btn {
    display: inline-block;
    margin: 4px 4px 4px 0;
    padding: 6px 12px;
    background: white;
    color: black;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ccc;
    transition: all 0.2s;
}
.term-btn:hover { background: #f0f0f0; }
.term-btn.active { background: #2f86c9; color: #fff; border-color: #2f86c9; }

/* ====== サムネイル一覧 ====== */
.youtube-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}


/* カテゴリ選択 */
.monitor_category{
  list-style: none;
  padding:0;
  display : flex;
  flex-wrap:wrap;
  margin-bottom:2rem;
}
.monitor_category li{
  border: 1px solid #43b0a3;
  color:#43b0a3;
  padding: 5px;
  margin: 5px;
  border-radius: 5px;
  width: calc(100% / 6 - 10px );
  box-sizing:border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.4em;
  font-size: 0.9rem;
}
.monitor_category li:hover{
  background-color:#43b0a3;
  color:#fff;
}
.monitor_category li.m_cate_on{
  background-color:#43b0a3;
  color:#fff;
}
@media screen and (max-width: 750px) {
  .monitor_category li{
    width: calc(100% / 2 - 10px);
  }
}

.youtube-list > div{
  margin-bottom: 2em;
  width: 49%;
  box-sizing:border-box;
}
.youtube-list .list-container{
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 8.8;
  display: flex;
  align-items: center;
}

/* サムネイル画像 */
.youtube-list img {
  /* width: 300px; */
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s;
}
.youtube-list img:hover {
  transform: scale(1.05);
}
.youtube-list img{
  width: 100%;
}
a.video-thumb {
  position: relative;
  width: 100%;
  height:100%;
  display: flex;
  align-items: center;
}
.video-thumb .icon{
  position: absolute;
  width: 150px;
  bottom: 10px;
  z-index:9;
}
.video-thumb .y_view_icon{
  position: absolute;
  width: 80px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  z-index:9;
}
a.video-thumb:hover{
  transform: scale(1.05);
}

/* 詳細を見る */
.youtube-list .btn-wrap-case a{
  font-size:1em;
  text-align:center;
  height: 48px;
  width: 100%;
  line-height: 47px;
  position:static;
  margin-top:10px;
  box-sizing:border-box;
}
.youtube-list .btn-wrap-case a span{
  top: 19px;
}
.youtube-list .btn-wrap-case.fadein-up{
  margin-top:1em;
}

@media screen and (max-width: 768px) {
  div.video-block{
    margin-bottom: 40px;
    width: 100%;
  }
  div.video-block::last-child{
    margin-bottom: 0;
  }
  div.video-list {
    display: block;
}
  .youtube-list > div{
    width: 100%;
  }
  .video-thumb .icon{
    width: 120px;
  }
}





/* ====== モーダル ====== */
#video-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
}
#video-modal .video-wrapper {
  position: relative;
  width: 80%;
  max-width: 800px;
}
#video-modal iframe {
  width: 100%;
  height: 450px;
}
#video-modal .close-modal {
  position: absolute;
  top: -30px;
  right: -10px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}