* {
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    margin: 0;
    display: flex;
    background-color: rgb(240 240 240 / 1);
    flex-direction: column;
    justify-content: center;
    scrollbar-gutter: stable;
    overflow: clip;
    width: 100vw;
    height: 100dvh;
    --header-height: 3rem;
}

@font-face {
    src: 
        url("./font/ZenKakuGothicAntique-Regular.woff2") format('woff2'),
        url("./font/ZenKakuGothicAntique-Regular.ttf") format('truetype');
    font-family: "Zen Kaku Gothic Antique";
    font-style: normal;
    font-display: swap;
}

@font-face {
    src: 
        url("./font/ZenMaruGothic-Black.woff2") format('woff2'),
        url("./font/ZenMaruGothic-Black.ttf") format('truetype');
    font-family: "Zen Maru Gothic";
    font-style: normal;
    font-display: swap;
}

@font-face {
    src: 
        url("./font/ZenMaruGothic-Medium.woff2") format('woff2'),
        url("./font/ZenMaruGothic-Medium.ttf") format('truetype');
    font-family: "Zen Maru Gothic Medium";
    font-style: normal;
    font-display: swap;
}

.load-font {
    position: absolute;
    opacity: 0;
    user-select: none;
    pointer-events: none;
}
.font-zankakugothicantique {
    font-family: "Zen Kaku Gothic Antique";
}
.font-zanmarugothic {
    font-family: "Zen Maru Gothic";
}
.font-zanmarugothicmedium {
    font-family: "Zen Maru Gothic Medium";
}

button, select {
    cursor: pointer;
    font: inherit;
    background: none;
    background-color: transparent;
    border: 1px solid rgb(0 0 0 / 0.5);
    border-radius: 0.125rem;
    padding: 0.125rem 0.25rem;
}
:is(button, .load-circle-label):is(:hover, :focus-visible) {
    background-color: rgb(230 230 250 / 1);
    text-decoration: underline;
}
button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.lo-header {
    position: fixed;
    z-index: 3000000;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    background-color: rgb(25 25 25 / 1);
    color: rgb(250 250 250 / 1);
    backdrop-filter: blur(1rem);
    height: var(--header-height);
    border: none;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
}

.area-start {
    flex: 1;
    display: flex;
    justify-content: start;
    align-items: center;
}
.area-end {
    flex: 1;
    display: flex;
    justify-content: end;
    align-items: center;
}

.area-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    align-items: center;
}
.area-title > h1 {
    font-family: "Zen Maru Gothic Medium";
    font-weight: normal;
    font-size: 1.5rem;
    margin: 0;
}

.header-menu-content {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.area-open-user {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.open-build-modal {
    color: inherit;
    border-color: rgb(250 250 250 / 1);
}
.open-build-modal:is(:hover, :focus-visible) {
    background-color: rgb(128 128 128 / 0.5);
}

.header-content .icon-button {
    background-size: 1.5rem;
}
.open-build-modal-sp {
    background-image: url("../image/file-plus.svg");
}
.open-manage-modal {
    background-image: url("../image/folder.svg");
}
#open-share {
    background-image: url("../image/share.svg");
}
#open-help {
    background-image: url("../image/help-circle.svg");
}
#open-login {
    background-image: url("../image/user.svg");
}
.icon-button.item-avatar {
    background-image: var(--avatar-url);
    width: 2rem;
    height: 2rem;
    margin: 0.25rem;
    padding: 0;
    border-radius: 999rem;
    background-size: cover;
    border: 0.0625rem solid rgb(128 128 128 / 0.5);
}

.lo-containers, .lo-error {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    background-color: rgb(250 250 250 / 1);
    overflow: clip;
}
.lo-error {
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
}
body:is(.loading, .error) > .lo-containers {
    display: none;
}
body:not(.loading) > .lo-loading {
    display: none;
}
body:not(.error) > .lo-error {
    display: none;
}

