:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #767676;
  --line: #e4e4e4;
  --accent: #d8380f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --fg: #ececec;
    --muted: #9a9a9a;
    --line: #2c2c2c;
    --accent: #f0563a;
  }
}
:root[data-theme="dark"] {
  --bg: #121212;
  --fg: #ececec;
  --muted: #9a9a9a;
  --line: #2c2c2c;
  --accent: #f0563a;
}
html { color-scheme: light dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
}
body:lang(en) { letter-spacing: 0; line-height: 1.75; }

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 1.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.nav .sep { color: var(--line); margin: 0 0.5rem; }
.nav a { color: var(--muted); border-bottom-color: var(--line); }
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav .here { color: var(--fg); }
.nav button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--muted);
  cursor: pointer;
}
.nav button:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav .theme {
  margin-left: 0.9rem;
  border-bottom: none;
  font-size: 0.95rem;
  line-height: 1;
}
html[lang="ja"] .nav button[data-lang="ja"],
html[lang="en"] .nav button[data-lang="en"] {
  color: var(--fg);
  border-bottom-color: transparent;
  cursor: default;
}

/* 言語切り替え（遷移なし） */
html[lang="ja"] [data-l="en"],
html[lang="en"] [data-l="ja"] { display: none !important; }

.person { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.person:last-of-type { border-bottom: none; }
.person h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}
.person .yomi-s {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.person .role {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 1.4rem;
}
.person .bio { font-size: 0.95rem; margin: 0 0 1.4rem; }
.person .links { font-size: 0.8rem; letter-spacing: 0.1em; margin: 0; }
.person .links a { margin-right: 1.4rem; }
.todo { color: var(--muted); font-style: italic; }

header { padding: 2.2rem 0 3.6rem; }
h1 {
  font-size: clamp(1.35rem, 5.5vw, 2.1rem);
  line-height: 1.1;
  margin: 0 0 0.9rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
h1:lang(en) { font-size: clamp(1.3rem, 4.8vw, 1.9rem); letter-spacing: 0.02em; }
.yomi {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0;
}
.lede {
  font-size: 1.15rem;
  line-height: 2.1;
  margin: 0;
}

section { padding: 0 0 3.8rem; }
h2 {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
p { margin: 0 0 1.75rem; }
p:last-child { margin-bottom: 0; }

.pairs { list-style: none; margin: 0; padding: 0; }
.pairs li {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.95rem;
  line-height: 1.7;
}
.pairs li:last-child { border-bottom: none; }
.pairs .a { text-align: right; color: var(--muted); }
.pairs .arrow { color: var(--accent); font-size: 0.75rem; }
.pairs .b { text-align: left; }

.more {
  margin: 2rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.map { margin: 2rem 0 0; }
.map img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.map figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.8rem;
}

.note { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.note:last-of-type { border-bottom: none; padding-bottom: 0; }
.note h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}
.note p { font-size: 0.95rem; margin: 0 0 1.2rem; }
.note p:last-child { margin-bottom: 0; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.steps .no {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.steps .cook {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0.7rem 0 0.15rem;
}
.steps .word {
  display: block;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 0.8rem;
}
.steps .text {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
}

.video {
  aspect-ratio: 16 / 9;
  background: var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; }

dl { margin: 0; }
dt {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 1.5rem;
}
dt:first-child { margin-top: 0; }
dd { margin: 0.4rem 0 0; }

.quote {
  font-size: 0.98rem;
  line-height: 2.0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--fg);
}

footer {
  padding: 2.4rem 0 3.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-align: right;
}
footer a { color: var(--muted); }
.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}
.site-footer p { margin: 0.6rem 0 0; }
.footer-brand { color: var(--fg); font-size: 0.9rem; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; }
.footer-links a[aria-current="page"] { color: var(--fg); }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

@media (max-width: 480px) {
  .site-footer { flex-direction: column; }
  .pairs li { grid-template-columns: 1fr; gap: 0.15rem; }
  .pairs .a { text-align: left; }
  .pairs .arrow { display: none; }
  .pairs .b::before { content: "→ "; color: var(--accent); }
}

/* スクロールで現れる（JS が html.anim を付けたときだけ効く） */
@media (prefers-reduced-motion: no-preference) {
  html.anim header,
  html.anim section > h2,
  html.anim section > p,
  html.anim section > div,
  html.anim section > dl,
  html.anim section > figure,
  html.anim section > ul > li,
  html.anim section > ol > li,
  html.anim footer {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .3, 1);
    will-change: opacity, transform;
  }
  html.anim .in {
    opacity: 1;
    transform: none;
  }
}

/* ── 大画面の余白を使う（案A） ─────────────────────── */
:root {
  --content: 42rem;   /* 本文の幅。読みやすさのため広げない */
  --bleed: 62rem;     /* 図版・動画はここまで広げる */
  --gutter: 1.5rem;
}

/* 本文より広く出す。中央は保ったまま */
.bleed {
  width: min(var(--bleed), calc(100vw - var(--gutter) * 2));
  margin-left: calc(50% - min(var(--bleed), calc(100vw - var(--gutter) * 2)) / 2);
}

@media (min-width: 900px) {
  .wrap { padding: 0 2rem; }

  /* vh のままだと縦長のディスプレイで余白だけが伸びて間延びする。上限を付ける */
  body { line-height: 1.85; }
  header { padding: 2.8rem 0 4.2rem; }
  h1 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
  h1:lang(en) { font-size: clamp(1.7rem, 2.2vw, 2.2rem); }
  .yomi { margin-bottom: 0; }
  .lede { font-size: 1.05rem; line-height: 1.95; }

  section { padding-bottom: 4.4rem; }
  h2 { margin-bottom: 1.5rem; }
  p { margin-bottom: 1.5rem; }

  /* 工程リスト：番号を本文の外に出す */
  .steps li { position: relative; padding-left: 4.5rem; padding-top: 1.9rem; padding-bottom: 1.9rem; }
  .steps .no { position: absolute; left: 0; top: 2.2rem; }
  .steps li:first-child .no { top: 2rem; }
  .steps .word { font-size: 1.12rem; margin-bottom: 0.7rem; }
  .steps .text { line-height: 1.85; }

  /* 制作者：見出しを外側へ */
  .person { position: relative; padding-left: 4.5rem; }
  .person .role { position: absolute; left: 0; top: 3.5rem; margin: 0; width: 3.5rem; line-height: 1.5; }

  .map figcaption, .video + figcaption { text-align: center; }
}

@media (min-width: 1400px) {
  :root { --bleed: 70rem; }
  header { padding: 3.2rem 0 4.6rem; }
}

/* 「言葉」を「餃子」に置き換えた対の一節 */
.swap-note {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 2.5rem 0 1.5rem;
}
.quote.alt { border-left-style: dotted; }

/* 和文の見出しは英字ほど字間を空けない */
h2 span[data-l="ja"] { letter-spacing: 0.18em; }

/* 地図は透過 PNG。暗い背景では線が沈むので、RGB を反転して補色にする。
   透明部分は影響を受けないので、白地を敷かずに済む。 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map img { filter: invert(1); }
}
:root[data-theme="dark"] .map img { filter: invert(1); }

/* ── 「餃子」が「言葉」に入れ替わる ────────────────────
   鍵つきの URL（ポストカードの QR）で開いたときだけ動く。
   grid で 2 つの段落を重ねているので、文の長さが違っても高さが飛ばない。 */
.morph > p { margin: 0; }

/* 入れ替わる語だけを重ねる。日本語は「餃子」「言葉」が同じ 2 文字なので幅が動かない。
   英語は語形が変わるぶん幅が変わるので、切り替わりに合わせて幅も送る。 */
.sw {
  position: relative;
  display: inline-grid;
  vertical-align: baseline;
}
.sw > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: opacity .55s ease;
}
.sw > .b { opacity: 0; }
html.swapped .sw > .a { opacity: 0; }
html.swapped .sw > .b { opacity: 1; }

/* 頭から順に入れ替わっていくほうが、置き換えが起きたことに気付きやすい */
.sw:nth-of-type(1) > span { transition-delay: 0ms; }
.sw:nth-of-type(2) > span { transition-delay: 260ms; }
.sw:nth-of-type(3) > span { transition-delay: 520ms; }
.sw:nth-of-type(4) > span { transition-delay: 780ms; }

@media (prefers-reduced-motion: reduce) {
  .sw > span { transition: none; transition-delay: 0ms !important; }
}

/* 概要の上に置く映像のスチル */
.still { margin: 2rem 0 0; }
.still img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 900px) {
  .still { margin-top: 2.5rem; }
}

