/* --- 追加：カレンダーウィジェットの統合スタイル --- */
        .strategy-section {
            background: #fff;
            padding: 10px;
            
        }
        #calendar-root {
    will-change: opacity, transform; /* アニメーションを滑らかにするおまじない */
}/* スケルトン（読み込み中）のスタイル */
.calendar-skeleton {
    padding: 15px;
}

.skeleton-row {
    height: 60px;
    background: #f1f5f9;
    margin-bottom: 12px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* 光が流れるアニメーション */
.skeleton-row::after {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    100% { left: 100%; }
}

/* JS描画後のリッチな日付中央配置 */
.date-box {
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央寄せ */
    justify-content: center;
    border-right: 1px solid var(--border);
    margin-right: 15px;
    background: #f8fafc; /* 日付エリアに微かな色 */
    border-radius: 8px 0 0 8px;
}

.date-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 2px;
}

.date-ymd {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
}

        /* カレンダー本体のカードデザイン */
        .calendar-card {
            min-width: 320px;
            max-width: 1000px;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 10px 41px rgba(0, 0, 0, 0.05);
            overflow: hidden;margin-bottom:1rem;
        }
        .calendar-header {
           
            padding: 10px 10px;
            font-weight: 800;
background
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .day-row {
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.2s;
        }
        .day-main {
            padding: 16px 20px;
            display: flex;
            cursor: pointer;
        }
        .day-main:hover { background: #f8fafc; }
        .is-today { background: #eff6ff; border-left: 5px solid #4f46e5; }
        
        .date-box { width: 85px; flex-shrink: 0; }
        .date-label { font-weight: bold; font-size: 0.9rem; color: #1e293b; }
        .date-ymd { font-size: 0.75rem; color: #64748b; }

        .event-tags { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
        .tag {
            font-size: 0.8rem;
            padding: 6px 12px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 600;
            border: 1px solid rgba(0,0,0,0.03);
        }
        /* ランクバッジスタイル */
        .rank-badge {
            font-size: 0.65rem;
            font-weight: 900;
            padding: 2px 6px;
            border-radius: 4px;
            color: #white;
            margin-left: 8px;
            color: white;
        }
        .rank-S { background: #ef4444; }
        .rank-A { background: #f59e0b; }
        .rank-B { background: #3b82f6; }
        .rank-C { background: #64748b; }

        .day-detail {
            display: none;
            padding: 15px 20px 20px 105px;
            background: #fafafa;
            border-top: 1px dashed #e2e8f0;
            font-size: 0.85rem;
            color: #475569;
        }/* ランクバッジ：どんなCSSが来ても横向きにさせない・崩さない */
.rank-badge {
    display: inline-flex !important;
    writing-mode: horizontal-tb !important; /* 縦書きを強制キャンセル */
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    border-radius: 4px !important;
    color: #fff !important;
    margin-left: 8px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

root {
            --primary: #0f172a;
            --secondary: #3b82f6;
            --accent: #22d3ee;
            --text-main: #334155;
            --bg-color: #f8fafc;
        }

        body {
            background-color: var(--bg-color);
            margin: 0;
            padding: 0;
            font-family: 'Inter', 'Noto Sans JP', sans-serif;
            color: var(--text-main);
        }

       

        /* Glassmorphism Category Grid */
        .category-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px 80px;
            position: relative;
            z-index: 2;
        }

        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .category-card {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 35px;
            border-radius: 16px;
            text-decoration: none;
            color: inherit;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            border: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .category-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .category-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
            background: rgba(255, 255, 255, 0.95);
        }

        .category-card:hover::before {
            transform: scaleX(1);
        }

        .category-card:hover .action-link {
            gap: 8px;
            color: var(--secondary);
        }

        .category-emoji {
            font-size: 3rem;
            margin-bottom: 20px;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
            display: inline-block;
            transition: transform 0.3s ease;
        }

        .category-card:hover .category-emoji {
            transform: scale(1.1) rotate(5deg);
        }

        .category-card h2 {
            font-size: 1.4rem;
            color: var(--primary);
            border: none;
            margin: 0 0 12px 0;
            padding: 0;
            font-weight: 700;
        }

        .category-card p {
            font-size: 0.95rem;
            color: #64748b;
            margin-bottom: 25px;
            line-height: 1.7;
            flex-grow: 1;
        }

        .action-link {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #94a3b8;
            transition: all 0.3s ease;
            margin-top: auto;
        }

        .action-link svg {
            width: 16px;
            height: 16px;
            stroke-width: 2.5;
        }

        /* Essential Reading Section */
        .essential-section {
            background: white;
            padding: 80px 20px;
            border-top: 1px solid #e2e8f0;
        }

        .essential-inner {
            max-width: 1100px;
            margin: 0 auto;
        }

        .essential-title {
            text-align: center;
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 50px;
            font-weight: 800;
        }

        .spotlight-card {
            background: linear-gradient(120deg, #1e293b 0%, #0f172a 100%);
            border-radius: 16px;
            padding: 40px;
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.2);
            margin-bottom: 30px;
        }

        .spotlight-content h3 {
            border: none;
            color: white;
            font-size: 1.8rem;
            margin: 0 0 15px 0;
        }

        .spotlight-content p {
            color: #94a3b8;
            font-size: 1rem;
            max-width: 500px;
            line-height: 1.6;
            margin-bottom: 0;
        }

        .spotlight-btn {
            background: linear-gradient(135deg, #3b82f6, #22d3ee);
            color: white;
            padding: 14px 28px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            white-space: nowrap;
        }

        .spotlight-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
        }
/* Premium Article Grid */
        .container { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; }
        
        .article-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .article-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 25px;
            text-decoration: none;
            color: inherit;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0,0,0,0.02);
            position: relative;
            overflow: hidden;
        }

        .article-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--secondary);
            transform: scaleY(0);
            transition: transform 0.3s ease;
            transform-origin: bottom;
        }

        .article-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 25px -10px rgba(15, 23, 42, 0.1);
            border-color: #cbd5e1;
        }

        .article-card:hover::before { transform: scaleY(1); }

        .article-icon {
            font-size: 1.5rem;
            background: #f1f5f9;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .article-content h3 {
            border: none;
            margin: 0 0 8px 0;
            font-size: 1.1rem;
            font-weight: 700;
            line-height: 1.4;
            color: var(--primary);
        }

        .article-content p {
            margin: 0;
            font-size: 0.85rem;
            color: #64748b;
        }