.lo-loading {
    display: block;
    position: relative;
    height: 100dvh;
    margin: 0 auto;
}
.buffering-effect {
    animation: 0.5s linear 0s infinite normal none running rotation;
    box-sizing: content-box;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2rem;
    height: 2rem;
    --effect-color: 128 128 128;
    border: 0.5rem solid rgb(var(--effect-color) / 1);
    border-bottom-color: rgb(var(--effect-color) / 0.0);
    border-left-color: rgb(var(--effect-color) / 0.5);
    border-radius: 999rem;
}
@keyframes rotation {
    0% {
        transform: translate(-50%, -100%) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -100%) rotate(90deg);
    }
    100% {
        transform: translate(-50%, -100%) rotate(360deg);
    }
}

.lo-containers {
    --details-width: 30rem;
    --details-height: 0rem;
}

.container-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    --sepalator-color: 196 196 196;
    --sepalator-weight: 0.125rem;
}

.details-width-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--details-width) - 0.5rem);
    width: 1rem;
    background: none;
    pointer-events: all;
    cursor: ew-resize;
}
.details-height-handle {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--details-height) - 0.5rem);
    height: 1rem;
    background: none;
    pointer-events: all;
    cursor: ns-resize;
}

#is-details-open:not(:checked) ~ .container-overlay :is(.details-width-handle, .details-height-handle) {
    display: none;
    pointer-events: none;
}

.area-details {
    transition: transform 0.2s;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--details-width);
    background-color: rgb(250 250 250 / 1);
    border-right: var(--sepalator-weight) solid rgb(var(--sepalator-color) / 1);
    pointer-events: all;
    --details-header-height: 3rem;
}
.area-details > * {
    transition-behavior: allow-discrete;
    opacity: 1;
    transition: opacity 0.2s, display 0.2s;
}

.area-details-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: var(--details-header-height);
    padding: 0.25rem 0.5rem;
    background-color: rgb(230 230 230 / 1);
    border-bottom: var(--sepalator-weight) solid rgb(var(--sepalator-color) / 1);
}

#is-details-open {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

#is-details-open:checked ~ .container-overlay :is(.open-details, .open-details-sp, #virtual-b-is-details-open) {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.close-details, .open-details {
    display: block;
    width: 2rem;
    height: 2rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 1.5rem;
    cursor: pointer;
}

.open-details {
    pointer-events: all;
    opacity: 1;
}

#is-details-open:not(:checked) ~ .container-overlay > .area-details {
    transform: translateX(calc(-1 * var(--details-width)));
}
#is-details-open:not(:checked) ~ .container-overlay > .area-details > * {
    display: none;
    opacity: 0;
}
#is-details-open:not(:checked) ~ .container-map {
    --origin-x: 50vw;
    --origin-y: calc((100dvh - var(--header-height))/2);
}

.open-details,
[dir=ltr] .open-details,
[dir=rtl] .close-details {
    background-image: url("../image/chevron-right.svg");
}
.close-details,
[dir=ltr] .close-details,
[dir=rtl] .open-details {
    background-image: url("../image/chevron-left.svg");
}
.close-details-sp {
    background-image: url("../image/chevron-down.svg");
}
.open-details-sp {
    background-image: url("../image/chevron-up.svg");
}

.overlay-with-details-start {
    transition-duration: 0.2s;
    position: absolute;
    top: 0;
    left: var(--details-width);
    pointer-events: all;
    padding: 0.5rem 0 0 0.5rem;
}
#is-details-open:not(:checked) ~ .container-overlay > .overlay-with-details-start {
    left: 0;
}

.icon-button {
    display: block;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    background-size: 1.75rem;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 0.25rem;
}
.icon-button.invert {
    filter: invert(1);
}
.icon-button:is(:hover, :focus-visible) {
    background-color: rgb(196 196 196 / 1);
    border: 0.0625rem solid rgb(19 19 19 / 1);
}
#append-item {
    background-image: url("../image/plus.svg");
}
.open-save-circle {
    background-image: url("../image/save.svg");
}
#open-about-circle {
    background-image: url("../image/sliders.svg");
}
.open-map-ruler {
    background-image: url("../image/crosshair.svg");
}
.open-member {
    background-image: url("../image/list.svg");
}
.move-up-item {
    background-image: url("../image/chevron-up.svg");
}
.move-down-item {
    background-image: url("../image/chevron-down.svg");
}