/* 作品名と読みを横に並べる。ベースラインで揃える */
.title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
}
.title h1 { margin: 0; }
.title .yomi { margin: 0; }

/* ── レシピページ ─────────────────────────────────── */
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.recipe-meta .stars { color: var(--accent); letter-spacing: 0.12em; }
.recipe-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.recipe-duration-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("./images/icons/solar-clock-circle-linear.svg") center / contain no-repeat;
  mask: url("./images/icons/solar-clock-circle-linear.svg") center / contain no-repeat;
}

.ingredients { border-top: 1px solid var(--line); }
.ingredients > div {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) 2fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--line);
}
.ingredients dt,
.ingredients dd { margin: 0; }
.ingredients dt { color: var(--fg); font-size: inherit; letter-spacing: inherit; }
.ingredients dd { color: var(--muted); }

.recipe-steps .text { color: var(--fg); font-size: 0.95rem; }
.recipe-steps .text + .text { margin-top: 1rem; }

.contributor {
  padding: 1.75rem 0;
  border-bottom: 1px dotted var(--line);
}
.contributor:first-of-type { padding-top: 0; }
.contributor:last-of-type { border-bottom: 0; padding-bottom: 0; }
.contributor h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 500;
}
.contributor .affiliation {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.contributor-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contributor-profile .affiliation { margin: 0; }
.contributor-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 38%;
}
.contributor-avatar-yuki { object-position: 50% 30%; }

