/* ベーススタイル */
body.digilog {
  font-family: 'Zen Maru Gothic', sans-serif;
  background: #eaf6ff;
  color: #333;
  margin: 0;
  padding: 1em;
  line-height: 1.6;
}

/* ヘッダー */
.digilog header {
  text-align: center;
  margin-bottom: 2em;
}

.digilog header h1 {
  font-size: 2em;
  color: #3399cc;
}

.digilog nav select {
  font-size: 1em;
  padding: 0.3em;
  margin-top: 0.5em;
}

/* フォーム全体 */
.digilog form {
  max-width: 800px;
  margin: auto;
  background: #ffffff;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* フィールドセット */
.digilog fieldset {
  border: 1px solid #99cce5;
  border-radius: 8px;
  margin-bottom: 2em;
  padding: 1em;
}

.digilog legend {
  font-weight: bold;
  color: #3399cc;
  padding: 0 0.5em;
}

/* ラベルと入力 */
.digilog label {
  display: block;
  margin-bottom: 1em;
}

.digilog input[type="text"],
.digilog input[type="number"],
.digilog input[type="date"],
.digilog input[type="time"],
.digilog select,
.digilog textarea {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.digilog textarea {
  height: 80px;
  resize: vertical;
}

/* ボタン */
.digilog button {
  background: #3399cc;
  color: white;
  border: none;
  padding: 0.7em 1.5em;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
}

.digilog button:hover {
  background: #2a88b8;
}

/* Canvasプレビュー */
.digilog .canvas-preview {
  border: 1px dashed #ccc;
  padding: 0.5em;
  margin-top: 0.5em;
  cursor: pointer;
  background: #f9f9f9;
}

/* モーダル */
.digilog .modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
}

.digilog .modal-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2em;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.digilog .modal-content canvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  border: 1px solid #333;
  margin-bottom: 1em;
}

.digilog .modal-content button {
  margin: 0.5em;
}