/**
 * FanzaTik Main Stylesheet (Final Edition)
 * * Animation: Clickable Pulse & Hint
 * * Logic: No Pause on Hover (Infinite)
 */

/* =================================================================
    1. Global Resets & Variables
   ================================================================= */
:root {
    --primary-color: #ff007f;
    --primary-gradient: linear-gradient(135deg, #ff007f, #ff5e9c);
    --background-color: #000000;
    --surface-color: #121212;
    --header-bg: rgba(0, 0, 0, 0.95);
    --header-border: #333;
    
    --text-color: #ff007f; 
    --text-color-muted: #ff80bf;
    --text-white: #ffffff;

    --header-height: 60px;
    --mobile-tab-bar-height: calc(60px + env(safe-area-inset-bottom));
    --manga-slide-duration: 20s;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

body.video-feed-is-active { overflow: hidden; height: 100dvh; width: 100vw; }

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
img, video { max-width: 100%; height: auto; vertical-align: middle; }

/* =================================================================
   2. Header Styles
   ================================================================= */
/* (Header styles same as robust version V23.3 - No changes needed here, maintaining stability) */
.site-header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); background-color: var(--header-bg); border-bottom: 1px solid var(--header-border); z-index: 1000; display: flex; align-items: center; padding: 0 15px; }
.header-inner { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; max-width: 320px; flex-shrink: 0; overflow: visible; }
.site-logo { font-size: 1.6rem; font-weight: 800; color: var(--primary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* FanzaTik ロゴスタイル */
.fanzatik-logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    overflow: visible;
}

/* ロゴ画像 */
.fanzatik-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(0, 242, 234, 0.5)) drop-shadow(0 0 10px rgba(255, 0, 80, 0.5));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { 
        filter: drop-shadow(0 0 5px rgba(0, 242, 234, 0.3)) drop-shadow(0 0 5px rgba(255, 0, 80, 0.3));
    }
    100% { 
        filter: drop-shadow(0 0 15px rgba(0, 242, 234, 0.7)) drop-shadow(0 0 15px rgba(255, 0, 80, 0.7));
    }
}

/* FanzaTikテキスト */
.logo-text {
    display: flex;
    align-items: baseline;
}

.logo-fanza {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ff007f;
    text-shadow: 
        0 0 10px rgba(255, 0, 127, 0.6),
        0 0 20px rgba(255, 0, 127, 0.4);
    animation: fanzaGlow 2s ease-in-out infinite alternate;
}

.logo-tik {
    font-size: 1.6rem;
    font-weight: 900;
    color: #00d4ff;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 20px rgba(0, 212, 255, 0.4);
    animation: tikGlow 2s ease-in-out infinite alternate 0.5s;
}

/* FanzaTik 統合テキストスタイル */
.logo-fanzatik {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ff007f 0%, #ff007f 45%, #00d4ff 55%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.5)) drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
    animation: fanzatikGlow 2s ease-in-out infinite alternate;
    letter-spacing: 0.5px;
}

@keyframes fanzatikGlow {
    0% { 
        filter: drop-shadow(0 0 5px rgba(255, 0, 127, 0.3)) drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
    }
    100% { 
        filter: drop-shadow(0 0 12px rgba(255, 0, 127, 0.7)) drop-shadow(0 0 12px rgba(0, 212, 255, 0.7));
    }
}

@keyframes fanzaGlow {
    0% { text-shadow: 0 0 5px rgba(255, 0, 127, 0.4), 0 0 10px rgba(255, 0, 127, 0.2); }
    100% { text-shadow: 0 0 15px rgba(255, 0, 127, 0.8), 0 0 30px rgba(255, 0, 127, 0.5); }
}

@keyframes tikGlow {
    0% { text-shadow: 0 0 5px rgba(0, 212, 255, 0.4), 0 0 10px rgba(0, 212, 255, 0.2); }
    100% { text-shadow: 0 0 15px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.5); }
}

/* モバイル用ロゴ */
.fanzatik-logo-mobile {
    display: flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.fanzatik-logo-img-mobile {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(0, 242, 234, 0.5)) drop-shadow(0 0 8px rgba(255, 0, 80, 0.5));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo-text-mobile {
    display: flex;
    align-items: baseline;
}

.logo-text-mobile .logo-fanza {
    font-size: 1.3rem;
}

.logo-text-mobile .logo-tik {
    font-size: 1.3rem;
}

.logo-text-mobile .logo-fanzatik {
    font-size: 1.4rem;
}

.header-left-mobile {
    display: flex;
    align-items: center;
}

/* モバイル用調整 */
@media (max-width: 768px) {
    .fanzatik-logo-img {
        width: 40px;
        height: 40px;
    }
    .logo-fanza, .logo-tik {
        font-size: 1.3rem;
    }
}

/* 旧ロゴスタイル（後方互換用） */
.hitomi-logo { font-family: 'Arial', sans-serif; font-weight: 900; font-style: italic; color: var(--primary-color); letter-spacing: 1px; text-transform: lowercase; }

/* ★★★ SNS共有ボタン - リッチデザイン ★★★ */
.sns-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
    position: relative;
}

