:root {
  --bg: #fffafc;
  --card: #fff;
  --ink: #333;
  --muted: #6b7280;
  --accent: #ff87b7;
  --accent-2: #ffd1e6;
  --ring: #ffd8ec;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(255, 135, 183, .25);
  --font: 'Inter', system-ui, -apple-system, 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

.app-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-header {
  padding: 24px 16px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-2), #fff);
  border-bottom: 2px dashed var(--ring);
}

.logo {
  font-size: 24px;
  font-weight: 800;
}

.subtitle {
  color: var(--muted);
  margin-top: 6px;
}

.nav {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px dashed var(--ring);
  text-decoration: none;
  color: #333;
}

.nav a:hover {
  background: #fff3f8;
}

.app-main {
  width: min(980px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--ring);
}

h1,
h2 {
  margin: 0 0 12px 0;
}

.hint {
  color: var(--muted);
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  box-shadow: 0 6px 16px rgba(255, 135, 183, .35);
}

.btn.small {
  padding: 6px 10px;
  font-size: 13px;
}

.btn:hover {
  opacity: .95;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #eee;
  padding: 8px;
  text-align: left;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
}

.badge.ok {
  background: #dcfce7;
}

.input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin: 6px 0 12px;
}

.url {
  font-family: monospace;
}

.progress-wrap {
  margin-top: 8px;
}

.progress {
  height: 10px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: var(--accent);
}

.result.hidden,
.progress-wrap.hidden {
  display: none;
}

.dropzone {
  border: 2px dashed var(--ring);
  padding: 24px;
  border-radius: 16px;
  background: #fff;
}

.dropzone.disabled {
  opacity: .5;
  pointer-events: none;
}

/* ───────── ここから追加分 ───────── */

/* ドラッグ＆ドロップ中の見た目 */
.dropzone.dragover {
  background: #fff7fb;
  border-color: var(--accent);
}

/* 結果表示・エラーの軽い整形 */
.result {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.result .label {
  font-weight: 600;
  margin-right: 4px;
}

.result .hint {
  font-size: 12px;
  color: var(--muted);
}

.error {
  color: #ef4444;
}

/* マイファイル一覧用テーブル */
.table-scroll {
  overflow-x: auto;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.file-table th,
.file-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
}

.file-table th:first-child,
.file-table td:first-child {
  max-width: 280px;
  white-space: normal;
}

.file-table .input.small {
  width: 100%;
  max-width: 260px;
  font-size: 0.8rem;
}

.file-table tr.is-expired {
  opacity: 0.6;
}