@charset "UTF-8";
/* ========================================
   変数定義
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #f5f5f5;
  color: #333;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: #fff;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-header h1 {
  font-size: 28px;
  font-weight: 600;
}

.header-buttons {
  display: flex;
  gap: 15px;
}

.section {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #b61220;
  color: #333;
}

.category-section {
  margin-bottom: 40px;
}

.category-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #b61220;
  padding-left: 10px;
  border-left: 4px solid #b61220;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.item-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.item-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.item-card.unavailable {
  opacity: 0.85;
}
.item-card.unavailable .item-image {
  filter: grayscale(100%) brightness(0.7);
}

.item-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.item-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  transition: filter 0.3s ease;
}

.unavailable-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(220, 38, 38, 0.95);
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.item-content {
  padding: 15px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
}

.item-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  flex: 1;
}

.item-price {
  font-size: 20px;
  font-weight: bold;
  color: #b61220;
  white-space: nowrap;
  margin-left: 10px;
}

.item-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  min-height: 42px;
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Toppings List */
.toppings-list {
  display: grid;
  gap: 15px;
}

.topping-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}
.topping-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.topping-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topping-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.topping-price {
  font-size: 16px;
  font-weight: bold;
  color: #b61220;
}

.topping-actions {
  display: flex;
  gap: 8px;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 36px;
  line-height: 1;
}
.btn:active {
  transform: scale(0.97);
}

.btn-add {
  background: #4CAF50;
  color: #fff;
}
.btn-add:hover {
  background: #45a049;
}

.btn-available {
  background: #b61220;
  color: #fff;
}
.btn-available:hover {
  background: #e41728;
}

.btn-unavailable {
  background: #999;
  color: #fff;
}
.btn-unavailable:hover {
  background: #888;
}

.btn-edit {
  background: #888;
  color: #fff;
}
.btn-edit:hover {
  background: #666;
}

.btn-secondary {
  background: #fff;
  color: #333;
  border: 2px solid #ddd;
}
.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #b61220;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.form-actions .btn {
  flex: 1;
  padding: 12px;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .header-buttons {
    flex-direction: column;
  }
  .items-grid {
    grid-template-columns: 1fr;
  }
  .topping-card {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .topping-actions {
    flex-wrap: wrap;
  }
  .item-actions,
  .topping-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}/*# sourceMappingURL=admin.css.map */