@charset "UTF-8";

/* ==========================================================
   MEDIA PAGE STYLES (VIDEO / TV / YOUTUBE)
   ========================================================== */

/* ----------------------------------------------------------
   アニメーション定義 (TOP/EVENT共通)
   ---------------------------------------------------------- */
@keyframes tnsbFadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* ----------------------------------------------------------
   共通グリッドレイアウト (.flex--list)
   ---------------------------------------------------------- */
.flex--list--wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* ▼ 画像枠（ガタつき防止・共通設定） */
.flex--list .img {
    width: 100%;
    /* 読み込み前の高さ確保（16:9） */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 3px; /* base.cssのデザイン継承 */
    position: relative;
}

/* ▼ 画像本体（アニメーション適用） */
.flex--list .img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング */
    display: block;
    transition: transform 0.2s ease; /* ホバー時の動き */
    
    /* アニメーション設定 */
    opacity: 0;
    animation: tnsbFadeIn 0.4s ease-out forwards;
}

/* ホバー時の拡大効果 */
.flex--list img:hover {
    transform: scale(0.97);
}

/* ----------------------------------------------------------
   カラム設定
   ---------------------------------------------------------- */
/* 2カラム (VIDEO等) */
.flex--list.box2 {
    width: 47%;
    margin: 0 1.15% 3% 1.15%;
}
/* 3カラム (TV, YOUTUBE等) */
.flex--list.box3 {
    width: 31%;
    margin: 0 1.15% 3% 1.15%;
}
/* 3カラム変則 */
.flex--list.box3-2 {
    width: 32.3%;
    margin: 0 1% 1% 0;
}
/* 4カラム */
.flex--list.box4 {
    width: 23%;
    margin: 0 1% 3% 1%;
}

/* ----------------------------------------------------------
   各パーツスタイル
   ---------------------------------------------------------- */
/* YouTube埋め込み枠 */
.live_radio {
    width: 97.5%;
    margin: 0 1.15% 5%;
    aspect-ratio: 16 / 9;
}
.live_radio iframe {
    width: 100%;
    height: 100%;
}

/* VIDEO: 再生時間バッジ */
.times {
    background: #404040;
    color: #fff;
    display: inline-block;
    padding: 0.5em;
    line-height: 1;
    border-radius: 3px;
    font-size: 11px;
    margin: 0.2em 0 2em;
}
.tnsb_key .times {
    opacity: .5;
}

/* VIDEO: 記事一覧タイトル調整 */
.live_video p.tit_16_9 {
    font-size: 1em;
    padding: .8em 0;
    line-height: 1.6;
}

/* 鍵アイコン・プラン説明 */
.plan--detail p {
    font-size: .9em;
    color: #acacac;
    margin-left: 1em;
    display: inline;
}
.plan--detail p span {
    background-size: contain;
    position: relative;
    top: 1px;
    width: 14px;
    height: 14px;
    margin-right: .1em;
    display: inline-block;
}
.plan--detail p.basic span { background-image: url(../../images/ico/ico_key_wht.png); }
.plan--detail p.gold span  { background-image: url(../../images/ico/ico_key_lime.png); }
.plan--detail.on_video p { margin-left: 0; }


/* ----------------------------------------------------------
   非会員の閲覧制御 (鍵オーバーレイ)
   ---------------------------------------------------------- */
.tnsb_key {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.tnsb_key .tit_16_9 {
    opacity: .35;
}

/* 黒い透過背景 */
.tnsb_key:before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    z-index: 9;
    margin: auto;
    opacity: .8;
    border-radius: 100px;
    background-color: rgba(0, 0, 0, 0.6);
}
.bg_blk .tnsb_key:before {
    background-color: #222;
}
/* 鍵アイコン */
.tnsb_key:after {
    content: '';
    display: block;
    background-size: contain;
    width: 16px;
    height: 16px;
    background-image: url(../../images/ico/ico_key_wht.png);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    margin: auto;
}
.tnsb_key.lime:after {
    background-image: url(../../images/ico/ico_key_lime.png);
}

/* ポップアップ時の挙動 */
.live_video .popup-trigger.color_on img { filter: initial; }
.live_video .color_on .tnsb_key img { opacity: 1; }
.popup-trigger.free_plan .tnsb_key img,
.tnsb_key.free_plan img { opacity: 1; }


/* ----------------------------------------------------------
   スマホ対応 (Common)
   ---------------------------------------------------------- */
@media (max-width: 1029px) {
    .flex--list.box2,
    .flex--list.box3 {
        width: 47.7%;
    }
    .flex--list.box3-2:nth-child(odd) {
        width: 49%;
        margin: 0 1% 2% 0;
    }
    .flex--list.box3-2:nth-child(even) {
        width: 49%;
        margin: 0 0 2% 1%;
    }
    .flex--list.box3-2 .img {
        overflow: hidden;
    }
    .flex--list.box3-2 .img img {
        transform: scale(1.2);
    }
    .flex--list.box4 {
        width: 31.3%;
    }
}

@media (max-width: 780px) {
    .flex--list.box2,
    .flex--list.box3 {
        width: 100%;
        margin: 0 0 3% 0;
    }
    .flex--list.box4 {
        width: 48%;
    }
    /* スマホでの画像はみ出し調整 */
    .flex--list.box2 .img,
    .flex--list.box3 .img {
        width: 112%;
        position: relative;
        left: -6%;
        border-radius: 0;
        /* スマホでも比率を維持 */
        aspect-ratio: 16 / 9; 
    }
    .plan--detail p {
        display: block;
        margin-left: 1%;
    }
}