:root {
  --paper: #FAF6F1;
  --ink: #332B28;
  --ink-soft: #6b5f58;
  --berry: #B23A52;
  --berry-dark: #8f2c40;
  --sand: #E8DED2;
  --moss: #5C7A5E;
  --moss-soft: #e4ebe3;
  --gold: #B8925A;
  --radius-photo: 14px;
  --font-display: "Shippori Mincho", serif;
  --font-body: "Zen Maru Gothic", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

a { color: var(--berry); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px dashed var(--sand);
  background: var(--paper);
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}
.nav a {
  margin-left: 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.nav a:hover { color: var(--berry); }

main.wrap { padding: 36px 24px 64px; }

/* 業務側:角なし・情報密度優先のテーブル */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--sand);
}
.staff-table th, .staff-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px dashed var(--sand);
  font-size: 0.9rem;
}
.staff-table th {
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--moss-soft);
  border-bottom: 1px solid var(--sand);
}
.staff-table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-waiting   { background: var(--sand); color: var(--ink-soft); }
.badge-active    { background: var(--moss-soft); color: var(--moss); }
.badge-attention { background: #f6dde1; color: var(--berry-dark); }
.badge-done      { background: #e6efe6; color: #3d6b41; }

.page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-heading p { color: var(--ink-soft); margin: 4px 0 0; }

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filter-bar a {
  padding: 6px 14px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.filter-bar a.active {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--sand);
  background: #fff;
}

/* 商品カード(お客さん向け、写真中心・角丸) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
}
.product-card .photo {
  aspect-ratio: 3 / 4;
  background: var(--sand);
  border-radius: var(--radius-photo);
  overflow: hidden;
  margin-bottom: 10px;
}
.product-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card .name { font-weight: 700; font-size: 0.95rem; }
.product-card .price { color: var(--berry-dark); font-weight: 700; }

.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  margin-right: 4px;
}

/* ボタン・フォーム */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--sand);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-primary {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
}
.btn-primary:hover { background: var(--berry-dark); text-decoration: none; }

.simple-form input, .simple-form select {
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid var(--sand);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-top: 4px;
}
.simple-form p { margin-bottom: 16px; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.product-detail .photo-large {
  aspect-ratio: 3/4;
  background: var(--sand);
  border-radius: var(--radius-photo);
  overflow: hidden;
}
.product-detail .photo-large img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .category-label { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }
.product-detail .price-large { font-size: 1.5rem; color: var(--berry-dark); font-weight: 700; }
.add-to-cart-form .form-field { display: block; margin-bottom: 14px; font-size: 0.85rem; color: var(--ink-soft); }
.add-to-cart-form select, .add-to-cart-form input {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--sand);
  border-radius: 6px;
  font-family: var(--font-body);
}
.cart-total { text-align: right; font-size: 1.2rem; font-weight: 700; margin-top: 12px; }

@media (max-width: 720px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* 特集(キュレーション)セクション:大きなバナー、文字は写真に重ねる */
.curation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.curation-card { position: relative; display: block; }
.curation-photo {
  position: relative;
  aspect-ratio: 4/3.4;
  background: var(--sand);
  border-radius: var(--radius-photo);
  overflow: hidden;
}
.curation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.curation-card:hover .curation-photo img { transform: scale(1.04); }
.curation-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,38,32,0.75) 0%, rgba(43,38,32,0.15) 45%, transparent 70%);
}
.curation-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.curation-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.curation-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}

/* 商品カード + お気に入りハート */
.product-card { position: relative; }
.favorite-form { position: absolute; top: 10px; right: 10px; z-index: 2; }
.favorite-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--ink-soft);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.favorite-btn.is-favorited { color: var(--berry); }
.favorite-btn:hover { color: var(--berry); }

@media (max-width: 720px) {
  .curation-grid { grid-template-columns: 1fr; }
}

.logout-form { display: inline; margin-left: 20px; }
.logout-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}
.logout-btn:hover { color: var(--berry); text-decoration: underline; }

/* 業務用フォーム */
.staff-form p { margin-bottom: 16px; }
.staff-form label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 4px; }
.staff-form input[type="text"],
.staff-form input[type="number"],
.staff-form select,
.staff-form textarea {
  width: 100%;
  max-width: 480px;
  padding: 8px 10px;
  border: 1px solid var(--sand);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.staff-form textarea { resize: vertical; }

.staff-product-photo {
  width: 240px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--sand);
  margin-bottom: 24px;
}
.staff-product-photo img { width: 100%; height: 100%; object-fit: cover; }

h2, h3 { margin-top: 32px; }

/* カテゴリグリッド(丸アイコン+ラベル、minne風) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-align: center;
}
.category-tile:hover { text-decoration: none; color: var(--berry); }
.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-icon-all {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.category-tile.active .category-icon { border-color: var(--berry); }
.category-tile.active { color: var(--berry); font-weight: 700; }
.category-name {
  font-size: 0.78rem;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
  .category-icon { width: 52px; height: 52px; }
}
