/* =====================================================
   L!VE配信研究所 - TikTok風カラースタイルシート
   ===================================================== */

/* CSS変数定義 */
:root {
    /* TikTok風カラーパレット */
    --primary-gradient: linear-gradient(135deg, #0f0314 0%, #1a0b2e 50%, #0d0208 100%);
    --secondary-gradient: linear-gradient(135deg, #ff0050 0%, #fe2c55 50%, #e91e63 100%);
    --accent-gradient: linear-gradient(135deg, #25f4ee 0%, #ff0050 100%);
    --success-gradient: linear-gradient(135deg, #25f4ee 0%, #00f2ea 100%);
    
    /* TikTok風アクセントカラー */
    --tiktok-pink: #fe2c55;
    --tiktok-blue: #25f4ee;
    --tiktok-cyan: #00f2ea;
    --tiktok-purple: #8a2be2;
    --soft-dark: #161823;
    --medium-dark: #1e1e2e;
    
    /* 鮮やかなグロー効果 */
    --tiktok-glow-pink: 0 0 15px rgba(254, 44, 85, 0.6);
    --tiktok-glow-blue: 0 0 15px rgba(37, 244, 238, 0.6);
    --tiktok-glow-mixed: 0 0 12px rgba(254, 44, 85, 0.4), 0 0 24px rgba(37, 244, 238, 0.3);
    
    /* 読みやすい基本色 */
    --bg-primary: #000000;
    --bg-secondary: #161823;
    --bg-card: rgba(22, 24, 35, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #e8e8e8;
    --text-muted: #b8b8b8;
    --text-accent: #fe2c55;
    
    /* サイズ */
    --container-max: 1400px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--soft-dark) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* パーティクル背景 - TikTok風 */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(254, 44, 85, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(37, 244, 238, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(254, 44, 85, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, var(--soft-dark) 100%);
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--tiktok-pink);
    border-radius: 50%;
    box-shadow: var(--tiktok-glow-pink);
    animation: float 25s infinite linear;
    opacity: 0.7;
}

.particle:nth-child(even) {
    background: var(--tiktok-blue);
    box-shadow: var(--tiktok-glow-blue);
    animation-duration: 30s;
    opacity: 0.6;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* WordPress接続状況表示スタイル */
.connection-status, .help-content {
    background: linear-gradient(135deg, rgba(22, 24, 35, 0.95), rgba(16, 18, 35, 0.95));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.connection-status::before, .help-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tiktok-pink), transparent);
    animation: statusScan 4s ease-in-out infinite;
}

@keyframes statusScan {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.status-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--tiktok-pink);
    position: relative;
}

.status-section::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--tiktok-pink), var(--tiktok-purple));
    animation: statusPulse 3s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.status-section h3 {
    color: var(--tiktok-pink);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-shadow: none;
}

.connection-status ul, .help-content ul {
    list-style-type: none;
    padding-left: 0;
}

.connection-status li, .help-content li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.connection-status li:before, .help-content li:before {
    content: "▶";
    color: var(--tiktok-pink);
    position: absolute;
    left: 0;
    text-shadow: none;
}

.connection-status ol {
    padding-left: 1.5rem;
}

.connection-status ol li {
    padding-left: 0.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.connection-status ol li:before {
    content: none;
}

.connection-status code, .help-content code {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--tiktok-pink);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: none;
}

.connection-status a {
    color: var(--tiktok-pink);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.connection-status a:hover {
    text-shadow: 0 0 10px rgba(254, 44, 85, 0.8);
}

.connection-status a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--tiktok-pink);
    transition: width 0.3s ease;
}

.connection-status a:hover::after {
    width: 100%;
}

/* ローディング画面 - より明るく */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary), var(--soft-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.hologram-loader {
    text-align: center;
    position: relative;
}

/* カウントダウン - より明るく */
.countdown-container {
    margin-bottom: 2rem;
}

.countdown-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--tiktok-pink);
    text-shadow: var(--tiktok-glow-pink);
    animation: countdownPulse 1s ease-in-out;
    line-height: 1;
}

.countdown-text {
    font-size: 1.5rem;
    color: var(--tiktok-blue);
    text-shadow: var(--tiktok-glow-blue);
    margin-top: 1rem;
    letter-spacing: 0.2em;
    animation: textFlicker 2s ease-in-out infinite;
}

@keyframes countdownPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hologram-text {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--tiktok-pink), var(--tiktok-blue), var(--tiktok-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: neonPulse 2s ease-in-out infinite;
    text-shadow: var(--tiktok-glow-mixed);
}

.hologram-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.9; filter: brightness(1.1); }
}

.loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--tiktok-pink);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--tiktok-pink), var(--tiktok-blue), var(--tiktok-pink));
    border-radius: 3px;
    animation: loadingProgress 4s ease-in-out;
    box-shadow: var(--tiktok-glow-mixed);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ヘッダー - TikTok風 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--tiktok-pink);
    box-shadow: 0 0 30px rgba(254, 44, 85, 0.5), 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-container {
    position: relative;
}

.hologram-logo {
    position: relative;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--tiktok-pink), var(--tiktok-blue), var(--tiktok-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    text-shadow: var(--tiktok-glow-pink);
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--tiktok-pink);
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.hologram-logo:hover .logo-glow {
    opacity: 0.3;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    color: var(--tiktok-blue);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    background: rgba(37, 244, 238, 0.1);
    border: 1px solid rgba(37, 244, 238, 0.3);
    text-shadow: 0 0 8px rgba(37, 244, 238, 0.5);
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--tiktok-pink);
    transition: var(--transition);
    transform: translateX(-50%);
    box-shadow: var(--tiktok-glow-pink);
}

.nav-item:hover::before {
    width: 80%;
}

.nav-item:hover {
    color: var(--tiktok-pink);
    text-shadow: 0 0 15px rgba(254, 44, 85, 0.8);
    background: rgba(254, 44, 85, 0.15);
    border-color: var(--tiktok-pink);
    transform: translateY(-2px);
}

/* ドロップダウンナビゲーション */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--tiktok-cyan);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(37, 244, 238, 0.1);
    color: var(--tiktok-cyan);
    border-left-color: var(--tiktok-cyan);
    text-shadow: var(--tiktok-glow-cyan);
}

.dropdown-item.active {
    background: rgba(255, 20, 147, 0.1);
    color: var(--tiktok-pink);
    border-left-color: var(--tiktok-pink);
    text-shadow: var(--tiktok-glow-pink);
}

.chatbot-toggle {
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--tiktok-glow-mixed);
    font-size: 0.95rem;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--tiktok-glow-mixed), 0 8px 25px rgba(254, 44, 85, 0.4);
}