/* 共有ヒントラベル（初回表示用） */
.sns-share-buttons::before {
    content: 'タップで共有';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.9) 0%, rgba(0, 212, 255, 0.9) 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    animation: shareHintPulse 10s ease-in-out infinite;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(255, 0, 127, 0.3);
}

.sns-share-buttons::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(255, 0, 127, 0.9);
    opacity: 0;
    animation: shareHintPulse 10s ease-in-out infinite;
}

@-webkit-keyframes shareHintPulse {
    0%, 100% { opacity: 0; -webkit-transform: translateX(-50%) translateY(5px); transform: translateX(-50%) translateY(5px); }
    5%, 15% { opacity: 1; -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }
    20%, 95% { opacity: 0; -webkit-transform: translateX(-50%) translateY(5px); transform: translateX(-50%) translateY(5px); }
}

@keyframes shareHintPulse {
    0%, 100% { opacity: 0; -webkit-transform: translateX(-50%) translateY(5px); transform: translateX(-50%) translateY(5px); }
    5%, 15% { opacity: 1; -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }
    20%, 95% { opacity: 0; -webkit-transform: translateX(-50%) translateY(5px); transform: translateX(-50%) translateY(5px); }
}

.sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    cursor: pointer;
    animation: snsFloat 3s ease-in-out infinite;
}

.sns-btn:nth-child(1) { animation-delay: 0s; }
.sns-btn:nth-child(2) { animation-delay: 0.3s; }
.sns-btn:nth-child(3) { animation-delay: 0.6s; }

@-webkit-keyframes snsFloat {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-3px); transform: translateY(-3px); }
}

@keyframes snsFloat {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-3px); transform: translateY(-3px); }
}

/* リップルエフェクト */
.sns-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.sns-btn:active::before {
    width: 120%;
    height: 120%;
    opacity: 0;
}

/* グロー効果 */
.sns-btn::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sns-btn:hover::after {
    opacity: 1;
    animation: snsGlow 1.5s ease-in-out infinite;
}

@keyframes snsGlow {
    0%, 100% { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
    50% { box-shadow: 0 0 15px currentColor, 0 0 25px currentColor; }
}

/* X (Twitter) ボタン - リッチタップアニメーション */
.sns-btn.sns-twitter {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #fff;
    animation: xButtonPulse 2s ease-in-out infinite, snsFloat 3s ease-in-out infinite;
}

/* Xボタン専用パルスアニメーション */
@keyframes xButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 
                    0 0 0 0 rgba(255, 0, 127, 0.7),
                    0 0 0 0 rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 
                    0 0 0 8px rgba(255, 0, 127, 0),
                    0 0 0 12px rgba(0, 212, 255, 0);
    }
}

/* Xボタンのグローリング */
.sns-btn.sns-twitter::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.6), rgba(0, 212, 255, 0.6));
    z-index: -1;
    animation: xGlowRing 2s ease-in-out infinite;
}

@keyframes xGlowRing {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

.sns-btn.sns-twitter:hover {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.15) rotate(5deg);
    animation: none;
}

.sns-btn.sns-twitter:hover::after {
    animation: none;
    opacity: 1;
}

.sns-btn.sns-twitter:active {
    transform: translateY(-2px) scale(1.05);
}

