        :root { 
            --line-color: #ccc; 
            --node-width: 200px; 
            --tree-spacing: 60px;
            --image-folder: "images/"; /* サブフォルダ名をここで指定 */
        }
        body { font-family: "Helvetica Neue", Arial, sans-serif; background: #f0f2f5; padding: 40px; }
        
        .tree-wrapper {
            margin-bottom: var(--tree-spacing);
            background: white; padding: 30px; border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            overflow-x: auto;
        }

        .tree, .tree ul {
            list-style: none; padding-left: 60px; 
            display: flex; flex-direction: column; gap: 15px; position: relative;
        }
        .tree ul::before {
            content: ""; position: absolute; left: 0; top: 0; bottom: 0;
            width: 2px; background: var(--line-color);
        }
        .tree li { position: relative; display: flex; align-items: center; }
        .tree li::before {
            content: ""; position: absolute; left: -60px; top: 50%;
            width: 60px; height: 2px; background: var(--line-color);
        }
        .tree { padding-left: 0; flex-direction: row; }
        .tree > li::before { display: none; }

        /* ノードデザイン */
        .node {
            width: var(--node-width); background: #fff; border: 1px solid #e0e0e0;
            border-radius: 6px; text-decoration: none; color: #333; overflow: hidden;
            transition: 0.2s; z-index: 1; flex-shrink: 0;
            display: flex; flex-direction: column;
        }
        .node:hover { border-color: #007bff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        
        /* 画像がある場合のスタイル */
        .thumb { width: 100%; height: 110px; object-fit: cover; background: #eee; display: block; border-bottom: 1px solid #eee; }
        
        /* タイトルのスタイル（画像なしの場合は少し余白を広く） */
        .name { padding: 12px 8px; font-size: 13px; font-weight: 600; display: block; line-height: 1.4; text-align: center; }


