body {
    margin: 0;
    font-family: sans-serif;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid black;
    padding: 10px 20px;
}

.main-button {
    color: black;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    border: solid 2px black;
    background-color: white;
    border-radius: 15px;
}

.main-button.selected {
    transform: scale(1.08);
    transition: transform 0.2s;
}

.insert-button-selected {
    /* outline: 2px solid #2196F3;
    outline-offset: 2px; */
    border-color: #2196F3;
    transition: outline 0.2s;
    transform: scale(1.08);
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.08);
    transition: transform 0.2s;
    cursor: pointer;
}

.elite-input:hover {
    transform: scale(1.08);
    transition: transform 0.2s;
    cursor: pointer;
}

.highlight-edit-element {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

.highlight-edit-button {
    border-color: #2196F3;
    transition: outline 0.2s;
    transform: scale(1.08);
    transition: transform 0.2s;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-area img {
    height: 50px;
}

.site-name {
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
    color: black;
    text-decoration: none;
}

.paw {
    font-size: 24px;
    margin-left: 5px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.top-bar {
    background: #333;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;        
}

.top-bar-icons {
    display: flex;
    gap: 10px; /* アイコン間の余白 */
}

.top-bar-icon {
    width: 75px;
    height: 75px;
    margin-left: 5px;
    margin-right: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    opacity: 0.3;
    pointer-events: none;
}

/* .top-bar-icon:hover {
    transform: scale(1.1);
} */

.top-bar-icon:hover {
    transform: scale(1.1);
}

.top-bar-icon.enabled {
    opacity: 1;
    pointer-events: auto;
}

.top-bar h1 {
    margin-left: 10px;
}

.main-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    overflow-x: auto;
}

/* object-list-panel */
.object-list-panel {
    width: 200px;
    min-width: 200px;
    border: 1px solid black;
    overflow-y: auto;
    padding-left: 10px;
    height: 750px;
    border-radius: 15px;
    margin-left: 10px;
    margin-right: 10px;
}

.object-list-panel ul li:hover {
    background: #eef;
}

.object-list-panel ul li {
    border-bottom: 1px solid #ddd;
}

canvas {
    border: 1px solid black;
    /* background: #f9f9f9; */
}

.button-panel {
    display: flex;
    flex-direction: column;
}

/* insert-button-panel */
.insert-button-section {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.button-title {
    font-size: 22px;
    font-weight: bold;
    padding: 0;
    margin-top: 3px;
    margin-bottom: 3px;
}

.insert-button-panel {
    display: flex;
    flex-direction: row;
    gap: 10px;
    background-color: rgb(240, 240, 240);
    border: solid 1px gainsboro;
    border-radius: 10px;
    padding: 10px;
}

.insert-button-group1 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insert-button1 {
    width: 120px;
    height: 70px;
}

.insert-button2 {
    width: 150px;
    height: 150px;
}

/* main-edit-panel */
.main-edit-reset {
    width: 200px;
    height: 50px;
    margin-bottom: 20px;
}

.grid-toggle {
    width: 200px;
    height: 50px;
}

.DragAnchor {
    font-weight: bold;
    transform: scale(1.5);
    margin-left: 10px;
}

.main-edit-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-left: 10px;
}

.other-button-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgb(240, 240, 240);
    border: solid 1px gainsboro;
    border-radius: 10px;
    padding: 10px;
    width: 580px;
}

.edit-type-basic {
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.edit-type-background {
    font-size: 16px;
    font-weight: bold;
    margin-left: 30px;
}

.input-style {
    font-size: 16px;
    font-weight: bold;
    width: 50px;
    height: 30px;
}

.input-style2 {
    font-size: 16px;
    font-weight: bold;
    width: 70px;
    height: 30px;
}

.edit-color-input {
    width: 60px;
    height: 30px;
}

.dragAnchor {
    display: flex;
    flex-direction: row;
    justify-items: center;
    text-align: center;
    align-items: center;
}

.custom-select {
    position: relative;
    width: 150px;
    border: 1px solid #aaa;
    cursor: pointer;
    user-select: none;
}

.custom-select-display {
    padding: 4px 8px;
    background-color: #fff;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #aaa;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-select-options li {
    padding: 4px 8px;
    cursor: pointer;
}

.custom-select-options li.selected,
.custom-select-options li:hover {
    background-color: #d0e0ff;
}

.file-save {
    margin-top: 30px;
}

.file-format {
    margin-right: 20px;
}

.file-name {
    margin-left: 10px;
    width: 150px;
    height: 25px;
    font-size: 14px;
}

.edit-type-checkbox {
    transform: scale(1.5);
    margin-left: 5px;
    margin-right: 30px;
}

.file-save-button {
    width: 200px;
    height: 50px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.image-save-button {
    width: 150px;
    height: 50px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.fileinport {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.file-input-label {
    font-size: 16px;
    font-weight: bold;
    width: 200px;
    margin-left: 10px;
}

.InportFileInput {
    font-size: 16px;
    font-weight: bold;
    width: 500px;
}

/* Fig edit panel */

.coord-setting {
    display: flex;
    flex-direction: row;
}

.Select-Style-Basic {
    margin-left: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.fig-delete-button {
    color: red;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    border: solid 2px red;
    background-color: white;
    border-radius: 15px;
    width: 150px;
    height: 50px;
}

.function-type-parameter {
    display: flex;
    flex-direction: column;
}

/* Manual */

.operation-guide {       
    flex-shrink: 0;
    padding: 20px;
    font-size: 14px;
    margin-top: 20px;
    overflow-x: auto; 
}

.operation-guide h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.operation-guide p {
    text-indent: 1rem;
    font-size: 18px;   
    width: 1450px; 
}

.operation-box {
    width: 1450px;
    font-size: 18px;
    font-weight: bold;
    background-color: rgb(240, 240, 240);
    border: solid 1px gainsboro;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.operation-column {
    flex: 1;
    min-width: 200px;
}

.operation-column p {
    margin: 4px 0;
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}


/* color panel */
.color-preview {
    width: 50px;
    height: 20px;
    border: 1px solid #333;
    background-color: #f9f9f9;
    display: inline-block;
    cursor: pointer;
}

.color-panel {
    position: absolute;
    background: white;
    border: 1px solid #aaa;
    padding: 10px;
    z-index: 1000;
    display: none;
}

.color-grid {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.color-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.color-cell {
    width: 24px;
    height: 24px;
    border: 1px solid #999;
    cursor: pointer;
}

.color-cell.highlighted {
    outline: 2px solid #2196F3;
    box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.3);
}

/* cursor */
.rotate-cursor {
    cursor: url('./Material/rotate_cursor_transparent.png') 16 16, auto;
}

.angle-cursor {
    cursor: grab;
}

.angle-cursor-grabbing {
    cursor: grabbing;
}

.move-cursor {
    cursor: move;
}

.cross-cursor {
    cursor: crosshair;
}

.nwse-resize {
    cursor: nwse-resize;
}

.nesw-resize {
    cursor: nesw-resize;
}

.ns-resize {
    cursor: ns-resize;
}

.ew-resize {
    cursor: ew-resize;
}

.default-cursor {
    cursor: default;
}