/* Instagram ボタン */
.sns-btn.sns-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sns-btn.sns-instagram::after {
    background: linear-gradient(135deg, #f09433 0%, #bc1888 100%);
}

.sns-btn.sns-instagram:hover {
    box-shadow: 0 6px 30px rgba(225, 48, 108, 0.7), 0 0 40px rgba(225, 48, 108, 0.4);
    transform: translateY(-5px) scale(1.15) rotate(-5deg);
}

.sns-btn.sns-instagram:active {
    transform: translateY(-2px) scale(1.05);
}

/* Facebook ボタン */
.sns-btn.sns-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sns-btn.sns-facebook::after {
    background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
}

.sns-btn.sns-facebook:hover {
    box-shadow: 0 6px 30px rgba(24, 119, 242, 0.7), 0 0 40px rgba(24, 119, 242, 0.4);
    transform: translateY(-5px) scale(1.15) rotate(5deg);
}

.sns-btn.sns-facebook:active {
    transform: translateY(-2px) scale(1.05);
}

/* LINE ボタン */
.sns-btn.sns-line {
    background: linear-gradient(135deg, #00c300 0%, #00b300 100%);
    box-shadow: 0 4px 15px rgba(0, 195, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sns-btn.sns-line::after {
    background: linear-gradient(135deg, #00c300 0%, #00b300 100%);
}

.sns-btn.sns-line:hover {
    box-shadow: 0 6px 30px rgba(0, 195, 0, 0.7), 0 0 40px rgba(0, 195, 0, 0.4);
    transform: translateY(-5px) scale(1.15) rotate(-5deg);
}

.sns-btn.sns-line:active {
    transform: translateY(-2px) scale(1.05);
}

/* Instagramシェアメッセージモーダル */
.instagram-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.instagram-share-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.instagram-share-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 127, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.instagram-share-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
}

.instagram-share-modal h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f09433 0%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-share-modal p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.instagram-share-modal-url {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 20px;
}

.instagram-share-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.instagram-share-modal-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.instagram-share-modal-btn.copy-btn {
    background: linear-gradient(135deg, #f09433 0%, #bc1888 100%);
    color: #fff;
}

.instagram-share-modal-btn.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.5);
}

.instagram-share-modal-btn.close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.instagram-share-modal-btn.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.instagram-share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.instagram-share-modal-close:hover {
    color: #fff;
}

/* アイコンアニメーション */
.sns-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.sns-btn:hover i {
    animation: snsIconBounce 0.5s ease-in-out;
}

@keyframes snsIconBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(0.9); }
    50% { transform: scale(1.2); }
    75% { transform: scale(1.1); }
}

/* ツールチップ（ホバー時） */
.sns-btn[title]::before {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.sns-btn[title]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* モバイル用SNS共有ボタン */
.sns-share-buttons-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.sns-btn-mobile {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    cursor: pointer;
    -webkit-animation: snsFloat 3s ease-in-out infinite;
    animation: snsFloat 3s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

.sns-btn-mobile:nth-child(1) { -webkit-animation-delay: 0s; animation-delay: 0s; }
.sns-btn-mobile:nth-child(2) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; }
.sns-btn-mobile:nth-child(3) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; }

/* モバイル用ボタンの背景色 */
.sns-btn-mobile.sns-twitter {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    animation: xButtonPulseMobile 2s ease-in-out infinite, snsFloat 3s ease-in-out infinite;
    position: relative;
}

/* モバイルXボタン専用パルスアニメーション */
@keyframes xButtonPulseMobile {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), 
                    0 0 0 0 rgba(255, 0, 127, 0.6),
                    0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), 
                    0 0 0 6px rgba(255, 0, 127, 0),
                    0 0 0 10px rgba(0, 212, 255, 0);
    }
}

/* モバイルXボタンのグローリング */
.sns-btn-mobile.sns-twitter::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.5), rgba(0, 212, 255, 0.5));
    z-index: -1;
    animation: xGlowRingMobile 2s ease-in-out infinite;
}

@keyframes xGlowRingMobile {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.12);
    }
}

.sns-btn-mobile.sns-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 3px 10px rgba(225, 48, 108, 0.4);
}

