 .custom-dialog {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0; /* 内部でパディングを制御 */
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-dialog[open] {
  display: flex;
  flex-direction: column;
}

/* モーダル時の背景 */
.custom-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
}

/* ヘッダー（タイトル） */
.custom-dialog-header {
  font-size: 1.2em;
  font-weight: bold;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

/* ボディ（メッセージ） */
.custom-dialog-body {
  padding: 16px;
  line-height: 1.6;
  height: 6vh;
  width: 70vw;
}

/* prompt用の入力欄 */
.custom-dialog-body input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box; /* パディングを含めて幅100%にする */
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* フッター（ボタン領域） */
.custom-dialog-footer {
  display: flex;
  justify-content: flex-end; /* ボタンを右寄せ */
  padding: 12px 16px;
  background-color: #f9f9f9;
  gap: 8px; /* ボタン間の隙間 */
}

.custom-dialog-footer button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ボタンのプライマリ（OKなど）スタイル */
.custom-dialog-footer button.primary {
  background-color: #007bff;
  color: white;
}