.kh-recipe {
  --kh-orange: #f58a49;
  --kh-orange-dark: #c85c24;
  --kh-orange-pale: #fff4ea;
  --kh-blue: #83cfdb;
  --kh-blue-dark: #267f91;
  --kh-blue-pale: #eaf8fb;
  --kh-cream: #fffdf8;
  --kh-ink: #30383b;
  --kh-line: #d6e9ec;
  color: var(--kh-ink);
  font-size: 16px;
  line-height: 1.85;
}

.kh-recipe > * { box-sizing: border-box; }

/* PDFをイメージしたレシピ全体の水色二重枠 */
.kh-recipe-post article.entry {
  margin: 1.25rem 0 2rem;
  padding: clamp(1.25rem, 3.5vw, 2.75rem) !important;
  border: 3px solid #fff;
  outline: 2px solid #8fd3df;
  outline-offset: 0;
  background: #fff;
  box-shadow: 0 0 0 16px #ccecf8;
}

/* テーマ側の記事タイトルと投稿情報（レシピ記事のみ） */
.kh-recipe-post h1.entry-title,
.kh-recipe-post .entry-header h1,
.kh-recipe-post h1.post-title,
.kh-recipe-post .single-post-title {
  position: relative;
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0 1.1rem 0.55rem 0;
  border-bottom: 4px solid var(--kh-blue, #83cfdb);
}

.kh-recipe-post .entry-meta,
.kh-recipe-post .post-meta,
.kh-recipe-post .posted-on,
.kh-recipe-post .post-date,
.kh-recipe-post .post-author,
.kh-recipe-post .author,
.kh-recipe-post time {
  color: #9aa8ac !important;
}

.kh-recipe-post .entry-meta a,
.kh-recipe-post .post-meta a,
.kh-recipe-post .posted-on a,
.kh-recipe-post .post-date a,
.kh-recipe-post .post-author a {
  color: inherit !important;
}

.kh-recipe-post .entry-meta-item-author {
  display: none !important;
}

.kh-recipe__type {
  display: inline-flex;
  position: relative;
  z-index: 3;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  margin: 0 0 -4.85rem 1.2rem !important;
  padding: 1.45rem 0.8rem 1.3rem;
  clip-path: polygon(0 0, 100% 0, 100% 83%, 50% 100%, 0 83%);
  background: var(--kh-orange);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(0.75rem);
  filter: drop-shadow(0 4px 2px rgba(99, 68, 47, 0.16));
}

.kh-recipe__type::before {
  content: "★";
  position: absolute;
  top: 0.28rem;
  left: 50%;
  color: #fff;
  font-size: 0.9rem;
  transform: translateX(-50%);
}

.kh-recipe__image { margin: 0 0 1.75rem !important; }

.kh-recipe__image img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(46, 110, 120, 0.12);
}

.kh-recipe__point {
  position: relative;
  margin: 1.75rem 0 2.25rem !important;
  padding: 1.35rem 1.55rem 1.4rem 1.75rem;
  overflow: hidden;
  border: 2px dashed var(--kh-blue);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 30%, var(--kh-blue-pale));
}

.kh-recipe__point::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 86px;
  height: 86px;
  border: 16px solid rgba(131, 207, 219, 0.2);
  border-radius: 50%;
}

.kh-recipe__point h2 {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: -0.25rem 0 0.9rem !important;
  padding: 0.38rem 1.25rem !important;
  border: 0 !important;
  border-radius: 999px;
  background: var(--kh-orange);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.4;
}

.kh-recipe__point h2::before {
  content: "★";
  margin-right: 0.45em;
  color: #fff;
  font-size: 0.78em;
}

.kh-recipe__point h2::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  bottom: -0.42rem;
  border-width: 0.45rem 0.55rem 0 0;
  border-style: solid;
  border-color: var(--kh-orange) transparent transparent transparent;
}

.kh-recipe__point p {
  position: relative;
  z-index: 1;
  margin: 0 !important;
}

.kh-recipe__heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 2.75rem 0 1.2rem !important;
  padding: 0 0 0.7rem !important;
  border: 0 !important;
  border-bottom: 3px solid var(--kh-blue) !important;
  color: var(--kh-ink);
  font-size: clamp(1.4rem, 2.7vw, 1.75rem);
  line-height: 1.4;
}