.review > p { margin-bottom: 0.7rem; }
.star-rating { display: flex; gap: 0.25rem; }
.star-rating button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--line);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.star-rating button:hover { transform: translateY(-1px); }
.star-rating button.on { color: var(--accent); }
.star-rating button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.review .review-thanks { margin-top: 1rem; color: var(--accent); }
.contributor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.review-summary {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.review-summary strong {
  font-size: 1.8rem;
  line-height: 1;
}
.summary-stars,
.review-item-stars {
  color: var(--accent);
  letter-spacing: 0.05em;
}
.review-summary [data-review-count] {
  color: var(--muted);
  font-size: 0.8rem;
}
.review-form {
  display: grid;
  gap: 1.15rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.review-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.review-form legend,
.review-form label > span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.review-form label { display: block; }
.review-form input[type="text"],
.review-form textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.75rem;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  line-height: 1.6;
}
.review-form textarea { resize: vertical; }
.review-form input:focus-visible,
.review-form textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 1px;
}
.review-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.review-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  border: 1.5px solid var(--fg);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.review-submit-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: var(--accent);
  -webkit-mask: url("./images/icons/solar-pen-new-square-linear.svg") center / contain no-repeat;
  mask: url("./images/icons/solar-pen-new-square-linear.svg") center / contain no-repeat;
}
.review-submit:hover { background: var(--line); }
.review-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.review-submit:disabled { cursor: wait; opacity: 0.55; }
.review-status { min-height: 1.5em; margin: 0; font-size: 0.85rem; }
.review-status[data-kind="success"] { color: var(--accent); }
.review-status[data-kind="error"] { color: #b42318; }
.review-list { padding-top: 0.5rem; }
.review-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.review-item-image {
  display: block;
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}
.review-item-body { min-width: 0; }
.review-item-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.review-item-meta { margin: 0; color: var(--muted); font-size: 0.78rem; }
.review-item-meta strong { color: var(--fg); font-weight: 600; }
.review-item-comment {
  display: -webkit-box;
  margin: 0.65rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.review-item-comment.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.review-comment-more {
  display: block;
  grid-column: 2;
  justify-self: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.review-comment-more[hidden] { display: none; }
.review-comment-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.review-item-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  min-height: 1.4em;
  margin-top: 0.45rem;
}
.review-item-footer time {
  grid-column: 3;
  justify-self: end;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
.review-empty { padding: 1.5rem 0; color: var(--muted); }
.review-more {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
  padding: 0.65rem 1.2rem;
  border: 1.5px solid var(--fg);
  border-radius: 10px;
  color: var(--fg);
  font-weight: 600;
  text-align: center;
}
.review-more:hover { background: var(--line); }
.reviews-page-heading {
  padding: 5rem 0 2rem;
}
.reviews-page-heading h1 { margin: 0 0 0.75rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.reviews-page-heading p { margin: 0; color: var(--muted); }
.reviews-page .reviews { max-width: 760px; margin: 0; }
.turnstile-slot { min-height: 0; }

@media (max-width: 480px) {
  .review-item { grid-template-columns: 88px minmax(0, 1fr); gap: 0.75rem; }
  .review-item-image { width: 88px; }
  .review-submit { width: 100%; }
}

/* DELISH KITCHEN のレシピ頁を参考に、情報の順序と本文の読みやすさを強める。 */
.recipe-page {
  font-size: 15px;
  line-height: 1.9;
}
.recipe-page .wrap { max-width: 44rem; }
.recipe-page header { padding-bottom: 3.2rem; }
.recipe-page h1 {
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.recipe-page h2 {
  margin-bottom: 1.7rem;
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.recipe-page h2 span[data-l="ja"] { letter-spacing: 0.12em; }
.recipe-page .recipe-intro p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 2;
}
.recipe-page .recipe-meta {
  margin-top: 1.35rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.recipe-page .ingredients > div { padding: 0.9rem 0; }
.recipe-page .ingredients dt { font-weight: 600; }

.recipe-page .recipe-steps li {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.recipe-page .recipe-steps .no {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.step-still {
  margin: 0.85rem 0 1.35rem;
  background: var(--line);
  overflow: hidden;
}
.step-still img {
  display: block;
  width: 100%;
  height: auto;
}
.recipe-page .recipe-steps .text {
  font-size: 1rem;
  line-height: 2;
}

@media (max-width: 480px) {
  .recipe-page .wrap { padding: 0 1.25rem; }
  .recipe-page header { padding-top: 2.6rem; padding-bottom: 3rem; }
  .recipe-page section { padding-bottom: 3.5rem; }
  .recipe-page .recipe-steps li { padding: 1.6rem 0 2.8rem; }
}

/* Recipe layout: DELISH KITCHEN のモバイル／デスクトップ組版に合わせる。 */
.recipe-page {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
    "Noto Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
}
.recipe-page .wrap {
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
}
.recipe-page .nav { padding-top: 20px; }
.recipe-lead-grid {
  display: grid;
  grid-template-areas:
    "hero"
    "title"
    "meta"
    "intro";
  margin-top: 24px;
}
.recipe-lead-grid header { display: contents; }
.recipe-page .title {
  grid-area: title;
  display: block;
  padding: 18px 0 10px;
}
.recipe-page .title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
}
.recipe-page .title .yomi {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
}
.recipe-hero {
  grid-area: hero;
  width: calc(100% + 40px);
  margin: 0 0 0 -20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--line);
}
.recipe-hero img,
.recipe-hero video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-hero video {
  -webkit-user-drag: none;
  user-select: none;
}
.recipe-page .recipe-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: normal;
}
.recipe-page .recipe-meta .stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}
.recipe-page .recipe-intro {
  grid-area: intro;
  padding: 14px 0 0;
}
.recipe-page .recipe-intro h2 { display: none; }
.recipe-page .recipe-intro p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
}
.recipe-body-grid { margin-top: 42px; }
.recipe-page section { padding-bottom: 42px; }
.recipe-page h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--fg);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}
.recipe-page h2 span[data-l="ja"] { letter-spacing: normal; }
.recipe-page .ingredients { border-top: 0; }
.recipe-page .ingredients > div {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  line-height: 17px;
}
.recipe-page .ingredients dt,
.recipe-page .ingredients dd {
  color: var(--fg);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}
.recipe-page .ingredients dt {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.recipe-page .ingredient-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .recipe-page .ingredient-icon { filter: invert(1); }
}
:root[data-theme="dark"] .recipe-page .ingredient-icon { filter: invert(1); }
.recipe-page .ingredients dd { text-align: right; }
.recipe-page .recipe-steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  margin-bottom: 24px;
  padding: 0 0 24px;
  border-bottom: 1px dotted var(--muted);
}
.recipe-page .recipe-steps .step-still {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  margin: 0 0 10px;
  aspect-ratio: 16 / 9;
}
.recipe-page .recipe-steps .step-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-page .recipe-steps .no {
  position: static;
  grid-column: 1;
  grid-row: 2;
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: normal;
}
.recipe-page .recipe-steps .text {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.recipe-page .recipe-steps .text + .text { margin-top: 10px; }
.recipe-page .recipe-steps .step-point {
  grid-column: 2;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.recipe-page .recipe-steps .step-point-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  padding: 14px 16px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}
.recipe-page .recipe-steps .step-point-toggle:hover { color: var(--fg); }
.recipe-page .recipe-steps .step-point-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.recipe-page .recipe-steps .step-point-chevron {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}
.recipe-page .recipe-steps .step-point.is-open .step-point-chevron {
  transform: rotate(180deg);
}
.recipe-page .recipe-steps .step-point .step-point-body {
  display: -webkit-box;
  margin: 0 16px 16px;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.recipe-page .recipe-steps .step-point.is-open .step-point-body {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.recipe-page footer { text-align: left; }

@media (min-width: 900px) {
  .recipe-page .wrap { width: calc(100% - 40px); padding: 0; }
  .recipe-page .nav { padding-top: 20px; }
  .recipe-lead-grid {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    grid-template-areas:
      "hero title"
      "hero meta"
      "hero intro";
    grid-template-rows: max-content max-content 1fr;
    column-gap: 40px;
    align-items: start;
    margin-top: 78px;
  }
  .recipe-page .title { padding: 10px 0 0; }
  .recipe-page .recipe-meta {
    grid-template-columns: max-content max-content;
    justify-content: start;
    gap: 14px;
    padding: 10px 0 12px;
  }
  .recipe-page .recipe-intro { padding: 12px 0 0; }
  .recipe-hero {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .recipe-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    grid-template-areas: "method ingredients";
    column-gap: 40px;
    align-items: start;
    margin-top: 100px;
  }
  .recipe-page .ingredients-section {
    grid-area: ingredients;
    padding: 0;
  }
  .recipe-page .method-section {
    grid-area: method;
    padding: 0;
  }
  .recipe-page .recipe-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
  }
  .recipe-page .recipe-steps li {
    display: block;
    margin-bottom: 0;
    padding: 0;
    border: 0;
  }
  .recipe-page .recipe-steps .step-still {
    width: 100%;
    height: auto;
    margin: 0 0 12px;
    aspect-ratio: 16 / 9;
  }
  .recipe-page .recipe-steps .no {
    display: block;
    margin: 0 0 6px;
  }
  .recipe-page .recipe-steps .text { line-height: 1.55; }
  .recipe-page .recipe-steps .text + .text { margin-top: 12px; }
  .recipe-body-grid ~ section { width: calc(66.6667% - 26.667px); max-width: none; }
  .recipe-body-grid + section { margin-top: 104px; }
  .recipe-page footer { width: 100%; max-width: none; }
}
