/* 畑と工房（仮称） MVP
   Layout: スマホは下部タブ＋1カラム、PCは上部ナビ＋最大1120pxのグリッド。
   色の役割：緑＝畑（農家）、藍＝工房（加工）、黄＝行動を促すボタン */
:root {
  --bg: #F3F5EE;
  --surface: #FFFFFF;
  --surface-2: #EBEFE6;
  --fg: #1C2A21;
  --muted: #5B6A5F;
  --line: #D8DFD3;
  --field: #2F6B4F;
  --field-soft: #E1ECE3;
  --kobo: #3B4A8C;
  --kobo-soft: #E4E7F4;
  --accent: #E8B400;
  --accent-ink: #1C2A21;
  --ok: #2E7D4F;
  --ok-soft: #DDEFE3;
  --warn: #9A6A00;
  --warn-soft: #FBEFC9;
  --bad: #B3402F;
  --bad-soft: #F8E0DA;
  --shadow: 0 1px 2px rgba(28, 42, 33, .06), 0 6px 20px rgba(28, 42, 33, .06);
  --f-display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --tab-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111814; --surface: #19221D; --surface-2: #212C26; --fg: #E6ECE5; --muted: #9AA99E; --line: #2D3A32;
    --field: #72C196; --field-soft: #1E3328; --kobo: #A3ADEB; --kobo-soft: #242B48;
    --accent: #F2C531; --accent-ink: #141A16;
    --ok: #7BCF9C; --ok-soft: #1D3527; --warn: #F2C531; --warn-soft: #3A3115; --bad: #F08F7D; --bad-soft: #3E211C;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111814; --surface: #19221D; --surface-2: #212C26; --fg: #E6ECE5; --muted: #9AA99E; --line: #2D3A32;
  --field: #72C196; --field-soft: #1E3328; --kobo: #A3ADEB; --kobo-soft: #242B48;
  --accent: #F2C531; --accent-ink: #141A16;
  --ok: #7BCF9C; --ok-soft: #1D3527; --warn: #F2C531; --warn-soft: #3A3115; --bad: #F08F7D; --bad-soft: #3E211C;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: 16px; line-height: 1.75;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.4; text-wrap: balance; }
p { margin: 0; }
a { color: var(--field); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--fg); white-space: nowrap; }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 21px; letter-spacing: .02em; }
.brand b i { font-style: normal; color: var(--accent); margin: 0 1px; }
.brand span { font-size: 11px; color: var(--muted); }
.mainnav { display: none; gap: 4px; margin-left: 12px; }
.mainnav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
.mainnav a:hover { color: var(--fg); background: var(--surface-2); }
.mainnav a.on { color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rolebox { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rolebox select { font: 500 13px var(--f-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; min-height: 36px; }
@media (min-width: 900px) { .mainnav { display: flex; } }
@media (max-width: 420px) { .rolebox label { display: none; } .brand span { display: none; } }

.demo-strip { background: var(--warn-soft); color: var(--fg); font-size: 12px; }
.demo-strip .wrap { padding-block: 6px; }

/* ---------- Bottom tabs (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.tabbar a { height: var(--tab-h); display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--field); }
.tabbar a.post { color: var(--fg); }
.tabbar a.post .ic { background: var(--accent); color: var(--accent-ink); border-radius: 999px; width: 44px; height: 30px; display: grid; place-items: center; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Page ---------- */
main { padding-block: 24px 56px; min-height: 60vh; }
.page-head { display: grid; gap: 6px; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(22px, 3vw, 30px); }
.page-head p { color: var(--muted); max-width: 40em; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.section { display: grid; gap: 16px; margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(20px, 2.6vw, 26px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.6; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--kobo-soft); color: var(--kobo); }
.pill.field { background: var(--field-soft); color: var(--field); }
.pill.gray { background: var(--surface-2); color: var(--muted); }
.sample-tag { font-size: 11px; font-weight: 700; color: var(--warn); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; white-space: nowrap; }

/* ---------- Hero (top page) ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding-block: 16px 8px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.4; font-weight: 700; }
.hero h1 mark { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 62%); color: inherit; }
.hero .lead { color: var(--muted); margin-top: 16px; max-width: 32em; }
.hero .btn-row { margin-top: 24px; }
.hero-art { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 14px; }
.hero-art .route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.hero-art .end { border-radius: var(--r-md); padding: 16px; display: grid; gap: 2px; }
.hero-art .end b { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.hero-art .end.f { background: var(--field-soft); color: var(--field); }
.hero-art .end.k { background: var(--kobo-soft); color: var(--kobo); text-align: right; }
.hero-art .end small { color: var(--fg); font-size: 12px; }
.hero-art .dash { width: 48px; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 13px); }
.hero-art .deal > span:nth-child(2) { flex: 1 1 8em; min-width: 0; }
.hero-art .deal { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); }
.hero-art .deal .num { font-size: 15px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 20px; } }

/* audience cards */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud-card { background: var(--surface); border-radius: var(--r-md); padding: 22px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); }
.aud-card .who { display: flex; align-items: center; gap: 10px; }
.aud-card .mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-size: 18px; }
.aud-card.f .mark { background: var(--field-soft); color: var(--field); }
.aud-card.k .mark { background: var(--kobo-soft); color: var(--kobo); }
.aud-card.p .mark { background: var(--warn-soft); color: var(--warn); }
.aud-card h3 { font-size: 17px; }
.aud-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.aud-card .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 820px) { .aud { grid-template-columns: 1fr; } }

/* 5-step flow (real sequence) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding-right: 14px; }
.steps .n { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 500; }
.steps b { font-size: 15px; }
.steps span { font-size: 13px; color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { left: 19px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); }
  .steps li { grid-template-columns: 40px 1fr; column-gap: 14px; padding-right: 0; }
  .steps .n { grid-row: span 2; }
}

.notice { border-radius: var(--r-md); padding: 16px 18px; font-size: 14px; display: grid; gap: 6px; }
.notice.warn { background: var(--warn-soft); }
.notice.info { background: var(--kobo-soft); }
.notice.field { background: var(--field-soft); }
.notice b { font-size: 15px; }
.notice ul { margin: 0; padding-left: 1.2em; }

/* ---------- Produce cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.pcard { background: var(--surface); border-radius: var(--r-md); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: box-shadow .15s ease, transform .15s ease; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard:hover { transition: none; transform: none; } }
.thumb { aspect-ratio: 16 / 9; max-width: 100%; background: var(--field-soft); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 40px; color: var(--field); opacity: .55; }
.thumb .ph.fruit { background: var(--warn-soft); color: var(--warn); }
.thumb .tl { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.thumb .tl .pill { background: var(--surface); }
.pbody { padding: 16px; display: grid; gap: 10px; align-content: start; }
.pbody h3 { font-size: 17px; }
.pbody .where { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv div { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; display: grid; min-width: 0; }
.kv span { font-size: 11px; color: var(--muted); }
.kv b { font-family: var(--f-mono); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv b small { font-size: 11px; color: var(--muted); font-family: var(--f-body); }
.uses { display: flex; flex-wrap: wrap; gap: 6px; }
.uses span { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--kobo-soft); color: var(--kobo); font-weight: 500; }

/* ---------- Filters ---------- */
.list-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.filters { background: var(--surface); border-radius: var(--r-md); padding: 18px; display: grid; gap: 14px; border: 1px solid var(--line); position: sticky; top: 76px; }
.filters h2 { font-size: 15px; }
.filters-toggle { display: none; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.result-bar b { color: var(--fg); font-family: var(--f-mono); font-size: 18px; }
@media (max-width: 900px) {
  .list-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; }
  .filters.collapsed .fbody { display: none; }
}
.fbody { display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 500 13px/1 var(--f-body); min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-card { background: var(--surface); border-radius: var(--r-md); padding: 22px; display: grid; gap: 16px; border: 1px solid var(--line); }
.form-card > h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.form-card > h2 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } .row2.keep, .row3.keep { grid-template-columns: 1fr 1fr; } .row3.keep > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld > label, .fld > .lab { font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.req { font-size: 11px; color: var(--bad); font-weight: 700; }
.hint { font-size: 12px; color: var(--muted); }
input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="search"], select, textarea {
  width: 100%; font: 400 16px/1.5 var(--f-body); color: var(--fg);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 12px; min-height: 48px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--field); box-shadow: 0 0 0 3px color-mix(in srgb, var(--field) 20%, transparent); }
