/* ベース背景 */
body {
  margin: 0;
  padding: 16px;
  background-color: #c0c0c0;
  font-family: 'MS Gothic', monospace;
  font-size: 13px;
  color: black;
}
.window {
  background-color: #e0e0e0;
  border: 2px solid #000;
  width: 800px;
  max-width: 100%;
  box-shadow: inset -2px -2px #fff, inset 2px 2px #000;
  padding-bottom: 12px;
}
.titlebar {
  background-color: #000080;
  color: white;
  font-weight: bold;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.titlebar .close-btn {
  background: #c0c0c0;
  color: black;
  border: 2px solid #000;
  border-top-color: #fff;
  border-left-color: #fff;
  width: 20px;
  height: 20px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background-color: #dcdcdc;
  padding: 4px;
}
.tooltab {
  padding: 4px 8px;
  background: #c0c0c0;
  border: 2px solid #000;
  border-top-color: #fff;
  border-left-color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.tooltab.active {
  background: #a0a0a0;
}
.content-area {
  padding: 10px;
  background-color: #e0e0e0;
}
.tool-content {
  display: none;
}
.tool-content.active {
  display: block;
  padding: 10px;
  background-color: white;
  border: 2px solid #000;
  border-top-color: #fff;
  border-left-color: #fff;
  margin-top: 8px;
}
textarea, input[type="text"], input[type="number"] {
  font-family: 'MS Gothic', monospace;
  font-size: 13px;
  padding: 4px;
  border: 2px solid #000;
  border-top-color: #fff;
  border-left-color: #fff;
  background-color: #ffffff;
  resize: none;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}
button {
  padding: 4px 10px;
  font-size: 12px;
  background: #c0c0c0;
  border: 2px solid #000;
  border-top-color: #fff;
  border-left-color: #fff;
  cursor: pointer;
}
pre {
  background-color: #ffffff;
  padding: 6px;
  font-family: 'MS Gothic', monospace;
  border: 2px solid #000;
  border-top-color: #fff;
  border-left-color: #fff;
  white-space: pre-wrap;
}