.kh-recipe__heading::before {
  content: "";
  flex: 0 0 auto;
  width: 48px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: url("https://numazu-kanehiro.com/apps/note/wp-content/uploads/2026/11/fish-icon1.png") center / contain no-repeat;
  box-shadow: none;
}

.kh-recipe__ingredients {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
  margin: 0 !important;
}

.kh-recipe__item-table,
.kh-recipe__nutrition {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--kh-line);
  border-radius: 14px;
  background: #fff;
}

.kh-recipe__item-table table,
.kh-recipe__nutrition table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  table-layout: fixed;
}

.kh-recipe__item-table caption {
  padding: 0.7rem 0.9rem;
  border: 0;
  background: var(--kh-blue-pale);
  color: var(--kh-blue-dark);
  font-weight: 700;
  text-align: left;
}

.kh-recipe__ingredients > .kh-recipe__item-table:first-child::before {
  content: "材料";
  display: block;
  padding: 0.7rem 0.9rem;
  background: var(--kh-blue-pale);
  color: var(--kh-blue-dark);
  font-weight: 700;
  text-align: left;
}

.kh-recipe__item-table th,
.kh-recipe__item-table td,
.kh-recipe__nutrition th,
.kh-recipe__nutrition td {
  padding: 0.72rem 0.85rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--kh-line) !important;
  vertical-align: middle;
}

.kh-recipe__item-table tr:last-child > *,
.kh-recipe__nutrition tr:last-child > * { border-bottom: 0 !important; }

.kh-recipe__item-table th {
  width: 68%;
  background: var(--kh-cream) !important;
  color: var(--kh-ink);
  font-weight: 600;
  text-align: left;
}

.kh-recipe__item-table td {
  width: 32%;
  background: #fff;
  white-space: nowrap;
  text-align: right;
}

.kh-recipe__steps {
  display: grid;
  gap: 0.85rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: kh-step;
}

.kh-recipe__steps li {
  position: relative;
  min-height: 3.35rem;
  margin: 0 !important;
  padding: 0.85rem 1rem 0.85rem 4.25rem;
  border: 1px solid var(--kh-line);
  border-radius: 14px;
  background: #fff;
  counter-increment: kh-step;
}

.kh-recipe__steps li:nth-child(even) { background: var(--kh-blue-pale); }

.kh-recipe__steps li::before {
  content: counter(kh-step, decimal-leading-zero);
  position: absolute;
  top: 50%;
  left: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  border-radius: 50%;
  background: var(--kh-orange);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 3px 0 rgba(200, 92, 36, 0.16);
}

.kh-recipe__nutrition th {
  width: 29%;
  background: var(--kh-blue-pale) !important;
  color: var(--kh-blue-dark);
  font-weight: 700;
  text-align: left;
}

.kh-recipe__nutrition td {
  width: 21%;
  background: #fff;
  white-space: nowrap;
  text-align: right;
}