.invalid { border-color: var(--bad) !important; }
.unit-input { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.unit-input input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.unit-input span, .unit-input select { min-height: 48px; display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); border: 1.5px solid var(--line); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; color: var(--muted); width: auto; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.checks input { accent-color: var(--field); width: 16px; height: 16px; }
.checks label:has(input:checked) { border-color: var(--field); background: var(--field-soft); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--warn-soft); padding: 14px; border-radius: var(--r-sm); cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--field); flex: none; }
.photo-drop { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 10px; justify-items: center; text-align: center; cursor: pointer; background: var(--bg); }
.photo-drop:hover { border-color: var(--field); }
.photo-drop input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.photo-preview { width: 100%; max-width: 360px; border-radius: var(--r-sm); aspect-ratio: 16/9; object-fit: cover; }
.form-actions { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); padding-block: 12px; display: flex; gap: 10px; flex-wrap: wrap; z-index: 5; }
@media (min-width: 900px) { .form-actions { bottom: 0; } }
.err-box { background: var(--bad-soft); color: var(--bad); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; font-weight: 500; }

/* ---------- Detail ---------- */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border-radius: var(--r-md); padding: 22px; display: grid; gap: 14px; border: 1px solid var(--line); min-width: 0; }
.panel > h2 { font-size: 17px; }
.panel.sticky { position: sticky; top: 76px; }
@media (max-width: 900px) { .panel.sticky { position: static; } }
.hero-photo { border-radius: var(--r-md); overflow: hidden; }
.hero-photo .thumb { aspect-ratio: 16/9; }
.dl { display: grid; grid-template-columns: 9em 1fr; gap: 0; margin: 0; }
.dl dt, .dl dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { min-width: 0; overflow-wrap: anywhere; }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; padding-bottom: 0; font-size: 12px; } .dl dd { padding-top: 2px; } }
.price-big { display: flex; align-items: baseline; gap: 6px; }
.price-big b { font-family: var(--f-mono); font-size: 34px; font-weight: 500; line-height: 1.1; }

