/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

header h1::before {
    content: "💙";
    margin-right: 10px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 10px rgba(135, 206, 235, 0.8));
    font-size: 1.2em;
    text-shadow: 0 0 15px rgba(30, 144, 255, 0.6);
}

header h1::after {
    content: "☁️";
    margin-left: 10px;
    animation: bounce 2s infinite 0.5s;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    font-size: 1.1em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* 背景コンテナ */
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-pattern {
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover; /* 空白を防ぐ */
    animation: floatPattern 25s ease-in-out infinite;
}

header h1 {
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    padding: 40px 20px;
    text-shadow: 
        2px 2px 0px #ffb7c5,
        4px 4px 0px #ffc0cb,
        6px 6px 0px #ff69b4,
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 183, 197, 0.6);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #ffc0cb, #ffb7c5, #ff91a4, #ffc0cb);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 183, 197, 0.9));
}

/* タブナビゲーション */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto; /* 横スクロール可能に */
    white-space: nowrap;
    position: relative;
    z-index: 10; /* 他の要素より前面に表示 */
    background: rgba(255, 255, 255, 0.95); /* 半透明の背景 */
    backdrop-filter: blur(10px); /* ぼかし効果 */
    min-height: 48px; /* 最小高さを確保 */
}

.tab-button {
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(222, 226, 230, 0.5);
    white-space: nowrap; /* テキストの改行を防ぐ */
    flex-shrink: 0; /* 縮小を防ぐ */
    min-width: fit-content; /* コンテンツに合わせた最小幅 */
    position: relative;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    background: rgba(233, 236, 239, 0.8);
    color: #495057;
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.secret {
    background: transparent !important;
    color: rgba(248, 249, 250, 0.1) !important;
    border-right: 1px solid rgba(222, 226, 230, 0.1) !important;
    opacity: 0.05;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    padding: 12px 15px !important;
}

.secret:hover {
    background: rgba(108, 117, 125, 0.8) !important;
    color: #fff !important;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.secret.active {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    color: #fff !important;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

/* タブコンテンツ */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* サムネイルグリッド */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px); /* minmaxを削除して固定幅に */
    gap: 20px;
    padding: 20px 0;
    justify-content: center; /* 中央揃え */
}