.container-map {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: none;
    --circle-background: 250 250 250;
    background-color: rgb(var(--circle-background) / 1);
    --circle-text-color: 19 19 19;
    --icon-resize: 1;
    --icon-size: calc(max(5rem, calc((100dvh - var(--header-height))/12)) * var(--icon-resize));
    --item-icon-border: 250 250 250;
    --area-circle-height: calc(var(--icon-size)*12);
    --circle-radius: calc(var(--icon-size) * 4);
    --origin-x: calc((100vw - var(--details-width))/2 + var(--details-width));
    --origin-y: calc((100dvh - var(--header-height) - var(--details-height))/2);
    --move-x: 0;
    --move-y: 0;
    --map-left: calc(var(--origin-x) + var(--move-x)*1px);
    --map-top: calc(var(--origin-y) + var(--move-y)*1px);
    --base-hue: 0deg;
    --gradient-sl: 100% 50%;
}

#map-origin {
    position: absolute;
    display: block;
    width: var(--icon-size);
    height: var(--icon-size);
    left: var(--map-left);
    top: var(--map-top);
    width: var(--icon-size);
    height: var(--icon-size);
}

.color-circle {
    position: absolute;
    left: var(--map-left);
    top: var(--map-top);
    width: calc(var(--circle-radius)*2);
    transform: translate(-50%, -50%);
    aspect-ratio: 1/1;
    box-sizing: border-box;
    --circle-gradient: conic-gradient(in hsl longer hue from calc(-1*var(--base-hue)),hsl(0deg var(--gradient-sl)),hsl(360deg var(--gradient-sl)));
    background-image: var(--circle-gradient);
    outline: none;
    clip-path: circle(var(--circle-radius));
    mask-image: radial-gradient(transparent 0, transparent calc(var(--circle-radius) - var(--icon-size)*0.75 - 0.03125rem), rgb(0 0 0 / 1) calc(var(--circle-radius) - var(--icon-size)*0.75 + 0.03125rem), rgb(0 0 0 / 1));
}

.member-box {
    position: absolute;
    left: var(--map-left);
    top: var(--map-top);
}

.member-item {
    position: absolute;
    top: calc(-1*cos(var(--item-put-deg) - var(--base-hue))*max(0rem, var(--circle-radius) + var(--icon-size)*var(--item-put-extend)) + 50%);
    left: calc(sin(var(--item-put-deg) - var(--base-hue))*max(0rem, var(--circle-radius) + var(--icon-size)*var(--item-put-extend)) + 50%);
    width: var(--icon-size);
    height: var(--icon-size);
    transform: translate(-50%, -50%);
    cursor: pointer;
    border-radius: 999rem;
    overflow: clip;
}
.member-item-content {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border: calc(var(--icon-size)*0.05) solid rgb(var(--item-icon-border) / 1);
    border-radius: 999rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    --item-icon-link: url("../image/unset.png");
    background-image: var(--item-icon-link);
}
.member-item:is(:hover, :focus-visible) .member-item-content {
    border-color: hsl(calc(var(--item-put-deg)/1deg) 100 65 / 1);
}
.member-move-handle {
    position: absolute;
    width: 100%;
    height: 100%;
}

.box-map-range {
    position: absolute;
    top: var(--map-top);
    left: var(--map-left);
    --rect-top: 6;
    --rect-left: 6;
    --rect-right: 6;
    --rect-bottom: 6;
    pointer-events: none;
}
#map-range-rect {
    position: absolute;
    width: calc((var(--rect-left) + var(--rect-right))*var(--icon-size));
    height: calc((var(--rect-top) + var(--rect-bottom))*var(--icon-size));
    top: calc(-1*var(--rect-top)*var(--icon-size));
    left: calc(-1*var(--rect-left)*var(--icon-size));
    border: 0.125rem dashed rgb(19 19 19 / 1);
    box-shadow: 0 0 0.125rem 0rem rgb(250 250 250 / 1);
}
#map-range-left {
    position: absolute;
    width: 1rem;
    height: calc((var(--rect-top) + var(--rect-bottom))*var(--icon-size));
    top: calc(-1*var(--rect-top)*var(--icon-size));
    left: calc(-1*var(--rect-left)*var(--icon-size) - 0.5rem);
    cursor: ew-resize;
    pointer-events: all;
}
#map-range-right {
    position: absolute;
    width: 1rem;
    height: calc((var(--rect-top) + var(--rect-bottom))*var(--icon-size));
    top: calc(-1*var(--rect-top)*var(--icon-size));
    left: calc(var(--rect-right)*var(--icon-size) - 0.5rem);
    cursor: ew-resize;
    pointer-events: all;
}
#map-range-top {
    position: absolute;
    width: calc((var(--rect-left) + var(--rect-right))*var(--icon-size));
    height: 1rem;
    top: calc(-1*var(--rect-top)*var(--icon-size) - 0.5rem);
    left: calc(-1*var(--rect-left)*var(--icon-size));
    cursor: ns-resize;
    pointer-events: all;
}
#map-range-bottom {
    position: absolute;
    width: calc((var(--rect-left) + var(--rect-right))*var(--icon-size));
    height: 1rem;
    top: calc(var(--rect-bottom)*var(--icon-size) - 0.5rem);
    left: calc(-1*var(--rect-left)*var(--icon-size));
    cursor: ns-resize;
    pointer-events: all;
}
.container-map:not(.mode-image) .visible-on-image {
    display: none;
}