/* ---------- Tables / lists ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td select { min-height: 38px; padding: 6px 10px; font-size: 14px; width: auto; }

/* ---------- Projects ---------- */
.pj-card { background: var(--surface); border-radius: var(--r-md); padding: 20px; display: grid; gap: 12px; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: box-shadow .15s ease; min-width: 0; }
.pj-card:hover { box-shadow: var(--shadow); }
.pj-card h3 { font-size: 18px; }
.pj-card .concept { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--field); border-radius: 999px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.stages li { font-size: 11px; text-align: center; padding-top: 8px; border-top: 4px solid var(--surface-2); color: var(--muted); }
.stages li.done { border-color: var(--field); color: var(--fg); }
.stages li.now { border-color: var(--accent); color: var(--fg); font-weight: 700; }
.money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .money { grid-template-columns: repeat(2, 1fr); } }
.money div { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 2px; }
.money span { font-size: 12px; color: var(--muted); }
.money b { font-family: var(--f-mono); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.money .pos { color: var(--ok); }
.money .neg { color: var(--bad); }
.cost-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.cost-stack i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.c1 { background: var(--field); } .c2 { background: var(--kobo); } .c3 { background: var(--accent); } .c4 { background: var(--muted); } .c5 { background: var(--ok-soft); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist label { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-radius: var(--r-sm); cursor: pointer; font-size: 15px; }
.checklist label:hover { background: var(--surface-2); }
.checklist input { width: 22px; height: 22px; accent-color: var(--field); flex: none; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photos img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); width: 100%; }
.partners { display: flex; flex-wrap: wrap; gap: 8px; }
.partners span { font-size: 13px; background: var(--surface-2); padding: 4px 12px; border-radius: 999px; }
.partners span b { color: var(--muted); font-weight: 500; margin-right: 6px; font-size: 12px; }

/* ---------- Inquiry ---------- */
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.terms > div { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 6px; }
.terms > div.ok { border-color: var(--ok); background: var(--ok-soft); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--field); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.status-track { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; font: 700 14px var(--f-body); color: var(--muted); padding: 12px 14px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--fg); border-color: var(--accent); }
.tabs button .count { font-family: var(--f-mono); font-size: 12px; background: var(--surface-2); padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; }
.kpis span { font-size: 12px; color: var(--muted); }
.kpis b { font-family: var(--f-mono); font-size: 26px; font-weight: 500; }
.kpis div.attn { border-color: var(--accent); background: var(--warn-soft); }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); display: grid; gap: 12px; justify-items: center; }
.gate { max-width: 520px; margin: 40px auto; text-align: center; display: grid; gap: 14px; justify-items: center; background: var(--surface); padding: 32px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 50; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

footer.site { border-top: 1px solid var(--line); padding-block: 28px; font-size: 12px; color: var(--muted); }
footer.site .wrap { display: grid; gap: 6px; }

/* ===================================================================
   トップページ（写真中心のランディング）
   写真の上の文字は常に白。写真はどちらのテーマでも同じ見え方にする
   =================================================================== */
:root { --on-photo: #FFFFFF; --photo-shade: 14, 26, 19; }
body { overflow-x: clip; }
body.is-top main { padding-top: 0; }
.full { width: 100vw; margin-left: calc(50% - 50vw); position: relative; }
.sp { display: none; }
@media (max-width: 600px) { .sp { display: inline; } .pc { display: none; } }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-light { background: rgba(255,255,255,.14); color: var(--on-photo); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.24); }

.lp-hero { min-height: min(680px, 82vh); display: grid; align-items: end; overflow: hidden; color: var(--on-photo); background: rgb(var(--photo-shade)); }
.lp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.lp-hero::after, .lp-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--photo-shade), .82) 0%, rgba(var(--photo-shade), .55) 45%, rgba(var(--photo-shade), .1) 100%), linear-gradient(0deg, rgba(var(--photo-shade), .6) 0%, transparent 45%); }
.lp-hero-inner { position: relative; z-index: 1; padding-block: 120px 48px; display: grid; gap: 20px; justify-items: start; width: 100%; }
.lp-kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.lp-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 6.4vw, 76px); line-height: 1.22; letter-spacing: .01em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.lp-hero p { max-width: 36em; font-size: clamp(15px, 1.6vw, 17px); opacity: .92; }
.lp-deal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.94); color: #1C2A21; text-decoration: none; font-size: 14px; margin-top: 8px; max-width: 100%; }
.lp-deal .pill.warn { background: #FBEFC9; color: #8A5E00; }
.lp-deal .sample-tag { color: #8A5E00; }
@media (max-width: 600px) {
  .lp-hero { min-height: 600px; }
  .lp-hero::after { background: linear-gradient(0deg, rgba(var(--photo-shade), .92) 0%, rgba(var(--photo-shade), .6) 55%, rgba(var(--photo-shade), .25) 100%); }
  .lp-hero-inner { padding-block: 96px 32px; }
  .lp-hero .btn-row { width: 100%; } .lp-hero .btn-row .btn { flex: 1 1 100%; }
}

.lp-sec { margin-top: clamp(64px, 9vw, 112px); display: grid; gap: 28px; }
.lp-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px 48px; align-items: start; }
.lp-intro .eyebrow { grid-column: 1 / -1; }
.lp-intro h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.5; }
.lp-intro p { color: var(--muted); font-size: 16px; line-height: 2; }
@media (max-width: 820px) { .lp-intro { grid-template-columns: 1fr; } }