.sns-btn-mobile.sns-line {
    background: linear-gradient(135deg, #00c300 0%, #00b300 100%);
    box-shadow: 0 3px 10px rgba(0, 195, 0, 0.4);
}

/* モバイル用タップエフェクト */
.sns-btn-mobile:active {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
}

/* モバイル用タップヒント */
.sns-share-buttons-mobile::before {
    content: '共有';
    position: absolute;
    bottom: -22px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.9) 0%, rgba(0, 212, 255, 0.9) 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    -webkit-animation: shareHintPulse 10s ease-in-out infinite;
    animation: shareHintPulse 10s ease-in-out infinite;
    pointer-events: none;
}
.header-pc { display: none; width: 100%; justify-content: space-between; align-items: center; margin-left: 20px; }
.main-navigation-pc { display: flex; gap: 15px; align-items: center; flex-wrap: nowrap; }
.main-navigation-pc a { color: var(--text-color-muted); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.main-navigation-pc a:hover, .main-navigation-pc a.active { color: var(--primary-color); }
.mode-switch-link { border: 1px solid var(--primary-color); padding: 5px 15px; border-radius: 20px; color: var(--primary-color) !important; transition: background 0.3s; }
.mode-switch-link:hover { background: var(--primary-color); color: #fff !important; }
.menu-item-has-children { position: relative; padding: 10px 0; }
.mega-menu { position: absolute; top: 100%; left: -20px; width: 600px; background: rgba(0, 0, 0, 0.95); border: 1px solid var(--primary-color); border-radius: 8px; padding: 20px; z-index: 2000; visibility: hidden; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.menu-item-has-children:hover .mega-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.mega-menu-search { display: flex; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.mega-menu-search-field { flex: 1; background: transparent; border: none; color: #fff; outline: none; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 400px; overflow-y: auto; }
.mega-menu-item { font-size: 0.8rem; color: #ccc; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-menu-item:hover { color: var(--primary-color); }
.header-right { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.search-form-pc { display: flex; background: #222; border-radius: 20px; padding: 5px 15px; border: 1px solid var(--primary-color); }
.search-field { background: transparent; border: none; color: var(--primary-color); outline: none; width: 120px; transition: width 0.3s; }
.search-field:focus { width: 180px; }
.search-submit { background: transparent; border: none; color: var(--primary-color); cursor: pointer; }
.header-mobile { display: flex; flex: 1; justify-content: space-between; align-items: center; }
.header-right-mobile { display: flex; gap: 15px; }

/* PC表示時のヘッダー切り替え */
@media (min-width: 992px) {
    .header-pc { display: flex !important; }
    .header-mobile { display: none !important; }
}
.header-icon-btn { background: none; border: none; color: var(--primary-color); font-size: 1.4rem; padding: 5px; cursor: pointer; }
#mobile-search-container { position: absolute; top: 0; left: 0; width: 100%; height: var(--header-height); background-color: #000; display: flex; align-items: center; padding: 0 15px; transform: translateY(-100%); transition: transform 0.3s ease; z-index: 1001; }
#mobile-search-container.is-visible { transform: translateY(0); }
.search-form-mobile-wrapper { width: 100%; }
.search-form-mobile { display: flex; background: #222; border-radius: 4px; padding: 8px 15px; border: 1px solid var(--primary-color); }
.search-field-mobile { flex: 1; background: transparent; border: none; color: var(--primary-color); font-size: 1rem; outline: none; }
.search-submit-mobile { background: transparent; border: none; color: var(--primary-color); padding: 0 5px; }

/* =================================================================
   3. Feed Container
   ================================================================= */
#video-feed-container { height: 100dvh; width: 100vw; overflow-y: scroll; scroll-snap-type: y mandatory; background-color: #000; scrollbar-width: none; }
#video-feed-container::-webkit-scrollbar { display: none; }
.video-slide { height: 100dvh; width: 100vw; scroll-snap-align: start; position: relative; overflow: hidden; background: #000; display: flex; justify-content: center; align-items: center; }
.video-player-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.video-player { width: 100%; height: 100%; object-fit: contain; }
.video-playback-icon-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 4rem; color: rgba(255, 0, 127, 0.8); opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 20; }
.video-playback-icon-container.visible { opacity: 1; }

/* ★ Tap Overlay for Double-tap and Progress Bar interaction */
.video-tap-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 15; pointer-events: auto; }

/* =================================================================
   4. Manga Viewer (Optimization: No Pause, No Hover Stop)
   ================================================================= */
.manga-viewer-container { width: 100%; height: 100%; overflow: hidden; position: relative; background: #111; }
.manga-viewer-link { display: block; width: 100%; height: 100%; color: inherit; }
.manga-slide-container { width: 100%; height: 100%; display: flex; align-items: center; position: relative; }

/* ★修正: JavaScriptでスライド制御（最後のページまで表示してからループ） */
.manga-slide-track { 
    display: flex; 
    height: 100%; 
    width: max-content; 
    transition: transform 0.5s ease-out;
}
.manga-slide-track img { height: 100%; width: auto; object-fit: contain; flex-shrink: 0; border-right: 2px solid #000; }
.manga-cover-static { width: 100%; height: 100%; object-fit: contain; }
.manga-overlay-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); pointer-events: none; z-index: 5; }

/* =================================================================
   5. Overlay UI & Visual Cues
   ================================================================= */
.video-overlay { position: absolute; bottom: var(--mobile-tab-bar-height); left: 0; width: 100%; padding: 10px 15px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 30; pointer-events: none; }
.video-overlay-left { flex: 1; padding-right: 60px; pointer-events: auto; }
.video-title-wrapper { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }

/* ★ Visual Animation: Clickable Pulse for Thumbnail */
.video-title-thumbnail-link { 
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.video-title-thumbnail-link img { 
    width: 50px; height: 50px; min-width: 50px; min-height: 50px; 
    border-radius: 50%; border: 2px solid var(--primary-color); object-fit: cover; flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ★ Thumbnail Hover/Active Effects */
.video-title-thumbnail-link:hover img,
.video-title-thumbnail-link:active img {
    transform: scale(1.15);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.8), 0 0 40px rgba(255, 0, 127, 0.4);
}

/* ★ Thumbnail Pulse Animation */
.video-title-thumbnail-link::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transform: translate(-50%, -50%);
    animation: thumbnailRipple 2s infinite;
    pointer-events: none;
}
@keyframes thumbnailRipple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ★ Tap Indicator Icon */
.video-title-thumbnail-link::after {
    content: '\f35d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: -5px; right: -5px;
    width: 22px; height: 22px;
    background: linear-gradient(135deg, #ff007f, #ff5a5f);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    animation: tapIconBounce 1.5s infinite;
    pointer-events: none;
}
@keyframes tapIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ★ Visual Animation: Title with Glow Effect */
.video-title { 
    font-size: 1.1rem; font-weight: 700; color: var(--primary-color); 
    text-shadow: 0 1px 3px rgba(0,0,0,0.9); margin: 0; line-height: 1.3; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
}
.video-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}
.video-title-link:hover,
.video-title-link:active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.8), 0 0 20px rgba(255, 0, 127, 0.5), 0 1px 3px rgba(0,0,0,0.9);
}

/* ★ Title Arrow Animation */
.title-arrow {
    display: inline-block; font-size: 0.9em; margin-left: 5px;
    animation: bounceRight 1.5s infinite;
}
@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ★ Title Wrapper Hover Effect */
.video-title-wrapper {
    display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
}
.video-title-wrapper:hover {
    background: rgba(255, 0, 127, 0.15);
    transform: translateX(5px);
}

/* ★ "Tap to View" Hint Badge */
.tap-hint-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.9), rgba(255, 90, 95, 0.9));
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    margin-left: auto;
    white-space: nowrap;
    animation: hintPulse 2s infinite;
    box-shadow: 0 2px 10px rgba(255, 0, 127, 0.4);
}
.tap-hint-badge i {
    font-size: 10px;
}
@keyframes hintPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.video-meta { font-size: 0.9rem; color: var(--text-color-muted); text-shadow: 0 1px 2px rgba(0,0,0,0.9); }
.video-meta .meta-item { display: inline-flex; align-items: center; margin-right: 10px; }
.taxonomy-link { color: var(--primary-color); font-weight: 600; margin-left: 5px; }
.video-overlay-right { width: 50px; display: flex; flex-direction: column; gap: 18px; align-items: center; pointer-events: auto; padding-bottom: 15px; }
.action-btn { background: none; border: none; padding: 0; display: flex; flex-direction: column; align-items: center; color: #fff; cursor: pointer; text-decoration: none; }
.action-btn-icon-wrapper { width: 45px; height: 45px; background: rgba(0, 0, 0, 0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 4px; transition: transform 0.1s; color: #fff; }
.action-btn.active .action-btn-icon-wrapper i { color: var(--primary-color); }
.action-btn:active .action-btn-icon-wrapper { transform: scale(0.9); }
.action-btn .count, .action-btn .label { font-size: 10px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.8); color: #fff; text-align: center; white-space: nowrap; }
.video-progress-bar-container { height: 20px; width: 100%; background: transparent; margin-bottom: 10px; border-radius: 2px; position: relative; cursor: pointer; z-index: 35; }
.video-progress-bar-container::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px; }
.seek-progress { position: absolute; bottom: 8px; left: 0; height: 3px; background: var(--primary-color); width: 0%; border-radius: 2px; z-index: 1; }

/* =================================================================
   6. Bottom Navigation
   ================================================================= */
.mobile-tab-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: var(--mobile-tab-bar-height); background: #000; border-top: 1px solid #222; display: flex; justify-content: space-around; align-items: center; z-index: 1000; padding-bottom: env(safe-area-inset-bottom); }
.tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #666; background: none; border: none; flex: 1; text-decoration: none; padding: 5px 0; }
.tab-item i { font-size: 22px; margin-bottom: 2px; }
.tab-item span { font-size: 10px; }
.tab-item.active { color: var(--primary-color); }

/* =================================================================
   7. Single Page
   ================================================================= */
.single-video-main { padding: 80px 15px 40px; min-height: 100vh; }
.entry-title-h1 { font-size: 1.4rem; color: var(--primary-color); border-left: 4px solid var(--primary-color); padding-left: 15px; margin-bottom: 20px; line-height: 1.4; word-wrap: break-word; }
.related-videos-section { margin-top: 40px; }
.related-videos-title { color: var(--primary-color); font-size: 1.2rem; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px; }
.related-videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.related-video-item { background: #111; border-radius: 8px; overflow: hidden; }
.related-video-thumbnail { position: relative; aspect-ratio: 16/9; }
.related-video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.related-video-item-title { font-size: 0.9rem; padding: 10px; margin: 0; color: var(--primary-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =================================================================
   8. Chat Style Comments
   ================================================================= */
.fzt-modal-panel { background: #121212; border-top: 1px solid var(--primary-color); }
.fzt-modal-header { border-bottom: 1px solid #333; padding: 15px; color: var(--primary-color); }
.comment-list { padding: 15px; background: #000; }
.comment-list li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #222; display: flex; gap: 10px; }
.comment-body { background: #222; padding: 10px 15px; border-radius: 0 15px 15px 15px; color: #fff; font-size: 0.95rem; max-width: 85%; }
.fn { color: var(--primary-color); font-weight: bold; font-size: 0.8rem; margin-bottom: 3px; display: block; }
.comment-form-wrapper { padding: 10px; background: #1a1a1a; border-top: 1px solid #333; }
.simple-comment-form { display: flex; align-items: center; gap: 10px; }
.simple-comment-area { flex: 1; }
#commentform-modal textarea { width: 100%; height: 45px; background: #333; border: 1px solid #444; border-radius: 25px; padding: 10px 15px; color: #fff; font-size: 0.9rem; outline: none; resize: none; transition: border-color 0.2s; }
#commentform-modal textarea:focus { border-color: var(--primary-color); }
.submit-comment-btn { background: var(--primary-color); color: #fff; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 0 10px rgba(255, 0, 127, 0.4); transition: transform 0.1s; }
.submit-comment-btn:active { transform: scale(0.9); }

/* コメントフォームの不要な要素を非表示 */
.comment-form-cookies-consent,
.comment-notes,
p.comment-form-cookies-consent,
#commentform-modal .comment-form-cookies-consent {
    display: none !important;
}

/* コメントフォームのレイアウト修正 */
.simple-comment-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #1a1a1a;
}
.simple-comment-area {
    flex: 1;
    min-width: 0;
}
#commentform-modal textarea {
    width: 100%;
    min-height: 45px;
    max-height: 120px;
    background: #333;
    border: 1px solid #444;
    border-radius: 25px;
    padding: 12px 18px;
    color: #fff;
    font-size: 16px;
    outline: none;
    resize: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

/* =================================================================
   9. Utility & Modal Styles
   ================================================================= */
.fzt-modal-container { z-index: 2000; position: fixed; top: 0; left: 0; width: 100%; height: 100%; visibility: hidden; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.fzt-modal-container.is-visible { visibility: visible; opacity: 1; pointer-events: auto; }
.fzt-modal-scrim { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.fzt-modal-panel { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    max-height: 75%; 
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%); 
    border-top: 2px solid var(--primary-color); 
    border-radius: 24px 24px 0 0; 
    transform: translateY(100%); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    display: flex; 
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(255, 0, 127, 0.2), 0 -5px 20px rgba(0, 0, 0, 0.5);
}
.fzt-modal-container.is-visible .fzt-modal-panel { transform: translateY(0); }

/* ★★★ リッチなモーダルヘッダー ★★★ */
.fzt-modal-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(255, 0, 127, 0.3);
    background: linear-gradient(180deg, rgba(255, 0, 127, 0.1) 0%, transparent 100%);
    position: relative;
}
.fzt-modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}
.fzt-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}
.fzt-modal-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.fzt-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* ★★★ リッチなタクソノミーメニュー ★★★ */
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
}
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px 20px;
}
.mobile-menu-term-group {
    margin-bottom: 20px;
}
.mobile-menu-term-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    padding: 10px 15px;
    background: linear-gradient(90deg, rgba(255, 0, 127, 0.2) 0%, transparent 100%);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}
.mobile-menu-term-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.mobile-menu-term-group li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
}
.mobile-menu-term-group li a:hover,
.mobile-menu-term-group li a:active {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.3) 0%, rgba(255, 0, 127, 0.1) 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.2);
}
.mobile-menu-term-group li a .count {
    font-size: 0.75rem;
    color: var(--primary-color);
    background: rgba(255, 0, 127, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* ★★★ リッチなA-Zインデックス ★★★ */
.mobile-menu-az-index {
    display: flex;
    flex-direction: column;
    padding: 10px 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 127, 0.1) 100%);
    border-left: 1px solid rgba(255, 0, 127, 0.2);
    gap: 2px;
}
.az-index-link {
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    border-radius: 6px;
    transition: all 0.2s;
}
.az-index-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ★★★ リッチなソートメニュー ★★★ */
.sort-menu-body {
    padding: 20px;
}
.sort-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sort-menu-list li {
    margin-bottom: 10px;
}
.sort-menu-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}
.sort-menu-list li a:hover,
.sort-menu-list li a:active {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.4) 0%, rgba(255, 0, 127, 0.15) 100%);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 0, 127, 0.25);
}
.sort-menu-list li a i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff5e9c 100%);
    border-radius: 12px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
}
.sort-menu-list li a span {
    flex: 1;
}

