/* パイメニューのオーバーレイ */
.pie-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

/* パイメニューコンテナ */
.pie-menu-container {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: auto;
    /* コンテナの中心がボタンの中心になるように配置される前提 */
}

/* パイメニューアイテム (フラットデザイン) */
.pie-menu-item {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b39ddb 0%, #9575cd 100%);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
    opacity: 0;
    transform: scale(0);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.pie-menu-item.show {
    opacity: 1;
    transform: scale(1);
}

/* ドラッグ中にハイライト */
.pie-menu-item.hover {
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
    z-index: 10;
}

/* テキストセル用: 左側に配置 */
.pie-menu-item.text-cell {
    /* ボタン中心から左へ80px */
    right: 35px;
    top: -30px;
    /* 垂直中央 */
}

.pie-menu-item.text-cell.show {
    transition-delay: 0s;
}

/* タスクセル用: 上側に配置 */
.pie-menu-item.task-cell {
    /* ボタン中心から上へ80px */
    top: -95px;
    left: -30px;
    /* 水平中央 */
}

.pie-menu-item.task-cell.show {
    transition-delay: 0.02s;
}

/* アイコン (SVG用) */
.pie-menu-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pie-menu-item-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ラベルは削除(非表示) */
.pie-menu-item-label {
    display: none;
}