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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

#app {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: white;
    touch-action: none;
    /* この行を追加 */
}

.panel {
    position: absolute;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    padding: 8px;
    z-index: 20;
}

button {
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

button:hover {
    opacity: 0.9;
}

svg {
    width: 100%;
    height: 100%;
    cursor: grab;
}

svg:active {
    cursor: grabbing;
}

#finderOverlay {
    position: fixed;
    inset: 0;
    background: #f9fafb;
    z-index: 100;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}

#finderOverlay.show {
    transform: translateX(0);
}

#finderHeader {
    height: 48px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-weight: bold;
}

#columns {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
}

#finderBtn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 30;
    background: #334155;
    color: white;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
}

.breadcrumb-item {
    display: inline;
    color: #4b5563;
    cursor: pointer;
}

.breadcrumb-item:hover {
    color: #1f2937;
}

.column-item {
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.column-item:hover {
    background: #f3f4f6;
}

.column-item.selected {
    background: #c7d2fe;
}