body {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none; /* テキスト選択を防ぐ */
    -webkit-user-select: none; /* テキスト選択を防ぐ (Safari用) */
    overflow: hidden; /* ページ全体のスクロールを防ぐ */
    margin: 0;
    height: 100vh; /* ビューポート全体の高さ */
}

#drawCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#container {
    position: relative;
    width: 90vw;
    height: 90vh;
    border: 1px solid #000;
    overflow: hidden;
    touch-action: none; /* タッチ操作を無効にする */
}

.image-container {
    position: absolute;
    touch-action: none; /* タッチ操作を無効にする */
    opacity: 1; /* 初期状態では透過しない */
}

.image-container img {
    display: block;
    max-width: 100%;
    height: auto; /* 画像の縦横比を維持 */
    width: 100%;
    height: 100%; /* imgタグのサイズをコンテナに合わせる */
}

.image-container.highlighted {
    border: 2px solid blue;
}

.image-container.selected {
    border: 2px solid red;
}

.label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 8px;
    padding: 2px;
    z-index: 1001;
    pointer-events: none; /* ラベルのポインターイベントを無効にする */
    white-space: nowrap; /* テキストの改行を防ぐ */
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 0, 0, 0.5) 50%);
    cursor: se-resize;
    display: none; /* 初期状態では非表示 */
}

.image-container.selected .resize-handle {
    display: block; /* 選択状態のときに表示 */
}



#pressureDisplay {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 1000;
}

#debugContainer {
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: rgba(200, 200, 200, 0.8); /* 背景色を灰色に変更 */
    overflow-y: scroll;
    z-index: 10000;
    padding: 10px;
    display: block; /* デフォルトで表示にする */
}
