.main-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    justify-content: center;
    margin: 0 auto;
    flex-wrap: wrap;
}

.draggable-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 500px;
    margin-top: 40px;
    height: auto;
    padding: 10px;
    border-radius: 4px;
}

.circle-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    padding: 2px;
    line-height: 1.1;
    font-size: 14px;
    background-color: rgba(46, 109, 164, 0.5);
    color: black;
    border-radius: 50%;
    z-index: 10;
    touch-action: none;
    text-shadow: 0 0 2px white, 0 0 2px white;
    font-weight: bold;
    overflow: hidden;
    width: calc(var(--step) * 2);
    height: calc(var(--step) * 2);
    aspect-ratio: 1 / 1;
}

.drop_area {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border: none;
    background: #ffffff;
    position: relative;
    margin-top: 20px;
    box-sizing: border-box;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grid-line {
    position: absolute;
    background-color: rgba(200, 200, 200, 0.4);
}

.quadrant-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border: 2px solid rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.quadrant {
    border: 1px solid rgba(211, 211, 211, 0.6);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: gray;
    position: relative;
    font-family: 'M PLUS 1p', sans-serif;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
    border: none;
}

th {
    background-color: #eee;
    border: 1px solid #eee;
    padding: 8px;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

td {
    border: 1px solid #eee;
    padding: 8px;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.axis-label {
    position: absolute;
    font-weight: bold;
    color: #000;
    font-size: 14px;
    pointer-events: none;
}

.top-label {
    top: -27px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.bottom-label {
    bottom: -31px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.left-label {
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center center;
    white-space: nowrap;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    pointer-events: none;
}

.right-label {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translate(50%, -50%) rotate(90deg);
    transform-origin: center center;
    white-space: nowrap;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    pointer-events: none;
}

.details {
    transition: .3s;
    overflow: hidden;
    margin-top: -10px;
    padding-bottom: 20px;
    width: 100%;
    max-width: 500px;
}

.details:last-of-type {
    margin-bottom: 0;
}

.details[open] {
    margin-top: 0;
    padding-bottom: 10px;
}

.details-summary {
    display: block;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    padding: 8px;
    transition: .3s;
    transform: translateY(10px);
    background-color: #999;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    margin-top: 20px;
}

.details-summary::-webkit-details-marker {
    display: none;
}

.details-summary::before {
    content: "＋ ";
    font-weight: bold;
    margin-right: 8px;
}

.details[open] .details-summary {
    transform: translateY(0);
}

.details[open] .details-summary::before {
    content: "－ ";
}

.details-content {
    padding: 5px 0px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-bottom: 2px solid #999;
    border-left: 2px solid #999;
    border-right: 2px solid #999;
}

.details-content td input[type="text"] {
    margin-left: 6px;
    margin-right: 6px;
}

.details-content td {
    padding: 4px 8px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 420px) {
    .main-wrapper {
        justify-content: center;
        padding: 0 5px;
    }

    .drop_area {
        width: 340px;
        max-width: 340px;
        height: 340px;
        border: none;
        background: #ffffff;
        position: relative;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    .details,
    .details-summary,
    .details-content,
    .draggable-container {
        width: 340px;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    table {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    table, th, td {
        font-size: 13px;
    }

    .axis-label {
        font-size: 12px;
    }

    .top-label {
        top: -24px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .bottom-label {
        bottom: -28px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .left-label {
        left: -12px;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-90deg);
        transform-origin: center center;
        white-space: nowrap;
        font-weight: bold;
        color: #333;
        font-size: 12px;
        pointer-events: none;
    }

    .right-label {
        right: -12px;
        top: 50%;
        transform: translate(50%, -50%) rotate(90deg);
        transform-origin: center center;
        white-space: nowrap;
        font-weight: bold;
        color: #333;
        font-size: 12px;
        pointer-events: none;
    }

    .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        text-align: center;
    }

    .circle-item {
        font-size: 10px;
        word-break: break-word;
        line-height: 1.2;
    }

    #addBtn {
        white-space: nowrap;
        padding: 6px 12px;
        width: auto;
        font-size: 14px;
    }

    #labelInput {
        width: 160px !important;
    }

    .details-content td {
        padding: 2px 4px;
    }

    .details-content td input[type="text"] {
        margin-left: 4px;
        margin-right: 4px;
        width: 100px;
    }
}

#coordTableBody td:nth-child(2),
#coordTableBody td:nth-child(3),
#coordTableBody td:nth-child(4) {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

h1,
#authorNameText {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

#registerMetaBtn:disabled {
    background-color: #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    color: #999 !important;
    opacity: 1 !important;
}

#submitBtn:disabled {
    background-color: #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    color: #999 !important;
    opacity: 1 !important;
}

td:nth-child(2) {
    max-width: 250px;
    word-break: break-word;
    overflow-wrap: break-word;
}