/* 動画ニュース検索・一覧画面用news_search.css */
/* .sp-only-news {
    display: none;
} */

.header__message {
    background-color: #107ff5 !important;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 検索ヘッダー */
.search_header {
    padding: 16px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #f9f8f4;
    border-bottom: 3px solid #0982FE;
}

.search_header .page-title {
    font-size: 20px;
    font-weight: bold;
    color: #60615c;
    margin: 0;
    text-align: center;
    flex: 1;
    position: absolute;
    left: 0;
    right: 0;
}

/* 戻るボタン */
.back-button {
    text-decoration: none;
    color: inherit;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.back-button img {
    height: 20px;
}

/* リールボタン */
.reel-toggle-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1;
}

.reel-toggle-button img {
    width: 24px;
    height: 24px;
}

/* 検索メニュー */
.search_menu {
    background-color: #fff;
    padding: 16px;
}

.search_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search_menu--li {
    margin-bottom: 12px;
}

/* セレクトボックス */
.select_box_wrapper {
    position: relative;
}

.select_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: rgb(244, 244, 244);
    border-radius: 8px;
    padding: 10px;
    position: relative;
}

.select_box_inner {
    display: flex;
    align-items: center;
    flex: 1;
}

.select_box_inner .select_icon {
    max-width: 20px;
    filter: brightness(0) saturate(100%) invert(26%) sepia(92%) saturate(3511%) hue-rotate(216deg) brightness(101%) contrast(101%);
}

.select_text {
    margin-left: 10px;
    font-size: 14px;
    color: rgb(206, 206, 206);
}

.select_text.active {
    color: #333;
}

.select_box_over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 14px;
    width: calc(100% - 40px);
}

/* 検索ボタン */
.search_menu_button {
    width: 100%;
    background: #107ff5;
    /* background: #4a90e2; */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
}

.search_menu_button_icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    filter: brightness(0) invert(1);
}

/* 絞り込みタブ（PC専用） */
.news-filter-tabs {
    background: #f6f6f6;
    text-align: center;
    padding: 15px 10px;
    margin: 0 20px;
    font-size: 20px;
}

.news-filter-tabs .tab-container {
    display: inline-block;
}

.news-filter-tabs .filter-tab {
    background: #eee;
    color: black;
    border-radius: 16px;
    padding: 4px 15px;
    font-weight: bold;
    min-width: 55px;
    max-width: 68px;
    box-shadow: 0px 3px 1px 0px rgb(0 0 0 / 18%);
    margin: 0 5px;
}

.news-filter-tabs .filter-tab.select {
    background-color: #3aa0f6;
    color: white;
}

.news-filter-tabs .filter-tab-text {
    margin: 10px;
}

/* ニュース一覧セクション */
.news-list-section {
    padding: 20px;
}

/* ニュースグリッド - PC 2列縦長対応 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.news-grid-item {
    background-color: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* グリッドサムネイル - 縦長サイズ */
.news-grid-thumbnail {
    position: relative;
    width: 100%;
    height: 480px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-grid-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.news-grid-placeholder .placeholder-icon {
    font-size: 48px;
    opacity: 0.3;
}

/* 動画スタイル */
.news-grid-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #000;
    display: block;
}

.news-grid-video::-webkit-media-controls {
    display: none !important;
}

.news-grid-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* 空状態 */
.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-message {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.back-to-top-button {
    display: inline-block;
    background: linear-gradient(135deg, #a51b20 0%, #8b1620 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ローディングスケルトン */
.loading-skeleton {
    background: #000;
    border-radius: 3px;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skeleton-content {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状態（動画なし）*/
.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    grid-column: 1 / -1;
}

.empty-message {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* 動画/画像のぼかし効果（一覧用） */
.news-grid-item[data-limited="1"]:not([data-logged-in="true"]) .news-grid-video,
.news-grid-item[data-limited="1"]:not([data-logged-in="true"]) .news-grid-img {
    filter: blur(7px);
    transition: filter 0.3s ease;
}

/* 限定動画オーバーレイ（一覧用） */
.news-limited-overlay-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.limited-message {
    padding: 8px;
    text-align: center;
    color: white;
    width: 100%;
    background-color: #000;
}

.limited-text {
    font-size: 13px;
    line-height: 1.3;
    font-weight: bold;
    background-color: #000;
}

/* ログイン済みの場合はぼかしを解除 */
.news-grid-item[data-logged-in="true"][data-limited="1"] .news-grid-video,
.news-grid-item[data-logged-in="true"][data-limited="1"] .news-grid-img {
    filter: none;
}

.news-grid-item[data-logged-in="true"] .news-limited-overlay-blur {
    display: none;
}

/* ページャーの色変更 */
.arrow-navi .arrow_both_btn {
    background-color: #3aa0f6 !important;
    color: white;
    fill: #fff;
}

.arrow-navi .arrow-prev-btn,
.arrow-navi .arrow-next-btn {
    border: 1px solid #666666 !important;
    color: #666666 !important;
    fill: #666666 !important;
}

.arrow-navi .link-none {
    border: 1px solid #a0a0a0 !important;
    background-color: #fff !important;
    fill: #cbcbcb !important;
    color: #cbcbcb !important;
    border: 1px solid #cbcbcb !important;
}

/* スマホ対応 */
@media screen and (max-width: 767px) {
    .sp-only-news {
        display: block;
    }

    .news-container {
        max-width: 100%;
        margin: 0;
    }
    
    .search_header {
        padding: 12px 16px;
        height: 40px;
    }
    
    .search_header .page-title {
        font-size: 16px;
    }
    
    .news_bottom_border {
        margin: 8px 10px;
    }
    
    .search_menu {
        padding: 12px;
    }
    
    /* 絞り込みタブ（SP非表示） */
    .news-filter-tabs {
        display: none;
    }
    
    .news-list-section {
        padding: 15px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        max-width: 100%;
    }
    
    .news-grid-thumbnail {
        height: 240px;
    }
    
    .loading-skeleton {
        height: 240px;
    }
}