body {
    align-items: center;
}
footer {
    text-align: center;
    bottom: 0;
    align-content: end;
    display: inline-block;
    position:relative;
}
img {
    position:absolute;
    cursor: grab;
    overflow: hidden;
    display:flex;
}
fieldset {
    display:inline;
}

input[type="number"] {
    width:18%;
}
#image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* 画像と画像の間に隙間を空ける */
  margin-top: 20px;
}

.hidden-part {
    display:none;
}

.active:hover {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
  opacity: 1;
}
.selected-image {
  /* ...既存のスタイル... */
  transform: scale(1) rotateX(0deg) rotateY(0deg); /* 初期変形状態 */
  transition: transform 0.2s ease;
}
#explanation {
    font-size: 0.8rem;
}
button {
    margin: 4px;
}

.controls {
    width: 100%;
}
@media (max-width: 700px) {
    }
@media (max-width: 1300px) {

    img {
        max-height: 40vw;
    }
    .map-outer {
        width: 750px;
        height: 750px;
        margin: auto;
        border: 0;
    }
    label {
    font-size: 1.5vw;
    }
    select {
    font-size: 2vw;

    }
    option {
    font-size: 1.5vw;
    }
}
.map-outer {
    width: 850px;
    height: 850px;
    margin: auto;
    padding-left: 150px;
    /*padding: 0 150px;*/
    border: 0;
}
.map-container {
            position: relative;
            width: 90%; /* マップの横幅 */
            height: 90%; /* マップの縦幅 */
            margin: 50px auto; /* 中央寄せ */
            /*padding: 0 150px;*/
            border: 0px;
            background-color: lightyellow;
        }

        /* 軸のスタイル */
        .axis-x, .axis-y {
            position: absolute;
            background-color: #333;
            z-index: 10;
        }
        
        /* X軸（横軸）: 中央に配置 */
        .axis-x {
            width: 100%;
            height: 1px;
            top: 50%; /* X軸の垂直位置 */
            transform: translateY(-50%);
        }
        
        /* Y軸（縦軸）: 中央に配置 */
        .axis-y {
            width: 1px;
            height: 100%;
            left: 50%;
            transform: translateX(-50%);
        }

        /* 軸ラベル（テキストボックス）のスタイル */
        .label-input {
            position: absolute;
            font-size: 20px;
            font-weight: bold;
            color: #555;
            z-index: 10;
            border: none;
            border-bottom: 1px solid gray;
            padding: 2px 5px;
            background-color: white;
            text-align: center;
            width: 150px; /* 幅を固定 */
        }
        
        /* ⬇️ X軸の左右のラベルの位置調整 (修正箇所) ⬇️ */
        .label-x-left { 
            top: 50%; /* Y軸の中心に合わせる */
            left: -150px; /* マップの左端の外側に配置 */
            transform: translateY(-50%); /* 垂直方向の中央揃え */
            text-align: right;
        }
        .label-x-right { 
            top: 50%; /* Y軸の中心に合わせる */
            right: -150px; /* マップの右端の外側に配置 */
            transform: translateY(-50%); /* 垂直方向の中央揃え */
            text-align: left;
        }
        /* ⬆️ X軸の左右のラベルの位置調整 (修正箇所) ⬆️ */

        /* Y軸の上下のラベルの位置調整 (変更なし) */
        .label-y-top { 
            top: -35px; 
            left: 50%;
            transform: translateX(-50%);
        }
        .label-y-bottom { 
            bottom: -35px; 
            left: 50%; 
            transform: translateX(-50%);
        }