/* ============================================
   JPG to PDF — DEFACTO in-house tool
   design tokens aligned with the corporate site (white / cyan #00A0C2)
   ============================================ */

:root {
  --white: #ffffff;
  --ink: #111417;
  --gray: #6b7378;
  --line: #e3e7e9;
  --alt-bg: #f5f7f8;
  --cyan: #00a0c2;
  --cyan-dark: #00849f;
  --dark: #0d1b26;
  --red: #c0392b;
  --font-body: Arial, "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- header ---- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: bold;
  letter-spacing: 0.14em;
  color: var(--dark);
}

.app-title {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.06em;
}

/* ---- main ---- */
.main { padding-top: 36px; padding-bottom: 56px; }

h1 {
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.lead {
  margin-top: 10px;
  color: var(--gray);
  font-size: 14px;
}

/* ---- dropzone ---- */
.dropzone {
  margin-top: 24px;
  padding: 40px 20px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--alt-bg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.dropzone.is-over {
  border-color: var(--cyan);
  background: #e9f6f9;
}

.dz-main { font-weight: bold; }

.dz-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--gray);
}

/* ---- list ---- */
.list-section { margin-top: 28px; }

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.list-title { font-size: 15px; }

.thumbs { list-style: none; }

.thumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.thumb-no {
  width: 22px;
  flex: none;
  text-align: right;
  font-size: 13px;
  color: var(--gray);
}

.thumb-img {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
  background: var(--alt-bg);
}

.thumb-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-ops {
  display: flex;
  gap: 6px;
  flex: none;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.btn-icon:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.btn-icon:disabled { opacity: 0.35; cursor: default; }
.btn-icon.is-del:hover { border-color: var(--red); color: var(--red); }

.btn-text {
  border: none;
  background: none;
  color: var(--gray);
  font-size: 13px;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.btn-text:hover { color: var(--red); }

/* ---- actions ---- */
.actions {
  margin-top: 28px;
  text-align: center;
}

.btn-primary {
  width: 100%;
  max-width: 360px;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover:not(:disabled) { background: var(--cyan-dark); }

.btn-primary:disabled {
  background: var(--line);
  color: #9aa3a8;
  cursor: default;
}

.status {
  margin-top: 12px;
  min-height: 1.9em;
  font-size: 13px;
  color: var(--gray);
}

.status.is-error { color: var(--red); }
.status.is-done { color: var(--cyan-dark); }

/* ---- notes ---- */
.notes {
  margin-top: 44px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--alt-bg);
}

.notes-title { font-size: 14px; }

.notes ul {
  margin-top: 6px;
  padding-left: 1.2em;
  font-size: 13px;
  color: var(--gray);
}

/* ---- footer ---- */
.footer {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--gray);
}

@media (max-width: 480px) {
  h1 { font-size: 19px; }
  .dropzone { padding: 32px 16px; }
  .thumb-name { font-size: 12px; }
}