/* フッター */
.footer {
    background: linear-gradient(135deg, var(--medium-dark) 0%, var(--bg-primary) 100%);
    border-top: 2px solid var(--tiktok-pink);
    box-shadow: 0 -5px 20px rgba(254, 44, 85, 0.2);
    margin-top: 5rem;
    padding: 4rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--tiktok-pink);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: var(--tiktok-glow-pink);
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: var(--tiktok-glow-mixed);
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--tiktok-blue);
    text-shadow: var(--tiktok-glow-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.footer-disclaimer {
    font-size: 0.7rem !important;
    opacity: 0.7;
}

/* コンタクトモーダル */
.contact-modal, .info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.contact-modal.active, .info-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-form, .disclaimer-content, .company-info {
    background: var(--bg-card);
    border: 2px solid var(--tiktok-pink);
    border-radius: var(--border-radius);
    box-shadow: var(--tiktok-glow-pink), 0 0 50px rgba(254, 44, 85, 0.3);
}

.contact-header h2 {
    color: var(--tiktok-pink);
    text-shadow: var(--tiktok-glow-pink);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-btn {
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--tiktok-glow-mixed);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tiktok-glow-mixed), 0 5px 20px rgba(254, 44, 85, 0.5);
}

/* AIチャットボット - 右上小型チャット */
.chatbot-float-btn {
    position: fixed;
    top: 80px;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--tiktok-glow-mixed), 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1003;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    contain: layout style paint;
}

.chatbot-float-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--tiktok-glow-mixed), 0 6px 25px rgba(0, 0, 0, 0.4);
}

.ai-chatbot {
    position: fixed;
    top: 150px;
    right: 2rem;
    width: 350px;
    height: 450px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 2px solid var(--tiktok-pink);
    border-radius: var(--border-radius);
    box-shadow: var(--tiktok-glow-pink), 0 0 30px rgba(254, 44, 85, 0.2);
    z-index: 1002;
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.ai-chatbot.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    padding: 1rem;
    border-bottom: 1px solid var(--tiktok-pink);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.1), rgba(37, 244, 238, 0.1));
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--tiktok-glow-mixed);
}

.chatbot-title h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--tiktok-pink);
    text-shadow: var(--tiktok-glow-pink);
}

.status-indicator {
    font-size: 0.8rem;
    color: var(--tiktok-blue);
    text-shadow: var(--tiktok-glow-blue);
}

.chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--tiktok-pink);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-close:hover {
    text-shadow: var(--tiktok-glow-pink);
    transform: scale(1.1);
}

.chatbot-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(10, 10, 26, 0.3);
}

.message {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ai-message .message-content {
    background: rgba(37, 244, 238, 0.1);
    border: 1px solid var(--tiktok-blue);
    box-shadow: 0 0 10px rgba(37, 244, 238, 0.2);
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: rgba(254, 44, 85, 0.1);
    border: 1px solid var(--tiktok-pink);
    box-shadow: 0 0 10px rgba(254, 44, 85, 0.2);
}

.message-content {
    padding: 0.8rem;
    border-radius: 15px;
    max-width: 250px;
    word-wrap: break-word;
    color: var(--text-primary);
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid var(--tiktok-pink);
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 10, 26, 0.5);
}

.chatbot-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--tiktok-blue);
    border-radius: 10px;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--tiktok-pink);
    box-shadow: var(--tiktok-glow-pink);
}

.chatbot-input button {
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--tiktok-glow-mixed);
    transition: var(--transition);
}

.chatbot-input button:hover {
    transform: translateY(-2px);
    box-shadow: var(--tiktok-glow-mixed), 0 5px 15px rgba(37, 244, 238, 0.3);
}

/* レスポンシブ対応 - フッター */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .footer-links li {
        margin-bottom: 1rem;
    }
    
    .footer-section h4 {
        margin-bottom: 1.2rem;
    }
    
    .footer-bottom {
        padding-top: 2rem;
    }
    
    .countdown-number {
        font-size: 6rem;
    }
    
    .hologram-text {
        font-size: 2rem;
    }
    
    .chatbot-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        right: 1rem;
        top: 70px;
        pointer-events: auto;
        contain: layout style paint;
        z-index: 9999;
    }
    
    .ai-chatbot {
        width: 95%;
        right: 2.5%;
        left: 2.5%;
        height: 70vh;
        top: 130px;
        max-height: 500px;
    }
    
    .chatbot-messages {
        height: calc(70vh - 150px) !important;
        max-height: 350px !important;
    }
    
    .message-content {
        max-width: 220px !important;
        font-size: 0.9rem !important;
        padding: 0.6rem !important;
    }
    
    .chatbot-input {
        padding: 0.8rem !important;
    }
    
    .chatbot-input input {
        font-size: 0.9rem !important;
        padding: 0.4rem !important;
    }
    
    .chatbot-input button {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
}

/* ヒーローセクション */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0 !important;
        min-height: 70vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.gradient-text {
    color: var(--tiktok-pink);
    text-shadow: var(--tiktok-glow-pink);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hologram-text {
    color: var(--tiktok-blue);
    text-shadow: var(--tiktok-glow-blue);
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px var(--tiktok-blue); }
    100% { text-shadow: 0 0 20px var(--tiktok-cyan), 0 0 30px var(--tiktok-cyan); }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--tiktok-blue);
    text-shadow: var(--tiktok-glow-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-lead-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin: 0;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 105, 180, 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 105, 180, 0.3);
        transform: scale(1.02);
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--tiktok-pink), var(--tiktok-blue), var(--tiktok-pink));
    color: var(--text-primary);
}

.cta-button.secondary {
    background: transparent;
    color: var(--tiktok-cyan);
    border: 2px solid var(--tiktok-cyan);
}

.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover .button-glow {
    opacity: 0.8;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* ホログラム表示 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hologram-display {
    width: 300px;
    height: 300px;
    position: relative;
    border: 2px solid var(--tiktok-pink);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 244, 238, 0.1), transparent);
    animation: rotate 20s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hologram-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px solid var(--tiktok-cyan);
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.05);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--tiktok-cyan);
    animation: floatAround 15s linear infinite;
}

.floating-icon:nth-child(1) { animation-delay: 0s; top: 20%; left: 20%; }
.floating-icon:nth-child(2) { animation-delay: -3.75s; top: 20%; right: 20%; }
.floating-icon:nth-child(3) { animation-delay: -7.5s; bottom: 20%; right: 20%; }
.floating-icon:nth-child(4) { animation-delay: -11.25s; bottom: 20%; left: 20%; }

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, -100px) rotate(90deg); }
    50% { transform: translate(0, -200px) rotate(180deg); }
    75% { transform: translate(-100px, -100px) rotate(270deg); }
}

