/* 116 やさいカレー まめのき — K02 雑誌の格子。色と書体は共通の13変数だけ。動きの主役はメインビジュアルの寄り（CSSだけ） */
:root {
  --c-bg: #fbf8ee;
  --c-bg-alt: #eef6e6;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #9cc590;
  --c-accent: #2f7a3c;
  --c-accent-text: #2f6e39;
  --c-on-accent: #ffffff;
  --c-2: #f0b429;
  --c-3: #1f4d2a;
  --font-ja: "Murecho", "Noto Sans JP", sans-serif;
  --font-head: "Potta One", "Murecho", "Noto Sans JP", sans-serif;
  --font-en: "Grandstander", "Murecho", "Noto Sans JP", sans-serif;
  --header-h: 64px;
  --radius: 28px;
  --gap: 16px;
  --u: 92px;
}
/* 地の色が変わる枠は、同じ名前の変数を全部上書きする */
.t-green { --c-bg: #2f7a3c; --c-bg-alt: #2f7a3c; --c-text: #ffffff; --c-sub: #eef6e6; --c-line: #8fcf9d; --c-accent: #f0b429; --c-accent-text: #fff0b8; --c-on-accent: #1f4d2a; }
.t-yellow { --c-bg: #f0b429; --c-bg-alt: #f0b429; --c-text: #1f4d2a; --c-sub: #1f4d2a; --c-line: #1f4d2a; --c-accent: #2f7a3c; --c-accent-text: #1f4d2a; --c-on-accent: #ffffff; }
.t-leaf { --c-bg: #cfe8c4; --c-bg-alt: #cfe8c4; --c-text: #374151; --c-sub: #3b4552; --c-line: #2f7a3c; --c-accent: #2f7a3c; --c-accent-text: #1f4d2a; --c-on-accent: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-size: 16px; line-height: 1.9; overflow-x: hidden; }
figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 30; background: var(--c-bg); border-bottom: 2px solid var(--c-3); }
.header__inner { height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 12px; position: relative; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-3); white-space: nowrap; flex: none; min-height: 44px; }
.logo__ja { font-family: var(--font-head); font-size: 17px; line-height: 1.2; }
.s-leaf { fill: var(--c-accent); }
.s-vein { stroke: var(--c-bg); }
.gnav { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--c-3); background: var(--c-accent); color: var(--c-on-accent); font-family: var(--font-ja); font-weight: 500; font-size: 16px; line-height: 1.3; text-decoration: none; white-space: nowrap; flex: none; box-shadow: 3px 3px 0 var(--c-3); cursor: pointer; }
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--c-3); }
.btn--line { background: transparent; color: var(--c-text); }
.btn--lg { min-height: 56px; padding: 0 30px; }
.header__btn { display: none; min-height: 44px; padding: 0 18px; }
.spmenu { margin-left: auto; }

.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-3); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 24px; height: 3px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; right: 12px; top: calc(100% + 6px); width: min(calc(100% - 24px), 340px); background: var(--c-bg); border: 2px solid var(--c-3); border-radius: 20px; box-shadow: 4px 4px 0 var(--c-3); padding: 6px 20px 10px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-3); text-decoration: none; border-bottom: 2px dotted var(--c-line); }
.spmenu__nav a:last-child { border-bottom: 0; }

/* ===== 雑誌の格子（スマホは2列） ===== */
.mag { max-width: 1280px; margin: 0 auto; padding: 8px 20px 56px; }
.spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 30px; }
.folio { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; font-family: var(--font-head); font-size: 18px; color: var(--c-3); line-height: 1.4; padding-bottom: 6px; border-bottom: 2px dotted var(--c-line); }
.folio span { font-family: var(--font-en); font-weight: 800; font-size: 15px; letter-spacing: .08em; color: var(--c-accent-text); }
.tile { grid-column: 1 / -1; min-width: 0; position: relative; overflow: hidden; background: var(--c-bg-alt); color: var(--c-text); border: 2px solid var(--c-3); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--c-3); padding: 22px 20px; }
.tile.photo { padding: 0; }
.tile.photo img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 14px; border-radius: 999px; background: var(--c-bg); color: var(--c-3); border: 2px solid var(--c-3); font-size: 15px; line-height: 1.6; }
.en { font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .12em; color: var(--c-accent-text); line-height: 1.5; margin-bottom: 8px; }
.h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(24px, 6.4vw, 32px); line-height: 1.45; color: var(--c-text); margin-bottom: 10px; }
.h3 { font-family: var(--font-head); font-weight: 400; font-size: 21px; line-height: 1.4; margin-bottom: 8px; color: var(--c-text); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* 見開き1：メインビジュアル（静止画を動かす） */
.hero-photo { aspect-ratio: 4 / 3; }
.hero-photo__img { animation: pan 22s ease-in-out infinite alternate; transform-origin: 38% 40%; }
@keyframes pan { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-2%, 1.5%); } }
.steam { position: absolute; left: 26%; top: 8%; width: 22%; min-width: 80px; fill: none; stroke: color-mix(in srgb, white 80%, transparent); stroke-width: 5; stroke-linecap: round; pointer-events: none; }
.steam path { stroke-dasharray: 90; animation: rise 5s ease-in-out infinite; opacity: .5; }
.steam path:nth-child(2) { animation-delay: 1.4s; } .steam path:nth-child(3) { animation-delay: 2.8s; }
@keyframes rise { 0% { stroke-dashoffset: 90; opacity: .3; transform: translateY(14px); } 30% { opacity: .9; } 100% { stroke-dashoffset: 0; opacity: .3; transform: translateY(-14px); } }
.sticker { position: absolute; right: 14px; bottom: 14px; width: 104px; height: 104px; border-radius: 50%; background: var(--c-2); color: var(--c-3); border: 2px solid var(--c-3); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; transform: rotate(-8deg); line-height: 1.2; font-size: 15px; }
.sticker b { font-family: var(--font-en); font-weight: 800; font-size: 30px; line-height: 1.25; }
.hero-title h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(34px, 9.6vw, 50px); line-height: 1.3; color: var(--c-text); }
.hero-lead p { margin-bottom: 4px; }

