/* マーラーポン！ブログ — built on the マーラーポン！ design system. Reading first: calm cream page, pop accents only on chips, buttons and cards. */
:root {
  --ground: #fff6e8;
  --ground-raised: #ffffff;
  --ground-sunk: #ffe9cc;
  --ink: #3a1a10;
  --ink-muted: #7a5244;
  --outline: #3a1a10;
  --line: rgba(58, 26, 16, 0.16);
  --chili: #e0452b;
  --chili-deep: #7a1d10;
  --chili-ink: #b8301a;
  --on-chili: #fff6e8;
  --broth: #2a1210;
  --gold: #ffd25a;
  --on-gold: #3a1a10;
  --pink: #ff8ae0;
  --highlight: #b8301a;
  --highlight-mark: #ffd25a;
  --ink-shadow: rgba(58, 26, 16, 0.28);
  --focus: #3a1a10;
  --shadow-pop-sm: 0 3px 0 var(--outline);
  --shadow-pop-md: 0 6px 0 var(--outline);
  --font-display: "Dela Gothic One", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --ease-pop: cubic-bezier(0.2, 1.4, 0.4, 1);
  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 22px; --radius-pill: 999px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #2a1210;
    --ground-raised: #3d1a14;
    --ground-sunk: #1c0a07;
    --ink: #fff6e8;
    --ink-muted: #e8c9b4;
    --outline: #120403;
    --line: rgba(255, 246, 232, 0.16);
    --chili-ink: #ff7a5c;
    --highlight: #ffd25a;
    --highlight-mark: #7a1d10;
    --ink-shadow: rgba(0, 0, 0, 0.5);
    --focus: #ffd25a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 16px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.95; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chili-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap {
  width: 100%; max-width: 1040px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- header / footer ---------- */
.site-head { background: var(--broth); color: var(--on-chili); padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-chili); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 2px solid var(--outline); }
.brand span { font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.head-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-weight: 800; font-size: 14px; }
.head-nav a { color: var(--on-chili); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.head-nav a:hover { border-bottom-color: var(--gold); }
@media (max-width: 360px) { .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.site-foot { margin-top: 72px; background: var(--broth); color: var(--on-chili); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 700; }
.site-foot a { color: var(--on-chili); }
.site-foot small { font-size: 12px; opacity: .8; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0 0; padding: 0; font-size: 13px; line-height: 1.6; color: var(--ink-muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--ink-muted); }

/* ---------- shared bits ---------- */
.chip {
  display: inline-block; align-self: start; justify-self: start; font-weight: 800; font-size: 12px; letter-spacing: .06em; line-height: 1.4;
  padding: 3px 10px; border-radius: var(--radius-pill); border: 2px solid currentColor; color: var(--chili-ink); text-decoration: none;
}
.eyebrow { margin: 0; font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--chili-ink); }
.tier { display: inline-block; font-weight: 900; font-size: 11px; letter-spacing: .06em; line-height: 1; padding: 4px 8px; border-radius: var(--radius-pill); border: 2px solid var(--outline); white-space: nowrap; }
.tier-rare { background: var(--gold); color: var(--on-gold); }
.tier-super { background: var(--pink); color: var(--on-gold); }
.tier-legend { background: var(--chili-deep); color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
  font-weight: 900; font-size: 16px; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-pill); border: 3px solid var(--outline); background: var(--chili); color: var(--on-chili);
  box-shadow: var(--shadow-pop-md); transition: transform 140ms var(--ease-pop), box-shadow 140ms var(--ease-pop);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: var(--shadow-pop-sm); }
.btn-ghost { background: var(--ground-raised); color: var(--ink); }

