.detail-header { position: sticky; }

.food-hero {
  padding: clamp(110px, 14vw, 170px) clamp(20px, 6vw, 84px) clamp(82px, 10vw, 120px);
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(28, 59, 39, 0.78), rgba(48, 89, 54, 0.42)),
    url("assets/food-hero-eggplant.webp") center 63% / cover;
}

.food-hero-inner { width: min(950px, 100%); margin: 0 auto; }
.food-hero h1 { margin-bottom: 24px; }
.food-hero p:not(.eyebrow) { max-width: 760px; font-size: clamp(17px, 2vw, 21px); }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.status-row span { padding: 7px 16px; color: var(--green-900); font-weight: 900; background: var(--yellow); border-radius: 999px; }

.pillar-nav { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: min(960px, calc(100% - 40px)); margin: -38px auto 0; }
.pillar-nav a { display: grid; gap: 4px; padding: clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--orange); border-radius: 12px; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.pillar-nav a:hover, .pillar-nav a:focus-visible { transform: translateY(-4px); }
.pillar-nav span { color: var(--orange); font-size: 13px; font-weight: 900; }
.pillar-nav strong { color: var(--green-900); font-size: clamp(24px, 3vw, 34px); }
.pillar-nav small { color: var(--muted); font-size: 14px; }

