:root {
  --brand-primary: #a0783c;
  --brand-bg: #fdf4e8;
  --bg-page: #f8f9fa;
  --surface: #ffffff;
  --text-main: #18181b;
  --text-muted: #71717a;
  --text-price: #a0783c;
  --border-subtle: #e4e4e7;
  --border-card: #f4f4f5;
  --tab-bg: #f4f4f5;
  --tab-text: #52525b;
  --tab-active-bg: #18181b;
  --tab-active-text: #ffffff;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-max-width: 680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.site-header {
  padding: 28px 0 20px;
  text-align: center;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.site-logo-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}

.site-logo .brand-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.site-logo .brand-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

.site-menu-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-top: 18px;
}

.category-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px max(16px, env(safe-area-inset-left));
  max-width: var(--container-max-width);
  margin: 0 auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 16px;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--tab-text);
  background-color: var(--tab-bg);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.category-tab:hover {
  color: var(--text-main);
  background-color: #e4e4e7;
}

.category-tab.active {
  background-color: var(--brand-primary);
  color: #ffffff;
  font-weight: 700;
}

.main-content {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 60px;
}

.menu-category {
  margin-bottom: 36px;
  scroll-margin-top: 70px;
}

.menu-category:last-child {
  margin-bottom: 16px;
}

.category-header-wrap {
  margin-bottom: 12px;
}

.category-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.category-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.items-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-card {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.item-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.item-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.item-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-price);
}

.item-media {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  background-color: var(--brand-bg);
  display: block;
}

.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 max(28px, env(safe-area-inset-bottom));
  margin-top: auto;
  text-align: center;
}

.footer-info {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-address {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(16px, env(safe-area-inset-right));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
  z-index: 90;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 600px) {
  .site-header {
    padding: 22px 0 16px;
  }

  .site-logo-img {
    width: 130px;
    height: 130px;
    margin-bottom: 10px;
  }

  .site-logo .brand-title {
    font-size: 25px;
  }

  .site-logo .brand-subtitle {
    font-size: 14px;
  }

  .site-menu-title {
    font-size: 16px;
    margin-top: 14px;
  }

  .category-tab {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  .main-content {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .menu-category {
    margin-bottom: 28px;
    scroll-margin-top: 62px;
  }

  .category-title {
    font-size: 18px;
  }

  .item-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
    border-radius: 16px;
  }

  .item-media {
    width: 100%;
    height: 190px;
  }

  .item-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  .item-content {
    width: 100%;
  }

  .item-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .item-description {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .item-price {
    font-size: 16px;
  }
}
