@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** Rinne Lab - Modern City Tech Design
************************************/

/* 基本設定 - モダンシティ仕様 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%) !important;
    color: #e0e6ed !important;
    overflow-x: hidden;
}

/* 環境光エフェクト */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    z-index: -1;
    animation: ambientGlow 15s ease-in-out infinite;
}

@keyframes ambientGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ページタイトル非表示 */
.page .entry-title {
    display: none !important;
}

/* ヘッダー - ポップネオン */
#header {
    background: linear-gradient(135deg, #ff1493 0%, #00ffff 50%, #ffd700 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 3px solid #ff1493 !important;
    box-shadow: 
        0 4px 20px rgba(255, 20, 147, 0.4),
        0 0 40px rgba(0, 255, 255, 0.3) !important;
    position: relative !important;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.header-container {
    background: transparent !important;
    position: relative !important;
    z-index: 2 !important;
}

/* サイトタイトル - 読みやすく美しく */
.site-name a {
    color: #000000 !important;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: -0.5px !important;
}

.site-name a:hover {
    color: #000000 !important;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 2px 6px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-1px) !important;
    transition: all 0.3s ease !important;
}

/* メニュー - ネオングロー */
.navi {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: 
        0 0 20px rgba(255, 20, 147, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
}

.navi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 20, 147, 0.1),
        rgba(0, 255, 255, 0.1),
        rgba(255, 215, 0, 0.1),
        transparent
    );
    animation: neonFlow 4s ease-in-out infinite;
}

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

.navi .menu-top {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 10px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
}

/* スクロールバー非表示 */
.navi .menu-top::-webkit-scrollbar {
    display: none !important;
}

.navi .menu-top {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.navi .menu-item {
    margin: 0 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.navi .menu-item a {
    font-family: 'SF Pro Display', -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 16px 16px !important;
    display: block !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.2px !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4) !important;
    white-space: nowrap !important;
}

.navi .menu-item a:hover {
    color: #ff1493 !important;
    background: rgba(255, 20, 147, 0.2) !important;
    transform: translateY(-2px) !important;
    text-shadow: 
        0 0 10px #ff1493,
        0 0 20px #ff1493,
        0 0 30px #ff1493 !important;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4) !important;
    border-radius: 8px !important;
}

.navi .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff1493, #00ffff, #ffd700);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px currentColor;
}

.navi .menu-item a:hover::after {
    width: 85%;
}

/* 現在のページスタイルを完全にリセット */
.navi .menu-item.current-menu-item a,
.navi .menu-item.current_page_item a {
    color: #ffffff !important;
    background: transparent !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.navi .menu-item.current-menu-item a::after,
.navi .menu-item.current_page_item a::after {
    width: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ホバー時は全て同じスタイル */
.navi .menu-item a:hover,
.navi .menu-item.current-menu-item a:hover,
.navi .menu-item.current_page_item a:hover {
    color: #ff1493 !important;
    background: rgba(255, 20, 147, 0.2) !important;
    transform: translateY(-2px) !important;
    text-shadow: 
        0 0 10px #ff1493,
        0 0 20px #ff1493,
        0 0 30px #ff1493 !important;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4) !important;
    border-radius: 8px !important;
}

.navi .menu-item a:hover::after,
.navi .menu-item.current-menu-item a:hover::after,
.navi .menu-item.current_page_item a:hover::after {
    width: 85% !important;
    background: linear-gradient(90deg, #ff1493, #00ffff, #ffd700) !important;
    box-shadow: 0 0 10px #ff1493 !important;
}

/* カスタムハンバーガーメニュー */
.rinne-hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background: rgba(255, 20, 147, 0.9);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(255, 20, 147, 0.4),
        0 0 20px rgba(255, 20, 147, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rinne-hamburger:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 40px rgba(255, 20, 147, 0.6),
        0 0 30px rgba(255, 20, 147, 0.8);
}

.rinne-hamburger-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 18px;
}

.rinne-hamburger-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #00ffff);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.rinne-hamburger-line:nth-child(1) {
    top: 0;
}

.rinne-hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.rinne-hamburger-line:nth-child(3) {
    bottom: 0;
}

/* ハンバーガーメニュー開いた時のアニメーション */
.rinne-hamburger.active .rinne-hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: linear-gradient(90deg, #ff1493, #ffd700);
}

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

.rinne-hamburger.active .rinne-hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background: linear-gradient(90deg, #ff1493, #ffd700);
}

/* モバイルメニューオーバーレイ */
.rinne-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9998;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rinne-mobile-menu.active {
    display: flex;
    transform: translateY(0);
}

.rinne-mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 20, 147, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: mobileMenuGlow 8s ease-in-out infinite;
}

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

.rinne-mobile-menu-items {
    position: relative;
    z-index: 2;
    text-align: center;
}

.rinne-mobile-menu-item {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rinne-mobile-menu.active .rinne-mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.rinne-mobile-menu-item:nth-child(1) { transition-delay: 0.1s; }
.rinne-mobile-menu-item:nth-child(2) { transition-delay: 0.2s; }
.rinne-mobile-menu-item:nth-child(3) { transition-delay: 0.3s; }
.rinne-mobile-menu-item:nth-child(4) { transition-delay: 0.4s; }
.rinne-mobile-menu-item:nth-child(5) { transition-delay: 0.5s; }
.rinne-mobile-menu-item:nth-child(6) { transition-delay: 0.6s; }
.rinne-mobile-menu-item:nth-child(7) { transition-delay: 0.7s; }

.rinne-mobile-menu-item a {
    font-family: 'SF Pro Display', -apple-system, sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 15px 30px !important;
    display: block !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6) !important;
}