/* ヒーローギャラリー */
.hero-gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.gallery-image {
    position: relative;
    width: 280px;
    height: 200px;
    margin: 0.5rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:nth-child(1) {
    animation-delay: 0s;
}

.gallery-image:nth-child(2) {
    animation-delay: -2.67s;
}

.gallery-image:nth-child(3) {
    animation-delay: -5.33s;
}

.gallery-image:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scrollEffect {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    20% {
        transform: translateY(0);
        opacity: 1;
    }
    80% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* スポンサースライダー */
.sponsor-slider-section {
    padding: 4rem 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(245, 87, 108, 0.1));
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    font-size: 3rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.advanced-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2rem;
}

.sponsor-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    max-width: 350px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-gradient);
}

.sponsor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.3);
}

.sponsor-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.sponsor-card:hover .sponsor-image {
    transform: scale(1.05);
}

.sponsor-content {
    padding: 1.5rem;
}

.sponsor-badge {
    display: inline-block;
    background: var(--secondary-gradient);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sponsor-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.sponsor-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sponsor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    color: var(--tiktok-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.slider-btn:hover {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: scale(1.1);
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-indicator.active {
    background: var(--tiktok-cyan);
    box-shadow: 0 0 10px var(--tiktok-cyan);
}

/* ツールセクション */
.tools-section {
    padding: 4rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: var(--transition);
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--tiktok-cyan);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tool-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-badge {
    display: inline-block;
    background: var(--success-gradient);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 診断セクション */
.diagnosis-section {
    padding: 6rem 0;
    background: linear-gradient(45deg, rgba(245, 87, 108, 0.1), rgba(79, 172, 254, 0.1));
}

.diagnosis-container {
    max-width: 800px;
    margin: 0 auto;
}

.diagnosis-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
}

.diagnosis-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.question-container {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary) !important;
    text-align: center;
}

.question-options {
    display: grid;
    gap: 1rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    font-size: 1rem !important;
    text-align: center !important;
    font-weight: 500 !important;
}

.option-btn:hover {
    background: var(--accent-gradient) !important;
    transform: translateY(-2px) !important;
    border-color: var(--tiktok-cyan) !important;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3) !important;
}

@media (max-width: 768px) {
    .question-container {
        min-height: 150px;
        padding: 1rem;
    }
    
    .question-title {
        font-size: 1.2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .question-options {
        gap: 0.8rem;
    }
    
    .option-btn {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }
}

/* 記事セクション */
.articles-section {
    padding: 6rem 0;
}

.articles-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gradient);
    color: var(--text-primary);
    border-color: transparent;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.article-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--tiktok-cyan);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: var(--success-gradient);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-description {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* サイドバー */
.floating-sidebar {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    padding: 1rem;
}

.sidebar-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smart-search {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.smart-search input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.smart-search button {
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.trending-item, .comment-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.trending-item:hover, .comment-item:hover {
    color: var(--text-primary);
}

.trending-item:last-child, .comment-item:last-child {
    border-bottom: none;
}

.trending-title, .comment-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.trending-meta, .comment-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* モーダル */
.tool-modal, .article-modal, .admin-modal, .form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.tool-modal.active, .article-modal.active, .admin-modal.active, .form-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    0% { opacity: 0; transform: scale(0.9) translateY(-20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

/* PWAプロンプト */
.pwa-prompt {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    max-width: 400px;
    z-index: 1003;
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition);
}

.pwa-prompt.show {
    transform: translateY(0);
    opacity: 1;
}

.pwa-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pwa-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.pwa-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.pwa-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pwa-actions {
    display: flex;
    gap: 0.5rem;
}

.pwa-install, .pwa-dismiss {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.pwa-install {
    background: linear-gradient(45deg, var(--tiktok-pink), var(--tiktok-blue), var(--tiktok-pink));
    color: var(--text-primary);
}

.pwa-dismiss {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* 管理画面スタイル */
.login-form {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--tiktok-pink), var(--tiktok-blue), var(--tiktok-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--tiktok-pink);
    box-shadow: var(--tiktok-glow-pink);
}

.login-btn, .submit-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--tiktok-pink), var(--tiktok-blue), var(--tiktok-pink));
    border: none;
    border-radius: 50px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.login-btn:hover .btn-glow, .submit-btn:hover .btn-glow {
    opacity: 0.8;
}

.login-btn:hover, .submit-btn:hover {
    transform: translateY(-2px);
}

.admin-dashboard {
    display: none;
    width: 100%;
    max-width: 1200px;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--tiktok-pink), var(--tiktok-blue), var(--tiktok-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =====================================================
   記事詳細ページ専用スタイル
   ===================================================== */

.article-page {
    padding-top: 120px;
}

@media (max-width: 768px) {
    .article-page {
        padding-top: 80px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
}

.breadcrumb {
    display: none !important;
}

.breadcrumb-link {
    color: var(--tiktok-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.breadcrumb-link:hover {
    color: var(--tiktok-pink);
    text-shadow: var(--tiktok-glow-pink);
    background: rgba(255, 20, 147, 0.1);
    transform: translateY(-1px);
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.1rem;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: rgba(37, 244, 238, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--tiktok-cyan);
}

.article-detail {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--tiktok-glow-pink);
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .article-detail {
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

.article-detail-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .article-detail-header {
        padding: 1rem 0.5rem !important;
    }
}

.article-meta-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category-badge {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--tiktok-glow-pink);
}

.article-reading-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-views {
    display: none !important;
}

.article-detail-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--tiktok-glow-mixed);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.publish-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-image-container {
    max-height: 400px;
    overflow: hidden;
}

.article-detail-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: none;
}

.article-summary {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.1), rgba(37, 244, 238, 0.1));
    margin: 0 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--tiktok-pink);
}

.article-summary h2 {
    color: var(--tiktok-pink);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 3px rgba(254, 44, 85, 0.5);
}

.table-of-contents {
    padding: 2rem;
    background: rgba(22, 24, 35, 0.5);
    margin: 0 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.table-of-contents h3 {
    color: var(--tiktok-pink);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 3px rgba(37, 244, 238, 0.5);
}

#toc-list {
    list-style: none;
    padding: 0;
}

#toc-list li {
    margin: 0.5rem 0;
}

#toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
}

#toc-list a:hover {
    color: var(--tiktok-pink);
    background: rgba(254, 44, 85, 0.1);
    text-shadow: 0 0 2px rgba(254, 44, 85, 0.6);
}

.toc-h2 {
    padding-left: 0;
}

.toc-h3 {
    padding-left: 1rem;
}

.toc-h4 {
    padding-left: 2rem;
}

.article-detail-content {
    padding: 3rem 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .article-detail-content {
        padding: 1rem 0.5rem !important;
        margin: 0 !important;
    }
}

.article-detail-content h2 {
    color: var(--tiktok-pink);
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    text-shadow: 0 0 3px rgba(254, 44, 85, 0.5);
    border-bottom: 2px solid var(--tiktok-pink);
    padding-bottom: 0.5rem;
}

.article-detail-content h3 {
    color: var(--tiktok-blue);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    text-shadow: 0 0 3px rgba(37, 244, 238, 0.5);
}