/* ★★★ 検索フィールドのリッチ化 ★★★ */
.mobile-search-wrapper {
    padding: 15px !important;
    position: sticky !important;
    top: 0 !important;
    background: linear-gradient(180deg, #1a1a1a 0%, rgba(26, 26, 26, 0.95) 100%) !important;
    z-index: 10 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#taxonomy-search {
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    border: 2px solid rgba(255, 0, 127, 0.3) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    font-size: 1rem !important;
    transition: all 0.3s !important;
}
#taxonomy-search:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.3) !important;
    outline: none !important;
}
#taxonomy-search::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.loading-spinner-wrapper { padding: 30px; display: flex; justify-content: center; }
.loading-spinner { 
    width: 40px; 
    height: 40px; 
    border: 3px solid rgba(255, 0, 127, 0.2); 
    border-top-color: var(--primary-color); 
    border-radius: 50%; 
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Desktop Adjustments */
@media (min-width: 992px) {
    .site-header { padding: 0 40px; }
    #mobile-search-toggle, .mobile-tab-bar { display: flex; }
    .related-videos-grid { grid-template-columns: repeat(4, 1fr); }
}
/* AI Review Section in Feed */
.ai-review-section {
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
}
.ai-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 8px;
}
.ai-review-header i {
    font-size: 14px;
}
.ai-review-content {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}
/* PC表示最適化 - TikTokページ＆シングルページ */

