:root {
  --bg: #f7f5ef;
  --paper: #ffffff;
  --ink: #23302b;
  --muted: #6b7570;
  --line: #dcd8cc;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: #e4eee9;
  --warn: #9a4b1a;
  --warn-soft: #fbeee2;
  --ok: #2d6a3e;
  --ok-soft: #e3f1e6;
  --radius: 8px;
  font-size: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "IPAGothic", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}
a { color: var(--accent); }
h1 { font-size: 1.45rem; margin: 0 0 0.8rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
h3 { font-size: 1rem; margin: 1rem 0 0.4rem; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 1rem; background: var(--accent); color: var(--accent-ink); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 6px;
  background: #fff; color: var(--accent); font-size: 1.05rem;
}
.who { display: flex; gap: 0.8rem; align-items: center; font-size: 0.9rem; flex-wrap: wrap; }
.who .office { font-weight: 700; }
.who .link { color: #fff; }
.mainnav { display: flex; gap: 0.2rem; padding: 0 0.6rem; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.mainnav a { padding: 0.65rem 0.8rem; text-decoration: none; color: var(--ink); white-space: nowrap; border-bottom: 3px solid transparent; }
.mainnav a.on { border-bottom-color: var(--accent); font-weight: 700; color: var(--accent); }
.page { max-width: 1100px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.foot { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 1.5rem 1rem; }
.flash { background: var(--ok-soft); border: 1px solid #b9dcc2; color: var(--ok); padding: 0.6rem 0.9rem; border-radius: var(--radius); margin-bottom: 1rem; }
.flash.warn, .warnbox { background: var(--warn-soft); border: 1px solid #efc9a8; color: var(--warn); padding: 0.6rem 0.9rem; border-radius: var(--radius); margin-bottom: 1rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.stat { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
label { display: block; font-weight: 600; margin: 0.7rem 0 0.25rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 0.4rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 5.5rem; resize: vertical; }
textarea.tall { min-height: 12rem; }
input[type=file] { font: inherit; }
button, .btn {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 6px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; cursor: pointer; text-decoration: none; line-height: 1.5;
}
button.sub, .btn.sub { background: #fff; color: var(--accent); }
button.danger { background: #fff; color: #a33; border-color: #d9a3a3; }
button.link { background: none; border: none; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; color: var(--accent); }
button[disabled] { opacity: 0.55; cursor: wait; }
form.inline { display: inline; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f1efe7; font-weight: 600; white-space: nowrap; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tablewrap table { border: none; }
.badge { display: inline-block; padding: 0.05rem 0.55rem; border-radius: 999px; font-size: 0.8rem; background: #eee; color: #444; white-space: nowrap; }
.badge.confirmed { background: var(--ok-soft); color: var(--ok); }
.badge.drafted { background: var(--warn-soft); color: var(--warn); }
.badge.transcribing, .badge.drafting, .badge.uploaded, .badge.transcribed { background: #e8eef8; color: #2b4f87; }
.badge.error { background: #f8e3e3; color: #a33; }
.tag { display: inline-block; padding: 0 0.45rem; margin: 0 0.2rem 0.2rem 0; border: 1px solid var(--line); border-radius: 4px; font-size: 0.8rem; color: var(--muted); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; align-items: end; margin-bottom: 1rem; }
.filters label { margin: 0 0 0.2rem; font-size: 0.85rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 3px solid var(--accent-soft); padding: 0.2rem 0 0.9rem 0.9rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.6rem; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.transcript { max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.seg { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.5rem; padding: 0.45rem 0.7rem; border-bottom: 1px solid #f0ede4; }
.seg.hl { background: #fff7d6; }
.seg .meta { font-size: 0.8rem; color: var(--muted); }
.seg .meta button { padding: 0 0.35rem; font-size: 0.78rem; margin-top: 0.15rem; }
.seg .spk { font-weight: 700; font-size: 0.85rem; }
.reflinks { margin-top: 0.25rem; font-size: 0.8rem; }
.reflinks button { padding: 0 0.4rem; font-size: 0.78rem; margin: 0 0.2rem 0.2rem 0; background: #fff; color: var(--accent); }
.sticky { position: sticky; top: 0.5rem; }
audio { width: 100%; }
.answer { white-space: pre-wrap; }
.cite { display: inline-block; font-size: 0.75rem; vertical-align: super; margin: 0 0.1rem; padding: 0 0.3rem; border-radius: 4px; background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.evidence { border-left: 3px solid var(--accent); padding: 0.4rem 0.8rem; margin: 0.6rem 0; background: #fafaf6; }
.evidence .src { font-size: 0.85rem; color: var(--muted); }
.pre { white-space: pre-wrap; }
.hero { padding: 1.2rem; border-radius: var(--radius); background: linear-gradient(135deg, #2f5d50, #3f7a68); color: #fff; margin-bottom: 1rem; }
.hero h1 { color: #fff; }
.hero p { margin: 0.2rem 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.7rem; font-size: 0.9rem; }
.steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.8rem; margin-right: 0.4rem; }
.authbox { max-width: 440px; margin: 2rem auto; }
.meter { height: 10px; border-radius: 999px; background: #ebe8df; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.meter.over > span { background: #b5462a; }
.listedit .item { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 0.4rem; margin-bottom: 0.4rem; }
.listedit .item.two { grid-template-columns: 1fr 1fr auto; }
.listedit .item.one { grid-template-columns: 1fr auto; }
.busy { display: none; }
.is-busy .busy { display: inline; }
@media print {
  .topbar, .mainnav, .foot, .actions, .noprint { display: none !important; }
  body { background: #fff; }
  .card { border: none; padding: 0; }
}
/* 集計の棒(1色・長さだけ。数字は文字で横に出す) */
table.bars { background: transparent; }
table.bars th { background: transparent; font-weight: 400; width: 38%; white-space: normal; border: none; padding: 0.3rem 0.4rem 0.3rem 0; }
table.bars td { border: none; padding: 0.3rem 0.4rem; }
table.bars .barcell { width: 50%; }
table.bars .bar { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--accent); }
table.bars .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.bars tr:hover th, table.bars tr:hover .num { font-weight: 700; }
.who form.inline { display: inline-flex; }
.who .link { line-height: inherit; font-size: inherit; }
/* 公開ページ */
.pubnav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.pubnav a { color: #fff; text-decoration: none; }
.pubnav a.btn { background: #fff; color: var(--accent); border-color: #fff; padding: 0.3rem 0.9rem; }
.footlinks { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.4rem; }
.footlinks a { color: var(--muted); }
.lp-hero { padding: 2.4rem 1.4rem; border-radius: var(--radius); background: linear-gradient(135deg, #2f5d50, #3f7a68); color: #fff; margin-bottom: 1.6rem; }
.lp-hero h1 { color: #fff; font-size: 1.9rem; line-height: 1.4; margin-bottom: 0.6rem; }
.lp-hero p { font-size: 1.05rem; max-width: 46rem; margin: 0 0 1.2rem; }
.lp-hero .btn { background: #fff; color: var(--accent); border-color: #fff; }
.lp-hero .btn.sub { background: transparent; color: #fff; border-color: #fff; }
.lp-section { margin: 2.2rem 0; }
.lp-section > h2 { font-size: 1.35rem; text-align: center; margin-bottom: 1rem; }
.lp-shot { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.lp-figure { margin: 0; }
.lp-figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.35rem; text-align: center; }
.feature h3 { margin-top: 0; color: var(--accent); }
.feature ul { margin: 0; padding-left: 1.2rem; }
.price-card { max-width: 560px; margin: 0 auto; text-align: center; }
.price-card .price { font-size: 1.6rem; font-weight: 700; color: var(--accent); margin: 0.4rem 0; }
.price-card ul { text-align: left; display: inline-block; margin: 0.6rem auto; }
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.05rem; }
.legal th { width: 30%; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.price-table { margin: 0.6rem auto; max-width: 360px; background: transparent; }
.price-table th { background: transparent; text-align: center; font-size: 0.85rem; color: var(--muted); }
.price-table td:last-child { text-align: right; white-space: nowrap; }
