@charset "UTF-8";

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Zen Maru Gothic', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
            background: #fafafa; /* クリーンな白背景ベース */
            min-height: 100vh;
            color: #333;
            line-height: 1.6;
        }

        /* -------------------------------------------
           トップナビゲーションバー
        ------------------------------------------- */
        .top-nav-bar {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 15px 0;
            border-bottom: 1px solid #eaeaea;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .site-logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2c3e50;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* -------------------------------------------
           ヒーローバナー (トップページ)
        ------------------------------------------- */
        .hero-banner {
            padding: 40px 20px 50px 20px;
            text-align: center;
            background: #ffffff;
            color: #2c3e50;
            margin-bottom: 40px;
            border-radius: 0 0 30px 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.03);
            border: 1px solid #eaeaea;
            border-top: none;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            letter-spacing: 2px;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            color: #7f8c8d;
        }

        .hero-logo {
            height: 180px;
            max-width: 100%;
            object-fit: contain;
            display: inline-block;
        }

        .page-header {
            text-align: center;
            padding: 15px 20px;
            margin-bottom: 30px;
            position: sticky;
            top: 0;
            background-color: rgba(255, 255, 255, 0.95);
            z-index: 1000;
            backdrop-filter: blur(5px);
            border-bottom: 1px solid #eee;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .page-title {
            font-size: 1.5rem;
            color: #2c3e50;
            margin: 0;
            font-weight: bold;
        }

        /* -------------------------------------------
           全体レイアウト (3カラム)
        ------------------------------------------- */
        .site-wrapper {
            display: grid;
            grid-template-columns: 260px 1fr 260px;
            gap: 30px;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px 40px 20px;
            align-items: start;
        }

        /* サイドバー共通 */
        .sidebar {
            flex-shrink: 0;
        }

        .sticky-sidebar {
            position: sticky;
            top: 90px; /* navの高さ分マージン */
        }

        /* ウィジェット (サイドバー内の各ブロック) */
        .widget {
            background: #ffffff;
            border: 1px solid #eaeaea;
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
        }

        .widget-title {
            font-size: 1.2rem;
            color: #2c3e50;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #4a90e2;
        }

        .series-menu {
            list-style: none;
        }

        .series-menu li {
            margin-bottom: 10px;
        }

        .series-menu a {
            text-decoration: none;
            color: #555;
            font-weight: bold;
            display: block;
            padding: 8px 15px;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .series-menu a:hover {
            background: rgba(74, 144, 226, 0.1);
            color: #4a90e2;
            transform: translateX(5px);
        }

        .ranking-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .ranking-list li {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            padding: 8px 10px;
            background: #fdfdfd;
            border-radius: 10px;
            border: 1px solid #f1f1f1;
            transition: all 0.2s ease;
        }

        .ranking-list li:hover {
            background: rgba(74, 144, 226, 0.05);
            border-color: rgba(74, 144, 226, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        }

        .ranking-list a {
            text-decoration: none;
            color: #333;
            font-weight: bold;
            font-size: 0.95rem;
            flex-grow: 1;
        }

        .ranking-list a:hover {
            color: #4a90e2;
        }

        .rank-badge {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #bdc3c7;
            color: white;
            font-weight: bold;
            font-size: 0.85rem;
            margin-right: 12px;
            flex-shrink: 0;
        }

        .rank-1 { background: linear-gradient(135deg, #f1c40f, #f39c12); box-shadow: 0 2px 5px rgba(243,156,18,0.4); }
        .rank-2 { background: linear-gradient(135deg, #e0e0e0, #95a5a6); box-shadow: 0 2px 5px rgba(149,165,166,0.4); }
        .rank-3 { background: linear-gradient(135deg, #e67e22, #d35400); box-shadow: 0 2px 5px rgba(211,84,0,0.4); }


        /* メインコンテンツエリア */
        .main-content {
            background: #ffffff;
            border: 1px solid #eaeaea;
            border-radius: 25px;
            padding: 40px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.02);
            min-height: 500px;
        }

        /* -------------------------------------------
           レスポンシブ (画面幅に応じたカラム落ち)
        ------------------------------------------- */
        @media (max-width: 1200px) {
            .site-wrapper {
                grid-template-columns: 250px 1fr;
            }
            .sidebar-right {
                display: none; /* 右サイドバー（広告）を隠す */
            }
        }

        @media (max-width: 900px) {
            .site-wrapper {
                grid-template-columns: 1fr;
            }
            .sidebar-left {
                order: 2; /* スマホ時はメニューをメインの下に */
            }
            .main-content {
                order: 1;
            }
            .hero-title {
                font-size: 2.2rem;
            }
            .hero-logo {
                height: auto;
                width: 80%;
                max-width: 300px;
            }
        }

        h1 {
            font-size: 3rem;
            color: #2c3e50;
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .subtitle {
            font-size: 1.3rem;
            color: #7f8c8d;
            font-style: italic;
            margin-bottom: 20px;
        }

        .doraemon-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            animation: bounce 2s infinite;
        }

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

        .description {
            text-align: center;
            margin-bottom: 40px;
            font-size: 1.1rem;
            color: #555;
            line-height: 1.6;
        }

        .volumes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

        .volumes-grid.is-small {
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 15px;
        }

        .volume-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .volumes-grid.is-small .volume-card {
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }

        .volume-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
            transition: left 0.5s ease;
        }

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

        .volume-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
            border-color: #4a90e2;
        }

        .volume-number {
            font-size: 2.5rem;
            font-weight: bold;
            color: #4a90e2;
            margin-bottom: 10px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }

        .volume-title {
            font-size: 1.3rem;
            color: #2c3e50;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .volume-info {
            color: #7f8c8d;
            margin-bottom: 20px;
            font-size: 0.95rem;
            flex-grow: 1;
        }

        .volume-link {
            display: inline-block;
            padding: 12px 25px;
            background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
            color: white;
            text-decoration: none;
            border-radius: 25px;
            font-weight: bold;
            transition: all 0.3s ease;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        }

        .volume-link:hover {
            background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
        }

        .coming-soon {
            background: #f8f9fa;
            color: #95a5a6;
            cursor: not-allowed;
        }

        .coming-soon:hover {
            background: #f8f9fa;
            transform: none;
            box-shadow: none;
        }

        .footer {
            text-align: center;
            margin-top: 50px;
            padding-top: 30px;
            border-top: 2px solid #ecf0f1;
            color: #7f8c8d;
            font-size: 0.9rem;
        }

        .footer a {
            color: #4a90e2;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer a:hover {
            color: #357abd;
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .container {
                padding: 20px;
                margin: 10px;
            }

            h1 {
                font-size: 2.5rem;
            }

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

            .volumes-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 20px;
            }
            .volumes-grid.is-small {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 15px;
            }

            .volume-card {
                padding: 20px;
            }
            .volumes-grid.is-small .volume-card {
                padding: 15px;
            }

            .volume-number {
                font-size: 2rem;
            }

            .volume-title {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 15px;
                margin: 5px;
            }

            h1 {
                font-size: 2rem;
            }

            .subtitle {
                font-size: 1.1rem;
            }

            .description {
                font-size: 1rem;
            }

            .search-box {
                font-size: 0.95rem;
                padding: 12px 40px 12px 35px;
            }

            .search-icon {
                left: 12px;
                font-size: 1rem;
            }

            .volumes-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .volumes-grid.is-small {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }

            .volume-card {
                padding: 15px;
            }
            .volumes-grid.is-small .volume-card {
                padding: 10px;
            }

            .volume-number {
                font-size: 1.8rem;
            }

            .volume-title {
                font-size: 1rem;
            }
        }

        .stats {
            background: #ffffff;
            border: 1px solid #eaeaea;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 40px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        }

        .stats h2 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.5rem;
        }

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

        .stat-item {
            background: rgba(255, 255, 255, 0.8);
            padding: 15px;
            border-radius: 10px;
            border-left: 4px solid #f39c12;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: bold;
            color: #e67e22;
            margin-bottom: 5px;
        }

        .stat-label {
            color: #34495e;
            font-size: 0.9rem;
        }
    
/* ========================================================
   Search UI
======================================================== */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px auto;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

/* 🔍 検索アイコン（左側に常時表示） */
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

.search-box {
    width: 100%;
    padding: 15px 50px 15px 48px;
    font-size: 1.1rem;
    border: 2px solid #e3f2fd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-family: inherit;
}

.search-box:focus {
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

/* × クリアボタン（入力時のみ表示） */
.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: none;
}

.search-clear.visible {
    display: block;
}

.search-clear:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.search-results {
    margin-top: 20px;
    display: none;
    text-align: left;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 500px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-item {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.search-item-meta {
    font-size: 0.85rem;
    color: #4a90e2;
    margin-bottom: 8px;
    font-weight: bold;
}

.search-item-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.search-item a {
    text-decoration: none;
}

.search-item a:hover .search-item-title {
    color: #4a90e2;
}

.no-results {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
}

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

/* Floating Scroll Buttons */
.scroll-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.scroll-btn:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    opacity: 1;
    color: white;
}

@media (max-width: 768px) {
    .scroll-buttons {
        right: 15px;
        bottom: 15px;
    }
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* -------------------------------------------
   Mobile Off-canvas menu
------------------------------------------- */
.mobile-menu-toggle {
    display: none; /* hidden on desktop */
}
.mobile-menu-overlay {
    display: none; /* hidden on desktop */
}

@media (max-width: 900px) {
    /* メニュー開閉ボタン */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        bottom: 80px;
        background-color: #2c3e50;
        color: white;
        padding: 15px 10px;
        border-radius: 0 8px 8px 0;
        z-index: 10001;
        box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
        cursor: pointer;
        writing-mode: vertical-rl;
        text-orientation: upright;
        letter-spacing: 2px;
        font-weight: bold;
        font-size: 0.95rem;
    }
    
    .mobile-menu-toggle .icon {
        writing-mode: horizontal-tb;
        margin-bottom: 5px;
        font-size: 1.2rem;
    }

    /* オフキャンバスサイドバー */
    .sidebar-left {
        position: fixed;
        top: 0;
        left: -320px; /* 画面外に隠す */
        width: 280px;
        height: 100%;
        background-color: #fff;
        z-index: 10000;
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        padding: 20px;
        margin: 0;
        border-radius: 0;
    }

    .sidebar-left.open {
        left: 0; /* スライドイン */
    }
    
    /* オーバーレイ (背景を暗くする) */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu-overlay.open {
        display: block;
        opacity: 1;
    }
}
