body {
    margin: 0;
    overflow: hidden; /* スクロールバーを消す */
    font-family: sans-serif;
    display: flex; /* コントロールと描画領域を横並び */
}

#container {
    width: calc(100vw - 300px); /* 描画領域の幅 */
    height: 100vh;
    position: relative; /* Raycaster のために必要 */
}

canvas {
    display: block; /* canvas下の余白を消す */
}

#controls {
    width: 300px; /* コントロールパネルの幅 */
    padding: 15px;
    background-color: #f0f0f0;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: auto; /* コントロールが多い場合にスクロール */
}

#controls h2 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

#controls div {
    margin-bottom: 10px;
}

#controls label {
    display: inline-block;
    margin-bottom: 5px;
    min-width: 70px;
}
#controls input[type="number"],
#controls input[type="text"] {
     width: 50px;
     margin-right: 5px;
}
#controls input[type="text"] {
     width: 80px;
}

#controls button {
    margin-right: 5px;
    padding: 5px 10px;
    margin-bottom: 10px;
}

#controls small {
    display: block;
    font-size: 0.8em;
    color: #555;
    margin-top: 2px;
}

#generation {
    font-weight: bold;
}

#editModeLabel {
    margin-right: 10px;
}