* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
}
header {
  background: #7c594a;
  color: white;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
}
header h1 {
  font-size: 36px;
  font-weight: 600;
}
.back-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.back-btn.visible {
  display: block;
}
.recipe-list {
  padding: 8px;
}
.recipe-item {
  background: white;
  margin: 8px 0;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.1s;
}
.recipe-item:active {
  transform: scale(0.98);
}
.recipe-item h2 {
  font-size: 24px;
  font-weight: 500;
  color: #333;
}
.recipe-detail {
  display: none;
  padding: 16px;
  transform: translateX(0);
  transition: transform 0.2s ease-out;
}
.recipe-detail.visible {
  display: block;
}
.recipe-detail.sliding-out {
  transform: translateX(100%);
}
.recipe-detail h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #333;
}
.recipe-content {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  white-space: pre-wrap;
  font-size: 20px;
  line-height: 1.25;
  color: #444;
}

table {
  border: 1px solid #7c594a;
}

.recipe-content h3 {
  font-size: 36px;
  font-weight: 600;
  color: #7c594a;
  margin-top: 12px;
}
.recipe-content table {
  padding: 8px 8px;
}
.recipe-content td {
  padding: 2px 8px 2px 0;
  vertical-align: top;
  font-size: 24px;
}
.recipe-content td:first-child {
  white-space: nowrap;
  font-weight: 500;
  text-align: right;
}
.recipe-list.hidden {
  display: none;
}