#map-title-cover {
    position: absolute;
    --title-y: -5.5;
    --title-x: 0;
    top: calc(var(--map-top) + var(--title-y)*var(--icon-size));
    left: calc(var(--map-left) + var(--title-x)*var(--icon-size));
    cursor: grab;
    --circle-title-color: 19 19 19;
}
#map-title-cover > .display-circle-title {
    display: block;
    color: rgb(var(--circle-title-color) / 1);
    transform: translate(-50%, -50%);
    font-family: "Zen Maru Gothic";
    font-size: calc(var(--icon-size)*0.6);
    user-select: none;
    white-space: nowrap;
    overflow: visible;
}

.area-view-circle, .area-share-circle {
    padding: 1rem;
}
.area-save-circle, .area-map-ruler, .area-about-circle {
    padding: 1rem;
    overflow-x: clip;
    overflow-y: auto;
    height: calc(100dvh - var(--details-header-height) - var(--header-height));
}
.area-member-option-list {
    overflow-x: clip;
    overflow-y: auto;
    height: calc(100dvh - var(--details-header-height) - var(--header-height));
}

.area-save-circle {
    display: flex;
    flex-direction: column;
}

.member-option-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.member-option-list:not(:empty) + .empty-message {
    display: none;
}
.empty-message {
    display: block;
    text-align: center;
    padding: 1rem;
}
#prototype-element-list {
    display: none;
}

.lo-modal > .modal-wrap:not(:has(.modal-content.available)) {
    display: none;
}
.modal-content:not(.available) {
    display: none;
}

.modal-back {
    position: absolute;
    z-index: 3000000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(128 128 128 / 0.25);
    backdrop-filter: blur(0.125rem);
    cursor: pointer;
}
.modal-window {
    position: absolute;
    z-index: 3000000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: min(90vw, 30rem);
    max-height: 90dvh;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90dvh;
    background-color: rgb(250 250 250 / 1);
    box-shadow: 0 0 1rem 0.25rem rgb(128 128 128 / 0.5);
    border-radius: 0.5rem;
    padding: 2rem;
    overflow: clip;
}
.modal-closer.on-window {
    position: absolute;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    border: none;
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 1.5rem;
    background-image: url("../image/x.svg");
}
.modal-closer.on-window:is(:hover, :focus-visible) {
    border: 0.0625rem solid rgb(128 128 128 / 1);
    border-radius: 0.5rem;
}
.at-bottom {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
}
.at-right-top {
    right: 0;
    top: 0;
    transform: translate(0, 0);
}
.modal-content {
    height: auto;
    max-height: calc(90dvh - 4rem);
    overflow-y: auto;
    margin: auto;
}
.modal-content.content-login {
    width: calc(min(90vw, 30rem) - 4rem);
}

.content-user .account-list {
    display: flex;
    flex-direction: column;
    border: 0.0625rem solid rgb(37 37 37 / 1);
    border-radius: 0.75rem;
    margin: 2rem 0;
    overflow: clip;
}
.account-list-item {
    display: flex;
    position: relative;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
    --avatar-url-local: url("../image/unset.png");
}
.account-list-item:not(:last-child) {
    border-bottom: 0.0625rem solid rgb(37 37 37 / 1);
}
.content-user .switch-account {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: none;
    background: none;
}
.content-user .switch-account:is(:hover, :focus-visible) {
    background-color: rgb(128 128 196 / 0.25);
}
.content-user .current .switch-account {
    pointer-events: none;
    opacity: 0.5;
}