.lp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-duo-card { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; color: var(--on-photo); background: rgb(var(--photo-shade)); }
.lp-duo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lp-duo-card:hover img { transform: scale(1.03); }
.lp-duo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--photo-shade), .9) 0%, rgba(var(--photo-shade), .35) 45%, transparent 70%); }
.lp-duo-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; display: grid; gap: 8px; justify-items: start; }
.lp-duo-card h3 { font-size: clamp(20px, 2.4vw, 26px); }
.lp-duo-card p { font-size: 14px; opacity: .9; max-width: 28em; }
@media (max-width: 700px) { .lp-duo { grid-template-columns: 1fr; } .lp-duo-card { aspect-ratio: 4 / 3.6; } }
@media (prefers-reduced-motion: reduce) { .lp-duo-card img { transition: none; } .lp-duo-card:hover img { transform: none; } }

.lp-tag { display: inline-block; font-family: var(--f-display); font-size: 14px; padding: 3px 12px; border-radius: 8px; letter-spacing: .04em; }
.lp-tag.f { background: #2F6B4F; color: #fff; }
.lp-tag.k { background: #3B4A8C; color: #fff; }
.lp-tag.p { background: #E8B400; color: #1C2A21; }

.lp-band { margin-top: clamp(64px, 9vw, 112px); background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px); width: 100vw; margin-left: calc(50% - 50vw); }
.lp-band .section-head { margin-bottom: 28px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.lp-steps li { display: grid; gap: 6px; align-content: start; position: relative; }
.lp-steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); margin-bottom: 10px; height: auto; }
.lp-steps .n { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 500; font-size: 15px; }
.lp-steps b { font-size: 16px; }
.lp-steps li > span:last-child { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .lp-steps { grid-template-columns: 1fr; gap: 14px; }
  .lp-steps li { grid-template-columns: 112px 1fr; column-gap: 14px; align-items: center; }
  .lp-steps img { grid-row: span 2; margin: 0; aspect-ratio: 1; }
  .lp-steps .n { width: 28px; height: 28px; font-size: 13px; top: 6px; left: 6px; }
}

.lp-aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-aud-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.lp-aud-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.lp-aud-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; height: auto; }
.lp-aud-card > div { padding: 22px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.lp-aud-card h3 { font-size: 19px; }
.lp-aud-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.lp-more { font-weight: 700; font-size: 14px; color: var(--field); margin-top: 4px; }
.lp-more::after { content: " →"; }
@media (max-width: 900px) { .lp-aud { grid-template-columns: 1fr; } .lp-aud-card { grid-template-columns: 40% 1fr; grid-template-rows: none; } .lp-aud-card img { height: 100%; aspect-ratio: auto; } }
@media (max-width: 560px) { .lp-aud-card { grid-template-columns: 1fr; } .lp-aud-card img { aspect-ratio: 16 / 9; height: auto; } }
@media (prefers-reduced-motion: reduce) { .lp-aud-card, .lp-aud-card:hover { transition: none; transform: none; } }

.lp-feature { margin-top: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.lp-feature-photo { min-height: 360px; position: relative; }
.lp-feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-feature-body { padding: clamp(24px, 4vw, 48px); display: grid; gap: 16px; align-content: center; }
.lp-feature-body h2 { font-size: clamp(24px, 3vw, 34px); }
.lp-feature-body p { color: var(--muted); }
@media (max-width: 820px) { .lp-feature { grid-template-columns: 1fr; } .lp-feature-photo { min-height: 0; aspect-ratio: 16 / 10; } }

.lp-promise { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: var(--field-soft); }
.lp-promise h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }
.lp-promise ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lp-promise li { display: grid; gap: 2px; padding-left: 20px; border-left: 3px solid var(--field); }
.lp-promise li b { font-size: 16px; }
.lp-promise li span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .lp-promise { grid-template-columns: 1fr; } }

.lp-cta { margin-top: clamp(64px, 9vw, 112px); overflow: hidden; color: var(--on-photo); background: rgb(var(--photo-shade)); }
.lp-cta::after { background: rgba(var(--photo-shade), .7); }
.lp-cta-inner { position: relative; z-index: 1; padding-block: clamp(64px, 10vw, 120px); display: grid; gap: 24px; justify-items: center; text-align: center; }
.lp-cta h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 4.4vw, 48px); line-height: 1.4; }
.lp-cta .btn-row { justify-content: center; }
.photo-credit { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; }
body.is-top main { padding-bottom: 24px; }