/* サムネイルアイテム */
.thumbnail-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 320px; /* 固定幅を設定 */
    flex-shrink: 0; /* サイズ変更を防止 */
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* サムネイル画像 */
.thumbnail-image {
    width: 100%; /* 親要素の幅に合わせる */
    height: 180px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-image {
    opacity: 0.9;
}

/* サムネイル情報 */
.thumbnail-info {
    padding: 15px;
    width: 100%; /* 親要素の幅に合わせる */
    box-sizing: border-box; /* paddingを含めた幅計算 */
}

.thumbnail-info h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.thumbnail-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* schedule専用スタイル */
.thumbnail-item.schedule {
    border-left: 4px solid #646464;
    background: linear-gradient(135deg, #999999 0%, #ffffff 100%);
}

.thumbnail-item.schedule .thumbnail-info h3 {
    color: #ffffff;
}

.thumbnail-item.schedule .thumbnail-info p:first-of-type {
    color: #ffffff;
    font-weight: 500;
}

/* subscriber_only専用スタイル */
.thumbnail-item.subscriber_only {
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(135deg, #ff8b8b 0%, #fcbaba 100%);
}

.thumbnail-item.subscriber_only .thumbnail-info h3 {
    color: #ffffff;
}

.thumbnail-item.subscriber_only .thumbnail-info p:first-of-type {
    color: #ffffff;
    font-weight: 500;
}

/* timeshiftout専用スタイル */
.thumbnail-item.timeshiftout {
    border-left: 4px solid #664b4b;
    background: linear-gradient(135deg, #cacaca 0%, #d6d6d6 100%);
}

/* fciu（いうねこないとFC）視聴条件別スタイル */
/* 会員のみ */
.thumbnail-item.fciu-members-only {
    border-left: 4px solid #8b5a3c;
    background: linear-gradient(135deg, #d4a574 0%, #f4e4c1 100%);
}

.thumbnail-item.fciu-members-only .thumbnail-info h3 {
    color: #5d4e37;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.thumbnail-item.fciu-members-only .thumbnail-info p:first-of-type {
    color: #8b5a3c;
    font-weight: 600;
}

/* 一部無料 */
.thumbnail-item.fciu-partial-free {
    border-left: 4px solid #4a90e2;
    background: linear-gradient(135deg, #74a9f7 0%, #b8d4ff 100%);
}

.thumbnail-item.fciu-partial-free .thumbnail-info h3 {
    color: #2c5aa0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.thumbnail-item.fciu-partial-free .thumbnail-info p:first-of-type {
    color: #4a90e2;
    font-weight: 600;
}

/* 全編無料 */
.thumbnail-item.fciu-full-free {
    border-left: 4px solid #50c878;
    background: linear-gradient(135deg, #7ed957 0%, #bcf5a9 100%);
}

.thumbnail-item.fciu-full-free .thumbnail-info h3 {
    color: #2d5a3d;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.thumbnail-item.fciu-full-free .thumbnail-info p:first-of-type {
    color: #50c878;
    font-weight: 600;
}

/* YouTube再生ボタン */
.play-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.play-button::before {
    content: '▶';
    color: white;
    font-size: 14px;
    margin-left: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 動画モーダル */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    width: calc(80vw + 40px);
    max-width: calc(854px + 40px);
    max-height: 90%;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

/* 年齢認証モーダル */
.age-verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.age-verification-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-verification-container {
    position: relative;
    width: 90%;
    max-width: 450px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.age-verification-header {
    text-align: center;
    margin-bottom: 25px;
}

.age-verification-header h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.age-verification-header p {
    color: #ecf0f1;
    font-size: 1rem;
    font-weight: 500;
}

.age-verification-content {
    text-align: center;
}

.age-warning {
    color: #f39c12;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.age-verification-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-verify-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    min-width: 140px;
}

.age-verify-btn.yes {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.age-verify-btn.yes:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.age-verify-btn.no {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.age-verify-btn.no:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.age-verify-btn:active {
    transform: translateY(0);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* メニューのスタイル */
.menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative; /* または absolute */
    z-index: 10; /* 親要素より高い値を設定 */
}

.menu-item {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-item:hover {
    color: #0056b3;
    transform: scale(1.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .age-verification-container {
        width: 95%;
        padding: 25px 20px;
    }
    
    .age-verification-header h2 {
        font-size: 1.5rem;
    }
    
    .age-verification-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .age-verify-btn {
        width: 100%;
        max-width: 200px;
    }
}

.video-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.video-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.video-iframe {
    width: 80vw;
    height: 45vw;
    max-width: 854px;
    max-height: 480px;
    border: none;
    border-radius: 10px;
}

.video-title {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* 動画モーダル内のタイムスタンプセクション */
.timestamp-section {
    margin-top: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f3ff 100%);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid #e6ecff;
}

.timestamp-section h4 {
    margin: 0 0 12px 0;
    color: #4a5568;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.timestamp-section h4::before {
    content: "🕒";
    font-size: 18px;
}

.video-timestamps {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
}

.video-timestamps li {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 14px;
    color: #2d3748;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.video-timestamps li:last-child {
    border-bottom: none;
}

.video-timestamps li:hover {
    background: linear-gradient(90deg, rgba(74, 158, 255, 0.08), rgba(107, 182, 255, 0.08));
    color: #2b6cb0;
    transform: translateX(3px);
    box-shadow: inset 3px 0 0 #4a9eff;
}

.video-timestamps li:active {
    background: linear-gradient(90deg, rgba(74, 158, 255, 0.15), rgba(107, 182, 255, 0.15));
    transform: translateX(1px);
}

/* タイムスタンプがない場合のスタイル */
.video-timestamps li:only-child {
    text-align: center;
    color: #718096;
    font-style: italic;
    cursor: default;
}

.video-timestamps li:only-child:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
    color: #718096;
}

/* スクロールバーのカスタマイズ */
.video-timestamps::-webkit-scrollbar {
    width: 6px;
}

.video-timestamps::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.video-timestamps::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a9eff, #6bb6ff);
    border-radius: 3px;
}

.video-timestamps::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3a8eef, #5ba6ef);
}

/* モーダル内レイアウト調整 */
.video-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.video-iframe {
    margin-bottom: 0;
}

/* フィルタコントロール */
.filter-controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 20px 20px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

.filter-toggle input[type="checkbox"] {
    display: none;
}

.filter-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 26px;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.filter-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-toggle input[type="checkbox"]:checked + .filter-slider {
    background: #ff8b8b;
}

.filter-toggle input[type="checkbox"]:checked + .filter-slider::before {
    transform: translateX(24px);
}

.filter-label {
    font-family: 'Kosugi Maru', cursive;
}

.filter-toggle:hover .filter-slider {
    box-shadow: 0 0 8px rgba(255, 139, 139, 0.3);
}

.filter-info {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 139, 139, 0.1);
    border: 1px solid rgba(255, 139, 139, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #d63031;
    text-align: center;
    font-weight: 500;
}

/* FCタブ専用：カラフルフィルター情報 */
#fciu-filters .filter-info {
    background: linear-gradient(135deg, 
        rgba(212, 165, 116, 0.1) 0%, 
        rgba(116, 169, 247, 0.1) 50%, 
        rgba(126, 217, 87, 0.1) 100%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    color: #2d5a3d;
    font-weight: 600;
}

/* フィルタコントロールの表示制御 */
.tab-content:not(.active) .filter-controls {
    display: none;
}

/* YouTubeタブ専用：斜めフィルターレイアウト */
#youtube .filter-section {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    position: relative;
}

#youtube .filter-toggle {
    transform-origin: center center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    transform: rotate(-5deg);
}

#youtube .filter-toggle .filter-label {
    color: #ff8b8b;
    font-weight: 700;
}

#youtube .filter-toggle:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 139, 139, 0.3);
}

/* 斜めフィルターレイアウト（FCタブ専用） */
.diagonal-filters {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    position: relative;
}

.diagonal-filters .filter-toggle {
    transform-origin: left center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.diagonal-filters .filter-toggle:nth-child(1) {
    transform: rotate(-5deg);
    margin-left: 0px;
}

.diagonal-filters .filter-toggle:nth-child(2) {
    transform: rotate(3deg);
    margin-left: 0px;
}

.diagonal-filters .filter-toggle:nth-child(3) {
    transform: rotate(-2deg);
    margin-left: 0px;
}

.diagonal-filters .filter-toggle:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 2;
}

/* YouTubeタブ専用：色付きフィルタースライダー */
#youtube .filter-toggle:nth-child(1) .filter-slider {
    background: #ffb7c5; /* 会員のみ - 薄いピンク */
}

/* FCタブ専用：色付きフィルタースライダー */
#fciu-filters .filter-toggle:nth-child(1) .filter-slider {
    background: #e0c4a0; /* 会員のみ - 薄い茶色 */
}

#fciu-filters .filter-toggle:nth-child(1) input[type="checkbox"]:checked + .filter-slider {
    background: #d4a574; /* 会員のみ - 指定色 */
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.4);
}

#fciu-filters .filter-toggle:nth-child(1) .filter-toggle:hover .filter-slider {
    box-shadow: 0 0 8px rgba(212, 165, 116, 0.3);
}

#fciu-filters .filter-toggle:nth-child(2) .filter-slider {
    background: #b8d4ff; /* 一部無料 - 薄い青色 */
}