.avatar-wrap {
    width: 5rem;
    height: 5rem;
    padding: 0.5rem;
}
.account-list .avatar {
    width: 100%;
    height: 100%;
    border-radius: 999rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: var(--avatar-url-local);
}
.account-list .name-handle-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.account-list .display-name {
    font-size: 1.25rem;
}

.margin-half {
    margin: 0.5rem 0;
}

.box-session-login, .box-share {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}
p {
    text-indent: 1rem;
    margin: 0;
}
.area-share-circle p {
    font-size: 0.875em;
}
#box-share:not(.postable) {
    display: none;
}
#box-share.running-submission :is(#post-circle, #update-circle, #delete-circle) {
    pointer-events: none;
    background-color: rgb(230 250 230 / 1);
}
.area-share-circle:not([data-mode="create"])[data-mode] #box-share #post-circle,
.area-share-circle:not([data-mode="update"]) #box-share #update-circle,
.area-share-circle:not([data-mode="delete"]) #box-share #delete-circle {
    display: none;
}
#box-share:not(.posted) > .share-link-set {
    display: none;
}

#copy-shared-link {
    height: 1rlh;
    padding: 0 0.25rem;
    font-size: 0.9rem;
}

#identifier {
    flex: 1;
}
#identifier, #apppassword, #share-link, #target-circle, .area-details input:is([type=text], [type=number]) {
    box-sizing: content-box;
    border: none;
    padding-bottom: 0.0625rem;
    border-bottom: 0.0625rem solid rgb(37 37 37 / 1);
}
:is(#identifier, #apppassword, #share-link, #target-circle, .area-details input:is([type=text], [type=number])):is(:focus-visible) {
    box-sizing: content-box;
    padding-bottom: 0;
    border-bottom: 0.125rem solid rgb(37 37 196 / 1);
    outline: none;
}

.box-target-circle {
    margin-top: 1rem;
}
#target-circle {
    width: 20rem;
}
.area-share-circle:is([data-mode="create"], :not([data-mode])) .box-target-circle {
    display: none;
}

.box-sns-share {
    display: flex;
    flex-direction: row;
    padding: 0.5rem;
    gap: 0.5rem;
}
.link-button, .button-casual {
    display: inline-block;
    color: inherit;
    padding: 0.25rem 1rem;
    text-decoration: none;
    border: 0.03125rem solid rgb(37 37 37 / 1);
    background-color: rgb(250 250 250 / 1);
    border-radius: 999rem;
    cursor: pointer;
}
:is(.link-button[href], .button-casual):is(:hover, :focus-visible) {
    outline: none;
    background-color: rgb(230 230 250 / 1);
    text-decoration: underline;
}
:is(a[href], button).link-button.sns-share-x {
    background-color: rgb(0 0 0 / 1);
    color: rgb(250 250 250 / 1);
    border-color: rgb(0 0 0 / 1);
}
.link-button.sns-share-x[href]:is(:hover, :focus-visible) {
    background-color: rgb(0 0 0 / 1);
}
.link-button.sns-share-bsky {
    background-color: #0560FF;
    color: rgb(250 250 250 / 1);
    border-color: #0560FF;
}
.link-button.sns-share-bsky[href]:is(:hover, :focus-visible) {
    background-color: #0560FF;
}

input, textarea, select {
    font: inherit;
    font-family: "Segoe UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: none;
    border: 0.0625rem rgb(0 0 0 / 0.5) solid;
}

input[type=number] {
    width: 5rem;
}
.image-file-label, .load-circle-label {
    position: relative;
    display: inline-block;
    border: 1px solid rgb(0 0 0 / 0.5);
    border-radius: 0.125rem;
    padding: 0.125rem 0.25rem;
    text-align: center;
}
.item-image-file, .load-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    outline: none;
    border: none;
}
.image-file-label {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    background-color: rgb(128 128 128 / 1);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 3rem;
    background-image: url("../image/upload.svg");
    filter: invert(1);
}
.image-file-label:has(.item-image-file:focus-visible),
.image-file-label:hover {
    opacity: 0.25;
}

