/* 全体のリセットとベース設定 */
body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background-color: #f0f5f8;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* メインの白いカード */
.container {
  background-color: #ffffff;
  width: 90%;
  max-width: 500px;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
}

h1 {
  font-size: 24px;
  margin-top: 0;
  color: #5ab4bd;
}

.description {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

/* ★ドロップエリアのスタイル */
.upload-area {
  border: 2px dashed #cbd5e1; /* やわらかいグレーの点線 */
  background-color: #f8fafc;
  border-radius: 15px;
  padding: 40px 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease; /* ふんわり変化させる */
}

/* ★画像をドラッグして重ねた時のスタイル */
.upload-area.dragover {
  border-color: #5ab4bd;
  background-color: #e6f4f5;
  transform: scale(1.02); /* 少しだけ手前に浮き出る感覚 */
}

/* ボタンの共通スタイル */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary { background-color: #5ab4bd; color: white; }
.btn-success { background-color: #7bc676; color: white; }
/* ★リセットボタン（グレー系） */
.btn-secondary { background-color: #a0aec0; color: white; }

/* ボタングループ（横並び） */
.button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap; /* スマホなどで幅が足りない時は折り返す */
}

input[type="file"] { display: none; }

#fileCountMessage {
  margin-top: 15px;
  font-size: 14px;
  color: #888;
  pointer-events: none; /* テキストの選択を無効化 */
}

/* 進捗バー */
.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: #5ab4bd;
  border-radius: 10px;
  transition: width 0.3s ease;
}

#statusMessage {
  font-size: 14px;
  font-weight: bold;
  color: #5ab4bd;
}

.hidden { display: none !important; }