/* 自然薯と長芋の比較。DESIGN.md「自然薯・長芋の比較表」に準拠。 */
.yam-skip { position: absolute; top: -100px; left: 24px; z-index: 200; padding: 12px 16px; background: var(--surface); }
.yam-skip:focus { top: 12px; }
.yam-content { max-width: var(--max-width); }
.yam-lead { max-width: var(--content-width); margin: 0 auto 40px; }
.yam-jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.yam-jumps a { padding: 12px 16px; border: 1px solid var(--border-soft); border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; }
.yam-jumps a:hover { background: var(--primary-soft); }
.yam-page a:focus-visible, .yam-page summary:focus-visible { outline: 3px solid var(--text-main); outline-offset: 4px; }
.yam-page section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.yam-figure { max-width: var(--content-width); margin: 0 auto 40px; }
.yam-figure img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius-card); }
.yam-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--text-sub); text-align: center; }
.yam-table-frame { overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface); }
.yam-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.8; }
.yam-table caption { padding: 16px; text-align: left; font-weight: 500; background: var(--surface); }
.yam-table th, .yam-table td { width: 30%; padding: 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; overflow-wrap: anywhere; }
.yam-table th:first-child { width: 40%; text-align: left; }
.yam-table th { font-weight: 500; }
.yam-table thead th { background: var(--primary-soft); text-align: center; }
.yam-table tbody td { text-align: center; font-variant-numeric: tabular-nums; }
.yam-table tbody td:nth-child(2) { background: rgba(248, 210, 201, 0.18); }
.yam-table tbody tr:last-child > * { border-bottom: 0; }
.yam-table--taste th:first-child { width: 34%; }
.yam-table--taste th, .yam-table--taste td { width: 33%; }
.yam-table--taste tbody td { text-align: left; }
.yam-table small { display: block; font-size: 13px; font-weight: 400; }
.yam-more { margin-top: 24px; }
.yam-more summary { cursor: pointer; padding: 16px; border: 1px solid var(--border-soft); border-radius: var(--radius-input); font-weight: 500; background: var(--surface); }
.yam-more[open] summary { margin-bottom: 16px; }
.yam-notes { margin-top: 24px; font-size: 13px; line-height: 1.9; }
.yam-notes a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.yam-notes p { margin-bottom: 12px; }
.yam-recipe { list-style: none; counter-reset: yam-step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.yam-recipe li { counter-increment: yam-step; border-top: 1px solid var(--border-soft); padding-top: 24px; }
.yam-recipe li::before { content: "0" counter(yam-step); display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 12px; }
.yam-recipe h3 { margin-bottom: 16px; }
.yam-after-recipe { margin-top: 40px; }
@media (max-width: 767px) {
  .yam-table { font-size: 14px; }
  .yam-table th, .yam-table td { padding: 12px 8px; }
  .yam-table caption { padding: 12px; font-size: 13px; }
  .yam-recipe { grid-template-columns: 1fr; }
  .yam-page section[id] { scroll-margin-top: calc(var(--header-h-mobile) + 24px); }
}

/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5
 * Existing botanical system · field photography, without image overlays.
 */
.yam-mukago-head { max-width: var(--content-width); text-align: left; }
.yam-mukago-head .eyebrow::before { margin-left: 0; }
.yam-mukago-head .eyebrow, .yam-mukago-gallery .photo-caption { color: var(--text-main); }
.yam-mukago-copy { max-width: var(--content-width); margin-bottom: 40px; }
.yam-mukago-gallery { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.yam-mukago-gallery figure { min-width: 0; }
.yam-mukago-gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
@media (max-width: 767px) {
  .yam-mukago-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5
 * Original food photography · existing botanical typography and spacing.
 */
.yam-texture { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.yam-texture-photo { width: 100%; max-width: 400px; margin: 0 auto; }
.yam-texture-photo img, .yam-dish-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.yam-texture-copy, .yam-dish-materials { min-width: 0; }
.yam-texture-copy .yam-lead { margin-bottom: 24px; }
.yam-dish { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.yam-dish-photo { min-width: 0; margin: 0; }
#ume-shiso .eyebrow { color: var(--text-main); }
.yam-dish-materials h3 { margin-bottom: 24px; }
.yam-ingredients > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.yam-ingredients dt { min-width: 0; }
.yam-ingredients dt small { font-size: 14px; }
.yam-ingredients dd { text-align: right; white-space: nowrap; }
.yam-mukago-meal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; margin-top: 64px; }
.yam-mukago-meal .eyebrow { display: block; margin-bottom: 12px; color: var(--text-main); }
.yam-mukago-meal h3 { margin-bottom: 24px; }
@media (max-width: 767px) {
  .yam-texture, .yam-dish, .yam-mukago-meal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 980px) {
  .yam-texture { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