.rinne-mobile-menu-item a:hover {
    color: #ff1493 !important;
    background: rgba(255, 20, 147, 0.2) !important;
    border-color: rgba(255, 20, 147, 0.4) !important;
    transform: scale(1.05) !important;
    text-shadow: 
        0 0 20px #ff1493,
        0 0 40px #ff1493 !important;
    box-shadow: 
        0 8px 32px rgba(255, 20, 147, 0.4),
        0 0 60px rgba(255, 20, 147, 0.3) !important;
}

/* メインコンテンツ - 透明化 */
.main,
.entry-content,
.content,
.wp-block-html,
.post-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* タイトル - 元のグラデーション色に戻す */
h1 {
    font-family: 'SF Pro Display', -apple-system, sans-serif !important;
    font-size: clamp(48px, 8vw, 96px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center !important;
    margin: 80px 0 40px 0 !important;
    letter-spacing: -2px !important;
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #8b5cf6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3)) !important;
}

/* カードスタイル - モダンガラス */
div[style*="background: white"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    transition: all 0.3s ease !important;
}

div[style*="background: white"]:hover {
    transform: translateY(-4px) !important;
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2) !important;
}

/* アイコン - シティブルー */
div[style*="background: #007AFF"] {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

div[style*="background: #AF52DE"] {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}

div[style*="background: #FF9500"] {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
}

/* フッター - ポップネオンダーク */
#footer {
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #003366 100%) !important;
    color: #ffffff !important;
    border-top: 3px solid #ff1493 !important;
    padding: 60px 20px !important;
    box-shadow: 
        0 -4px 20px rgba(255, 20, 147, 0.4),
        0 0 40px rgba(0, 255, 255, 0.2) !important;
    position: relative !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: footerGlow 8s ease-in-out infinite;
}

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

/* シティライトエフェクト */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(59, 130, 246, 0.4), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(245, 158, 11, 0.2), transparent);
    background-repeat: repeat;
    background-size: 100px 100px;
    z-index: -1;
    opacity: 0.6;
    animation: cityLights 20s linear infinite;
}

@keyframes cityLights {
    from { transform: translateX(0); }
    to { transform: translateX(100px); }
}

/* スクロールバー - モダンシティ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* レスポンシブ - ハンバーガーメニュー */
@media screen and (max-width: 834px) {
    /* PCメニューを完全非表示 */
    .navi {
        display: none !important;
    }
    
    /* Cocoonの全モバイルメニュー要素を強制非表示 */
    .mobile-menu-buttons,
    .menu-mobile,
    .header-mobile-buttons,
    .mobile-menu-button,
    .menu-mobile-button,
    .mobile-menu-overlay,
    .mobile-menu-box,
    .mobile-menu-wrap,
    .mobile-menu-panel,
    .mobile-sidebar,
    .mobile-footer-menu,
    .mobile-footer-menu-buttons,
    .mobile-footer-menu-wrap,
    .fixed-mobile-buttons,
    .mobile-menu-content,
    .slide-menu,
    .slide-menu-overlay,
    .slide-in-menu,
    .mobile-button,
    .mobile-buttons,
    .mobile-search-button,
    .mobile-top-button,
    .mobile-sidebar-button,
    .mobile-share-button,
    .mobile-menu-icon,
    .mobile-home-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* フッター固定メニューも完全除去 */
    .footer-mobile-buttons,
    .mobile-footer-buttons,
    .fixed-footer-menu,
    .mobile-bottom-menu,
    .bottom-menu,
    .mobile-navigation {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Cocoonのモバイル関連CSSをすべて無効化 */
    body.mobile-menu-open,
    body.slide-menu-open,
    body.mobile-sidebar-open {
        overflow: auto !important;
    }
    
    /* カスタムハンバーガーメニュー表示 */
    .rinne-hamburger {
        display: block !important;
    }
    
    h1 {
        font-size: clamp(36px, 10vw, 64px) !important;
        letter-spacing: -1px !important;
        margin: 60px 0 30px 0 !important;
    }
}

@media screen and (max-width: 480px) {
    body::after {
        opacity: 0.3;
    }
    
    .rinne-hamburger {
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .rinne-mobile-menu-item a {
        font-size: 24px !important;
        padding: 12px 25px !important;
    }
    
    h1 {
        font-size: clamp(28px, 12vw, 48px) !important;
        margin: 40px 0 20px 0 !important;
    }
}

/* Blogページ（ID:47）のみ目次非表示 */
.page-id-47 .toc-container {
    display: none !important;
}

/* より確実にするための追加指定 */
body.page-id-47 .toc-container,
body.page-id-47 .toc,
body.page-id-47 #toc_container {
    display: none !important;
    visibility: hidden !important;
}

/* 記事ID 14（ホームページ）の目次を非表示 */
.page-id-14 .toc_widget_list,
.page-id-14 .toc-container,
.page-id-14 .table-of-contents,
.page-id-14 .ez-toc-container,
.page-id-14 .rtoc-mokuji,
.page-id-14 .wp-block-table-of-contents,
.page-id-14 #toc_container,
.page-id-14 .sitemap_page {
    display: none !important;
}

/* Rich Table of Contents (RTOC) の場合 */
.page-id-14 .rtoc-mokuji-wrapper {
    display: none !important;
}

/* Easy Table of Contents の場合 */
.page-id-14 .ez-toc-v2_0_17 {
    display: none !important;
}

/* Table of Contents Plus の場合 */
.page-id-14 .toc_wrap {
    display: none !important;
}

/* その他の一般的な目次プラグインのクラス */
.page-id-14 .toc,
.page-id-14 .table-of-content,
.page-id-14 .content-index {
    display: none !important;
}