
        /* --- ツール個別スタイル --- */
        .secure-tool-page .p-secure-tool-container { max-width: 1400px; margin: 20px auto; padding: 0 20px; }
        
        .secure-tool-page .p-secure-tool #workspace { display: none; gap: 20px; align-items: flex-start; margin-bottom: 40px; }
        .secure-tool-page .p-secure-tool .editor-area { flex: 1; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 15px; overflow: hidden; min-width: 0; }
        
        /* ツールバー */
        .secure-tool-page .p-secure-tool .toolbar { display: flex; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee; align-items: center; flex-wrap: wrap; }
        .secure-tool-page .p-secure-tool .toolbar-group { display: flex; gap: 8px; align-items: center; border-right: 1px solid #ddd; padding-right: 15px; }
        .secure-tool-page .p-secure-tool .toolbar-group:last-child { border-right: none; }
        
        .secure-tool-page .p-secure-tool button { cursor: pointer; border: none; border-radius: 4px; padding: 8px 12px; font-size: 0.85rem; font-weight: bold; transition: 0.2s; white-space: nowrap; }
        .secure-tool-page .p-secure-tool .btn-tool { background-color: white; color: #2c3e50; border: 1px solid #bdc3c7; }
        .secure-tool-page .p-secure-tool .btn-tool:hover { background-color: #ecf0f1; }
        .secure-tool-page .p-secure-tool .btn-tool.active { background-color: #34495e; color: white; border-color: #2c3e50; }
        .secure-tool-page .p-secure-tool .btn-action { background-color: #f39c12; color: white; }
        .secure-tool-page .p-secure-tool .btn-action:hover { background-color: #e67e22; }
        .secure-tool-page .p-secure-tool .btn-zoom { background-color: #eaf2f8; border: 1px solid #a9cce3; color: #2980b9; }
        .secure-tool-page .p-secure-tool .btn-zoom:hover { background-color: #d4e6f1; }
        .secure-tool-page .p-secure-tool .btn-warn { background-color: white; border: 1px solid #e74c3c; color: #e74c3c; }
        .secure-tool-page .p-secure-tool .btn-warn:hover { background-color: #fdedec; }
        
        .secure-tool-page .p-secure-tool .slider-container { display: flex; flex-direction: column; gap: 2px; font-size: 0.75rem; margin-left: 5px; }
        .secure-tool-page .p-secure-tool input[type="range"] { width: 80px; cursor: pointer; }

        /* カラーパレット */
        .secure-tool-page .p-secure-tool .color-palette { display: flex; gap: 6px; align-items: center; margin-left: 4px; }
        .secure-tool-page .p-secure-tool .color-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #bdc3c7; box-shadow: 0 2px 4px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.1s; padding: 0; }
        .secure-tool-page .p-secure-tool .color-swatch:hover { transform: scale(1.15); }
        .secure-tool-page .p-secure-tool .color-swatch.active { outline: 2px solid #34495e; outline-offset: 2px; transform: scale(1.1); }

        .secure-tool-page .p-secure-tool .ui-hint { font-size: 0.85rem; color: #16a085; background-color: #e8f6f3; padding: 8px 12px; border-radius: 4px; border-left: 4px solid #1abc9c; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center; line-height: 1.4; }

        /* キャンバス表示枠 */
        .secure-tool-page .p-secure-tool #canvas-wrapper { width: 100%; height: 65vh; min-height: 400px; background-color: #ecf0f1; border: 1px solid #bdc3c7; border-radius: 4px; display: flex; justify-content: center; align-items: center; overflow: hidden; position: relative; }
        .secure-tool-page .p-secure-tool .canvas-container { box-shadow: 0 4px 15px rgba(0,0,0,0.3); background-color: white; }
        .secure-tool-page .p-secure-tool #draw-helper { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.85rem; pointer-events: none; display: none; z-index: 10; }

        /* 右側: 出力設定領域 */
        .secure-tool-page .p-secure-tool .settings-area { width: 320px; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; flex-shrink: 0; }
        .secure-tool-page .p-secure-tool .setting-section { display: flex; flex-direction: column; gap: 8px; }
        .secure-tool-page .p-secure-tool .setting-label { font-weight: bold; font-size: 0.9rem; color: #2c3e50; }
        .secure-tool-page .p-secure-tool .input-group { display: flex; align-items: center; gap: 10px; }
        .secure-tool-page .p-secure-tool .input-group input[type="number"] { width: 80px; padding: 6px; border: 1px solid #bdc3c7; border-radius: 4px; font-size: 1rem; text-align: right; }
        .secure-tool-page .p-secure-tool select { width: 100%; padding: 8px; border: 1px solid #bdc3c7; border-radius: 4px; font-size: 0.95rem; cursor: pointer; }
        .secure-tool-page .p-secure-tool .warning-text { font-size: 0.8rem; color: #e74c3c; line-height: 1.4; background: #fdedec; padding: 10px; border-radius: 4px; border-left: 3px solid #e74c3c; margin-top: 5px; }
        
        /* プレビュー情報 */
        .secure-tool-page .p-secure-tool .preview-box { background: #e8f6f3; border: 1px solid #1abc9c; border-radius: 6px; padding: 15px; text-align: center; transition: 0.3s; }
        .secure-tool-page .p-secure-tool .preview-box.over-size { background: #fdedec; border-color: #e74c3c; }
        .secure-tool-page .p-secure-tool .preview-title { font-size: 0.85rem; color: #16a085; font-weight: bold; margin-bottom: 5px; }
        .secure-tool-page .p-secure-tool .preview-box.over-size .preview-title { color: #c0392b; }
        .secure-tool-page .p-secure-tool .preview-size { font-size: 1.5rem; font-weight: bold; color: #2c3e50; }
        .secure-tool-page .p-secure-tool .preview-status { font-size: 0.8rem; color: #7f8c8d; margin-top: 5px; }

        .secure-tool-page .p-secure-tool #downscale-container { display: none; margin-top: 15px; border-top: 1px dashed #e74c3c; padding-top: 15px; }
        .secure-tool-page .p-secure-tool .btn-downscale { background-color: #e74c3c; color: white; width: 100%; padding: 10px; font-size: 0.9rem; }
        .secure-tool-page .p-secure-tool .btn-downscale:hover { background-color: #c0392b; }

        /* モーダル */
        .secure-tool-page .p-secure-tool-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 11000; display: none; flex-direction: column; justify-content: center; align-items: center; overflow-y: auto; padding: 40px 0; }
        .secure-tool-page .p-secure-tool-modal-close { color: white; font-size: 2.5rem; position: absolute; top: 15px; right: 25px; cursor: pointer; z-index: 11001; }
        .secure-tool-page #preview-image-container { position: relative; display: flex; justify-content: center; align-items: center; width: 90vw; height: 80vh; overflow: auto; }
        .secure-tool-page #preview-image-container.zoomed { display: block; }
        .secure-tool-page #modal-image { max-width: 100%; max-height: 100%; box-shadow: 0 0 20px rgba(0,0,0,0.8); background: white; display: block; cursor: zoom-in; margin: auto; transition: max-width 0.2s, max-height 0.2s; }
        .secure-tool-page #modal-image.zoomed { max-width: none; max-height: none; cursor: grab; }
        .secure-tool-page #modal-image.zoomed:active { cursor: grabbing; }

        /* 記事エリア */
        .secure-tool-page .article-section { margin-top: 40px; padding-top: 40px; border-top: 1px solid #eee; max-width: 1000px; margin-left: auto; margin-right: auto; }
        .secure-tool-page .article-section h2 { font-size: 1.6rem; color: #333; margin-bottom: 25px; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; }
        .secure-tool-page .article-section h3 { font-size: 1.3rem; color: #0056b3; margin-top: 40px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
        .secure-tool-page .article-section h3::before { content: "#"; color: #007acc; font-family: monospace; }
        .secure-tool-page .article-section p { margin-bottom: 1.5em; text-align: justify; line-height: 1.8; color: #444; }
        .secure-tool-page .article-section ul { margin-bottom: 1.5em; padding-left: 20px; color: #444; line-height: 1.8; }
        .secure-tool-page .alert-box { background: #fff3cd; padding: 20px; border-radius: 6px; border: 1px solid #ffeeba; margin: 30px 0; color: #856404; font-size: 0.9rem; }
    