.kh-recipe__nutrition tr:nth-child(even) th { background: #f4fbfc !important; }

/* テーマ側のカテゴリー・タグ表示（レシピ記事のみ） */
.kh-recipe-post .entry-footer,
.kh-recipe-post .post-footer,
.kh-recipe-post .post-taxonomies,
.kh-recipe-post .cat-links,
.kh-recipe-post .tags-links,
.kh-recipe-post .post-category,
.kh-recipe-post .post-tags {
  margin-top: 2rem !important;
  color: #a3adb0 !important;
}

.kh-recipe-post .entry-footer a,
.kh-recipe-post .post-footer a,
.kh-recipe-post .post-taxonomies a,
.kh-recipe-post .cat-links a,
.kh-recipe-post .tags-links a,
.kh-recipe-post .post-category a,
.kh-recipe-post .post-tags a {
  color: #7f9196 !important;
}

.kh-recipe-post .entry-footer span,
.kh-recipe-post .post-footer span,
.kh-recipe-post .post-taxonomies span,
.kh-recipe-post .cat-links,
.kh-recipe-post .tags-links {
  border-color: #dce5e7 !important;
  background-color: #f2f6f7 !important;
}

.kh-recipe-post .entry-footer {
  margin-top: 2.5rem !important;
}

.kh-recipe-post .entry-meta-data-list {
  margin-top: 0.35rem !important;
}

.kh-recipe-post .entry-meta-data-list dl dt {
  border-color: #cfe9ee !important;
  background: #dff3f7 !important;
  color: #4f8791 !important;
}

.kh-recipe-post .entry-meta-data-list dl dd,
.kh-recipe-post .entry-meta-data-list dl dd a {
  color: #789095 !important;
}

/* 前後の記事カード */
.kh-recipe-post .postNextPrev,
.kh-recipe-post .post-next-prev,
.kh-recipe-post .post-navigation,
.kh-recipe-post .navigation.post-navigation,
.kh-recipe-post .entry-footer + .vk_posts,
.kh-recipe-post article.entry + .vk_posts {
  margin-top: 4rem !important;
}

.kh-recipe-post .vk_posts.next-prev {
  margin-top: 4rem !important;
}

.kh-recipe-post .postNextPrev .vk_post_body,
.kh-recipe-post .post-next-prev .vk_post_body,
.kh-recipe-post .post-navigation .vk_post_body,
.kh-recipe-post .postNextPrev .vk_post_title,
.kh-recipe-post .post-next-prev .vk_post_title,
.kh-recipe-post .post-navigation .vk_post_title,
.kh-recipe-post .postNextPrev .vk_post_title a,
.kh-recipe-post .post-next-prev .vk_post_title a,
.kh-recipe-post .post-navigation .vk_post_title a {
  background-color: #267f91 !important;
  color: #fff !important;
}

.kh-recipe-post .vk_posts.next-prev .card-intext-inner .vk_post_body {
  background-color: rgba(38, 127, 145, 0.94) !important;
}

.kh-recipe-post .vk_posts.next-prev .card-intext-inner .vk_post_body .vk_post_title,
.kh-recipe-post .vk_posts.next-prev .card-intext-inner .vk_post_body .vk_post_title a,
.kh-recipe-post .vk_posts.next-prev .card-intext-inner .vk_post_body div,
.kh-recipe-post .vk_posts.next-prev .card-intext-inner .vk_post_body p {
  color: #fff !important;
}

.kh-recipe-post .postNextPrev .vk_post_imgOuter_singleTermLabel,
.kh-recipe-post .post-next-prev .vk_post_imgOuter_singleTermLabel,
.kh-recipe-post .post-navigation .vk_post_imgOuter_singleTermLabel {
  background-color: #83cfdb !important;
  color: #244f58 !important;
}

.kh-recipe-post .vk_posts.next-prev .vk_post_imgOuter_singleTermLabel {
  background-color: #83cfdb !important;
  color: #244f58 !important;
}

@media (max-width: 680px) {
  .kh-recipe { font-size: 15px; }
  .kh-recipe-post article.entry { margin-inline: 7px; padding: 1rem !important; box-shadow: 0 0 0 8px #ccecf8; }
  .kh-recipe__image img { border-width: 3px; border-radius: 14px; }
  .kh-recipe__type { min-width: 70px; margin-left: 0.75rem !important; padding: 1.35rem 0.6rem 1.15rem; font-size: 0.82rem; }
  .kh-recipe__point { padding: 1.1rem 1rem 1.15rem 1.2rem; border-radius: 14px; }
  .kh-recipe__heading::before { width: 44px; height: 28px; }
  .kh-recipe__ingredients { grid-template-columns: 1fr; gap: 1rem; }
  .kh-recipe__steps li { padding: 0.8rem 0.85rem 0.8rem 3.85rem; }
  .kh-recipe__steps li::before { left: 0.7rem; width: 2.35rem; height: 2.35rem; }
  .kh-recipe__nutrition th,
  .kh-recipe__nutrition td { padding: 0.62rem 0.55rem !important; font-size: 0.86rem; }
}

@media (max-width: 430px) {
  .kh-recipe__nutrition table,
  .kh-recipe__nutrition tbody { display: block; }
  .kh-recipe__nutrition tr {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--kh-line);
  }
  .kh-recipe__nutrition th,
  .kh-recipe__nutrition td { width: auto; border-bottom: 1px solid var(--kh-line) !important; }
}
