.recipe-condition h2 b {
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: #d38b91;
  font: 10px "Yomogi Local", sans-serif;
}

.recipe-free-note {
  display: grid;
  gap: 6px;
  padding-top: 4px;
  color: #527d91;
  font-size: 14px;
  font-weight: 700;
}

.recipe-free-note textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border: 1px solid #c9e0df;
  border-radius: 14px;
  padding: 10px;
  color: #426783;
  background: #f9fdfc;
  font: 13px/1.45 "Yomogi Local", sans-serif;
}

.recipe-free-note textarea::placeholder { color: #9ab0b6; }

/* レシピ詳細では「候補に戻る」を唯一の戻り導線にする。 */
.recipe-home-back {
  visibility: hidden;
  pointer-events: none;
}

/* 条件選択・提案一覧ではホームへ戻れるようにする。詳細画面では候補へ戻る導線だけを残す。 */
.recipe-shell[data-recipe-view="start"] .recipe-home-back,
.recipe-shell[data-recipe-view="suggestions"] .recipe-home-back {
  visibility: visible;
  pointer-events: auto;
}

/* 条件を選ぶ前に、保存済み・作成済みのレシピへすぐ戻れる入口を置く。 */
.recipe-start-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0 0 16px;
}

.recipe-start-links .recipe-history-entry {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 9px 12px;
  border: 1px solid #c7dfde;
  border-radius: 19px;
  color: #426783;
  background: #fff;
  box-shadow: 0 6px 15px rgba(73, 118, 127, .06);
  text-align: left;
}

.recipe-start-links .recipe-library-entry { border-color: #d9cfaf; background: #fffaf0; }
.recipe-start-links .recipe-history-link { border-color: #cbdfe7; background: #f5fbfd; }
.recipe-entry-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #e5f1ef;
}
.recipe-entry-icon svg { display: block; width: 25px; height: 25px; stroke: #527d91; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.recipe-library-entry .recipe-entry-icon { background: #f7ebc9; }
.recipe-library-entry .recipe-entry-icon svg { stroke: #a87d45; }
.recipe-history-link .recipe-entry-icon { background: #dceef4; }
.recipe-history-link .recipe-entry-icon svg { stroke: #5a96b2; }
.recipe-entry-copy { display: grid; gap: 3px; min-width: 0; }
.recipe-entry-copy strong { font: 700 16px "Yomogi Local", sans-serif; }
.recipe-entry-copy small { overflow: hidden; color: #7894a4; font: 11px "Yomogi Local", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.recipe-entry-arrow { justify-self: end; color: #78a09a; font-size: 26px; line-height: 1; }

.recipe-condition-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.recipe-condition-heading small { color: #7894a4; font: 11px "Yomogi Local", sans-serif; }
.recipe-effort-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.recipe-effort-chips button {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 9px 5px 8px;
  text-align: center;
}
.recipe-effort-chips button strong { font: 600 13px "Yomogi Local", sans-serif; }
.recipe-effort-chips button small { color: inherit; font: 10px/1.25 "Yomogi Local", sans-serif; opacity: .82; }

@media (max-width: 390px) {
  .recipe-effort-chips button { padding-inline: 3px; }
  .recipe-effort-chips button strong { font-size: 12px; }
  .recipe-effort-chips button small { font-size: 9px; }
}

.recipe-detail-image { overflow: hidden; margin: 14px 0; border: 1px solid #d4e7e4; border-radius: 20px; background: #f8fbf6; }
.recipe-detail-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.recipe-detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.recipe-detail-actions button { flex: 1 1 30%; min-width: 102px; padding: 9px 8px; border: 1px solid #c7dfde; border-radius: 999px; color: #527d91; background: #fff; font: 12px "Yomogi Local", sans-serif; cursor: pointer; }
.recipe-plan-button { width: 100%; margin-top: 10px; padding: 12px 15px; border: 0; border-radius: 999px; color: #fff; background: #6fa89d; box-shadow: 0 8px 18px rgba(61,124,147,.16); font: 700 15px "Yomogi Local", sans-serif; cursor: pointer; }

.recipe-confirm-card { display: grid; gap: 12px; text-align: center; }
.recipe-confirm-card > img { width: 64px; height: 64px; margin: 0 auto; object-fit: contain; }
.recipe-confirm-card > p { margin: 0; color: #527d91; font: 14px/1.7 "Yomogi Local", sans-serif; }

.recipe-library-section { display: grid; gap: 7px; margin: 0 0 20px; }
.recipe-library-section h2 { margin: 0 4px; color: #527d91; font-size: 16px; }
.recipe-library-section > p { margin: 0 4px; color: #8aa2aa; font: 12px "Yomogi Local", sans-serif; }
.recipe-library-card { display: grid; gap: 3px; width: 100%; padding: 12px 14px; border: 1px solid #d4e7e4; border-radius: 16px; color: #426783; background: #fff; text-align: left; cursor: pointer; }
.recipe-library-card strong { font-size: 14px; }
.recipe-library-card small { color: #7894a4; font: 11px "Yomogi Local", sans-serif; }
