@charset "UTF-8";

/* アプリ本体の内側に余白 */
.appBody {
  padding: 18px 20px 20px;
}

/* ドロップエリア */
.dropZone {
  border: 2px dashed #6cc8f7;
  border-radius: 18px;
  background: #ffffff;
  padding: 18px 14px;
  outline: none;
  margin-bottom: 16px;

  display: flex;              /* 追加 */
  align-items: center;        /* 縦中央 */
  justify-content: center;    /* 横中央 */
  text-align: center;
}

.dropZone:focus {
  box-shadow: 0 0 0 3px rgba(108, 200, 247, 0.35);
}
.dropZone.isDrag {
  background: #f4fbff;
}
.dzTitle {
  margin: 0;          /* ← これが本丸 */
  line-height: 1;     /* ← 見た目の上下ズレを減らす（任意） */
}

/* ファイルボタン */
.fileBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55em 1.2em;
  border: 1px solid #888;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  gap: 10px;
}
.fileBtn input[type="file"] {
  display: none;
}
.fileName {
  margin-top: 10px;
  color: #333;
  font-size: 0.95em;
}

/* セクション見出し */
.sectionLabel {
  margin: 16px 0 8px;
}

/* プレビュー枠 */
.previewBox {
  border: 1px solid #333;
  background: #fff;
  height: 320px;          /* ← お好みで固定（例） */
  padding: 10px;
  margin-bottom: 14px;

  overflow: auto;         /* ← はみ出したらスクロール */
  display: block;         /* ← flexやめる（中央寄せを解除） */
}

#srcPreview {
  display: none;   /* JSで表示切替するのでそのまま */
  width: auto;     /* ← 原寸 */
  height: auto;    /* ← 原寸 */
  max-width: none; /* ← 重要：枠を超えてもOK */
}

#outCanvas {
  max-width: 100%;
  height: auto;
  display: none; /* 未変換時は非表示 */
}

/* 入力行 */
.controlsRow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ctrlLabel {
  white-space: nowrap;
}
.ctrl input {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #333;
  border-radius: 6px;
}
.ctrlUnit {
  white-space: nowrap;
}

/* ダウンロード行 */
.downloadRow {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* 無効状態 */
.isDisabled {
  pointer-events: none;
  opacity: 0.45;
}

.dropZone {
  cursor: pointer;
}