/* styles.css - カード画像ジェネレーターのスタイル */

body { 
  font-family: "Hiragino Sans", "Meiryo", sans-serif; 
  padding: 2em; 
  max-width: 1400px;
  margin: 0 auto;
  background-color: #f5f5f5;
}

h1, h2 { 
  color: #333; 
}

.container {
  background-color: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.controls {
  margin-bottom: 2em;
  padding: 1em;
  background-color: #f0f8ff;
  border-radius: 8px;
}

.control-group {
  margin-bottom: 1em;
}

label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.inline-label {
  display: inline-block;
  margin-right: 1em;
}

canvas { 
  border: 1px solid #ccc; 
  display: block; 
  margin: 1em 0; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#cardList { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5em; 
  margin-top: 2em;
}

.cardWrapper { 
  display: flex; 
  flex-direction: column; 
  align-items: center;
  background-color: white;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-preview {
  width: 100%;
  height: auto;
  max-width: 240px;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0.5em;
  font-size: 14px;
}

button:hover {
  background-color: #45a049;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.button-group {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

.download-all {
  background-color: #2196F3;
  margin-top: 1em;
}

input[type="color"] {
  width: 50px;
  height: 30px;
  cursor: pointer;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.info {
  background-color: #e7f3fe;
  border-left: 6px solid #2196F3;
  padding: 0.5em 1em;
  margin-bottom: 1em;
}

.csv-preview {
  margin-top: 1em;
  padding: 1em;
  background-color: #f9f9f9;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  font-family: monospace;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1em;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

/* ドラッグ&ドロップエリア */
.drag-drop-area {
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 1em;
  text-align: center;
  margin: 0.5em 0;
  background-color: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.drag-drop-area:hover {
  border-color: #4CAF50;
  background-color: #f0f8f0;
}

.drag-drop-area.drag-over {
  border-color: #4CAF50;
  background-color: #e8f5e8;
  border-style: solid;
  transform: scale(1.02);
}

.drag-drop-content {
  pointer-events: none;
}

.drag-drop-icon {
  font-size: 2em;
  margin-bottom: 0.3em;
  opacity: 0.6;
}

.drag-drop-text {
  font-size: 0.95em;
  color: #666;
  line-height: 1.3;
}

.drag-drop-text strong {
  color: #333;
}
