* { margin: 0; padding: 0; box-sizing: border-box; }

.hidden { display: none !important; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d0c0b;
}

#station-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#fullscreen-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

#fullscreen-btn:hover {
  opacity: 1;
}

#fullscreen-btn.is-fullscreen {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3'/%3E%3C/svg%3E");
}

/* 伝言板ヒットエリア */
#bulletin-board-hit {
  position: fixed;
  cursor: pointer;
  border-radius: 2px;
  transition: box-shadow 0.2s;
}

#bulletin-board-hit:hover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4), 0 0 12px rgba(255, 255, 255, 0.2);
}

/* お絵かきモーダル */
#drawing-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#drawing-container {
  background: #f5f0e8;
  border: 3px solid #888;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  max-width: 90vw;
  max-height: 90vh;
}

#drawing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #d4cfc4;
  border-bottom: 2px solid #aaa;
}

#drawing-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  letter-spacing: 0.1em;
}

#close-drawing {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  line-height: 1;
  padding: 0 4px;
}

#close-drawing:hover {
  color: #000;
}

#drawing-canvas {
  display: block;
  cursor: crosshair;
  touch-action: none;
}

#drawing-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #d4cfc4;
  border-top: 2px solid #aaa;
  flex-wrap: wrap;
}

.tool-btn {
  padding: 4px 12px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #f5f0e8;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  transition: background 0.15s;
}

.tool-btn:hover {
  background: #e8e2d6;
}

.tool-btn.active {
  background: #555;
  color: #fff;
  border-color: #333;
}

#pen-color {
  width: 32px;
  height: 28px;
  border: 1px solid #888;
  border-radius: 3px;
  padding: 2px;
  cursor: pointer;
  background: #f5f0e8;
}

#pen-size {
  padding: 3px 6px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #f5f0e8;
  font-size: 13px;
  cursor: pointer;
  color: #333;
}

#clear-canvas {
  padding: 4px 12px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #f5f0e8;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  margin-left: auto;
  transition: background 0.15s;
}

#clear-canvas:hover {
  background: #e0d8cc;
}