#fciu-filters .filter-toggle:nth-child(2) input[type="checkbox"]:checked + .filter-slider {
    background: #74a9f7; /* 一部無料 - 指定色 */
    box-shadow: 0 0 15px rgba(116, 169, 247, 0.4);
}

#fciu-filters .filter-toggle:nth-child(2) .filter-toggle:hover .filter-slider {
    box-shadow: 0 0 8px rgba(116, 169, 247, 0.3);
}

#fciu-filters .filter-toggle:nth-child(3) .filter-slider {
    background: #bcf5a9; /* 全編無料 - 薄い緑色 */
}

#fciu-filters .filter-toggle:nth-child(3) input[type="checkbox"]:checked + .filter-slider {
    background: #7ed957; /* 全編無料 - 指定色 */
    box-shadow: 0 0 15px rgba(126, 217, 87, 0.4);
}

#fciu-filters .filter-toggle:nth-child(3) .filter-toggle:hover .filter-slider {
    box-shadow: 0 0 8px rgba(126, 217, 87, 0.3);
}

/* FCタブ専用：スライダー内のドットも色付き */
#fciu-filters .filter-toggle:nth-child(1) input[type="checkbox"]:checked + .filter-slider::before {
    background: linear-gradient(135deg, #ffffff, #f5f0e8);
}

#fciu-filters .filter-toggle:nth-child(2) input[type="checkbox"]:checked + .filter-slider::before {
    background: linear-gradient(135deg, #ffffff, #e8f2ff);
}

#fciu-filters .filter-toggle:nth-child(3) input[type="checkbox"]:checked + .filter-slider::before {
    background: linear-gradient(135deg, #ffffff, #e8f8e8);
}

/* FCタブ専用：アクティブ時のラベル効果 */
#fciu-filters .filter-toggle:nth-child(1) input[type="checkbox"]:checked ~ .filter-label {
    text-shadow: 0 0 8px rgba(212, 165, 116, 0.5);
}

