body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #333333;
    width: 100%;
    overflow-x: hidden;
}

.instruction {
    position: absolute;
    text-align: center;
    z-index: 10;
}

.message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.button-group {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    z-index: 10;
}

.controller-group {
    display: flex;
    gap: 10px;
    margin: 5px 0;
    z-index: 10;
    align-items: center;
}

.controller-group label {
    color: white;
    font-size: 14px;
}

.controller-group select, .controller-group input {
    padding: 5px;
    font-size: 14px;
    background-color: #555555;
    color: white;
    border: 1px solid #777777;
    cursor: pointer;
}

.controller-group select:hover, .controller-group input:hover {
    background-color: #777777;
}

#toggle-led, #toggle-info, #change-color, #toggle-ears {
    padding: 5px 5px;
    font-size: 14px;
    cursor: pointer;
    color: white;
    background-color: #555555;
    border: 1px solid #777777;
}

#toggle-led:hover, #toggle-info:hover, #change-color:hover, #toggle-ears:hover {
    background-color: #777777;
}

.hotspot {
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: 5px;
    width: auto;
    height: 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    writing-mode: horizontal-tb;
    white-space: nowrap;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.hotspot:hover {
    transform: scale(1.2);
}

.info-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 50px 15px 25px;
    border-radius: 5px;
    display: none;
    max-width: 90%;
    text-align: center;
    z-index: 10;
    width: 90%;
    box-sizing: border-box;
}

#info-text {
    display: block;
    text-align: left;
    width: 100%;
}

#info-text img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

#info-text a {
    color: #00bfff;
    text-decoration: underline;
}

#info-text a:hover {
    color: #ff5555;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #ff5555;
}

#my-model {
    width: 100%;
    height: 600px;
}

@media (max-width: 600px) {
    #my-model {
        height: 70vh;
    }

    .info-panel {
        bottom: auto;
        top: 90px;
        max-width: none;
        width: 96vw;
        padding: 10px 5px;
        left: 2vw;
        transform: none;
        box-sizing: border-box;
    }

    #info-text {
        width: 100%;
        text-align: left;
    }

    .button-group, .controller-group {
        margin: 5px 0;
        flex-wrap: wrap;
    }
}

#info-text img.hotspot-image {
    max-width: 280px; /* 幅 */
    height: auto; /* 高さ自動 */
    margin: 10px 0;
    display: block;
}