.article-detail-content h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
}

.article-detail-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.8;
}

.article-detail-content ul,
.article-detail-content ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 400;
}

.article-detail-content li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.loading-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(22, 24, 35, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(37, 244, 238, 0.3);
}

.loading-placeholder h2 {
    color: var(--tiktok-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(37, 244, 238, 0.5);
}

.loading-placeholder p {
    color: var(--text-primary);
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 400;
}

.article-tags {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .article-tags {
        padding: 1rem 0.5rem !important;
    }
}

.article-tags h4 {
    color: var(--tiktok-pink);
    margin-bottom: 1rem;
    text-shadow: var(--tiktok-glow-pink);
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-badge {
    background: rgba(0, 212, 255, 0.2);
    color: var(--tiktok-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid var(--tiktok-blue);
    transition: var(--transition);
}

.tag-badge:hover {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: var(--tiktok-glow-blue);
}

.article-actions {
    padding: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .article-actions {
        padding: 1rem 0.5rem !important;
    }
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--tiktok-pink);
    color: var(--tiktok-pink);
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.action-btn:hover {
    background: var(--tiktok-pink);
    color: white;
    box-shadow: var(--tiktok-glow-pink);
    transform: translateY(-2px);
}

.action-btn.share-btn:hover {
    border-color: var(--tiktok-pink);
    background: var(--tiktok-pink);
    box-shadow: var(--tiktok-glow-pink);
}

.related-articles {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .related-articles {
        padding: 1rem 0.5rem !important;
    }
}

.related-articles h3 {
    color: var(--tiktok-pink);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: var(--tiktok-glow-pink);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-article-card {
    background: rgba(22, 24, 35, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tiktok-glow-mixed);
    border-color: var(--tiktok-pink);
}

.related-article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-article-content {
    padding: 1.5rem;
}

.related-article-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-article-content p {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.related-article-category {
    background: var(--accent-gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comments-section {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-section h3 {
    color: var(--tiktok-pink);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: var(--tiktok-glow-pink);
}

.comment-form {
    background: rgba(22, 24, 35, 0.5);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(22, 24, 35, 0.8);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    resize: vertical;
    margin-bottom: 1rem;
}

.comment-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--tiktok-pink);
    box-shadow: var(--tiktok-glow-pink);
}

.comment-form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.comment-form-actions input {
    flex: 1;
    min-width: 200px;
    background: rgba(22, 24, 35, 0.8);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: 10px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
}

.comment-form-actions input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.comment-form-actions input:focus {
    outline: none;
    border-color: var(--tiktok-blue);
    box-shadow: var(--tiktok-glow-blue);
}

.submit-comment-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--tiktok-glow-pink);
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tiktok-glow-mixed);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background: rgba(22, 24, 35, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border-left: 3px solid var(--tiktok-pink);
    transition: var(--transition);
}

.comment:hover {
    background: rgba(22, 24, 35, 0.5);
    border-left-color: var(--tiktok-pink);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--tiktok-pink);
    text-shadow: var(--tiktok-glow-pink);
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
}

.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-primary);
}

.error-message h2 {
    color: var(--tiktok-pink);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: var(--tiktok-glow-pink);
}

.back-home-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--tiktok-glow-pink);
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tiktok-glow-mixed);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

.notification.info {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.9), rgba(254, 44, 85, 0.9));
    border-left: 4px solid var(--tiktok-pink);
}

.notification.success {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.9), rgba(0, 206, 201, 0.9));
    border-left: 4px solid var(--tiktok-cyan);
}

.notification.error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.9));
    border-left: 4px solid #e74c3c;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 記事詳細ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .article-page {
        padding-top: 100px;
    }
    
    .article-detail-title {
        font-size: 2rem;
    }
    
    .article-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-detail-content {
        padding: 2rem 1rem;
    }
    
    .article-summary,
    .table-of-contents {
        margin: 0 1rem;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .comment-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comment-form-actions input {
        min-width: auto;
    }
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.admin-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.admin-tab.active {
    color: var(--tiktok-cyan);
    border-bottom-color: var(--tiktok-cyan);
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab-content {
    display: none;
}

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

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.add-btn {
    background: var(--success-gradient);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
}

.articles-list, .sponsors-list {
    display: grid;
    gap: 1rem;
}

.admin-article-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-item-info {
    flex: 1;
}

.admin-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-item-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.edit-btn {
    background: var(--accent-gradient);
    color: var(--text-primary);
}

.delete-btn {
    background: var(--secondary-gradient);
    color: var(--text-primary);
}

.edit-btn:hover, .delete-btn:hover {
    transform: translateY(-2px);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
}

.analytics-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.admin-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.logout-btn {
    background: var(--secondary-gradient);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

/* フォームモーダル */
.form-body {
    padding: 2rem;
    max-width: 600px;
}

/* =====================================================
   サブページ専用スタイル
   ===================================================== */

/* FAQ専用スタイル */
.faq-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.faq-search input {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
}

.faq-search button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.faq-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.faq-category-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: 25px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.faq-category-btn.active,
.faq-category-btn:hover {
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    color: white;
    border-color: transparent;
}

.faq-item {
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(37, 244, 238, 0.1);
}

.faq-question h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--tiktok-pink);
    font-weight: bold;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-card);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ヘルプページ専用スタイル */
.help-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.help-nav-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-nav-item:hover {
    background: rgba(37, 244, 238, 0.1);
    transform: translateY(-2px);
}

.help-nav-icon {
    font-size: 2rem;
}

.help-nav-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--tiktok-pink);
}

.help-nav-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.help-section {
    margin-bottom: 3rem;
}

