        :root {
            --color-bg: #f8fdf9;
            --color-bg-soft: #f0f9f4;
            --color-bg-card: #ffffff;
            --color-bg-code: #2d3748;
            
            --color-green-lightest: #f0f9f2;
            --color-green-light: #e8f5e9;
            --color-green-soft: #a8d5ba;
            --color-green-main: #7bc89c;
            --color-green-accent: #5db87d;
            --color-green-dark: #4a9968;
            
            --color-aqua-light: #e0f7fa;
            --color-aqua-soft: #a7dce8;
            --color-aqua-main: #6cc4db;
            --color-aqua-accent: #4db6d4;
            
            --color-pink-soft: #f8e8f0;
            --color-pink-main: #e8a0c0;
            
            --color-yellow-light: #fff8e1;
            --color-yellow-main: #ffd54f;
            
            --color-red-light: #ffebee;
            --color-red-main: #ef5350;
            
            --color-blue-light: #e3f2fd;
            --color-blue-main: #42a5f5;
            
            --color-text-main: #3d5a47;
            --color-text-soft: #5a7d66;
            --color-text-muted: #8ba898;
            
            --color-white: #ffffff;
            --color-border: #d4e8dc;
            
            --font-display: 'Quicksand', 'M PLUS Rounded 1c', sans-serif;
            --font-body: 'M PLUS Rounded 1c', sans-serif;
            --font-code: 'Source Code Pro', monospace;
            
            --shadow-soft: 0 4px 20px rgba(93, 184, 125, 0.08);
            --shadow-card: 0 8px 30px rgba(93, 184, 125, 0.12);
            --shadow-hover: 0 20px 60px rgba(93, 184, 125, 0.2);
            
            --content-width: 800px;
            --sidebar-width: 320px;
        }

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

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 100px;
            background-color: #f8fdf9;
        }

        body {
            font-family: var(--font-body);
            background-color: #f8fdf9;
            color: var(--color-text-main);
            line-height: 1.8;
            overflow-x: hidden;
            -webkit-text-fill-color: initial;
        }

        /* ダークモード対策 */
        @media (prefers-color-scheme: dark) {
            html, body {
                background-color: #f8fdf9 !important;
                color: #3d5a47 !important;
            }
        }

        /* ========================================
           読了プログレスバー
        ======================================== */
        .reading-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 4px;
            background: linear-gradient(90deg, var(--color-green-main), var(--color-aqua-main));
            z-index: 1001;
            transition: width 0.1s linear;
        }

        .reading-progress::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            width: 20px;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
            filter: blur(3px);
        }

        /* 読了パーセント表示（右下）- 目次に統合したので非表示 */
        .reading-percent {
            display: none;
        }

        /* ========================================
           いいねボタン
        ======================================== */
        .like-button-container {
            display: flex;
            justify-content: center;
            margin: 40px 0;
        }

        .like-button {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 32px;
            background: var(--color-white);
            border: 2px solid var(--color-pink-main);
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .like-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(232, 160, 192, 0.3);
        }

        .like-button.liked {
            background: linear-gradient(135deg, var(--color-pink-main), #f48fb1);
            border-color: transparent;
        }

        .like-button.liked .like-icon,
        .like-button.liked .like-count {
            color: white;
        }

        .like-icon {
            font-size: 1.5rem;
            color: var(--color-pink-main);
            transition: all 0.3s;
        }

        .like-button.liked .like-icon {
            animation: heartBeat 0.6s ease-in-out;
        }

        @keyframes heartBeat {
            0% { transform: scale(1); }
            25% { transform: scale(1.3); }
            50% { transform: scale(1); }
            75% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .like-count {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-pink-main);
            transition: all 0.3s;
        }

        .like-text {
            font-size: 0.9rem;
            color: var(--color-text-soft);
        }

        .like-button.liked .like-text {
            color: rgba(255,255,255,0.9);
        }

        /* ハートパーティクル */
        .heart-particle {
            position: absolute;
            font-size: 1rem;
            pointer-events: none;
            animation: floatUp 1s ease-out forwards;
        }

        @keyframes floatUp {
            0% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateY(-80px) scale(0.5);
            }
        }

        /* ========================================
           コードコピーボタン
        ======================================== */
        .code-block-wrapper {
            position: relative;
            margin: 2em 0;
        }

        .code-copy-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            padding: 8px 16px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            color: #a0aec0;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .code-copy-btn:hover {
            background: rgba(255,255,255,0.2);
            color: white;
        }

        .code-copy-btn.copied {
            background: var(--color-green-main);
            border-color: var(--color-green-main);
            color: white;
        }

        .code-copy-btn svg {
            width: 14px;
            height: 14px;
        }

        /* ========================================
           リアクションボタン
        ======================================== */
        .reaction-section {
            margin: 50px 0;
            padding: 30px;
            background: linear-gradient(135deg, var(--color-green-lightest), var(--color-aqua-light));
            border-radius: 20px;
            text-align: center;
        }

        .reaction-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-text-main);
            margin-bottom: 20px;
        }

        .reaction-buttons {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .reaction-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 16px 24px;
            background: var(--color-white);
            border: 2px solid var(--color-border);
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s;
            min-width: 100px;
        }

        .reaction-btn:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
            border-color: var(--color-green-soft);
        }

        .reaction-btn.selected {
            border-color: var(--color-green-main);
            background: var(--color-green-lightest);
        }

        .reaction-btn.selected .reaction-emoji {
            animation: bounce 0.5s ease;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .reaction-emoji {
            font-size: 2rem;
            transition: transform 0.3s;
        }

        .reaction-btn:hover .reaction-emoji {
            transform: scale(1.2);
        }

        .reaction-label {
            font-size: 0.8rem;
            color: var(--color-text-soft);
            font-weight: 500;
        }

        .reaction-count {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--color-green-accent);
        }

        /* ========================================
           見出しアイコン装飾
        ======================================== */
        .article-content h2 {
            position: relative;
            padding-left: 50px;
        }

        .article-content h2::before {
            content: '📖';
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.3rem;
        }

        .article-content h2:nth-of-type(2)::before { content: '⚔️'; }
        .article-content h2:nth-of-type(3)::before { content: '🎯'; }
        .article-content h2:nth-of-type(4)::before { content: '📋'; }
        .article-content h2:nth-of-type(5)::before { content: '💚'; }
        .article-content h2:nth-of-type(6)::before { content: '✨'; }

        /* ========================================
           スクロールアニメーション
        ======================================== */
        .fade-up {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .fade-left {
            opacity: 0;
            transform: translateX(-40px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .fade-left.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .fade-right {
            opacity: 0;
            transform: translateX(40px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .fade-right.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .scale-up {
            opacity: 0;
            transform: scale(0.9);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .scale-up.visible {
            opacity: 1;
            transform: scale(1);
        }

        /* ========================================
           画像ホバー効果強化
        ======================================== */
        .article-content img,
        .gallery img {
            cursor: zoom-in;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .gallery img:hover {
            transform: scale(1.05);
            box-shadow: var(--shadow-hover);
        }

        /* ========================================
           目次アニメーション
        ======================================== */
        .toc-list {
            max-height: 1000px;
            overflow: hidden;
            transition: max-height 0.5s ease-in-out;
        }

        .toc.closed .toc-list {
            max-height: 0;
        }

        .sidebar-toc-list a {
            position: relative;
            overflow: hidden;
        }

        .sidebar-toc-list a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0%;
            height: 2px;
            background: linear-gradient(90deg, var(--color-green-main), var(--color-aqua-main));
            transition: width 0.3s;
        }

        .sidebar-toc-list a.active::after {
            width: 100%;
        }

        /* アクティブ目次のパルスエフェクト */
        .sidebar-toc-list a.active {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(93, 184, 125, 0.2); }
            50% { box-shadow: 0 0 0 8px rgba(93, 184, 125, 0); }
        }

        /* ========================================
           SNSボタンアニメーション
        ======================================== */
        .share-btn {
            position: relative;
            overflow: hidden;
        }

        .share-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .share-btn:hover::before {
            width: 200%;
            height: 200%;
        }

        /* ========================================
           関連記事カードアニメーション
        ======================================== */
        .related-post-card {
            position: relative;
            overflow: hidden;
        }

        .related-post-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(93, 184, 125, 0.1), transparent);
            transition: left 0.5s;
        }

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

        /* ========================================
           コメントアバターアニメーション
        ======================================== */
        .comment-avatar {
            transition: all 0.3s;
        }

        .comment-item:hover .comment-avatar {
            transform: scale(1.1) rotate(5deg);
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            color: white;
        }

        /* ========================================
           フローティングアクションボタン
        ======================================== */
        .floating-actions {
            position: fixed;
            bottom: 100px;
            right: 30px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 998;
        }

        .floating-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--color-white);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: var(--shadow-card);
            transition: all 0.3s;
            opacity: 0;
            transform: translateX(20px);
        }

        .floating-btn.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .floating-btn:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-hover);
        }

        .floating-btn.share-float {
            background: linear-gradient(135deg, #1da1f2, #0d8bd9);
            color: white;
        }

        .floating-btn.bookmark {
            background: linear-gradient(135deg, var(--color-yellow-main), #ffb300);
            color: white;
        }

        .floating-btn.bookmark.saved {
            animation: bookmarkSaved 0.5s ease;
        }

        @keyframes bookmarkSaved {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.3); }
        }

        /* ========================================
           ツールチップ
        ======================================== */
        [data-tooltip] {
            position: relative;
        }

        [data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 120%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            padding: 8px 14px;
            background: var(--color-bg-code);
            color: white;
            font-size: 0.8rem;
            border-radius: 8px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 1000;
        }

        [data-tooltip]:hover::after {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        /* ========================================
           ヘッダー
        ======================================== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 12px 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            box-shadow: 0 4px 30px rgba(93, 184, 125, 0.1);
        }

        .header-inner {
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: all 0.4s;
        }

        .logo img {
            height: 32px;
            width: auto;
            transition: all 0.4s;
        }

        /* ナビゲーション */
        nav {
            display: flex;
            gap: 6px;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 12px 20px;
            color: var(--color-text-main);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            border-radius: 30px;
            transition: all 0.4s;
            position: relative;
            overflow: hidden;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            opacity: 0;
            transform: scale(0);
            border-radius: 30px;
            transition: all 0.4s;
            z-index: -1;
        }

        .nav-link:hover::before {
            opacity: 1;
            transform: scale(1);
        }

        .nav-link:hover {
            color: var(--color-white);
        }

        /* ドロップダウン矢印 */
        .nav-link .arrow {
            font-size: 0.6em;
            transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            display: inline-block;
        }

        .nav-item:hover .arrow {
            transform: rotate(180deg);
        }

        /* ドロップダウンメニュー */
        .dropdown {
            position: absolute;
            top: calc(100% + 15px);
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            min-width: 220px;
            background: var(--color-white);
            border-radius: 20px;
            padding: 16px 0;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-hover);
            border: 1px solid var(--color-border);
        }

        .dropdown::before {
            content: '';
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid var(--color-white);
        }

        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .dropdown-link {
            display: block;
            padding: 12px 24px;
            color: var(--color-text-main);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .dropdown-link:hover {
            background: linear-gradient(90deg, var(--color-green-light), transparent);
            color: var(--color-green-accent);
            padding-left: 32px;
        }

        /* モバイルメニューボタン */
        .mobile-menu-btn {
            display: none;
            width: 48px;
            height: 48px;
            background: var(--color-green-light);
            border: none;
            border-radius: 12px;
            cursor: pointer;
            position: relative;
        }

        .mobile-menu-btn span {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 22px;
            height: 2px;
            background: var(--color-green-accent);
            border-radius: 2px;
            transition: all 0.4s;
        }

        .mobile-menu-btn span:nth-child(1) { top: 16px; }
        .mobile-menu-btn span:nth-child(2) { top: 23px; }
        .mobile-menu-btn span:nth-child(3) { top: 30px; }

        .mobile-menu-btn.active span:nth-child(1) {
            top: 23px;
            transform: translateX(-50%) rotate(45deg);
        }
        .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
        .mobile-menu-btn.active span:nth-child(3) {
            top: 23px;
            transform: translateX(-50%) rotate(-45deg);
        }

        /* ========================================
           記事ヘッダー
        ======================================== */
        .article-header {
            padding: 120px 32px 60px;
            background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-aqua-light) 100%);
        }

        .article-header-inner {
            max-width: 900px;
            margin: 0 auto;
        }

        .article-breadcrumb {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
            font-size: 0.85rem;
            color: var(--color-text-muted);
        }

        .article-breadcrumb a {
            color: var(--color-text-muted);
            text-decoration: none;
            transition: color 0.3s;
        }

        .article-breadcrumb a:hover {
            color: var(--color-green-accent);
        }

        .article-breadcrumb span {
            color: var(--color-text-muted);
        }

        .article-category-tag {
            display: inline-block;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            color: white;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .article-title {
            font-family: var(--font-display);
            font-size: clamp(1.3rem, 4vw, 2.2rem);
            font-weight: 700;
            color: var(--color-text-main);
            line-height: 1.5;
            margin-bottom: 20px;
            word-break: break-word;
        }

        .article-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 16px;
            font-size: 0.85rem;
            color: var(--color-text-muted);
        }

        .article-meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .article-meta-item svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            stroke: var(--color-aqua-main);
        }

        /* ========================================
           メインレイアウト
        ======================================== */
        .article-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 32px;
            display: grid;
            grid-template-columns: 1fr var(--sidebar-width);
            gap: 50px;
        }

        /* ========================================
           アイキャッチ画像
        ======================================== */
        .article-eyecatch {
            margin-bottom: 40px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow-card);
        }

        .article-eyecatch img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* ========================================
           目次
        ======================================== */
        .toc {
            background: var(--color-bg-soft);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 40px;
            border: 1px solid var(--color-border);
        }

        .toc-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1rem;
            font-weight: 700;
            color: var(--color-green-accent);
            margin-bottom: 16px;
            cursor: pointer;
        }

        .toc-title::before {
            content: '';
            width: 4px;
            height: 20px;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            border-radius: 2px;
        }

        .toc-toggle {
            margin-left: auto;
            font-size: 0.8rem;
            color: var(--color-text-muted);
            transition: transform 0.3s;
        }

        .toc.closed .toc-toggle {
            transform: rotate(180deg);
        }

        .toc-list {
            list-style: none;
        }

        .toc.closed .toc-list {
            display: none;
        }

        .toc-list li {
            margin-bottom: 0;
        }

        .toc-list a {
            display: block;
            padding: 6px 12px;
            color: var(--color-text-soft);
            text-decoration: none;
            font-size: 0.9rem;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .toc-list a:hover {
            background: var(--color-white);
            color: var(--color-green-accent);
            padding-left: 20px;
        }

        .toc-list .toc-h3 {
            margin-left: 12px;
        }

        .toc-list .toc-h3 a {
            padding: 5px 12px;
            font-size: 0.85rem;
        }

        .toc-list .toc-h3 a:hover {
            padding-left: 20px;
        }

        /* ========================================
           本文スタイル
        ======================================== */
        .article-content {
            font-size: 1rem;
            line-height: 1.9;
        }

        .article-content p {
            margin-bottom: 1.6em;
        }

        .article-content a {
            color: var(--color-green-accent);
            text-decoration: underline;
            text-decoration-color: var(--color-green-soft);
            text-underline-offset: 3px;
            transition: all 0.3s;
        }

        .article-content a:hover {
            color: var(--color-aqua-accent);
            text-decoration-color: var(--color-aqua-soft);
        }

        /* 見出し - アイコンはJSで後から付与 */
        .article-content h2 {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-text-main);
            margin: 3em 0 1.2em;
            padding: 16px 20px 16px 54px;
            background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-aqua-light) 100%);
            border-left: 5px solid var(--color-green-accent);
            border-radius: 0 12px 12px 0;
            position: relative;
        }

        .article-content h2:first-of-type {
            margin-top: 0;
        }

        .article-content h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--color-text-main);
            margin: 2.5em 0 1em;
            padding-bottom: 10px;
            border-bottom: 3px solid var(--color-green-soft);
            position: relative;
        }

        .article-content h3::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 80px;
            height: 3px;
            background: linear-gradient(90deg, var(--color-green-main), var(--color-aqua-main));
        }

        .article-content h4 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-text-main);
            margin: 2em 0 0.8em;
            padding-left: 14px;
            border-left: 4px solid var(--color-aqua-main);
        }

        /* リスト */
        .article-content ul,
        .article-content ol {
            margin: 1.5em 0;
            padding-left: 1.5em;
        }

        .article-content li {
            margin-bottom: 0.8em;
        }

        .article-content ul li::marker {
            color: var(--color-green-main);
        }

        .article-content ol li::marker {
            color: var(--color-green-accent);
            font-weight: 700;
        }

        /* 画像 */
        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: var(--shadow-soft);
            margin: 1.5em 0;
        }

        .article-content figure {
            margin: 2em 0;
        }

        .article-content figcaption {
            text-align: center;
            font-size: 0.85rem;
            color: var(--color-text-muted);
            margin-top: 10px;
        }

        /* 引用 */
        .article-content blockquote {
            margin: 2em 0;
            padding: 20px 24px 20px 60px;
            background: var(--color-bg-soft);
            border-radius: 12px;
            border-left: 4px solid var(--color-aqua-main);
            position: relative;
            font-style: italic;
            color: var(--color-text-soft);
            line-height: 1.9;
        }

        .article-content blockquote p {
            margin-bottom: 0;
        }

        .article-content blockquote::before {
            content: '"';
            position: absolute;
            left: 20px;
            top: 12px;
            font-size: 3rem;
            color: var(--color-aqua-soft);
            font-family: Georgia, serif;
            line-height: 1;
        }

        .article-content blockquote cite {
            display: block;
            margin-top: 10px;
            font-size: 0.85rem;
            color: var(--color-text-muted);
            font-style: normal;
        }

        /* コードブロック */
        .article-content pre {
            margin: 0;
            padding: 24px;
            padding-top: 50px;
            background: var(--color-bg-code);
            border-radius: 12px;
            overflow-x: auto;
        }

        .article-content pre code {
            font-family: var(--font-code);
            font-size: 0.9rem;
            color: #e2e8f0;
            line-height: 1.7;
        }

        .article-content code {
            font-family: var(--font-code);
            font-size: 0.9em;
            background: var(--color-green-lightest);
            color: var(--color-green-dark);
            padding: 2px 8px;
            border-radius: 4px;
        }

        .article-content pre code {
            background: transparent;
            padding: 0;
        }

        /* テーブル */
        .article-content table {
            width: 100%;
            margin: 2em 0;
            border-collapse: collapse;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow-soft);
        }

        .article-content th,
        .article-content td {
            padding: 14px 18px;
            text-align: left;
            border-bottom: 1px solid var(--color-border);
        }

        .article-content th {
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            color: white;
            font-weight: 600;
        }

        .article-content tr:nth-child(even) {
            background: var(--color-bg-soft);
        }

        .article-content tr:hover {
            background: var(--color-green-lightest);
        }

        /* ========================================
           装飾ボックス
        ======================================== */
        .box {
            margin: 2em 0;
            padding: 20px 24px;
            border-radius: 12px;
            position: relative;
            line-height: 1.9;
        }

        .box-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .box-title-icon {
            width: 24px;
            height: 24px;
        }

        .box p:last-child {
            margin-bottom: 0;
        }

        /* ポイント */
        .box-point {
            background: var(--color-green-lightest);
            border: 1px solid var(--color-green-soft);
        }

        .box-point .box-title {
            color: var(--color-green-accent);
        }

        /* 注意 */
        .box-warning {
            background: var(--color-yellow-light);
            border: 1px solid var(--color-yellow-main);
        }

        .box-warning .box-title {
            color: #f57c00;
        }

        /* 危険 */
        .box-danger {
            background: var(--color-red-light);
            border: 1px solid #ffcdd2;
        }

        .box-danger .box-title {
            color: var(--color-red-main);
        }

        /* メモ */
        .box-memo {
            background: var(--color-blue-light);
            border: 1px solid #bbdefb;
        }

        .box-memo .box-title {
            color: var(--color-blue-main);
        }

        /* ========================================
           吹き出し
        ======================================== */
        .balloon {
            display: flex;
            gap: 20px;
            margin: 2em 0;
            align-items: flex-start;
        }

        .balloon-left {
            flex-direction: row;
        }

        .balloon-right {
            flex-direction: row-reverse;
        }

        .balloon-avatar {
            flex-shrink: 0;
            text-align: center;
        }

        .balloon-avatar img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--color-white);
            box-shadow: var(--shadow-soft);
            margin: 0;
        }

        .balloon-avatar-name {
            font-size: 0.75rem;
            color: var(--color-text-muted);
            margin-top: 6px;
        }

        .balloon-content {
            position: relative;
            background: var(--color-white);
            padding: 16px 20px;
            border-radius: 16px;
            box-shadow: var(--shadow-soft);
            max-width: 80%;
        }

        .balloon-left .balloon-content::before {
            content: '';
            position: absolute;
            left: -10px;
            top: 20px;
            border-width: 10px;
            border-style: solid;
            border-color: transparent var(--color-white) transparent transparent;
        }

        .balloon-right .balloon-content::before {
            content: '';
            position: absolute;
            right: -10px;
            top: 20px;
            border-width: 10px;
            border-style: solid;
            border-color: transparent transparent transparent var(--color-white);
        }

        .balloon-content p {
            margin: 0;
        }

        /* ========================================
           画像ギャラリー
        ======================================== */
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin: 2em 0;
        }

        .gallery img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 12px;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            margin: 0;
        }

        .gallery img:hover {
            transform: scale(1.03);
            box-shadow: var(--shadow-hover);
        }

        /* ========================================
           SNSシェアボタン
        ======================================== */
        .share-buttons {
            margin: 40px 0;
            padding: 24px;
            background: var(--color-bg-soft);
            border-radius: 16px;
            text-align: center;
        }

        .share-title {
            font-size: 0.9rem;
            color: var(--color-text-muted);
            margin-bottom: 16px;
        }

        .share-list {
            display: flex;
            justify-content: center;
            gap: 12px;
        }

        .share-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            color: white;
            text-decoration: none;
            font-size: 1.2rem;
            transition: all 0.3s;
        }

        .share-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }

        .share-btn.twitter { background: #1da1f2; }
        .share-btn.facebook { background: #1877f2; }
        .share-btn.line { background: #00b900; }
        .share-btn.hatena { background: #00a4de; }
        .share-btn.pocket { background: #ef3f56; }

        /* ========================================
           タグ
        ======================================== */
        .article-tags {
            margin: 40px 0;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .article-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: var(--color-white);
            border: 1px solid var(--color-border);
            border-radius: 20px;
            color: var(--color-text-soft);
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.3s;
        }

        .article-tag:hover {
            background: var(--color-green-light);
            border-color: var(--color-green-soft);
            color: var(--color-green-accent);
        }

        /* ========================================
           著者プロフィール
        ======================================== */
        .author-box {
            margin: 50px 0;
            padding: 30px;
            background: var(--color-white);
            border-radius: 20px;
            box-shadow: var(--shadow-card);
            display: flex;
            gap: 24px;
            align-items: center;
        }

        .author-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-display);
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            flex-shrink: 0;
        }

        .author-info {
            flex: 1;
        }

        .author-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--color-text-main);
            margin-bottom: 4px;
        }

        .author-title {
            font-size: 0.85rem;
            color: var(--color-aqua-accent);
            margin-bottom: 12px;
        }

        .author-bio {
            font-size: 0.9rem;
            color: var(--color-text-soft);
            line-height: 1.7;
        }

        .author-social {
            display: flex;
            gap: 10px;
            margin-top: 12px;
        }

        .author-social a {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--color-green-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-green-accent);
            text-decoration: none;
            transition: all 0.3s;
        }

        .author-social a:hover {
            background: var(--color-green-main);
            color: white;
        }

        /* ========================================
           前後の記事ナビ
        ======================================== */
        .post-nav {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 50px 0;
        }

        .post-nav-item {
            padding: 20px;
            background: var(--color-white);
            border-radius: 16px;
            box-shadow: var(--shadow-soft);
            text-decoration: none;
            transition: all 0.3s;
        }

        .post-nav-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .post-nav-label {
            font-size: 0.8rem;
            color: var(--color-text-muted);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .post-nav-item.prev .post-nav-label::before {
            content: '←';
        }

        .post-nav-item.next .post-nav-label {
            justify-content: flex-end;
        }

        .post-nav-item.next .post-nav-label::after {
            content: '→';
        }

        .post-nav-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--color-text-main);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .post-nav-item.next {
            text-align: right;
        }

        /* ========================================
           関連記事
        ======================================== */
        .related-posts {
            margin: 50px 0;
        }

        .related-posts-title {
            font-family: var(--font-display);
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--color-green-accent);
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .related-posts-title::before {
            content: '';
            width: 4px;
            height: 24px;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            border-radius: 2px;
        }

        .related-posts-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .related-post-card {
            display: flex;
            gap: 16px;
            padding: 16px;
            background: var(--color-white);
            border-radius: 16px;
            box-shadow: var(--shadow-soft);
            text-decoration: none;
            transition: all 0.3s;
        }

        .related-post-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .related-post-thumb {
            width: 100px;
            height: 70px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .related-post-info {
            flex: 1;
        }

        .related-post-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--color-text-main);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 6px;
        }

        .related-post-date {
            font-size: 0.75rem;
            color: var(--color-text-muted);
        }

        /* ========================================
           コメント欄
        ======================================== */
        .comments-section {
            margin: 50px 0;
        }

        .comments-title {
            font-family: var(--font-display);
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--color-green-accent);
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .comments-title::before {
            content: '';
            width: 4px;
            height: 24px;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            border-radius: 2px;
        }

        .comment-list {
            margin-bottom: 30px;
        }

        .comment-item {
            padding: 20px;
            background: var(--color-white);
            border-radius: 16px;
            box-shadow: var(--shadow-soft);
            margin-bottom: 16px;
        }

        .comment-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--color-green-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-green-accent);
            font-weight: 700;
        }

        .comment-meta {
            flex: 1;
        }

        .comment-author {
            font-weight: 600;
            color: var(--color-text-main);
        }

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

        .comment-body {
            font-size: 0.95rem;
            line-height: 1.8;
            color: var(--color-text-soft);
        }

        .comment-form {
            background: var(--color-white);
            padding: 24px;
            border-radius: 16px;
            box-shadow: var(--shadow-soft);
        }

        .comment-form-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--color-text-main);
            margin-bottom: 16px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--color-text-main);
            margin-bottom: 6px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--color-border);
            border-radius: 10px;
            font-family: inherit;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-green-main);
        }

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        .form-submit {
            padding: 14px 32px;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .form-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(93, 184, 125, 0.4);
        }

        /* ========================================
           サイドバー
        ======================================== */
        .sidebar {
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        .sidebar-widget {
            background: var(--color-white);
            border-radius: 20px;
            padding: 24px;
            box-shadow: var(--shadow-card);
            margin-bottom: 30px;
        }

        .widget-title {
            font-family: var(--font-display);
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-green-accent);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .widget-title::before {
            content: '';
            width: 4px;
            height: 20px;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            border-radius: 2px;
        }

        /* サイドバー目次（進行度付き） */
        .toc-widget-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .toc-widget-header .widget-title {
            margin-bottom: 0;
        }

        .toc-progress-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .toc-progress-circle {
            width: 48px;
            height: 48px;
            position: relative;
        }

        .toc-progress-circle svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }

        .toc-progress-circle circle {
            fill: none;
            stroke-width: 4;
        }

        .toc-progress-circle .bg {
            stroke: var(--color-border);
        }

        .toc-progress-circle .progress {
            stroke: url(#progressGradient);
            stroke-linecap: round;
            stroke-dasharray: 126;
            stroke-dashoffset: 126;
            transition: stroke-dashoffset 0.3s ease;
        }

        .toc-progress-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--color-green-accent);
        }

        .toc-progress-bar-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .toc-progress-label {
            font-size: 0.75rem;
            color: var(--color-green-accent);
            font-weight: 600;
            letter-spacing: 0.05em;
        }

        .toc-progress-bar {
            width: 100%;
            height: 6px;
            background: var(--color-border);
            border-radius: 3px;
            overflow: hidden;
        }

        .toc-progress-bar-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--color-green-main), var(--color-aqua-main));
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        .sidebar-toc-list {
            list-style: none;
        }

        .sidebar-toc-list li {
            margin-bottom: 4px;
            position: relative;
        }

        .sidebar-toc-list a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            color: var(--color-text-soft);
            text-decoration: none;
            font-size: 0.85rem;
            border-radius: 8px;
            border-left: 3px solid transparent;
            transition: all 0.3s;
            position: relative;
        }

        .sidebar-toc-list a::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--color-border);
            flex-shrink: 0;
            transition: all 0.3s;
        }

        .sidebar-toc-list a:hover,
        .sidebar-toc-list a.active {
            background: var(--color-green-lightest);
            color: var(--color-green-accent);
            border-left-color: var(--color-green-main);
        }

        .sidebar-toc-list a.active::before {
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            transform: scale(1.3);
            box-shadow: 0 0 8px rgba(93, 184, 125, 0.5);
        }

        .sidebar-toc-list a.read::before {
            background: var(--color-green-main);
        }

        .sidebar-toc-list .toc-h3 a {
            padding-left: 32px;
            font-size: 0.8rem;
        }

        .sidebar-toc-list .toc-h3 a::before {
            width: 6px;
            height: 6px;
        }

        /* 目次のチェックマーク */
        .sidebar-toc-list a.read::after {
            content: '✓';
            margin-left: auto;
            font-size: 0.7rem;
            color: var(--color-green-main);
            font-weight: 700;
        }

        /* 人気記事 */
        .popular-post-item {
            display: flex;
            gap: 14px;
            padding: 12px 0;
            border-bottom: 1px solid var(--color-border);
            text-decoration: none;
        }

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

        .popular-post-rank {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            color: white;
            font-size: 0.8rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .popular-post-rank.rank-1 { background: linear-gradient(135deg, #ffd700, #ffa500); }
        .popular-post-rank.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
        .popular-post-rank.rank-3 { background: linear-gradient(135deg, #cd7f32, #a05a2c); }

        .popular-post-info {
            flex: 1;
        }

        .popular-post-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-text-main);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 4px;
            transition: color 0.3s;
        }

        .popular-post-item:hover .popular-post-title {
            color: var(--color-green-accent);
        }

        .popular-post-views {
            font-size: 0.75rem;
            color: var(--color-text-muted);
        }

        /* プロフィールウィジェット */
        .widget-profile {
            text-align: center;
        }

        .widget-profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 700;
            color: white;
            margin: 0 auto 16px;
        }

        .widget-profile-name {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-text-main);
            margin-bottom: 4px;
        }

        .widget-profile-title {
            font-size: 0.8rem;
            color: var(--color-aqua-accent);
            margin-bottom: 12px;
        }

        .widget-profile-bio {
            font-size: 0.85rem;
            color: var(--color-text-soft);
            line-height: 1.7;
        }

        /* ========================================
           フッター
        ======================================== */
        footer {
            background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-aqua-light) 100%);
            padding: 50px 32px;
            text-align: center;
            margin-top: 60px;
        }

        .footer-logo {
            margin-bottom: 16px;
        }

        .footer-logo img {
            height: 40px;
            width: auto;
        }

        .footer-nav {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .footer-nav a {
            color: var(--color-text-soft);
            text-decoration: none;
            font-size: 0.85rem;
            transition: opacity 0.3s;
        }

        .footer-nav a:hover {
            opacity: 0.7;
        }

        .footer-copyright {
            font-size: 0.8rem;
            color: var(--color-text-muted);
            line-height: 1.8;
        }

        /* 検索ボタン */
        .search-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.3s;
        }

        .search-btn:hover {
            opacity: 0.7;
        }

        .search-btn svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: var(--color-text-main);
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* 検索モーダル */
        .search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(8px);
            z-index: 10000;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 20vh;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

        .search-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .search-box {
            background: #fff;
            border-radius: 16px;
            padding: 32px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            transform: translateY(-20px);
            transition: transform 0.3s;
        }

        .search-overlay.active .search-box {
            transform: translateY(0);
        }

        .search-box input {
            width: 100%;
            padding: 16px 20px;
            font-size: 1.1rem;
            border: 2px solid var(--color-aqua);
            border-radius: 12px;
            outline: none;
            font-family: inherit;
            box-sizing: border-box;
        }

        .search-box input:focus {
            border-color: var(--color-pink);
        }

        .search-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: #fff;
            font-size: 2rem;
            cursor: pointer;
        }

        /* ========================================
           スクロールトップ
        ======================================== */
        .scroll-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-green-main), var(--color-aqua-main));
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            box-shadow: 0 8px 25px rgba(93, 184, 125, 0.4);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px) scale(0.8);
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 999;
            overflow: hidden;
        }

        .scroll-top::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .scroll-top:hover::before {
            width: 150%;
            height: 150%;
        }

        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .scroll-top:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 15px 40px rgba(93, 184, 125, 0.5);
        }

        .scroll-top:active {
            transform: translateY(-2px) scale(1.05);
        }

        .scroll-top .arrow {
            transition: transform 0.3s;
            position: relative;
            z-index: 1;
        }

        .scroll-top:hover .arrow {
            animation: bounceUp 0.6s ease infinite;
        }

        @keyframes bounceUp {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }

        /* スクロール進行度リング */
        .scroll-top-progress {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }

        .scroll-top-progress circle {
            fill: none;
            stroke-width: 3;
        }

        .scroll-top-progress .bg {
            stroke: rgba(255, 255, 255, 0.3);
        }

        .scroll-top-progress .progress {
            stroke: white;
            stroke-linecap: round;
            stroke-dasharray: 158;
            stroke-dashoffset: 158;
            transition: stroke-dashoffset 0.1s;
        }

        /* ========================================
           レスポンシブ
        ======================================== */
        
        /* タブレット (1100px以下) */
        @media (max-width: 1100px) {
            .article-container {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .sidebar {
                position: static;
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .sidebar-widget {
                margin-bottom: 0;
            }

            /* 目次ウィジェットは全幅 */
            .sidebar-widget:first-child {
                grid-column: 1 / -1;
            }

            /* ハンバーガーメニュー表示 */
            nav {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 10px;
                z-index: 999;
                padding: 80px 20px;
                overflow-y: auto;
            }

            nav.active {
                display: flex;
            }

            .nav-item {
                width: 100%;
                max-width: 300px;
                text-align: center;
            }

            .nav-link {
                font-size: 1.1rem;
                padding: 14px 24px;
                justify-content: center;
                width: 100%;
            }

            .nav-link:hover::before {
                opacity: 0;
                transform: scale(0);
            }

            .nav-link:hover {
                color: var(--color-green-accent);
            }

            .dropdown {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                border: none;
                background: var(--color-bg-soft);
                margin-top: 8px;
                border-radius: 16px;
                display: none;
                min-width: 100%;
            }

            .dropdown::before {
                display: none;
            }

            .nav-item.open .dropdown {
                display: block;
            }

            .dropdown-link {
                text-align: center;
                padding: 10px 20px;
            }

            .dropdown-link:hover {
                padding-left: 20px;
            }

            .mobile-menu-btn {
                display: block;
            }

            .header-inner {
                gap: 12px;
            }

            .floating-actions {
                right: 20px;
                bottom: 80px;
            }

            .floating-btn {
                width: 44px;
                height: 44px;
            }
        }

        /* タブレット小 (900px以下) */
        @media (max-width: 900px) {
            .related-posts-grid {
                grid-template-columns: 1fr;
            }

            .post-nav {
                grid-template-columns: 1fr;
                gap: 12px;
            }
        }

        /* スマホ (768px以下) */
        @media (max-width: 768px) {
            .header-inner {
                padding: 0 16px;
            }

            .logo img {
                height: 26px;
            }

            /* 記事ヘッダー */
            .article-header {
                padding: 90px 16px 40px;
            }

            .article-breadcrumb {
                font-size: 0.8rem;
                gap: 6px;
                margin-bottom: 16px;
            }

            .article-category-tag {
                font-size: 0.75rem;
                padding: 5px 14px;
                margin-bottom: 12px;
            }

            .article-title {
                font-size: 1.3rem;
                margin-bottom: 16px;
            }

            .article-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
                font-size: 0.8rem;
            }

            .article-container {
                padding: 40px 16px;
            }

            /* サイドバー1カラム */
            .sidebar {
                grid-template-columns: 1fr;
            }

            /* サイドバー目次はスマホでは非表示（本文内の目次があるため） */
            .sidebar-widget:first-child {
                display: none;
            }

            /* 目次の進行度 */
            .toc-widget-header {
                flex-wrap: wrap;
                gap: 12px;
            }

            .toc-progress-circle {
                width: 44px;
                height: 44px;
            }

            .toc-progress-text {
                font-size: 0.6rem;
            }

            .toc-progress-label {
                font-size: 0.7rem;
            }

            /* 見出し */
            .article-content h2 {
                font-size: 1.2rem;
                padding: 14px 16px 14px 44px;
                margin: 2em 0 1em;
            }

            .article-content h2::before {
                left: 10px;
                font-size: 1.1rem;
            }

            .article-content h3 {
                font-size: 1.05rem;
            }

            .article-content h4 {
                font-size: 1rem;
            }

            /* ボックス */
            .box {
                padding: 18px;
            }

            .box-title {
                font-size: 0.95rem;
            }

            /* 吹き出し */
            .balloon {
                gap: 10px;
            }

            .balloon-avatar img {
                width: 45px;
                height: 45px;
            }

            .balloon-avatar-name {
                font-size: 0.65rem;
            }

            .balloon-content {
                max-width: 80%;
                padding: 12px 14px;
                font-size: 0.9rem;
            }

            /* コードブロック */
            .article-content pre {
                padding: 14px;
                padding-top: 45px;
                font-size: 0.75rem;
            }

            .code-copy-btn {
                padding: 5px 10px;
                font-size: 0.7rem;
                top: 8px;
                right: 8px;
            }

            /* テーブル */
            .article-content table {
                font-size: 0.85rem;
            }

            .article-content th,
            .article-content td {
                padding: 10px 12px;
            }

            /* いいねボタン */
            .like-button {
                padding: 12px 24px;
                gap: 10px;
            }

            .like-icon {
                font-size: 1.3rem;
            }

            .like-count {
                font-size: 1rem;
            }

            .like-text {
                font-size: 0.85rem;
            }

            /* リアクション */
            .reaction-section {
                padding: 24px 16px;
            }

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

            .reaction-buttons {
                gap: 8px;
            }

            .reaction-btn {
                padding: 12px 14px;
                min-width: 70px;
            }

            .reaction-emoji {
                font-size: 1.4rem;
            }

            .reaction-label {
                font-size: 0.7rem;
            }

            .reaction-count {
                font-size: 0.8rem;
            }

            /* SNSシェア */
            .share-buttons {
                padding: 20px 16px;
            }

            .share-list {
                gap: 10px;
                flex-wrap: wrap;
            }

            .share-btn {
                width: 42px;
                height: 42px;
                font-size: 1rem;
            }

            /* タグ */
            .article-tags {
                gap: 8px;
            }

            .article-tag {
                padding: 6px 12px;
                font-size: 0.8rem;
            }

            /* 著者 */
            .author-box {
                flex-direction: column;
                text-align: center;
                padding: 24px 20px;
                gap: 20px;
            }

            .author-avatar {
                width: 80px;
                height: 80px;
                font-size: 2rem;
            }

            .author-name {
                font-size: 1.1rem;
            }

            .author-bio {
                font-size: 0.85rem;
            }

            .author-social {
                justify-content: center;
            }

            .author-social a {
                width: 34px;
                height: 34px;
            }

            /* 前後記事ナビ */
            .post-nav-item {
                padding: 16px;
            }

            .post-nav-title {
                font-size: 0.9rem;
            }

            /* 関連記事 */
            .related-posts-title {
                font-size: 1.1rem;
            }

            .related-post-card {
                padding: 14px;
                gap: 12px;
            }

            .related-post-thumb {
                width: 80px;
                height: 56px;
            }

            .related-post-title {
                font-size: 0.85rem;
            }

            /* コメント */
            .comments-title {
                font-size: 1.1rem;
            }

            .comment-item {
                padding: 16px;
            }

            .comment-avatar {
                width: 36px;
                height: 36px;
                font-size: 0.85rem;
            }

            .comment-author {
                font-size: 0.9rem;
            }

            .comment-body {
                font-size: 0.9rem;
            }

            .comment-form {
                padding: 20px;
            }

            .form-group input,
            .form-group textarea {
                padding: 10px 14px;
                font-size: 0.95rem;
            }

            .form-submit {
                width: 100%;
                padding: 12px 24px;
            }

            /* ギャラリー */
            .gallery {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .gallery img {
                height: 120px;
            }

            /* フッター */
            footer {
                padding: 40px 16px;
            }

            .footer-logo img {
                height: 32px;
            }

            .footer-copyright {
                font-size: 0.7rem;
            }

            /* スクロールトップ */
            .scroll-top {
                width: 50px;
                height: 50px;
                bottom: 20px;
                right: 20px;
                font-size: 1.2rem;
            }

            .scroll-top-progress {
                display: none;
            }

            /* フローティングボタン非表示 */
            .floating-actions {
                display: none;
            }

            /* 本文内目次 */
            .toc {
                padding: 20px;
            }

            .toc-title {
                font-size: 0.95rem;
            }

            .toc-list a {
                padding: 7px 10px;
                font-size: 0.85rem;
            }

            .toc-list .toc-h3 a {
                padding-left: 20px;
                font-size: 0.8rem;
            }

            /* サイドバー目次 */
            .sidebar-toc-list a {
                padding: 8px 12px;
                font-size: 0.8rem;
            }

            .sidebar-toc-list .toc-h3 a {
                padding-left: 28px;
                font-size: 0.75rem;
            }
        }

        /* スマホ小 (480px以下) */
        @media (max-width: 480px) {
            /* 記事ヘッダー */
            .article-header {
                padding: 85px 14px 30px;
            }

            .article-breadcrumb {
                font-size: 0.75rem;
                gap: 4px;
            }

            .article-category-tag {
                font-size: 0.7rem;
                padding: 4px 12px;
            }

            .article-title {
                font-size: 1.2rem;
                line-height: 1.6;
            }

            .article-meta-item {
                font-size: 0.75rem;
            }

            .article-meta-item svg {
                width: 14px;
                height: 14px;
            }

            .article-container {
                padding: 30px 14px;
            }

            /* 見出し */
            .article-content h2 {
                font-size: 1.1rem;
                padding: 12px 14px 12px 40px;
            }

            .article-content h2::before {
                font-size: 1rem;
            }

            .article-content h3 {
                font-size: 1rem;
            }

            /* 吹き出し */
            .balloon-avatar img {
                width: 40px;
                height: 40px;
            }

            .balloon-content {
                padding: 10px 12px;
                font-size: 0.85rem;
            }

            /* リアクション2列に */
            .reaction-buttons {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .reaction-btn {
                min-width: auto;
            }

            /* 著者 */
            .author-avatar {
                width: 70px;
                height: 70px;
                font-size: 1.8rem;
            }

            /* 関連記事 */
            .related-post-card {
                flex-direction: column;
            }

            .related-post-thumb {
                width: 100%;
                height: 120px;
            }

            /* コードブロック */
            .article-content pre {
                font-size: 0.7rem;
            }

            .box {
                padding: 16px;
            }
        }

        /* 超小型スマホ (360px以下) */
        @media (max-width: 360px) {
            .header-inner {
                padding: 0 10px;
            }

            .logo img {
                height: 22px;
            }

            .article-header {
                padding: 80px 10px 24px;
            }

            .article-breadcrumb {
                font-size: 0.7rem;
            }

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

            .article-container {
                padding: 24px 10px;
            }

            .article-content h2 {
                font-size: 1rem;
                padding: 10px 12px 10px 36px;
            }

            .box {
                padding: 14px;
            }

            .reaction-buttons {
                gap: 8px;
            }

            .reaction-btn {
                padding: 10px 8px;
            }

            .reaction-emoji {
                font-size: 1.2rem;
            }

            .toc-progress-circle {
                width: 40px;
                height: 40px;
            }

            .toc-progress-text {
                font-size: 0.55rem;
            }

            .toc-progress-label {
                font-size: 0.65rem;
            }
        }
