.bottom-nav {
  width: min(680px, calc(100% - 24px));
  grid-template-columns: repeat(6, 1fr);
}

.nav-item { min-height: 44px; }

.recipe-page { min-width: 0; }

.recipe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 14px;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 30px;
  color: #fff;
  background: #27433a;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.recipe-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -105px;
  border-radius: 50%;
  background: #e9b85f;
}

.recipe-hero > div { position: relative; z-index: 1; }
.recipe-season-label {
  display: inline-flex;
  padding: 7px 11px;
  margin-bottom: 12px;
  border-radius: 99px;
  color: #27433a;
  background: #f4c86f;
  font-size: 12px;
  font-weight: 900;
}
.recipe-hero h1 { margin-bottom: 12px; }
.recipe-hero p { max-width: 650px; margin: 0; color: #d1dfda; font-size: 15px; line-height: 1.8; }
.recipe-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: end; }
.recipe-hero-stats article { padding: 16px 10px; border-radius: 17px; text-align: center; background: rgba(255,255,255,.1); }
.recipe-hero-stats strong { display: block; color: #f4c86f; font-size: 26px; }
.recipe-hero-stats small { display: block; margin-top: 4px; color: #d1dfda; font-size: 10px; }

.seasonal-ingredients {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffaf0;
}
.seasonal-ingredients > div:first-child strong,
.seasonal-ingredients > div:first-child small { display: block; }
.seasonal-ingredients > div:first-child strong { font-size: 16px; }
.seasonal-ingredients > div:first-child small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.seasonal-ingredients > div:last-child { display: flex; gap: 7px; overflow-x: auto; padding: 2px; }
.seasonal-ingredients button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  font-size: 13px;
  font-weight: 800;
}
.seasonal-ingredients button span { margin-right: 5px; font-size: 20px; }

.recipe-tools { display: grid; gap: 10px; margin: 20px 0 10px; }
.recipe-seasons, .recipe-audience { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.recipe-seasons button, .recipe-audience button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: white;
  font-size: 13px;
  font-weight: 800;
}
.recipe-seasons button.is-active, .recipe-audience button.is-active { border-color: #27433a; color: white; background: #27433a; }
.recipe-seasons small { color: #f4c86f; font-size: 9px; }
.recipe-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  font-size: 16px;
  outline: none;
}

.recipe-results-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 22px 2px 12px; }
.recipe-results-head strong { font-size: 18px; }
.recipe-results-head span { color: var(--muted); font-size: 11px; }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.recipe-card { display: grid; grid-template-columns: 145px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: white; box-shadow: var(--shadow); }
.recipe-visual { position: relative; min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 20px 12px; background: #eaf2eb; }
.recipe-visual.season-春 { background: #f8e6e8; }
.recipe-visual.season-夏 { background: #e7f2df; }
.recipe-visual.season-秋 { background: #f4e4ce; }
.recipe-visual.season-冬 { background: #e3edf4; }
.recipe-visual > span { font-size: 58px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.08)); }
.recipe-visual > strong { font-size: 15px; }
.recipe-visual i, .recipe-visual b { position: absolute; left: 10px; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-style: normal; }
.recipe-visual i { top: 10px; color: white; background: #d67558; }
.recipe-visual b { bottom: 10px; color: #fff; background: #418165; }
.recipe-content { min-width: 0; padding: 17px; }
.recipe-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.recipe-tags span { padding: 5px 8px; border-radius: 99px; color: #47685d; background: #eaf2eb; font-size: 9px; font-weight: 800; }
.recipe-content h3 { margin: 10px 0 9px; font-size: 17px; line-height: 1.45; }
.recipe-ingredients { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.recipe-ingredients b { display: block; color: var(--ink); font-size: 9px; }
.recipe-pairing { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.recipe-pairing span { padding: 8px; border-radius: 11px; background: #f6f3eb; font-size: 10px; line-height: 1.45; }
.recipe-pairing small { display: block; margin-bottom: 3px; color: #8c7856; font-size: 8px; font-weight: 900; }
.recipe-content details { margin-top: 10px; border-top: 1px solid #eceae3; }
.recipe-content summary { min-height: 44px; display: flex; align-items: center; color: #47685d; font-size: 12px; font-weight: 900; cursor: pointer; }
.recipe-content details > div { padding: 3px 4px 10px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.recipe-content details p { margin: 0 0 7px; }
.recipe-content details ol { margin: 0; padding-left: 20px; }
.recipe-meal-button { width: 100%; min-height: 44px; margin-top: 9px; border: 0; border-radius: 13px; color: white; background: #27433a; font-size: 12px; font-weight: 900; }
.recipe-feedback { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.recipe-feedback label { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #faf9f5; cursor: pointer; }
.recipe-feedback label.is-checked:first-child { border-color: #e1a047; background: #fff0cf; }
.recipe-feedback label.is-checked:last-child { border-color: #5c8bac; background: #e5f1f8; }
.recipe-feedback input { position: absolute; opacity: 0; pointer-events: none; }
.recipe-feedback span { font-size: 10px; font-weight: 900; }
.recipe-empty { grid-column: 1 / -1; }

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

@media (max-width: 620px) {
  .bottom-nav { width: calc(100% - 14px); padding: 7px 4px; }
  .nav-item { padding-inline: 1px; }
  .nav-item small { font-size: 8px; }
  .nav-add { width: 56px; height: 56px; }
  .recipe-hero { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 24px; }
  .recipe-hero h1 { font-size: 34px; }
  .recipe-hero p { font-size: 14px; }
  .recipe-hero-stats { margin-top: 10px; }
  .recipe-hero-stats article { padding: 12px 5px; }
  .recipe-hero-stats strong { font-size: 22px; }
  .seasonal-ingredients { grid-template-columns: 1fr; gap: 10px; padding: 15px; }
  .recipe-results-head span { display: none; }
  .recipe-card { grid-template-columns: 104px minmax(0, 1fr); border-radius: 20px; }
  .recipe-visual { padding: 16px 8px; }
  .recipe-visual > span { font-size: 48px; }
  .recipe-visual > strong { font-size: 12px; }
  .recipe-visual i, .recipe-visual b { left: 6px; padding: 4px 6px; font-size: 8px; }
  .recipe-content { padding: 14px 12px; }
  .recipe-content h3 { font-size: 16px; }
  .recipe-pairing, .recipe-feedback { grid-template-columns: 1fr; }
  .recipe-feedback label { justify-content: flex-start; padding-left: 12px; }
}

@media (max-width: 370px) {
  .nav-item small { font-size: 7px; }
  .recipe-card { grid-template-columns: 92px minmax(0, 1fr); }
  .recipe-content { padding: 12px 10px; }
}