.help-section h2 {
    color: var(--tiktok-pink);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.help-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-guide {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.feature-guide h3 {
    color: var(--tiktok-blue);
    margin-bottom: 1rem;
}

.feature-guide ul {
    list-style: none;
    padding: 0;
}

.feature-guide li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-guide li:last-child {
    border-bottom: none;
}

.troubleshooting-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trouble-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.trouble-item h3 {
    color: var(--tiktok-pink);
    margin-bottom: 1rem;
}

.trouble-solutions strong {
    color: var(--text-primary);
}

.trouble-solutions ul {
    margin-top: 1rem;
}

.trouble-solutions li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: var(--tiktok-blue);
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.help-contact {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.help-contact h3 {
    color: var(--tiktok-pink);
    margin-bottom: 1rem;
}

.help-contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.help-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.help-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tiktok-glow-mixed);
}

/* 法的ページ専用スタイル */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--tiktok-pink);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--tiktok-pink);
    padding-bottom: 0.5rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-contact {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

.legal-contact h3 {
    color: var(--tiktok-blue);
    margin-bottom: 1rem;
}

.legal-footer {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.legal-footer p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* 運営者情報ページ専用スタイル */
.company-info-content {
    max-width: 900px;
    margin: 0 auto;
}

.company-section {
    margin-bottom: 3rem;
}

.company-section h2 {
    color: var(--tiktok-pink);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.info-label {
    color: var(--tiktok-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.operator-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.operator-avatar {
    font-size: 4rem;
    flex-shrink: 0;
}

.operator-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.operator-title {
    color: var(--tiktok-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.operator-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.business-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.business-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.business-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.business-info h3 {
    color: var(--tiktok-blue);
    margin-bottom: 0.5rem;
}

.business-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.mission-item h3 {
    color: var(--tiktok-pink);
    margin-bottom: 1rem;
}

.mission-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.mission-item ul {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.achievement-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--tiktok-pink);
    margin-bottom: 0.5rem;
}

.achievement-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.partnerships {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.partnerships p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.partnerships ul {
    color: var(--text-secondary);
    margin-left: 2rem;
}

.partnerships li {
    margin-bottom: 0.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-method {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-info h3 {
    color: var(--tiktok-blue);
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-links {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.legal-links p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.legal-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(37, 244, 238, 0.1);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.legal-link:hover {
    background: rgba(37, 244, 238, 0.2);
    transform: translateY(-2px);
}

.legal-link-icon {
    font-size: 1.5rem;
}

.legal-link-text {
    color: var(--text-primary);
    font-weight: 600;
}

.company-footer {
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 244, 238, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.company-footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* お問い合わせフォーム専用スタイル */
.contact-form {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(37, 244, 238, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.required {
    color: var(--tiktok-pink);
    font-size: 1.2rem;
    margin-left: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.5rem 1.8rem;
    border: 2px solid rgba(37, 244, 238, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tiktok-pink);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325f4ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.2rem;
    padding-right: 4rem;
}

.form-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(37, 244, 238, 0.1);
}

.contact-btn {
    padding: 1.5rem 4rem;
    background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-blue));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 20, 147, 0.4);
    background: linear-gradient(135deg, var(--tiktok-blue), var(--tiktok-pink));
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-btn:hover .btn-glow {
    left: 100%;
}

.contact-info {
    margin-top: 3rem;
}

.contact-info h3 {
    color: var(--tiktok-pink);
    margin-bottom: 2rem;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .help-navigation {
        grid-template-columns: 1fr;
    }
    
    .help-nav-item {
        flex-direction: column;
        text-align: center;
    }
    
    .help-step {
        flex-direction: column;
        text-align: center;
    }
    
    .operator-card {
        flex-direction: column;
        text-align: center;
    }
    
    .business-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .faq-categories {
        flex-direction: column;
    }
    
    .help-contact-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    color: var(--text-primary);
    border-color: var(--tiktok-pink);
}

/* 記事詳細モーダル */
.article-modal .modal-content {
    max-width: 800px;
    width: 90vw;
}

.article-header {
    padding: 2rem 2rem 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-author {
    color: var(--text-secondary);
}

.article-image-container {
    padding: 0 2rem;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.article-content {
    padding: 0 2rem 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-actions {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .floating-sidebar {
        max-width: 100%;
        margin: 2rem 0;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hologram-display {
        width: 250px;
        height: 250px;
    }
    
    .sponsor-card {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .hero-gallery {
        height: 400px;
    }
    
    .gallery-image {
        width: 240px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.25rem !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    body {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.8);
        margin-top: 0.5rem;
        width: 100%;
        display: none;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .breadcrumb {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.2rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .ai-chatbot {
        right: 1rem;
        left: 1rem;
        width: auto;
        bottom: 5rem;
    }
    
    .pwa-prompt {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .admin-article-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem 3rem 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-btn {
        padding: 1.2rem 3rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }

    /* ヒーローセクション最適化 */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 0 0.25rem !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 0.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 1rem !important;
        justify-content: center;
    }

    .stat-item {
        min-width: auto;
        flex: 1;
    }

    .hero-cta-section {
        gap: 1rem;
    }
    
    .cta-lead-text {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 0.8rem;
        margin-top: 0.5rem !important;
    }

    .cta-button {
        flex: 1;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 150px;
    }

    .hero-gallery {
        height: 350px;
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-image {
        width: 200px;
        height: 140px;
        margin: 0 auto;
    }

    /* ツールセクション最適化 */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-card {
        padding: 1.5rem;
        touch-action: manipulation;
    }

    /* スライダー最適化 */
    .sponsor-card {
        min-width: 280px;
    }

    .slider-controls {
        margin-top: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* 診断セクション最適化 */
    .diagnosis-card {
        padding: 1.5rem !important;
        margin: 0 0.5rem !important;
    }

    .option-btn {
        padding: 1rem !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        touch-action: manipulation !important;
    }
    
    .diagnosis-progress {
        margin-bottom: 1.5rem !important;
    }
    
    .progress-text {
        font-size: 0.8rem !important;
    }

    /* サイドバー非表示 */
    .floating-sidebar {
        display: none;
    }

    /* フォント最適化 */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* タッチ操作最適化 */
    .article-card,
    .sponsor-card {
        touch-action: manipulation;
    }

    /* ナビゲーション最適化 */
    .nav-item {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        touch-action: manipulation;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tool-card, .diagnosis-card {
        padding: 1.5rem;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f8f9fa;
        --bg-secondary: #ffffff;
        --bg-card: rgba(255, 255, 255, 0.9);
        --text-primary: #2d3748;
        --text-secondary: #4a5568;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--tiktok-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tiktok-cyan);
}

/* セレクション */
::selection {
    background: var(--tiktok-cyan);
    color: var(--bg-primary);
}

/* フォーカス */
*:focus {
    outline: 2px solid var(--tiktok-pink);
    outline-offset: 2px;
}

/* プリント */
@media print {
    .header, .floating-sidebar, .chatbot-toggle, .ai-chatbot, .pwa-prompt {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* メインコンテンツ */
.main-content {
    padding-top: 2rem;
}

.hologram-stats {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.stat-ring {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--tiktok-pink);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: var(--transition);
}

.stat-ring:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tiktok-cyan);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-number small {
    font-size: 0.7em;
    opacity: 0.8;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* 新しい記事レイアウトのスタイル */
.articles-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

.articles-main {
    min-width: 0; /* グリッドオーバーフロー防止 */
}

.articles-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3f2fd;
}

/* 記事検索スタイル */
.smart-search form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.smart-search input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 0;
    width: 100%;
}

.smart-search input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.smart-search button {
    padding: 0.8rem 0.8rem;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 50px;
    max-width: 70px;
    flex-shrink: 0;
    overflow: hidden;
}

.smart-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* トレンド記事スタイル */
.trending-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trending-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.trending-rank {
    background: linear-gradient(135deg, #ff4d6d 0%, #ff6b8a 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
    min-width: 0;
}

.trending-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.trending-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-title a:hover {
    color: #2196f3;
}

.trending-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.trending-views {
    color: #ff4d6d;
    font-weight: 500;
}

/* カテゴリー統計スタイル */
.category-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.category-stat-item {
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-stat-item:hover {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #2196f3;
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 記事なしメッセージスタイル */
.no-posts-message {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    border-radius: 20px;
    border: 2px dashed #e0e0e0;
}

.no-posts-message h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.no-posts-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.post-guide {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-guide h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.post-guide ol {
    color: #555;
    line-height: 1.6;
}

.post-guide li {
    margin-bottom: 0.5rem;
}

/* 記事カードの改善 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 105, 180, 0.1);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4d6d 0%, #ff6b8a 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #2196f3;
}

.article-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.article-author {
    color: #2196f3;
    font-weight: 500;
}

.article-views {
    color: #ff4d6d;
    font-weight: 500;
}

/* 空のメッセージスタイル */
.no-trending,
.no-categories {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    font-style: italic;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .articles-layout {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
    
    .articles-sidebar {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .articles-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        margin: 0;
    }
    
    .articles-sidebar {
        position: static;
        order: -1; /* サイドバーを上に表示 */
        padding: 0 0.5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }
    
    .trending-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .trending-rank {
        align-self: center;
    }
    
    .smart-search form {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .smart-search button {
        padding: 0.8rem 0.8rem !important;
        font-size: 0.8rem !important;
        min-width: 50px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   ハンバーガーメニュー & モバイル最適化
   ========================================================================== */

/* ハンバーガーメニューボタン */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ナビゲーションメニュー - モバイル対応 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-overlay {
    display: none;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-header {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-icon {
    font-size: 1rem;
}

.nav-text {
    display: inline;
}

/* ドロップダウンメニュー */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-blue);
}

/* タッチデバイス用の調整 */
.touch-device .nav-item:hover {
    transform: none;
    box-shadow: none;
}

.touch-device .nav-item:active {
    background: var(--gradient-primary);
    transform: scale(0.95);
}

/* ==========================================================================
   スマホ対応（768px以下）
   ========================================================================== */

@media (max-width: 768px) {
    /* ヘッダー調整 */
    .header {
        padding: 0.6rem 0;
        backdrop-filter: blur(15px);
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    /* ハンバーガーメニュー表示 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* ナビゲーションメニュー - モバイル版の修正 */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: transparent;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        pointer-events: none;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    .nav-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .nav-menu.active .nav-overlay {
        opacity: 1;
    }
    
    .nav-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.15);
        display: flex;
        flex-direction: column;
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active .nav-content {
        transform: translateX(0);
    }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.02);
    }
    
    .mobile-logo {
        font-size: 1rem;
        font-weight: 700;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .mobile-close {
        width: 36px;
        height: 36px;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.4rem;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-pink);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        overflow-y: auto;
        flex: 1;
    }
    
    .nav-item {
        width: 100%;
        padding: 0.8rem 1.2rem;
        border-radius: 0;
        justify-content: flex-start;
        font-size: 0.9rem;
        font-weight: 500;
        opacity: 0;
        transform: translateX(30px);
        animation: slideInFromRight 0.5s ease forwards;
        transition: all 0.3s ease;
    }
    
    .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .nav-item:nth-child(5) { animation-delay: 0.5s; }
    .nav-item:nth-child(6) { animation-delay: 0.6s; }
    
    .nav-item:hover,
    .nav-item:active {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(0);
        box-shadow: none;
        color: var(--primary-blue);
    }
    
    .nav-icon {
        font-size: 1.1rem;
        width: 24px;
        text-align: center;
    }
    
    .nav-text {
        flex: 1;
        font-size: 0.9rem;
    }
    
    /* ドロップダウンメニュー - モバイル版 */
    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        min-width: auto;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-menu.active {
        max-height: 300px;
    }
    
    .dropdown-item {
        padding: 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .dropdown-arrow {
        margin-left: auto;
    }
    
    /* ツール表示の横並び最適化 */
    .tools-section,
    .features-section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .tools-grid,
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .tool-card,
    .feature-card {
        background: var(--card-bg);
        border-radius: 10px;
        padding: 1rem;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .tool-card:hover,
    .feature-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 0, 80, 0.15);
        border-color: rgba(255, 0, 80, 0.3);
    }
    
    .tool-icon,
    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
        display: block;
        filter: drop-shadow(0 0 8px rgba(255, 0, 80, 0.3));
    }
    
    .tool-title,
    .feature-title {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--text-light);
        line-height: 1.2;
    }
    
    .tool-description,
    .feature-description {
        font-size: 0.7rem;
        line-height: 1.4;
        color: var(--text-gray);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* パンくずリスト - モバイル調整 */
    .breadcrumb {
        padding: 0.4rem 0;
        margin-top: 55px;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(10px);
    }
    
    .breadcrumb-list {
        padding: 0 1rem;
        font-size: 0.7rem;
        flex-wrap: wrap;
        gap: 0.2rem;
    }
    
    .breadcrumb-item {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .breadcrumb-separator {
        color: #666;
        font-size: 0.6rem;
    }
    
    /* チャットボット - モバイル調整 */
    .ai-chatbot {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        bottom: 0;
        right: 0;
    }
    
    .chatbot-header {
        padding: 1rem;
    }
    
    .chatbot-messages {
        padding: 1rem;
        max-height: calc(100vh - 140px);
    }
    
    .chatbot-input {
        padding: 1rem;
    }
    
    /* モーダル - モバイル調整 */
    .modal-content {
        width: 95%;
        margin: 2.5% auto;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* フォーム要素 - モバイル調整 */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    /* ボタン - モバイル調整 */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* メニューが開いている時のbody固定 */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* ==========================================================================
   小さなスマホ対応（480px以下）
   ========================================================================== */

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.8rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-content {
        width: 100%;
    }
    
    .tools-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .tool-card,
    .feature-card {
        padding: 0.8rem;
    }
    
    .tool-icon,
    .feature-icon {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .tool-title,
    .feature-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .tool-description,
    .feature-description {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .breadcrumb-list {
        padding: 0 0.75rem;
        font-size: 0.65rem;
    }
    
    .breadcrumb-item {
        max-width: 100px;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .nav-item {
        padding: 0.8rem 1rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 2rem;
    }
    
    /* 記事タイトルをさらに小さく */
    .entry-title,
    .post-title,
    h1 {
        font-size: 1.2rem !important;
    }
    
    .entry-content,
    .post-content,
    .content-area p {
        font-size: 0.8rem !important;
    }
    
    .entry-content h2,
    .post-content h2,
    h2 {
        font-size: 1rem !important;
    }
    
    .entry-content h3,
    .post-content h3,
    h3 {
        font-size: 0.9rem !important;
    }
}

/* ==========================================================================
   アニメーション
   ========================================================================== */

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ==========================================================================
   アクセシビリティ対応
   ========================================================================== */

/* フォーカス表示の改善 */
.nav-item:focus,
.mobile-menu-toggle:focus,
.mobile-close:focus,
.dropdown-item:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .nav-item {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .nav-item:hover {
        border-color: var(--primary-blue);
    }
}

/* 動きを減らす設定に対応 */
@media (prefers-reduced-motion: reduce) {
    .nav-menu,
    .nav-content,
    .nav-item,
    .dropdown-menu,
    .mobile-menu-toggle,
    .hamburger-line {
        transition: none;
        animation: none;
    }
}

/* ==========================================================================
   パフォーマンス最適化
   ========================================================================== */

/* GPU加速の有効化 */
.nav-menu,
.nav-content,
.nav-overlay {
    will-change: transform, opacity;
}

.mobile-menu-toggle.active {
    will-change: transform;
}

/* タッチ操作の最適化 */
.nav-item,
.mobile-menu-toggle,
.mobile-close,
.dropdown-item {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* スクロール最適化 */
.nav-links {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.nav-links::-webkit-scrollbar {
    width: 4px;
}

.nav-links::-webkit-scrollbar-track {
    background: transparent;
}

.nav-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* ==========================================================================
   スマホ版記事表示の最適化
   ========================================================================== */

/* 記事コンテンツのスマホ最適化 */
@media (max-width: 768px) {
    /* 記事タイトル */
    .entry-title,
    .post-title,
    .article-detail-title,
    h1 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.8rem !important;
        font-weight: 700 !important;
        padding: 0 1rem !important;
    }
    
    /* 記事本文 */
    .entry-content,
    .post-content,
    .article-detail-content,
    .content-area p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
        color: #e0e0e0 !important;
        padding: 0 1rem !important;
    }
    
    /* 見出し調整 */
    .entry-content h2,
    .post-content h2,
    .article-detail-content h2,
    h2 {
        font-size: 1.1rem !important;
        margin: 1.5rem 0 0.8rem 0 !important;
        font-weight: 600 !important;
    }
    
    .entry-content h3,
    .post-content h3,
    .article-detail-content h3,
    h3 {
        font-size: 1rem !important;
        margin: 1.2rem 0 0.6rem 0 !important;
        font-weight: 600 !important;
    }

    .entry-content h4,
    .post-content h4,
    .article-detail-content h4,
    h4 {
        font-size: 0.95rem !important;
        margin: 1rem 0 0.5rem 0 !important;
        font-weight: 600 !important;
    }

    /* 段落とリスト */
    .entry-content p,
    .post-content p,
    .article-detail-content p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

    .entry-content ul,
    .entry-content ol,
    .post-content ul,
    .post-content ol,
    .article-detail-content ul,
    .article-detail-content ol {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
        padding-left: 1.5rem !important;
    }

    .entry-content li,
    .post-content li,
    .article-detail-content li {
        margin-bottom: 0.5rem !important;
    }
    
    /* 記事メタ情報 */
    .post-meta,
    .entry-meta,
    .article-meta-info {
        font-size: 0.7rem !important;
        margin-bottom: 1rem !important;
        color: #999 !important;
        padding: 0 1rem !important;
    }
    
    /* 記事抜粋 */
    .post-excerpt,
    .entry-excerpt,
    .article-description {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        color: #ccc !important;
    }
    
    /* 記事カード */
    .post-card,
    .article-card {
        padding: 0.6rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 8px !important;
    }

    .post-card .post-title,
    .article-card .article-title {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }

    .post-card .post-excerpt,
    .article-card .article-description {
        font-size: 0.8rem !important;
    }

    /* 記事詳細ページの特別な調整 */
    .article-summary {
        font-size: 0.8rem !important;
        padding: 0.8rem !important;
        margin: 1rem !important;
    }

    .table-of-contents {
        font-size: 0.75rem !important;
        padding: 0.8rem !important;
    }

    .article-tags .tag-badge {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.6rem !important;
    }

    /* 関連記事 */
    .related-article-content h4 {
        font-size: 0.85rem !important;
    }

    .related-article-content p {
        font-size: 0.75rem !important;
    }

    /* コメント */
    .comment-content {
        font-size: 0.8rem !important;
    }

    .comment-author {
        font-size: 0.75rem !important;
    }
    
    .post-card .post-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .post-card .post-excerpt {
        font-size: 0.75rem !important;
        line-height: 1.4;
    }
    
    /* パンくずリスト */
    .breadcrumb-list {
        font-size: 0.7rem !important;
    }
}

/* ==========================================================================
   ハンバーガーメニューの修正
   ========================================================================== */

/* ハンバーガーメニューボタンの修正 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-light);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary-pink);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--primary-pink);
}

/* ナビゲーションメニューの修正 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--gradient-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.3);
}

.nav-icon {
    font-size: 0.9rem;
}

.nav-text {
    display: inline;
    font-size: 0.8rem;
}

/* ==========================================================================
   ツール表示の横並び最適化
   ========================================================================== */

/* ツールセクション */
.tools-section,
.features-section {
    padding: 2rem 0;
}

.tools-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card,
.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.2);
}

.tool-icon,
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-title,
.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.tool-description,
.feature-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-gray);
}

/* 既存のCSSファイルの末尾に追加 */

/* =====================================================
   検索結果ページの調整
   ===================================================== */

.search-results .main-content {
    padding-top: 80px; /* ヘッダーの高さを考慮 */
}

.search-results .articles-section .section-header {
    margin-bottom: 2rem;
    text-align: left;
}

.search-results .section-title {
    font-size: 2rem;
}

.no-posts-message {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-posts-message h3 {
    color: var(--tiktok-pink);
    margin-bottom: 1rem;
}

.search-form-container {
    margin-top: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ページネーションのスタイル */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.pagination .page-numbers:hover {
    background: var(--tiktok-pink);
    color: var(--text-primary);
    box-shadow: var(--tiktok-glow-pink);
}

.pagination .page-numbers.current {
    background: var(--tiktok-pink);
    color: var(--text-primary);
    font-weight: bold;
    border-color: var(--tiktok-blue);
}

.pagination .dots {
    padding: 0.5rem;
}

/* ----------------------------------
 * 検索フォーム
 * ---------------------------------- */
.search-form {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-field {
    border: none;
    padding: 10px 45px 10px 15px;
    flex-grow: 1;
    font-size: 14px;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    width: 100%;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-field:focus {
    background: rgba(255, 255, 255, 0.15);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    min-width: 60px;
    height: 35px;
    background: var(--tiktok-pink);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
    padding: 0 10px;
    font-weight: 500;
}

.search-submit:hover {
    background: var(--tiktok-blue);
    transform: translateY(-50%) scale(1.05);
}

.article-meta-2,
.article-views,
.trending-views,
.post-views-count {
    display: none !important;
}

/* ----------------------------------
 * トレンド記事
 * ---------------------------------- */

/* ----------------------------------
 * タッチフィードバック
 * ---------------------------------- */

.touch-active {
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
    transition: all 0.1s ease !important;
}

.cta-button.touch-active,
.tool-card.touch-active,
.article-card.touch-active,
.nav-item.touch-active,
.chatbot-float-btn.touch-active,
.search-submit.touch-active,
.option-btn.touch-active {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* 記事コンテンツのスタイル（Swellテーマを参考に改良） */
.entry-content,
.article-content,
.post_content {
    line-height: 1.8;
    margin: 0;
    max-width: 100%;
    padding: 0;
    font-size: 16px;
}

.entry-content > *,
.article-content > *,
.post_content > * {
    clear: both;
    margin-bottom: 2em;
}

.entry-content > :first-child,
.article-content > :first-child,
.post_content > :first-child {
    margin-top: 0 !important;
}

.entry-content > :last-child,
.article-content > :last-child,
.post_content > :last-child {
    margin-bottom: 0 !important;
}

/* 見出しスタイル */
.entry-content h1,
.article-content h1,
.post_content h1 {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.4;
    margin: 4em 0 2em;
    position: relative;
    color: var(--text-primary);
}

.entry-content h2,
.article-content h2,
.post_content h2 {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.4;
    margin: 4em 0 2em;
    position: relative;
    color: var(--text-primary);
    padding: 0.75em 1em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-content h3,
.article-content h3,
.post_content h3 {
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.4;
    margin: 3em 0 2em;
    position: relative;
    color: var(--text-primary);
    padding-left: 1em;
    border-left: 4px solid var(--primary-color);
}

.entry-content h4,
.article-content h4,
.post_content h4 {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.4;
    margin: 3em 0 1.5em;
    position: relative;
    color: var(--text-primary);
    padding-left: 0.75em;
    border-left: 3px solid var(--secondary-color);
}

/* 段落とテキスト */
.entry-content p,
.article-content p,
.post_content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

/* リストスタイル */
.entry-content ul,
.entry-content ol,
.article-content ul,
.article-content ol,
.post_content ul,
.post_content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.entry-content ul:not([class]),
.article-content ul:not([class]),
.post_content ul:not([class]) {
    list-style: none;
}

.entry-content ul:not([class]) li,
.article-content ul:not([class]) li,
.post_content ul:not([class]) li {
    position: relative;
    padding-left: 1.5em;
    margin: 0.5em 0;
}

.entry-content ul:not([class]) li:before,
.article-content ul:not([class]) li:before,
.post_content ul:not([class]) li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.entry-content ol:not([class]),
.article-content ol:not([class]),
.post_content ol:not([class]) {
    counter-reset: item;
    list-style: none;
}

.entry-content ol:not([class]) li,
.article-content ol:not([class]) li,
.post_content ol:not([class]) li {
    position: relative;
    padding-left: 2em;
    margin: 0.5em 0;
}

.entry-content ol:not([class]) li:before,
.article-content ol:not([class]) li:before,
.post_content ol:not([class]) li:before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}

/* テーブルスタイル */
.entry-content table,
.article-content table,
.post_content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-content th,
.entry-content td,
.article-content th,
.article-content td,
.post_content th,
.post_content td {
    padding: 1em;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.entry-content th,
.article-content th,
.post_content th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 700;
    border: none;
}

.entry-content tr:nth-child(even) td,
.article-content tr:nth-child(even) td,
.post_content tr:nth-child(even) td {
    background: #f8f9fa;
}

/* コードブロック */
.entry-content code,
.article-content code,
.post_content code {
    background: #f4f4f4;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e91e63;
}

.entry-content pre,
.article-content pre,
.post_content pre {
    background: #2d3748;
    color: #fff;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-content pre code,
.article-content pre code,
.post_content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* 引用 */
.entry-content blockquote,
.article-content blockquote,
.post_content blockquote {
    border-left: 4px solid var(--primary-color);
    background: #f8f9fa;
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.entry-content blockquote:before,
.article-content blockquote:before,
.post_content blockquote:before {
    content: """;
    font-size: 3em;
    color: var(--primary-color);
    position: absolute;
    top: 0.2em;
    left: 0.5em;
    opacity: 0.3;
}

/* 画像スタイル */
.entry-content img,
.article-content img,
.post_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1em 0;
}

/* ボタンスタイル */
.btn,
.button,
.wp-block-button__link {
    display: inline-block;
    padding: 0.75em 2em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover,
.button:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* 警告ボックス */
.alert,
.notice,
.info-box {
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 8px;
    border-left: 4px solid;
    position: relative;
}

.alert-info,
.notice-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.alert-warning,
.notice-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #ef6c00;
}

.alert-success,
.notice-success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.alert-error,
.notice-error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

/* アコーディオン */
.accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 2em 0;
    overflow: hidden;
}

.accordion-header {
    background: #f8f9fa;
    padding: 1em;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header:after {
    content: "+";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.accordion-header.active:after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
    padding: 1.5em;
    display: none;
}

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

/* タブ */
.tabs {
    margin: 2em 0;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1em;
}

.tab-button {
    padding: 0.75em 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 8px;
}

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

/* カード */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2em;
    margin: 2em 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 1em;
    color: var(--primary-color);
}

.card-body {
    line-height: 1.6;
}

/* 広告スタイル */
.ad-container {
    text-align: center;
    margin: 3em 0;
    padding: 2em;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

.ad-label {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .entry-content,
    .article-content,
    .post_content {
        font-size: 14px;
    }
    
    .entry-content h2,
    .article-content h2,
    .post_content h2 {
        font-size: 1.2em;
        padding: 0.5em 0.75em;
    }
    
    .entry-content h3,
    .article-content h3,
    .post_content h3 {
        font-size: 1.1em;
    }
    
    .entry-content h4,
    .article-content h4,
    .post_content h4 {
        font-size: 1.05em;
    }
    
    .entry-content table,
    .article-content table,
    .post_content table {
        font-size: 0.9em;
    }
    
    .entry-content th,
    .entry-content td,
    .article-content th,
    .article-content td,
    .post_content th,
    .post_content td {
        padding: 0.75em 0.5em;
    }
    
    .card {
        padding: 1.5em;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 100px;
    }
}

/* ブロックエディタ対応 */
.wp-block-quote {
    border-left: 4px solid var(--primary-color);
    background: #f8f9fa;
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 0 8px 8px 0;
}

.wp-block-code {
    background: #f4f4f4;
    padding: 1em;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.wp-block-group {
    padding: 2em;
    margin: 2em 0;
    border-radius: 8px;
}

.wp-block-columns {
    display: flex;
    gap: 2em;
    margin: 2em 0;
}

.wp-block-column {
    flex: 1;
}

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
        gap: 1em;
    }
}