:root {
  --c-bg: #fbf8f3;
  --c-surface: #ffffff;
  --c-text: #2b2620;
  --c-muted: #6f665b;
  --c-line: #e6ddd0;
  --c-accent: #b4532a;
  --c-accent-ink: #ffffff;
  --c-key: #2f5d50;
  --c-box: #f3ece1;
  --radius: 10px;
  --w: 860px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #1b1916;
    --c-surface: #24211d;
    --c-text: #ece6dd;
    --c-muted: #a99f92;
    --c-line: #3a352e;
    --c-accent: #e07a4a;
    --c-accent-ink: #1b1916;
    --c-key: #8cc2b0;
    --c-box: #2c2823;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: var(--c-key); }
img { max-width: 100%; height: auto; }

.c-pr {
  margin: 0;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
  border-bottom: 1px solid var(--c-line);
}
.c-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.c-header__inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}
.c-header__logo { font-weight: 700; font-size: 18px; color: var(--c-text); text-decoration: none; }
.c-header__nav { display: flex; gap: 16px; font-size: 14px; }
.c-header__nav a { color: var(--c-muted); text-decoration: none; }
.c-header__nav a:hover { color: var(--c-key); }

.l-main { max-width: var(--w); margin: 0 auto; padding: 24px 16px 48px; }

.p-hero__title, .p-food__title { font-size: clamp(22px, 5vw, 30px); line-height: 1.45; margin: 8px 0 12px; }
.p-hero__lead { margin: 0 0 8px; }
.p-hero__meta { font-size: 13px; color: var(--c-muted); margin: 0 0 16px; }

.c-h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--c-accent);
}
.c-h3 { font-size: 17px; margin: 24px 0 8px; }
.c-note { font-size: 13px; color: var(--c-muted); }
.c-crumb { font-size: 13px; color: var(--c-muted); }
.c-crumb a { color: var(--c-muted); }

.p-calc {
  margin-top: 24px;
  padding: 20px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.p-calc .c-h2 { margin-top: 0; }
.p-calc__form { display: flex; align-items: center; gap: 10px; }
.p-calc__label { font-weight: 700; }
.p-calc__input {
  width: 110px;
  font-size: 22px;
  padding: 6px 10px;
  border: 2px solid var(--c-accent);
  border-radius: 8px;
  background: var(--c-bg);
  color: var(--c-text);
}
.p-calc__unit { font-weight: 700; }
.p-calc__table tbody tr:first-child { background: var(--c-box); }

.c-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.c-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--c-surface);
}
.c-table th, .c-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.c-table thead th { font-size: 12px; color: var(--c-muted); white-space: nowrap; background: var(--c-box); }
.c-table:not(.c-table--kv) { min-width: 560px; }
.c-table tbody th { min-width: 8em; }
.p-calc__table { min-width: 0 !important; }
.p-calc__table td { white-space: nowrap; }
.c-table--kv th { width: 34%; background: var(--c-box); font-weight: 600; }
.c-table .is-out td { color: var(--c-muted); }

.c-box {
  background: var(--c-box);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
}
.c-box__label { margin: 0 0 4px; font-weight: 700; color: var(--c-accent); font-size: 14px; }
.c-box p:last-child { margin-bottom: 0; }

.c-cta { text-align: center; margin: 24px 0; }
.c-btn {
  display: inline-block;
  max-width: 100%;
  padding: 14px 28px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
.c-btn:hover { filter: brightness(1.06); }

.c-list { padding-left: 1.2em; }
.c-list li { margin-bottom: 8px; }
.c-list--src { font-size: 12px; word-break: break-all; }

.c-footer {
  border-top: 1px solid var(--c-line);
  padding: 20px 16px 32px;
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
}
.c-footer a { color: var(--c-muted); }
