:root {
            --primary-navy: #1e3a5f;
            --primary-navy-dark: #152a45;
            --primary-navy-light: #2d5080;
            --accent-blue: #0085FF;
            --accent-gold: #d4af37;
            --bg-light: #f8f9fa;
            --bg-white: #ffffff;
            --text-dark: #202020;
            --text-gray: #666666;
            --text-light: #999999;
            --border-light: rgba(33,33,33,0.08);
            --border-medium: rgba(33,33,33,0.12);
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
        }

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

        body {
            font-family: 'Noto Sans JP', 'Poppins', sans-serif;
            background: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.7;
            overflow-x: hidden;
        }

        .container {
            display: flex;
            min-height: 100vh;
            max-width: 100%;
        }

        .sidebar {
            width: 280px;
            background: var(--bg-white);
            border-right: 1px solid var(--border-light);
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
            transition: transform 0.3s ease;
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: var(--border-medium);
            border-radius: 3px;
        }

        .sidebar-header {
            padding: 24px 20px;
            border-bottom: 1px solid var(--border-light);
            background: var(--primary-navy);
            color: white;
        }

        .logo {
            margin-bottom: 4px;
            padding: 10px;
        }

        .logo-subtitle {
            font-size: 11px;
            opacity: 0.85;
            font-weight: 400;
        }

        .manual-type-tabs {
            display: flex;
            gap: 6px;
            padding: 14px 20px 0;
        }

        .manual-type-tab {
            flex: 1;
            text-align: center;
            padding: 8px 10px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-gray);
            background: var(--bg-light);
            border: 1px solid var(--border-medium);
            border-radius: 6px;
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
        }

        .manual-type-tab:hover {
            color: var(--primary-navy);
            border-color: var(--primary-navy);
        }

        .manual-type-tab.active {
            color: white;
            background: var(--primary-navy);
            border-color: var(--primary-navy);
        }

        .search-box {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-light);
        }

        .search-input {
            width: 100%;
            padding: 10px 36px 10px 12px;
            border: 1px solid var(--border-medium);
            border-radius: 8px;
            font-size: 13px;
            background: var(--bg-light);
            color: var(--text-dark);
            transition: all 0.2s;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--accent-blue);
            background: var(--bg-white);
        }

        .search-wrapper {
            position: relative;
        }

        .search-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            pointer-events: none;
        }

        .nav-menu {
            padding: 12px 0;
        }

        .nav-category {
            margin-bottom: 4px;
        }

        .category-header {
            padding: 12px 20px;
            font-weight: 600;
            font-size: 13px;
            color: var(--text-gray);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.2s;
            user-select: none;
        }

        .category-header:hover {
            background: var(--bg-light);
            color: var(--primary-navy);
        }

        .category-header.active {
            color: var(--primary-navy);
            background: var(--bg-light);
        }

        .category-icon {
            width: 18px;
            height: 18px;
            margin-right: 10px;
        }

        .category-badge {
            background: var(--accent-blue);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            font-weight: 600;
        }

        .expand-icon {
            width: 16px;
            height: 16px;
            transition: transform 0.2s;
        }

        .expand-icon.expanded {
            transform: rotate(90deg);
        }

        .nav-items {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .nav-items.expanded {
            max-height: 1000px;
        }

        .nav-item {
            padding: 10px 20px 10px 48px;
            font-size: 13px;
            color: var(--text-gray);
            cursor: pointer;
            transition: all 0.2s;
            border-left: 3px solid transparent;
        }

        .nav-item:hover {
            background: var(--bg-light);
            color: var(--primary-navy);
            border-left-color: var(--accent-blue);
        }

        .nav-item.active {
            background: var(--bg-light);
            color: var(--primary-navy);
            font-weight: 600;
            border-left-color: var(--accent-blue);
        }

        .main-content {
            margin-left: 280px;
            flex: 1;
            min-height: 100vh;
        }

        .top-bar {
            background: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            padding: 16px 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 50;
            box-shadow: var(--shadow-sm);
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-gray);
        }

        .breadcrumb-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .breadcrumb-separator {
            color: var(--text-light);
        }

        .breadcrumb-current {
            color: var(--primary-navy);
            font-weight: 600;
        }

        .top-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .print-btn {
            padding: 10px 20px;
            border-radius: 8px;
            border: 1px solid var(--border-medium);
            background: var(--bg-white);
            color: var(--text-dark);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .print-btn:hover {
            background: var(--primary-navy);
            border-color: var(--primary-navy);
            color: white;
        }

        .content-area {
            padding: 32px;
        }

        .page-header {
            margin-bottom: 32px;
        }

        .page-title {
            font-size: 32px;
            font-weight: 700;
            color: var(--primary-navy);
            margin-bottom: 12px;
        }

        .page-description {
            font-size: 15px;
            color: var(--text-gray);
            line-height: 1.6;
        }

        .content-card {
            background: var(--bg-white);
            border-radius: 12px;
            border: 1px solid var(--border-light);
            padding: 32px;
            margin-bottom: 24px;
            box-shadow: var(--shadow-sm);
        }

        .section-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-navy);
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--accent-blue);
        }

        .section-subtitle {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-dark);
            margin-top: 24px;
            margin-bottom: 12px;
        }

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

        .info-card {
            background: var(--bg-light);
            border-radius: 8px;
            padding: 20px;
            border-left: 4px solid var(--accent-blue);
        }

        .info-card-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--primary-navy);
            margin-bottom: 8px;
        }

        .info-card-content {
            font-size: 13px;
            color: var(--text-gray);
            line-height: 1.6;
        }

        .feature-list {
            list-style: none;
            margin: 16px 0;
        }

        .feature-item {
            padding: 12px 0;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

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

        .feature-icon {
            width: 20px;
            height: 20px;
            color: var(--accent-blue);
            flex-shrink: 0;
            margin-top: 2px;
        }

        .feature-content {
            flex: 1;
        }

        .feature-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-dark);
            margin-bottom: 4px;
        }

        .feature-description {
            font-size: 13px;
            color: var(--text-gray);
        }

        .steps-container {
            margin: 24px 0;
        }

        .step-item {
            display: flex;
            gap: 20px;
            margin-bottom: 24px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border-light);
        }

        .step-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .step-number {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent-blue);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 16px;
            flex-shrink: 0;
        }

        .step-content {
            flex: 1;
        }

        .step-title {
            font-weight: 600;
            font-size: 15px;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .step-description {
            font-size: 13px;
            color: var(--text-gray);
            line-height: 1.6;
        }

        .alert-box {
            padding: 16px 20px;
            border-radius: 8px;
            margin: 16px 0;
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }

        .alert-info {
            background: #e3f2fd;
            border-left: 4px solid #2196f3;
        }

        .alert-warning {
            background: #fff3e0;
            border-left: 4px solid #ff9800;
        }

        .alert-success {
            background: #e8f5e9;
            border-left: 4px solid #4caf50;
        }

        .alert-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .alert-content {
            flex: 1;
        }

        .alert-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .alert-text {
            font-size: 13px;
            line-height: 1.6;
        }

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

        .stat-card {
            background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
            color: white;
            padding: 24px;
            border-radius: 12px;
            box-shadow: var(--shadow-md);
        }

        .stat-value {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 13px;
            opacity: 0.9;
        }

        .table-container {
            overflow-x: auto;
            margin: 24px 0;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        .data-table thead {
            background: var(--bg-light);
        }

        .data-table th {
            padding: 12px 16px;
            text-align: left;
            font-weight: 600;
            color: var(--text-dark);
            border-bottom: 2px solid var(--border-medium);
        }

        .data-table td {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-light);
            color: var(--text-gray);
        }

        .data-table tbody tr:hover {
            background: var(--bg-light);
        }

        .page-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 48px;
            padding-top: 24px;
            border-top: 1px solid var(--border-light);
        }

        .nav-button {
            padding: 12px 24px;
            border-radius: 8px;
            border: 1px solid var(--border-medium);
            background: var(--bg-white);
            color: var(--text-dark);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-button:hover {
            background: var(--primary-navy);
            border-color: var(--primary-navy);
            color: white;
        }

        .nav-button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .nav-button:disabled:hover {
            background: var(--bg-white);
            border-color: var(--border-medium);
            color: var(--text-dark);
        }

        .footer {
            margin-top: 48px;
            padding: 24px 32px;
            background: var(--bg-white);
            border-top: 1px solid var(--border-light);
            text-align: center;
        }

        .kuse-branding {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-light);
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
        }

        .kuse-branding:hover {
            color: var(--accent-blue);
        }

        .kuse-branding svg {
            height: 1.2em;
        }

        .mobile-menu-toggle {
            display: none;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            border: 1px solid var(--border-medium);
            background: var(--bg-white);
            cursor: pointer;
            align-items: center;
            justify-content: center;
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.mobile-open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
            }

            .mobile-menu-toggle {
                display: flex;
            }

            .content-area {
                padding: 20px;
            }

            .page-title {
                font-size: 24px;
            }

            .top-bar {
                padding: 12px 20px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .info-grid {
                grid-template-columns: 1fr;
            }
        }

        @media print {
            .sidebar,
            .top-bar,
            .page-navigation,
            .print-btn,
            .mobile-menu-toggle,
            .footer,
            .overlay,
            .related-pages {
                display: none !important;
            }

            html, body {
                height: auto !important;
                min-height: 0 !important;
                background: white;
            }

            .container {
                min-height: 0 !important;
                height: auto !important;
            }

            .main-content {
                margin-left: 0;
                min-height: 0 !important;
                height: auto !important;
            }

            .content-area {
                max-width: 100%;
                padding: 0;
                min-height: 0 !important;
            }

            .content-card {
                box-shadow: none;
                border: 1px solid #ddd;
                page-break-inside: avoid;
            }

            /* WordPress管理バー非表示 */
            #wpadminbar {
                display: none !important;
            }

            /* 画像・テーブルのはみ出し防止 */
            img, table {
                max-width: 100% !important;
                height: auto !important;
            }

            /* 余白ページ対策 */
            * {
                page-break-after: auto !important;
            }
        }

        .highlight {
            background: #fff9c4;
            padding: 2px 4px;
            border-radius: 3px;
        }

        .code-block {
            background: #f5f5f5;
            border: 1px solid var(--border-light);
            border-radius: 8px;
            padding: 16px;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            overflow-x: auto;
            margin: 16px 0;
        }

        .link-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: var(--bg-light);
            border-radius: 8px;
            border: 1px solid var(--border-light);
            cursor: pointer;
            transition: all 0.2s;
            margin: 8px 0;
        }

        .link-card:hover {
            background: var(--bg-white);
            border-color: var(--accent-blue);
            box-shadow: var(--shadow-sm);
        }

        .link-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--accent-blue);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .link-content {
            flex: 1;
        }

        .link-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-dark);
            margin-bottom: 2px;
        }

        .link-description {
            font-size: 12px;
            color: var(--text-gray);
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 99;
        }

        .overlay.active {
            display: block;
        }