/* PC用ヘッダーナビゲーション強化 */
@media (min-width: 992px) {
    /* PC用ボトムバー（TikTokページ用） */
    .pc-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid #333;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        gap: 10px;
    }
    
    .pc-bottom-bar .tab-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 20px;
        color: #888;
        text-decoration: none;
        font-size: 14px;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
    .pc-bottom-bar .tab-item:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .pc-bottom-bar .tab-item.active {
        color: #ff6b6b;
        background: rgba(255, 107, 107, 0.1);
    }
    
    .pc-bottom-bar .tab-item i {
        font-size: 18px;
    }
    
    .pc-bottom-bar .tab-item span {
        font-size: 13px;
        font-weight: 500;
    }
    
    /* TikTokページ用のPC表示調整 */
    body.tiktok-page .mobile-tab-bar {
        display: flex !important;
    }
    
    /* video-feed-containerのPC表示調整 */
    .video-feed-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* video-slideのPC表示調整 */
    .video-slide {
        max-width: 100%;
    }
    
    /* video-overlayのPC表示調整 */
    .video-overlay {
        bottom: 70px;
    }
    
    /* action-buttonsのPC表示調整 */
    .action-buttons {
        right: 20px;
        bottom: 100px;
    }
}

/* シングルページのレスポンシブレイアウト */
@media (min-width: 768px) {
    .single-video-main {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .single-video-content {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 30px;
    }
    
    .video-player-wrapper {
        position: relative;
        width: 100%;
        max-height: 70vh;
        aspect-ratio: 16/9;
    }
    
    .video-player-wrapper video,
    .video-player-wrapper .manga-slide-container {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .video-info-section {
        padding: 20px;
        background: #1a1a1a;
        border-radius: 12px;
    }
    
    .video-meta-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* サイドバー */
    .video-sidebar {
        position: sticky;
        top: 80px;
        height: fit-content;
    }
    
    /* レビューセクション */
    .ai-review-section,
    .review-section {
        max-width: 100%;
        padding: 25px;
        border-radius: 12px;
    }
    
    .ai-review-section h3,
    .review-section h3 {
        font-size: 1.5rem;
    }
}

/* 大画面用 */
@media (min-width: 1200px) {
    .single-video-main {
        max-width: 1400px;
    }
    
    .single-video-content {
        grid-template-columns: 1fr 450px;
    }
}

/* タブレット用 */
@media (min-width: 768px) and (max-width: 991px) {
    .single-video-content {
        grid-template-columns: 1fr;
    }
    
    .video-sidebar {
        position: relative;
        top: 0;
    }
}

/* CTAボタンスタイル */
.cta-button-container {
    margin: 30px 0;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    color: #fff;
}

.cta-button i {
    font-size: 20px;
}

.cta-button-secondary {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
}

.cta-button-secondary:hover {
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.5);
}

/* シングルページの縦長問題解決 */
@media (min-width: 768px) {
    .single-video-wrapper {
        display: flex;
        flex-direction: row;
        gap: 30px;
        padding: 20px;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .single-video-player-area {
        flex: 1;
        max-width: 800px;
    }
    
    .single-video-info-area {
        width: 400px;
        flex-shrink: 0;
    }
    
    /* 漫画スライドのPC表示 */
    .manga-slide-container {
        max-height: 80vh;
        overflow: hidden;
    }
    
    .manga-slide-container img {
        max-height: 80vh;
        width: auto;
        object-fit: contain;
    }
}

/* レビューセクションの改善 */
.review-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
}

.review-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-section-header i {
    font-size: 24px;
    color: #ff6b6b;
}

.review-section-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
}

