/* 全体レイアウト */

.ggpc-wrapper {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
}

.ggpc-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

#ggpc-save {
    padding: 5px 14px;
    border-radius: 4px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

#ggpc-save:disabled {
    opacity: 0.5;
    cursor: default;
}

.ggpc-save-status {
    font-size: 12px;
    color: #555;
}

/* アクセス権限設定ブロック */

.ggpc-access-settings {
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    background: #faf7f0;
    border-radius: 4px;
    max-width: 520px;
}

.ggpc-access-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ggpc-access-title {
    font-weight: bold;
    font-size: 14px;
}

#ggpc-save-emails {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    background: #555;
    color: #fff;
    cursor: pointer;
}

#ggpc-access-emails {
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    padding: 6px;
    margin-bottom: 6px;
}

.ggpc-access-help {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}

/* メイン：ボード＋サイドバー */

.ggpc-main {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 8px;
}

/* 左：ボード */

.ggpc-board-container {
    flex: 1.7;
    min-height: 420px;
    padding-right: 10px;
    box-sizing: border-box;
}

.ggpc-board {
    position: relative;
    width: 90%;
    max-width: 520px;
    margin: 0 auto;
    padding-top: 90%; /* 正方形＋少し余白 */
    border-radius: 50%;
    border: 1.5px solid #333;
    box-sizing: border-box;
    overflow: visible;
}

.ggpc-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

/* 軸ラベル共通 */

.ggpc-axis-input {
    position: absolute;
    background: transparent;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    pointer-events: auto;
    width: 6em;              /* 文字数が増えてもバランスを崩しにくくする */
}

.ggpc-axis-input:focus {
    outline: none;
    border-bottom: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.8);
}

/* 位置を円の“内側”に寄せて、十字のバランスに */

.axis-top {
    top: 22%;                /* 9% → 22% にして内側へ */
    left: 50%;
    transform: translate(-50%, -50%);
}

.axis-bottom {
    top: 78%;                /* bottom指定から top ベースに変更して内側へ */
    left: 50%;
    transform: translate(-50%, -50%);
}

.axis-left {
    top: 50%;
    left: 26%;               /* 9% → 26% にして少し内側＆中心寄り */
    transform: translate(-50%, -50%);
}

.axis-right {
    top: 50%;
    left: 74%;               /* 右も同様に内側へ */
    transform: translate(-50%, -50%);
}


/* 右：サイドバー */

.ggpc-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.ggpc-add-card {
    display: flex;
    gap: 8px;
}

#ggpc-new-card-title {
    flex: 1;
    padding: 5px 8px;
    font-size: 13px;
}

#ggpc-add-card-btn {
    padding: 5px 11px;
    border-radius: 4px;
    border: none;
    background: #444;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

.ggpc-card-list-wrapper {
    border: 1.5px solid #000;
    padding: 8px 10px 10px;
    min-height: 260px;
    box-sizing: border-box;
}

.ggpc-card-list-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 13px;
}

.ggpc-card-list {
    min-height: 210px;
}

/* カード */

.ggpc-card {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 7px;
    margin: 4px 3px;
    min-width: 120px;
    max-width: 210px;
    border-radius: 4px;
    background: #d8b78c; /* マスキングテープ風 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    cursor: move;
    box-sizing: border-box;
}

.ggpc-card-title {
    font-size: 12px;
    line-height: 1.3;
    margin-right: 6px;
}

.ggpc-card-delete {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

/* スマホレイアウト */

@media (max-width: 900px) {
    .ggpc-main {
        flex-direction: column;
        gap: 20px;
    }

    .ggpc-board-container {
        order: 1;
        padding-right: 0;
    }

    .ggpc-sidebar {
        order: 2;
    }

    .ggpc-board {
        width: 100%;
        max-width: none;
        padding-top: 100%;
    }
}