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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.5rem;
  text-align: center;
  color: #4a7fcb;
  margin-bottom: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

h2 {
  font-size: 1rem;
  color: #4a7fcb;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f0fb;
}

.input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.input-row input,
.input-row select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid #cdd8e8;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fafcff;
  outline: none;
  transition: border-color 0.2s;
}

.input-row input:focus,
.input-row select:focus {
  border-color: #4a7fcb;
}

.input-row button {
  padding: 10px 18px;
  background: #4a7fcb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.input-row button:hover {
  background: #3567b5;
}

/* メンバータブ */
.member-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #e8f0fb;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.member-tab.active {
  background: #4a7fcb;
  color: #fff;
  border-color: #3567b5;
}

.member-tab .del-member {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.7;
  padding: 0;
  line-height: 1;
}

.member-tab.active .del-member:hover {
  opacity: 1;
}

.member-tab:not(.active) .del-member:hover {
  opacity: 1;
  color: #e05;
}

/* サイズ一覧 */
.size-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.size-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f5f8ff;
  border-radius: 8px;
  border-left: 4px solid #4a7fcb;
}

.size-item .category-label {
  font-size: 0.8rem;
  color: #7a9acc;
  font-weight: 600;
  min-width: 70px;
}

.size-item .size-value {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  padding: 0 8px;
}

.size-item .del-size {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #bbb;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.size-item .del-size:hover {
  color: #e05;
}

.empty-msg {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  padding: 16px;
}

@media (max-width: 375px) {
  .input-row {
    flex-direction: column;
  }
  .input-row button {
    width: 100%;
  }
}