.review-content {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 15px;
}

.review-content h4 {
    color: #ff6b6b;
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.review-content p {
    margin: 10px 0;
}

/* 抜きどころボックス */
.point-box {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.point-box h4 {
    color: #ff6b6b;
    margin: 0 0 10px;
    font-size: 1rem;
}

.point-box ul {
    margin: 0;
    padding-left: 20px;
}

.point-box li {
    color: #e0e0e0;
    margin: 5px 0;
}

/* 評価スター */
.rating-stars {
    display: flex;
    gap: 5px;
    margin: 15px 0;
}

.rating-stars i {
    color: #ffd700;
    font-size: 20px;
}

.rating-stars i.empty {
    color: #444;
}


/* ★★★ フィルターアコーディオン（ジャンル・女優・作者）のリッチデザイン ★★★ */
.filter-accordion {
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.filter-accordion:hover {
    border-color: rgba(255, 0, 127, 0.3);
    box-shadow: 0 5px 25px rgba(255, 0, 127, 0.15);
}

.filter-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-accordion-header:hover {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.25) 0%, rgba(0, 212, 255, 0.15) 100%);
}

.filter-accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-accordion-title i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff007f 0%, #00d4ff 100%);
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}

.filter-accordion-count {
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.3) 0%, rgba(0, 212, 255, 0.2) 100%);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-accordion-arrow {
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.filter-accordion.open .filter-accordion-arrow {
    transform: rotate(180deg);
}

.filter-accordion-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
}