/* ---------- blog index / category ---------- */
.blog-hero { display: grid; gap: 10px; padding-block: 32px 8px; max-width: 44em; }
.blog-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5vw, 44px); line-height: 1.3; text-wrap: balance; }
.blog-hero h1 em, .post-head h1 em {
  font-style: normal; color: var(--highlight);
  background: linear-gradient(transparent 62%, var(--highlight-mark) 62%, var(--highlight-mark) 92%, transparent 92%);
}
.cat-sec { margin-top: 48px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cat-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.4; }
.cat-head a { font-weight: 800; font-size: 14px; }
.cat-desc { margin: 4px 0 0; color: var(--ink-muted); font-size: 15px; }
.cards { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.card a {
  height: 100%; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px; text-decoration: none; color: var(--ink);
  background: var(--ground-raised); border: 3px solid var(--outline); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop-md);
  transition: transform 300ms var(--ease-pop);
}
.card a:hover { transform: translateY(-4px) rotate(-.6deg); }
.card a:hover .card-img { transform: rotate(-10deg) scale(1.08); }
.card-art { width: 88px; height: 88px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--ground-sunk); }
.card-img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 4px 4px var(--ink-shadow)); transition: transform 300ms var(--ease-pop); }
.card-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.card-title { font-weight: 900; font-size: 17px; line-height: 1.5; }
.card-desc { font-size: 13px; line-height: 1.7; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card time { font-size: 12px; color: var(--ink-muted); }

/* ---------- article ---------- */
.post { max-width: 720px; margin-inline: auto; }
.post-head { display: grid; gap: 12px; padding-block: 28px 8px; position: relative; }
.post-head h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.6vw, 40px); line-height: 1.35; text-wrap: balance; }
.post-lead { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.85; color: var(--ink-muted); }
.post-meta { margin: 0; font-size: 13px; color: var(--ink-muted); }
.post-art { justify-self: center; width: 160px; height: 160px; margin-top: 8px; border-radius: 50%; background: var(--ground-sunk); display: grid; place-items: center; border: 3px dashed var(--line); }
.post-art img { width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(0 8px 8px var(--ink-shadow)); animation: bob 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.post-art .ing-noimg { width: 100px; height: 100px; font-size: 40px; }

.prose { margin-top: 16px; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose h2 {
  margin: 2.4em 0 0; padding: 10px 16px; font-weight: 900; font-size: 23px; line-height: 1.5;
  background: var(--ground-sunk); border-radius: var(--radius-md); border-left: 0;
}
.prose h2::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; background: var(--chili); border: 2px solid var(--outline); vertical-align: 2px; }
.prose h3 { margin: 2em 0 0; font-weight: 900; font-size: 19px; line-height: 1.5; padding-bottom: 6px; border-bottom: 2px dashed var(--line); }
.prose h3 + * { margin-top: .8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .3em; }
.prose strong { font-weight: 900; background: linear-gradient(transparent 70%, var(--highlight-mark) 70%); }
.prose blockquote { margin-inline: 0; padding: 12px 18px; border-radius: var(--radius-md); background: var(--ground-sunk); color: var(--ink-muted); font-size: 15px; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 2px dashed var(--line); margin-block: 2em; }
.prose details { border: 2px solid var(--outline); border-radius: var(--radius-md); background: var(--ground-raised); padding: 0 16px; }
.prose details + details { margin-top: 10px; }
.prose summary { cursor: pointer; font-weight: 800; padding: 10px 0; list-style-position: inside; }
.prose details[open] { padding-bottom: 12px; }
.prose details > :not(summary) { margin-top: .4em; }

.table-wrap { overflow-x: auto; border: 2px solid var(--outline); border-radius: var(--radius-md); background: var(--ground-raised); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--ground-sunk); font-weight: 800; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
/* 列が多い表は、スマホで1文字ずつ折り返さないよう枠の中で横スクロールさせる */
.prose table:has(th:nth-child(5)) { min-width: 540px; }
.prose table:has(th:nth-child(5)) td, .prose table:has(th:nth-child(5)) th { white-space: nowrap; }

/* TOC */
.toc { padding: 16px 20px; border: 3px solid var(--outline); border-radius: var(--radius-lg); background: var(--ground-raised); box-shadow: var(--shadow-pop-sm); }
.toc-title { margin: 0; font-weight: 900; font-size: 15px; }
.toc ol { margin: 6px 0 0; padding-left: 1.4em; font-size: 15px; line-height: 1.8; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--chili-ink); text-decoration: underline; }

/* ingredient figure, floated beside the paragraph */
.ing-fig { float: right; width: 120px; margin: 0 0 8px 16px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.ing-fig img, .ing-fig .ing-noimg { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 6px 6px var(--ink-shadow)); }
.ing-fig figcaption { font-size: 11px; line-height: 1.5; color: var(--ink-muted); display: grid; justify-items: center; gap: 4px; }
.prose h3, .prose h2 { clear: both; }
.ing-noimg {
  display: grid; place-items: center; border-radius: 50%; background: var(--ground-sunk); color: var(--ink-muted);
  border: 2px dashed var(--line); font-family: var(--font-display); font-size: 28px; filter: none !important;
}
@media (max-width: 480px) { .ing-fig { width: 92px; } .ing-fig img, .ing-fig .ing-noimg { width: 80px; height: 80px; } }

/* recipe equation */
.recipe {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; padding: 16px;
  border-radius: var(--radius-lg); background: var(--ground-raised); border: 3px solid var(--outline); box-shadow: var(--shadow-pop-sm);
}
.rc-item, .rc-result { display: grid; justify-items: center; gap: 4px; }
.rc-item img, .rc-item .ing-noimg { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 4px 4px var(--ink-shadow)); }
.rc-item .ing-noimg { font-size: 24px; }
.rc-name { font-size: 12px; font-weight: 800; line-height: 1.4; }
.rc-op { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--on-gold); border: 2px solid var(--outline); font-family: var(--font-display); font-size: 18px; line-height: 1; }
@media (max-width: 420px) { .rc-item img, .rc-item .ing-noimg { width: 56px; height: 56px; } .rc-op { width: 26px; height: 26px; font-size: 15px; } }

/* CTA */
.cta-box {
  max-width: 720px; margin: 56px auto 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 24px; border-radius: var(--radius-lg); border: 3px solid var(--outline); box-shadow: var(--shadow-pop-md);
  background: radial-gradient(120% 90% at 0% 0%, var(--chili) 0%, var(--chili-deep) 60%, var(--broth) 100%); color: var(--on-chili);
}
.cta-box > img { width: 96px; height: 96px; border-radius: var(--radius-lg); border: 3px solid var(--outline); }
.cta-text p { margin: 0; }
.cta-kicker { font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--gold); }
.cta-title { font-family: var(--font-display); font-size: 22px; line-height: 1.4; margin-top: 4px !important; }
.cta-body { font-size: 14px; line-height: 1.8; margin-top: 8px !important; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cta-box .btn { background: var(--gold); color: var(--on-gold); height: 42px; font-size: 15px; }
.cta-box .btn-ghost { background: transparent; color: var(--on-chili); border-color: var(--on-chili); box-shadow: none; }
.prose .cta-box { margin-top: 2em; }
@media (max-width: 520px) { .cta-box { grid-template-columns: 1fr; } .cta-box > img { width: 72px; height: 72px; } }

.related { max-width: 1040px; margin-top: 56px; }
.related h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