/* 見開き2 */
.about { order: 1; } .num { order: 2; grid-column: 1; } .ext { order: 3; grid-column: 2; grid-row: span 2; min-height: 240px; } .quote { order: 4; grid-column: 1; } .int { order: 5; aspect-ratio: 3 / 2; }
.num { display: flex; flex-direction: column; justify-content: center; padding: 18px 14px; }
.num__n { font-family: var(--font-en); font-weight: 800; font-size: 76px; line-height: 1; color: var(--c-accent-text); }
.num__t { font-size: 15px; line-height: 1.6; margin-top: 6px; }
.quote { padding: 18px 14px; }
.quote p { font-family: var(--font-head); font-size: 17px; line-height: 1.6; }
.quote footer { margin-top: 8px; font-size: 15px; line-height: 1.5; }

/* 見開き3：お品書き（F06 帯） */
.ribbon { background: transparent; border: 0; box-shadow: none; padding: 0; overflow: visible; height: 150px; display: block; }
.ribbon__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100px; overflow: visible; }
.rb-a { stop-color: var(--c-accent); } .rb-b { stop-color: var(--c-2); }
.ribbon__t { position: relative; display: inline-block; margin: 28px 0 0 14px; padding: 6px 24px 8px; background: var(--c-accent); color: var(--c-on-accent); border: 2px solid var(--c-3); border-radius: 999px; font-size: 28px; line-height: 1.4; }
.ribbon__s { position: absolute; left: 4px; bottom: 6px; font-size: 15px; color: var(--c-sub); }
.dish { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.dish__img { grid-row: 1 / 4; width: 112px; margin-top: 28px; }
.dish__no { font-family: var(--font-en); font-weight: 800; font-size: 15px; color: var(--c-accent-text); line-height: 1.4; grid-column: 2; }
.dish h3 { font-family: var(--font-head); font-weight: 400; font-size: 20px; line-height: 1.4; grid-column: 2; margin-bottom: 4px; }
.dish__p { grid-column: 1 / -1; font-size: 15px; line-height: 1.7; color: var(--c-sub); margin-top: 8px; margin-bottom: 12px; }
.dish__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 2px dotted var(--c-line); }
.dish__foot b { font-family: var(--font-head); font-weight: 400; font-size: 22px; }
.hot { display: inline-flex; gap: 5px; }
.hot i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c-3); background: transparent; }
.hot i.on { background: var(--c-accent); }
.s-plate { fill: var(--c-bg); stroke: var(--c-3); stroke-width: 3; }
.s-green { fill: var(--c-accent); } .s-rice { fill: var(--c-2); } .s-dot { fill: var(--c-bg); }
.s-keema { fill: var(--c-accent-text); } .s-egg { fill: var(--c-bg); stroke: var(--c-3); stroke-width: 2; } .s-yolk { fill: var(--c-2); }
.s-soup { fill: var(--c-accent); } .s-carrot { fill: var(--c-bg); stroke: var(--c-3); stroke-width: 2; } .s-pot { fill: var(--c-bg); stroke: var(--c-3); stroke-width: 2; }

/* 見開き4：スパイス */
.spice-text .h2 { margin-bottom: 10px; }
.stickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 22px 12px; }
.stickers li { aspect-ratio: 1; border-radius: 50%; background: var(--c-bg); color: var(--c-text); border: 2px solid var(--c-3); display: grid; place-content: center; text-align: center; padding: 8px; transform: rotate(var(--rot)); font-size: 15px; line-height: 1.35; font-weight: 500; }
.stickers li { font-size: 18px; }
.stickers li:nth-child(even) { background: var(--c-2); color: var(--c-3); }
.stickers li:nth-child(even) b, .stickers li:nth-child(even) span { color: var(--c-3); }
.stickers li:nth-child(3n) { background: var(--c-accent); color: var(--c-on-accent); }
.stickers li:nth-child(3n) b, .stickers li:nth-child(3n) span { color: var(--c-on-accent); }
.stickers b { font-family: var(--font-en); font-weight: 800; font-size: 16px; letter-spacing: .04em; color: var(--c-accent-text); }
.stickers span { font-size: 15px; font-weight: 400; color: var(--c-sub); line-height: 1.35; }