#fciu-filters .filter-toggle:nth-child(2) input[type="checkbox"]:checked ~ .filter-label {
    text-shadow: 0 0 8px rgba(116, 169, 247, 0.5);
}

#fciu-filters .filter-toggle:nth-child(3) input[type="checkbox"]:checked ~ .filter-label {
    text-shadow: 0 0 8px rgba(126, 217, 87, 0.5);
}

/* FCタブ専用：色付きフィルターラベル */
#fciu-filters .filter-toggle:nth-child(1) .filter-label {
    color: #8b5a3c; /* 会員のみ - 濃い茶色 */
    font-weight: 700;
}

#fciu-filters .filter-toggle:nth-child(2) .filter-label {
    color: #4a90e2; /* 一部無料 - 濃い青色 */
    font-weight: 700;
}

#fciu-filters .filter-toggle:nth-child(3) .filter-label {
    color: #50c878; /* 全編無料 - 濃い緑色 */
    font-weight: 700;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        margin: 0 -15px 30px -15px;
        border-radius: 0;
    }
    
    header h1 {
        font-size: 2rem;
        padding: 30px 15px;
        text-shadow: 
            1px 1px 0px #ffb7c5,
            2px 2px 0px #ffc0cb,
            0 0 15px rgba(255, 255, 255, 0.7);
    }
    
    .tab-navigation {
        justify-content: flex-start; /* 左寄せにしてスクロール */
        margin: 15px -15px 20px -15px; /* 画面端まで拡張 */
        padding: 0 15px;
        border-radius: 0;
        min-height: 44px; /* モバイル用の最小高さ */
        background: rgba(255, 255, 255, 0.98); /* より不透明に */
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 0.85rem;
        min-width: auto; /* 自動調整 */
    }
    
    /* モバイルでの斜めフィルター調整 */
    .diagonal-filters {
        gap: 15px;
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .diagonal-filters .filter-toggle:nth-child(1) {
        transform: rotate(-3deg);
        margin-left: 0px;
    }
    
    .diagonal-filters .filter-toggle:nth-child(2) {
        transform: rotate(2deg);
        margin-left: 0px;
    }
    
    .diagonal-filters .filter-toggle:nth-child(3) {
        transform: rotate(-1deg);
        margin-left: 0px;
    }
    
    /* YouTubeタブのモバイル対応 */
    #youtube .filter-toggle {
        transform: rotate(-8deg);
    }
    
    #youtube .filter-toggle:hover {
        transform: scale(1.05) rotate(0deg);
    }
    
    .thumbnail-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .thumbnail-item {
        margin: 0 auto;
        max-width: 320px;
    }
    
    .video-iframe {
        width: 90vw;
        height: 50.6vw;
    }
    
    .video-container {
        width: calc(90vw + 30px);
        padding: 15px;
        margin: 20px;
    }
    
    .play-button {
        width: 35px;
        height: 35px;
        bottom: 6px;
        right: 6px;
    }
    
    .play-button::before {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tab-navigation {
        margin: 10px -15px 15px -15px;
        padding: 0 10px;
        min-height: 40px;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-right: 1px solid rgba(222, 226, 230, 0.3);
    }
    
    .thumbnail-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .thumbnail-item {
        max-width: 100%;
    }
    
    header h1 {
        font-size: 1.8rem;
        padding: 25px 15px;
        text-shadow: 
            1px 1px 0px #ffb7c5,
            2px 2px 0px #ffc0cb,
            0 0 10px rgba(255, 255, 255, 0.6);
        letter-spacing: 1px;
    }
}

/* アニメーション */
.thumbnail-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.thumbnail-item:nth-child(1) { animation-delay: 0.1s; }
.thumbnail-item:nth-child(2) { animation-delay: 0.2s; }
.thumbnail-item:nth-child(3) { animation-delay: 0.3s; }
.thumbnail-item:nth-child(4) { animation-delay: 0.4s; }
.thumbnail-item:nth-child(5) { animation-delay: 0.5s; }
.thumbnail-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* h1タイトル用のアニメーション */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatPattern {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
    }
    50% {
        transform: translateX(5px) translateY(-10px);
    }
    75% {
        transform: translateX(-5px) translateY(5px);
    }
}

/* 可愛い装飾要素 */
header h1::before {
    content: "💙";
    margin-right: 10px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 10px rgba(135, 206, 235, 0.8));
    font-size: 1.2em;
    text-shadow: 0 0 15px rgba(30, 144, 255, 0.6);
}

header h1::after {
    content: "☁️";
    margin-left: 10px;
    animation: bounce 2s infinite 0.5s;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    font-size: 1.1em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}