input[type=color], input[type=file], input[type=file]::-webkit-file-upload-button {
    cursor: pointer;
}

[name=details-panel] {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}
:is(body[data-mode=edit] [value=member-list]:not(:checked), body[data-mode=view] #member-list-for-viewer:not(:checked)) ~ [data-switch-panel].panel-member-list,
[value=about-circle]:not(:checked) ~ [data-switch-panel].panel-about-circle,
[value=map-ruler]:not(:checked) ~ [data-switch-panel].panel-map-ruler,
[value=save-circle]:not(:checked) ~ [data-switch-panel].panel-save-circle {
    display: none;
}
.panel-member-view:not([data-target]),
:is([name=details-panel], #member-list-for-viewer):checked ~ .panel-member-view {
    display: none;
}
#member-list-for-viewer:checked ~ .area-details-header [for="member-list-for-viewer"] {
    background-color: rgb(128 128 128 / 0.25);
    border: 0.0625rem solid rgb(19 19 19 / 1);
}
[value=member-list]:checked ~ .area-details-header [for="sw-panel-member-list"],
[value=about-circle]:checked ~ .area-details-header [for="sw-panel-about-circle"],
[value=map-ruler]:checked ~ .area-details-header [for="sw-panel-map-ruler"],
[value=save-circle]:checked ~ .area-details-header [for="sw-panel-save-circle"] {
    opacity: 0.5;
    pointer-events: none;
}

.member-option-item {
    --icon-preview-url: url("../image/unset.png");
    --item-hue: 0deg;
}
.option-icon-preview-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.option-icon-preview {
    width: 5rem;
    height: 5rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: var(--icon-preview-url);
    border-radius: 999rem;
    overflow: clip;
    box-shadow: 0 0 0.25rem 0 rgb(128 128 128 / 1);
}
.member-option-item :is([name=item-url], [name=item-labelcontent]) {
    flex-grow: 1;
}
.option-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 2.5rem;
    border-bottom: 0.0625rem dashed rgb(128 128 128 / 0.5);
}
.member-option-item:not(.edit) > .option-controler {
    display: none;
}
.member-option-item.edit > .option-card {
    display: none;
}
.item-order-handle > .item-icon-preview-cover {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.125rem;
}
.item-icon-preview {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 999rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: var(--icon-preview-url);
    box-shadow: 0 0 0.25rem 0 rgb(128 128 128 / 1);
}
.option-card > .item-order-handle {
    transition: padding-left 0.2s ease-out;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    flex-grow: 1;
    height: 100%;
}/*
.option-card:hover > .item-order-handle {
    padding-left: 2rem
}*/
.item-labelcontent-preview {
    padding-left: 1rem;
    overflow: clip;
    white-space: nowrap;
}
.member-option-list[data-edit] > .member-option-item:not(.edit) {
    display: none;
}