/* カスタムスクロールバー */
.filter-accordion-content::-webkit-scrollbar {
    width: 8px;
}

.filter-accordion-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.filter-accordion-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff007f 0%, #00d4ff 100%);
    border-radius: 4px;
}

.filter-accordion-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff3399 0%, #33ddff 100%);
}

/* 検索ラッパー */
.filter-search-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.filter-search-icon {
    position: absolute;
    left: 15px;
    top: 18px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    z-index: 1;
    pointer-events: none;
}

.filter-search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 0, 127, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-search-input:focus {
    outline: none;
    border-color: #ff007f;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.filter-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.filter-search-hint {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-search-hint i {
    color: #00d4ff;
}

/* セクションラベル */
.filter-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section-label i {
    color: #ffd700;
}

/* タグのグリッドレイアウト */
.filter-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* フィルタータグ */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-tag:hover {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.3) 0%, rgba(0, 212, 255, 0.2) 100%);
    border-color: rgba(255, 0, 127, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 127, 0.25);
    color: #fff;
}

.filter-tag-name {
    font-weight: 500;
}

.filter-tag-count {
    padding: 3px 8px;
    background: rgba(255, 0, 127, 0.3);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

/* 検索結果エリア */
.filter-search-results {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ソートメニューのスクロールバー */
.sort-menu-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.sort-menu-body::-webkit-scrollbar {
    width: 8px;
}

.sort-menu-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.sort-menu-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff007f 0%, #00d4ff 100%);
    border-radius: 4px;
}

.sort-menu-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff3399 0%, #33ddff 100%);
}

/* ソートメニューのセクションタイトル */
.sort-menu-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0 10px;
    margin: 15px 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sort-menu-section-title:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}


/* =================================================================
   TikTokページ サムネイル タップアニメーション
   ================================================================= */

/* サムネイル基本スタイル */
.video-slide .video-player-container,
.manga-slide .manga-image-container {
    position: relative;
    cursor: pointer;
}

/* タップヒントオーバーレイ */
.tap-hint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 15;
}

.video-slide:hover .tap-hint-overlay,
.manga-slide:hover .tap-hint-overlay {
    opacity: 1;
}

/* タップアイコン */
.tap-hint-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.9) 0%, rgba(0, 212, 255, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tapPulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.5), 0 0 60px rgba(0, 212, 255, 0.3);
}

.tap-hint-icon i {
    font-size: 32px;
    color: white;
    animation: tapBounce 1s ease-in-out infinite;
}

/* タップテキスト */
.tap-hint-text {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: tapTextFade 2s ease-in-out infinite;
}

/* パルスアニメーション */
@keyframes tapPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 0, 127, 0.5), 0 0 60px rgba(0, 212, 255, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 50px rgba(255, 0, 127, 0.7), 0 0 80px rgba(0, 212, 255, 0.5);
    }
}

@-webkit-keyframes tapPulse {
    0%, 100% {
        -webkit-transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 0, 127, 0.5), 0 0 60px rgba(0, 212, 255, 0.3);
    }
    50% {
        -webkit-transform: scale(1.1);
        box-shadow: 0 0 50px rgba(255, 0, 127, 0.7), 0 0 80px rgba(0, 212, 255, 0.5);
    }
}

/* バウンスアニメーション */
@keyframes tapBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@-webkit-keyframes tapBounce {
    0%, 100% {
        -webkit-transform: translateY(0);
    }
    50% {
        -webkit-transform: translateY(-5px);
    }
}

/* テキストフェードアニメーション */
@keyframes tapTextFade {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@-webkit-keyframes tapTextFade {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* リップルエフェクト（タップ時） */
.tap-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.6) 0%, rgba(0, 212, 255, 0.3) 50%, transparent 70%);
    transform: scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 20;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@-webkit-keyframes rippleExpand {
    0% {
        -webkit-transform: scale(0);
        opacity: 1;
    }
    100% {
        -webkit-transform: scale(4);
        opacity: 0;
    }
}

/* モバイル向け - タッチフィードバック */
@media (max-width: 768px) {
    .video-slide:active .tap-hint-overlay,
    .manga-slide:active .tap-hint-overlay {
        opacity: 1;
    }
    
    .tap-hint-icon {
        width: 60px;
        height: 60px;
    }
    
    .tap-hint-icon i {
        font-size: 24px;
    }
    
    .tap-hint-text {
        font-size: 12px;
    }
}

/* 初回訪問時のヒント表示 */
.video-slide.show-tap-hint .tap-hint-overlay,
.manga-slide.show-tap-hint .tap-hint-overlay {
    opacity: 1;
    animation: hintFadeInOut 3s ease-in-out forwards;
}

@keyframes hintFadeInOut {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@-webkit-keyframes hintFadeInOut {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
