﻿body {
  font-family: "Arial", sans-serif;
  background: #fff9e6;
  margin: 0;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  text-align: center;
}

h1 {
  color: #ffb400;
}

.sub {
  color: #666;
  margin-bottom: 20px;
}

/* カード */
.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ボタン */
button {
  background: #ffd54f;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
}

button:hover {
  background: #ffca28;
}

/* 2カラム */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* 画像 */
#preview {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
}

/* ローディング */
#loading {
  display: none;
  color: #ff9800;
  margin: 10px;
}

/* モーダル */
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

#modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
.material-symbols-outlined {
  vertical-align: middle;
  margin-right: 6px;
  font-size: 20px;
}
button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hint {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}
.drop-area {
  border: 2px dashed #ffd54f;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  background: #fffde7;
  cursor: pointer;
  transition: 0.2s;
}

.drop-area:hover {
  background: #fff9c4;
}

.drop-area.dragover {
  border-color: #ffb300;
  background: #fff59d;
}

.sub-text {
  font-size: 12px;
  color: #888;
}
.drop-area:hover {
  background: #fff3cd;
}
.drop-area {
  cursor: pointer;
}
.hidden-input {
  display: none;
}
.debug-btn {
  margin-top: 20px;
  padding: 10px 16px;
  border: none;
  background: #ffd54f;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.history-card {
  margin-top: 20px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

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

.history-table th {
  background: #333;
  color: white;
}

.empty-text {
  margin-top: 10px;
  color: #888;
  font-size: 13px;
}