.card-end {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.member-option-item:first-child .move-up-item,
.member-option-item:last-child .move-down-item {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
.option-card:not(:hover):not(:focus-visible) .edit-item {
    opacity: 0.5;
}
.option-card:not(:hover):not(:has(:focus-visible)) :is(.move-up-item, .move-down-item) {
    opacity: 0;
}

.edit-item {
    background-image: url("../image/edit-2.svg");
}
.edit-item, .move-up-item, .move-down-item {
    background-color: rgb(250 250 250 / 1);
    width: 2.25rem;
    height: 2.25rem;
}

.item-icon-preview {
    display: block;
}

.move-up {
    animation: 0.2s ease-out 0s 1 normal none running move-up;
}
@keyframes move-up {
    0% {
        transform: translateY(-0.5rem);
    }
    100% {
        transform: translateY(0rem);
    }
}
.move-down {
    animation: 0.2s ease-out 0s 1 normal none running move-down;
}
@keyframes move-down {
    0% {
        transform: translateY(0.5rem);
    }
    100% {
        transform: translateY(0rem);
    }
}

.head-area-option {
    padding: 0.5rem;
}

[name=details-panel]:focus-visible ~ .area-details-header .for-details-panel {
    background-color: rgb(196 196 196 / 1);
    border: 0.0625rem dashed rgb(19 19 19 / 1);
    border-radius: 0.25rem;
}
#virtual-append-item:focus-visible ~ .area-details-header #append-item,
#virtual-a-is-details-open:focus-visible ~ .area-details-header [for="virtual-a-is-details-open"],
#virtual-b-is-details-open:focus-visible + [for="virtual-b-is-details-open"] {
    background-color: rgb(196 196 196 / 1);
    border: 0.0625rem solid rgb(19 19 19 / 1);
    border-radius: 0.25rem;
}

.panel-member-view {
    overflow: clip auto;
}
.panel-member-view .embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: rgb(0 0 0 / 1);
}
.panel-member-view .embed-wrap:empty::after {
    content: "";
    box-sizing: content-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 0.5rem solid transparent;
    border-right-color: rgb(128 128 128 / 0.5);
    border-bottom-color: rgb(128 128 128 / 1);
    border-left-color: rgb(128 128 128 / 1);
    border-radius: 999rem;
    animation: 0.5s linear 0s infinite normal none running rotation;
}
.embed-wrap > * {
    display: block;
    width: 100%;
    height: 100%;
}
.embed-wrap.disabled {
    display: none;
}
.og-cover.disabled {
    display: none;
}
.og-cover {
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: clip;
    border-radius: 0.25rem;
    width: 100%;
    height: 6rem;
    border: 0.0625rem solid rgb(128 128 128 / 1);
}
.og-text {
    display: flex;
    flex-direction: column;
    user-select: none;
}
.og-title {
    font-size: 1.25rem;
}
.og-description {
    font-size: 0.875rem;
}
.og-hyperlink {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.panel-member-view.loading .og-cover {
    opacity: 0.5;
    pointer-events: none;
}

.panel-member-view.nocontent > *:not(.nocontent-box),
.panel-member-view:not(.nocontent) > .nocontent-box {
    display: none;
}
.nocontent-box {
    margin: 2rem 0;
    text-align: center;
}

.member-option-item {
    min-height: 2rem;
}

.ghost-input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.panel-map-ruler {
    padding: 0.5rem;
}

.box-ruler-mode > label {
    display: block;
    padding: 1rem;
    cursor: pointer;
    border-radius: 0.25rem;
    border: 0.0625rem solid rgb(19 19 19 / 1);
}
[name="ruler-mode"] ~ label:hover {
    background-color: rgb(196 196 196 / 1);
    text-decoration: underline;
    outline: none;
}
[name="ruler-mode"]:focus-visible ~ label {
    background-color: rgb(196 196 196 / 1);
    text-decoration: underline;
    outline: none;
    border-style: dashed;
}
[value="none"]:checked ~ label[for="input-ruler-mode-none"],
[value="circle"]:checked ~ label[for="input-ruler-mode-circle"],
[value="grid"]:checked ~ label[for="input-ruler-mode-grid"] {
    background-color: rgb(230 230 250 / 1);
}
.virtual-check {
    position: relative;
    display: inline-block;
    padding-left: 1.5rem;
    cursor: pointer;
}
:focus-visible ~ .virtual-check,
.virtual-check:is(:hover) {
    text-decoration: underline;
}
.virtual-check::after {
    position: absolute;
    content: "";
    display: block;
    top: 50%;
    left: 0.75rem;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 0.03125rem solid rgb(19 19 19 / 1);
    border-radius: 0.25rem;
}
:checked + .virtual-check:after {
    content: "";
    color: rgb(250 250 250 / 1);
    background-color: rgb(64 64 240 / 1);
}

.has-overline {
    padding-top: 1rem;
    border-top: 0.0625rem solid rgb(128 128 128 / 1);
}
.flex-row, .flex-switch {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.flex-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.gap-half {
    gap: 0.5rem;
}
.pad-half {
    padding: 0.5rem;
}
.separator {
    width: 0;
    height: 0.9rem;
    border: 0.0625rem solid rgb(128 128 128 / 1);
}
.panel-separator {
    border: 0.03125rem solid rgb(128 128 128 / 0.5);
    align-self: stretch;
}
.separate-h {
    margin: 1rem 0;
}
.separate-v {
    margin: 0 1rem;
}

#input-notation, #input-charcode {
    font-size: 0.85rem;
}

.area-command {
    overflow-x: auto;
}

.sp-visible-block, .sp-visible-flex {
    display: none;
}

.flex-simple {
    display: flex;
}
.flex-grow {
    flex-grow: 1;
}

a[href] {
    color: inherit;
}
a[href]:visited {
    color: inherit;
}
a[href]:is(:hover, :focus-visible) {
    background-color: rgb(128 128 128 / 0.25);
}
a[href][target=_blank]:not(.no-jump-decoration):after {
    content: "↗︎";
    font-size: 0.8em;
    align-self: center;
}

.soft-bind-modal {
    width: 30rem;
    max-width: 100%;
    overflow: clip;
    line-break: anywhere;
}

.weak-text {
    font-size: 0.9em;
}

body[data-mode]:not([data-mode=edit]) .editor-visible,
body:not([data-mode=view]) .viewer-visible {
    display: none;
}
body:not([data-pub=owner]) .owner-visible,
body[data-pub=unpublished] .unpublished-invisible,
body:not([data-pub=unpublished]) .unpublished-visible {
    display: none;
}

.lo-notice {
    position: absolute;
    z-index: 6000000;
    top: var(--header-height);
    left: 50vw;
    display: flex;
    flex-direction: column;
}
.item-notice {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    transform: translate(-50%, 0);
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    --notice-bg-color: rgb(240 240 240 / 1);
    background-color: var(--notice-bg-color);
    --notice-border-color: rgb(19 19 19 / 1);
    border: 0.0625rem solid var(--notice-border-color);
    border-radius: 0.5rem;
    min-width: 30rem;
    opacity: 1;
    transition: opacity 0.2s;
    animation: 0.2s ease-out 0s 1 normal none running insert-with-slide;
    overflow: clip;
}
.notice-text {
    flex: 1;
    white-space: nowrap;
    line-break: anywhere;
}
.close-notice {
    width: 1lh;
    height: 1lh;
    background-size: 90%;
    padding: 0;
    background-image: url("../image/x.svg");
}
.close-notice:is(:hover, :focus-visible) {
    background-color: rgb(128 128 128 / 0.25);
}
.item-notice.close {
    opacity: 0;
}
@keyframes insert-with-slide {
    0% {
        opacity: 0;
        transform: translate(calc(-50% + 5rem), 0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
.life-bar-notice {
    position: absolute;
    height: 0.125rem;
    bottom: 0;
    left: 0;
    width: 0%;
    background-color: var(--notice-border-color);
}
.life-normal.life-bar-notice {
    animation: 10s linear 0s 1 normal none running decrease-life-bar;
}
.life-half.life-bar-notice {
    animation: 5s linear 0s 1 normal none running decrease-life-bar;
}
@keyframes decrease-life-bar {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

body.guest .guest-invisible {
    display: none;
}
body:not(.guest) .guest-visible {
    display: none;
}

@media screen and (max-width: 599px) {
    .lo-containers {
        --details-width: 0px;
        --details-height: max(0rem, min(100vw, calc((100dvh - var(--header-height)) - 100vw)));
    }
    .container-map {
        --origin-x: 50vw;
        --icon-size: calc((100vw/12) * var(--icon-resize));
    }
    .area-details {
        top: auto;
        right: 0;
        width: auto;
        height: var(--details-height);
        border-right: none;
        border-top: var(--sepalator-weight) solid rgb(var(--sepalator-color) / 1);
    }
    .header-content {
        padding: 0 0.5rem;
    }
    .flex-switch {
        flex-direction: column;
        align-items: start;
    }
    .sp-invisible {
        display: none;
    }
    .sp-visible-block {
        display: block;
    }
    .sp-visible-flex {
        display: flex;
    }
    .box-sns-share {
        flex-direction: column;
        align-items: center;
    }
    .overlay-with-details-start {
        top: auto;
        bottom: var(--details-height);
        left: auto;
        right: 0;
        padding: 0 0.5rem 0.5rem 0;
    }
    #is-details-open:not(:checked) ~ .container-overlay > .area-details {
        transform: translateY(var(--details-height));
    }
    #is-details-open:not(:checked) ~ .container-overlay > .overlay-with-details-start {
        left: auto;
        bottom: 0;
    }
    .area-member-option-list, .area-save-circle, .area-map-ruler, .area-about-circle, .panel-member-view {
        height: calc(var(--details-height) - var(--details-header-height));
    }
}