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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Helvetica Neue', sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

/* ステップ切り替え */
.step { display: none; min-height: 100vh; padding: 20px; }
.step.active { display: flex; justify-content: center; align-items: center; }

/* カード */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  text-align: center;
}
.upload-card { max-width: 600px; }

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

.subtitle {
  color: #888;
  margin-bottom: 24px;
  font-size: 15px;
}

/* フォーム */
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
input[type="text"]:focus { border-color: #d4af37; }

button {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: #d4af37;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover { background: #c4a030; }
button:disabled { background: #ccc; cursor: not-allowed; }

.error { color: #e53935; margin-top: 12px; font-size: 14px; }

/* ドロップゾーン */
#drop-zone {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 40px 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s, background 0.2s;
}
#drop-zone.dragover { border-color: #d4af37; background: #fdf8e8; }
#drop-zone p { color: #999; margin-bottom: 12px; line-height: 1.6; }

.file-label {
  display: inline-block;
  padding: 10px 24px;
  background: #d4af37;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.file-label:hover { background: #c4a030; }

/* プログレスバー */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
#progress-fill {
  height: 100%;
  width: 0%;
  background: #d4af37;
  transition: width 0.3s;
}
#progress-text { color: #888; font-size: 13px; }

/* アップロード済み写真グリッド */
#uploaded-list { margin-top: 24px; text-align: left; }
#uploaded-list h3 { font-size: 15px; color: #666; margin-bottom: 12px; }

#photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
#photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

/* スマホ対応 */
@media (max-width: 480px) {
  .card { padding: 28px 20px; }
  h1 { font-size: 22px; }
}