.detail-section { padding: clamp(76px, 9vw, 120px) clamp(20px, 5vw, 72px); }
.detail-section.soft { background: var(--green-100); }
.detail-heading { width: min(860px, 100%); margin: 0 auto 44px; text-align: center; }
.detail-heading > p:last-child { color: var(--muted); font-size: 17px; }
.pillar-heading h2 { font-size: clamp(38px, 5vw, 62px); }
.project-heading h2 { font-size: clamp(38px, 5vw, 62px); }
.project-heading { margin-bottom: clamp(58px, 8vw, 92px); }
.project-block + .project-block { margin-top: clamp(72px, 9vw, 116px); padding-top: clamp(62px, 8vw, 92px); border-top: 1px solid #cbdac5; }
.project-title { width: min(820px, 100%); margin: 0 auto 32px; text-align: center; }
.project-title h3 { margin: 14px 0 10px; font-size: clamp(30px, 4vw, 44px); }
.project-title p { color: var(--muted); font-size: 17px; }

.feature-card,
.aragusa-layout,
.juice-layout,
.develop-card,
.story-block {
  width: min(1100px, 100%);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.feature-card { display: grid; grid-template-columns: 0.85fr 1.15fr; overflow: hidden; }
.feature-copy { padding: clamp(28px, 5vw, 60px); align-self: center; }
.feature-media { position: relative; display: grid; place-items: center; padding: clamp(22px, 3.5vw, 42px); background: #f5f8f2; }
.feature-media .wagashi-flyer { width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #fff; border: 2px solid #a8c59a; border-radius: 12px; box-shadow: 0 12px 26px rgba(35, 64, 48, 0.1); }
.feature-media .recipe-card-peek { position: absolute; right: clamp(8px, 1.5vw, 20px); bottom: clamp(8px, 1.5vw, 20px); width: clamp(76px, 18%, 122px); height: auto; transform: rotate(7deg); transform-origin: center; background: #fff; border: 5px solid #fff; border-radius: 6px; box-shadow: 0 14px 28px rgba(35, 64, 48, 0.28); }
.feature-media.recipe-pages { align-content: center; gap: 14px; }
.recipe-sheet { margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(35, 64, 48, 0.08); }
.recipe-sheet img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 6px; }
.recipe-sheet figcaption { padding: 8px 4px 2px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.date { margin: 16px 0 4px; color: var(--green-700); font-weight: 900; }
.card-gift-note { margin-top: 22px; padding: 14px 16px; color: var(--green-900); font-size: 14px; font-weight: 700; background: var(--green-100); border-left: 4px solid var(--green-500); border-radius: 6px; }
.inheritance-card { width: min(210px, 72%); margin: 24px auto 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(35, 64, 48, 0.1); }
.inheritance-card img { display: block; width: 100%; height: auto; border-radius: 6px; }
.inheritance-card figcaption { padding: 9px 5px 3px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.6; text-align: center; }
.state { display: inline-flex; padding: 5px 12px; font-size: 13px; font-weight: 900; border-radius: 999px; }
.state.held { color: #77440f; background: #ffecb8; }
.state.trial { color: #185538; background: #cfead8; }
.state.developing { color: #7a4612; background: #ffe1bf; }
.state.planned { color: #185538; background: #dff1d8; }

.wagashi-next { display: grid; grid-template-columns: 1fr auto; gap: clamp(22px, 5vw, 58px); width: min(900px, 100%); margin: 28px auto 0; padding: clamp(25px, 4vw, 40px); background: #fff9e8; border: 1px solid #ecd9ad; border-left: 7px solid var(--orange); border-radius: 12px; align-items: center; }
.wagashi-next h3 { margin: 8px 0 10px; font-size: clamp(26px, 3.5vw, 38px); }
.wagashi-next p:not(.date):not(.next-baton-label) { margin-bottom: 0; color: var(--muted); }
.next-baton-label { margin: 0; color: var(--orange); font-size: clamp(18px, 2.4vw, 26px); font-weight: 900; line-height: 1.5; text-align: center; }

.story-block { margin-top: 30px; padding: clamp(26px, 4vw, 48px); }
.project-bridge {
  width: min(900px, 100%);
  margin: 30px auto 0;
  padding: clamp(24px, 4vw, 38px);
  background: #fff9e8;
  border-left: 6px solid var(--orange);
  border-radius: 10px;
}
.project-bridge h3 { margin: 6px 0 10px; font-size: clamp(23px, 3vw, 32px); }
.project-bridge p:not(.eyebrow) { color: var(--muted); }
.project-bridge a { color: var(--orange); font-weight: 900; }
.story-title { text-align: center; }
.story-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: story; }
.story-steps li { counter-increment: story; overflow: hidden; background: #f7f8ef; border-top: 4px solid var(--orange); border-radius: 8px; }
.story-steps li::before { content: "0" counter(story); display: block; padding: 15px 18px 10px; color: var(--orange); font-size: 22px; font-weight: 900; }
.story-steps img { display: block; width: 100%; height: clamp(130px, 12vw, 165px); object-fit: cover; border-block: 1px solid var(--line); }
.story-steps img.workshop-photo { object-position: center 62%; }
.story-steps strong, .story-steps span { display: block; }
.story-steps strong { padding: 15px 18px 0; }
.story-steps span { padding: 8px 18px 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.juice-layout { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: clamp(28px, 5vw, 60px); padding: clamp(24px, 4vw, 48px); align-items: center; }
.juice-layout > img { height: auto; max-height: 720px; object-fit: contain; border-radius: 10px; }
.note-box { margin-top: 26px; padding: 20px; background: var(--green-100); border-left: 5px solid var(--green-700); border-radius: 8px; }
.note-box p { margin-bottom: 0; color: var(--muted); }

.aragusa-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 58px); padding: clamp(30px, 5vw, 58px); border-left: 8px solid #d6a63a; align-items: center; }
.aragusa-copy h3 { margin: 10px 0 18px; font-size: clamp(26px, 3vw, 36px); }
.aragusa-copy p { color: var(--muted); }
.aragusa-harvest-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.aragusa-harvest-note a { display: inline-block; margin-top: 6px; color: var(--green-700); font-weight: 900; }
.aragusa-harvest-photo { margin: 20px 0 0; overflow: hidden; border-radius: 10px; background: var(--green-100); }
.aragusa-harvest-photo img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: center 61%; }
.aragusa-harvest-photo figcaption { padding: 10px 13px; color: var(--muted); font-size: 13px; font-weight: 700; }
.aragusa-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aragusa-gallery figure { margin: 0; overflow: hidden; background: var(--green-100); border-radius: 10px; }
.aragusa-gallery img { width: 100%; height: clamp(220px, 24vw, 340px); object-fit: cover; }
.aragusa-gallery figure:first-child img { object-position: center; }
.aragusa-gallery figure:nth-child(2) img { object-position: center 62%; }
.aragusa-gallery figure:last-child img { object-position: center; }
.aragusa-gallery figcaption { min-height: 62px; padding: 11px 13px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.7; }

.develop-card { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 58px); padding: clamp(30px, 5vw, 58px); border-left: 8px solid var(--orange); align-items: center; }
.develop-copy { min-width: 0; }
.develop-card h3 { margin-top: 18px; font-size: clamp(24px, 3vw, 34px); }
.develop-card p { max-width: 760px; }
.develop-photo { margin: 0; overflow: hidden; background: var(--green-100); border-radius: 12px; }
.develop-photo img { width: 100%; height: clamp(280px, 38vw, 430px); object-fit: cover; object-position: center 55%; }
.develop-photo figcaption { padding: 12px 15px; color: var(--muted); font-size: 13px; font-weight: 700; }
.small-note { color: var(--muted); font-size: 14px; }

.cafe-sale-card { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 58px); width: min(1100px, 100%); margin: 0 auto; padding: clamp(30px, 5vw, 58px); background: var(--white); border: 1px solid var(--line); border-left: 8px solid var(--green-500); border-radius: 16px; box-shadow: var(--shadow); align-items: center; }
.cafe-sale-copy h3 { margin-top: 0; font-size: clamp(24px, 3vw, 34px); }
.cafe-sale-copy p { color: var(--muted); }
.cafe-instagram-link { display: inline-block; margin-top: 8px; color: var(--green-700); font-weight: 900; }
.cafe-sale-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cafe-sale-gallery figure { margin: 0; overflow: hidden; background: var(--green-100); border-radius: 10px; }
.cafe-shop-photos { display: grid; gap: 12px; }
.cafe-sale-gallery img { display: block; width: 100%; height: clamp(240px, 28vw, 360px); object-fit: cover; }
.cafe-sale-gallery figure:first-child img { object-position: center 56%; }
.cafe-shop-photos figure:first-child img { height: auto; aspect-ratio: 4 / 3; object-fit: contain; object-position: center; background: #f7f8ef; }
.cafe-shop-photos figure:last-child img { height: 170px; object-position: center 72%; }
.cafe-sale-gallery figcaption { padding: 10px 12px; color: var(--muted); font-size: 12px; font-weight: 700; }

@media (max-width: 860px) {
  .feature-card, .aragusa-layout, .juice-layout, .develop-card, .cafe-sale-card { grid-template-columns: 1fr; }
  .feature-media .wagashi-flyer { min-height: 0; }
  .story-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .detail-header .site-nav { display: none; }
  .pillar-nav { grid-template-columns: 1fr; margin-top: -24px; }
  .story-steps { grid-template-columns: 1fr; }
  .story-steps img { height: 180px; }
  .feature-copy, .story-block, .aragusa-layout, .juice-layout, .develop-card, .cafe-sale-card { padding: 22px; }
  .aragusa-gallery { grid-template-columns: 1fr; }
  .aragusa-gallery img { height: 260px; }
  .aragusa-harvest-photo img { height: 260px; }
  .cafe-sale-gallery { grid-template-columns: 1fr; }
  .cafe-sale-gallery img { height: 260px; }
  .cafe-shop-photos figure:first-child img { height: auto; }
  .cafe-shop-photos figure:last-child img { height: 260px; }
  .wagashi-next { grid-template-columns: 1fr; }
  .next-baton-label { text-align: left; }
}
