@charset "UTF-8";

/* ダークブルー テーマ */
:root {
  --primary-blue: #0b2545;
  --accent-blue: #134074;
  --highlight-blue: #00d0ff;
  --bg-color: #050a14;
  --text-color: #e0e6ed;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.7;
  color: var(--text-color);
  background: var(--bg-color);
}

/* ヘッダー＆戻るボタン */
.page-header {
  margin-bottom: 25px;
  text-align: center;
}

.back-btn {
  display: inline-block;
  margin-bottom: 15px;
  padding: 8px 18px;
  background: var(--primary-blue);
  color: var(--highlight-blue);
  border: 1px solid var(--highlight-blue);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: var(--highlight-blue);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 208, 255, 0.6);
}

h1 {
  font-size: 1.8em;
  color: var(--highlight-blue);
  margin: 0;
}

/* メーカー本体コンテナ */
#door-maker-container {
  background: #1a1a1a;
  border: 1px solid var(--highlight-blue);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.maker-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

/* サイドバー（操作パネル） */
.maker-sidebar {
  width: 100%;
  max-width: 300px;
  background: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.maker-sidebar h3 {
  font-size: 14px;
  border-bottom: 1px solid #555;
  padding-bottom: 4px;
  margin-top: 5px;
  color: var(--highlight-blue);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #333;
  padding: 8px;
  border-radius: 6px;
}

.control-group label {
  font-size: 12px;
  color: #ccc;
}

.control-group input[type="text"],
.control-group input[type="file"],
.control-group input[type="range"],
.control-group input[type="color"] {
  width: 100%;
}

.control-group input[type="text"] {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
}

/* プレビューキャンバス (480x360) */
#canvas {
  width: 480px;
  height: 360px;
  background-color: #222;
  position: relative;
  overflow: hidden;
  border: 2px solid #555;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

/* ドラッグ可能要素 */
.draggable {
  position: absolute;
  cursor: move;
  user-select: none;
  top: 0;
  left: 0;
}

#bg-element img, 
#logo-element img {
  display: block;
  pointer-events: none;
}

#logo-element img {
  width: 100%;
  height: auto;
}

#text-element {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", sans-serif;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1;
}