/* 小池家パーティーマニュアル 共通の見た目（2026-10-07 シンプルに作り直し）
   白と黒がベース、色はランゲージ青 1 色だけ。角丸 6px・影なし・傾きなし。 */
:root {
  --ink: #1f1f1f;
  --ink-soft: #6b6b6b;
  --line: #e6e6e6;
  --soft: #f6f6f4;
  --accent: #008cd8;
  --bg: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 72px; }

/* ---------- header ---------- */
header { padding: 40px 0 8px; }
.eyebrow { font-size: .85rem; color: var(--ink-soft); letter-spacing: .06em; }
h1 { font-size: 1.9rem; font-weight: 700; line-height: 1.35; margin-top: 4px; }
.lead { margin-top: 16px; font-size: 1rem; }
.lead p + p { margin-top: 10px; }
.back { display: inline-block; margin-top: 20px; font-size: .9rem; color: var(--ink-soft); text-decoration: none; }
.back::before { content: "← "; }

.rule { background: var(--soft); border-radius: 6px; padding: 14px 16px; margin: 28px 0 8px; font-size: .95rem; }
.rule b { display: block; }

/* ---------- 今日のメニュー ---------- */
.today-menu { margin-top: 28px; }
.today-title { font-weight: 700; font-size: 1.05rem; }
.today-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.today-grid .noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin: 0; border-radius: 6px; background: var(--soft); color: var(--ink-soft); font-size: .85rem; }
.today-grid a { display: block; text-decoration: none; color: var(--ink); }
.today-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; display: block; }
.today-grid span { display: block; margin-top: 6px; font-weight: 700; font-size: .95rem; text-align: center; }

/* ---------- tabs（事前準備／調理／片付け） ---------- */
.tabs {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 28px -16px 0; padding: 10px 16px 0;
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
}
.tab {
  display: block; padding: 12px 4px; text-align: center;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  color: var(--ink-soft); border-radius: 6px 6px 0 0;
}
.tab.is-active { background: var(--accent); color: #fff; }
.tab-panel { scroll-margin-top: 64px; }
section[id] { scroll-margin-top: 72px; }

/* ---------- groups / sections ---------- */
.group-title { margin-top: 48px; font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
section { padding: 28px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
.sec-head { display: flex; align-items: baseline; gap: 12px; }
.num { font-size: 1.1rem; font-weight: 700; color: var(--accent); min-width: 1.2em; }
h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.45; }
.sub-title { font-size: 1rem; font-weight: 700; margin-top: 22px; }

.video { margin: 14px 0 0; border-radius: 6px; overflow: hidden; background: #111; }
.video.wide { aspect-ratio: 16 / 9; }
.video.tall { aspect-ratio: 9 / 16; max-width: 280px; }
.video iframe { width: 100%; height: 100%; display: block; border: 0; }

.points { list-style: none; margin-top: 12px; }
.points li { position: relative; padding-left: 1.1em; font-size: .97rem; margin-top: 6px; }
.points li::before { content: ""; position: absolute; left: .15em; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

.calc { margin-top: 16px; background: var(--soft); border-radius: 6px; padding: 12px 16px; font-size: .95rem; }
.calc-title { font-weight: 700; }
.note { margin-top: 10px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- top: recipe cards ---------- */
.recipe-card { display: block; margin-top: 14px; text-decoration: none; color: inherit; }
.recipe-card img { width: 100%; display: block; border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; }
.go { display: block; margin-top: 12px; padding: 11px; text-align: center; background: var(--accent); color: #fff; border-radius: 6px; font-weight: 700; }

/* ---------- recipe pages ---------- */
.hero { margin-top: 24px; }
.hero img { width: 100%; display: block; border-radius: 6px; }
.photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.photo-row figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.photo-row figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.photo { margin-top: 16px; }
.photo img { width: 100%; display: block; border-radius: 6px; }
.photo figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

.ingredients { list-style: none; margin-top: 6px; font-size: .97rem; }
.ingredients li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.ingredients li span:last-child { white-space: nowrap; text-align: right; }
.ingredients small { display: block; font-size: .8rem; color: var(--ink-soft); }

.steps { list-style: none; counter-reset: step; margin-top: 8px; }
.steps li { counter-increment: step; position: relative; padding-left: 2.2em; font-size: .97rem; margin-top: 12px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .2em;
  width: 1.6em; height: 1.6em; line-height: 1.6em;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 700; text-align: center;
}

.servings { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; background: var(--soft); border-radius: 6px; }
.servings-label { font-weight: 700; }
.servings input { width: 3.4em; font-family: inherit; font-size: 1.3rem; font-weight: 700; text-align: center; padding: 4px; border: 1px solid #bdbdbd; border-radius: 6px; background: #fff; color: var(--ink); }
.sv-btn { width: 2.2em; height: 2.2em; border-radius: 6px; border: 0; background: var(--accent); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }

details.more-video { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
details.more-video summary { cursor: pointer; font-size: .95rem; color: var(--ink-soft); }
details.more-video .sub-title { margin-top: 14px; font-size: .9rem; }

/* ---------- footer ---------- */
footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
footer p + p { margin-top: 8px; }