/* 見開き5 */
.dl > div { padding: 8px 0; border-bottom: 2px dotted var(--c-line); }
.dl > div:last-child { border-bottom: 0; }
.dl dt { font-size: 15px; font-weight: 500; color: var(--c-accent-text); line-height: 1.5; }
.dl dd { line-height: 1.7; }
.takeout p { margin-bottom: 16px; }

.footer { padding: 28px 20px 40px; text-align: center; border-top: 2px solid var(--c-3); background: var(--c-bg-alt); font-size: 15px; }
.footer__logo { font-family: var(--font-head); font-size: 18px; color: var(--c-3); }
.footer__fiction { margin-top: 6px; color: var(--c-sub); }

@media (min-width: 768px) {
  .header__inner { padding: 0 40px; }
  .gnav { display: flex; gap: 6px; margin-left: 24px; }
  .gnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; text-decoration: none; color: var(--c-3); border-radius: 999px; }
  .gnav a:hover { background: var(--c-bg-alt); }
  .spmenu { display: none; }
  .header__btn { display: inline-flex; margin-left: auto; }
  .mag { padding: 8px 40px 72px; }
}

/* PC：12列の格子。大小の枠の組みで読ませる */
@media (min-width: 1080px) {
  .spread { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(var(--u), auto); gap: var(--gap); margin-top: 44px; }
  .tile { padding: 28px 28px; }
  .tile.photo { padding: 0; }
  .folio { grid-row: 1; }
  .hero-photo { grid-column: 1 / 9; grid-row: 2 / 8; aspect-ratio: auto; }
  .hero-title { grid-column: 9 / 13; grid-row: 2 / 5; display: flex; flex-direction: column; justify-content: center; }
  .hero-title h1 { font-size: clamp(40px, 4vw, 54px); }
  .hero-lead { grid-column: 9 / 13; grid-row: 5 / 8; display: flex; flex-direction: column; justify-content: center; }
  .sticker { width: 124px; height: 124px; right: 24px; bottom: 24px; }
  .sticker b { font-size: 36px; }
  .steam { left: 30%; top: 9%; }

  .num { grid-column: 1 / 4; grid-row: 2 / 4; order: 0; padding: 20px; }
  .about { grid-column: 4 / 9; grid-row: 2 / 4; order: 0; display: flex; flex-direction: column; justify-content: center; }
  .ext { grid-column: 9 / 13; grid-row: 2 / 6; order: 0; min-height: 0; }
  .int { grid-column: 1 / 6; grid-row: 4 / 6; order: 0; aspect-ratio: auto; }
  .quote { grid-column: 6 / 9; grid-row: 4 / 6; order: 0; display: flex; flex-direction: column; justify-content: center; padding: 22px; }
  .quote p { font-size: 19px; }
  .num__n { font-size: 112px; }
  .num__t { font-size: 16px; }

  .ribbon { grid-column: 1 / -1; grid-row: 2; height: 132px; }
  .ribbon__svg { height: 100%; }
  .ribbon__t { margin: 36px 0 0 36px; padding: 8px 34px 10px; font-size: 36px; }
  .ribbon__s { right: 36px; left: auto; bottom: auto; top: 58px; margin: 0; max-width: 340px; text-align: right; color: var(--c-3); font-weight: 500; }
  .dish { display: flex; flex-direction: column; grid-row: 3 / 6; }
  .dish--1 { grid-column: 1 / 5; } .dish--2 { grid-column: 5 / 9; } .dish--3 { grid-column: 9 / 13; }
  .dish__img { width: 100%; max-width: 220px; margin: 0 auto 10px; }
  .dish h3 { font-size: 24px; } .dish__p { margin-top: 6px; }
  .dish__foot { margin-top: auto; }
  .dish__no, .dish__p, .dish__foot { width: 100%; }
  .dish__foot { padding-top: 12px; }

  .spice-text { grid-column: 1 / 5; grid-row: 2 / 5; display: flex; flex-direction: column; justify-content: center; }
  .stickers { grid-column: 5 / 13; grid-row: 2 / 5; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; padding: 24px 28px; align-content: center; }
  .stickers li { padding: 14px; }

  .hours { grid-column: 1 / 5; grid-row: 2 / 5; }
  .access { grid-column: 5 / 9; grid-row: 2 / 5; }
  .takeout { grid-column: 9 / 13; grid-row: 2 / 5; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo__img, .steam path { animation: none; }
  .steam { display: none; }
  html { scroll-behavior: auto; }
}
