/* Benri Lab のサイト共通の見た目。
   元は claude.ai 上の共通プライバシーポリシー(v1.1)のデザイン。
   見る人の情報を外へ出さないよう、Webフォントは読み込まず端末の文字を使う */
:root {
  color-scheme: light dark;
  --bg: #EEF1EE;
  --surface: #FFFFFF;
  --surface-2: #F5F7F4;
  --ink: #1F2A24;
  --ink-muted: #56655A;
  --accent: #C97829;
  --accent-ink: #5A3410;
  --line: #D7DCD5;
  --line-strong: #BFC7BC;
  /* 案件手帳のアイコンの青(白い文字が読める濃さにしてある) */
  --anken: #1F63D6;
  --anken-soft: #E6EEFC;
  --danger: #B42318;
  --font-body: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181A;
    --surface: #1B211D;
    --surface-2: #212822;
    --ink: #E9ECE8;
    --ink-muted: #A3AFA6;
    --accent: #E3A24C;
    --accent-ink: #2A1B08;
    --line: #2A322C;
    --line-strong: #3A443C;
    --anken-soft: #1B2A44;
    --danger: #F97066;
  }
}

* { box-sizing: border-box; }
/* hidden を付けた物は、ボタンなど display を持つ物でも必ず隠す */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--accent); }
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

/* ---- 見出しの箱 ---- */
.masthead {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 6px;
  padding: 24px 20px 20px;
  margin-bottom: 28px;
}
.brandrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wordmark {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }
.doctype {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 12px;
}
.tagline { margin-top: 4px; color: var(--ink-muted); font-size: 14px; }
.metastrip {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}
.metastrip dt { font-size: 11px; letter-spacing: 0.04em; }
.metastrip dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---- 要点の3枚 ---- */
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 36px;
}
.summary div { background: var(--surface); padding: 16px; font-size: 14px; color: var(--ink-muted); }
.summary strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }

/* ---- 節 ---- */
section { margin-bottom: 36px; }
.sechead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.secnum {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 3px;
  padding: 1px 7px;
  flex: none;
}
h1 { font-size: 24px; line-height: 1.4; margin: 0; }
h2 { font-size: 19px; line-height: 1.5; margin: 0; }
h3 { font-size: 16px; margin: 20px 0 6px; }
section p { margin: 0 0 12px; }
section ul { margin: 0 0 12px; padding-left: 1.3em; }
section li { margin-bottom: 6px; }
.note {
  font-size: 14px;
  color: var(--ink-muted);
  border-left: 2px solid var(--line-strong);
  padding-left: 12px;
}

/* ---- 表(横にはみ出す時は表だけ横に動かす) ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 6px; }
.registry { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; min-width: 560px; }
.registry caption {
  text-align: left;
  font-size: 12px;
  color: var(--ink-muted);
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
}
.registry th, .registry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.registry thead th { font-size: 12px; color: var(--ink-muted); background: var(--surface-2); font-weight: 600; }
.registry tbody tr:last-child td { border-bottom: none; }
.appname { font-weight: 700; white-space: nowrap; }
.perm {
  display: inline-block;
  font-size: 12px;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-muted);
  margin: 2px 4px 0 0;
  white-space: nowrap;
}
.pending-row td { color: var(--ink-muted); font-style: italic; }

/* ---- お問い合わせの帯 ---- */
.stub {
  margin-top: 44px;
  border-top: 2px dashed var(--line-strong);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.stub h3 { font-size: 15px; margin: 0 0 4px; }
.stub a { font-weight: 600; text-decoration: none; font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }
.stub .op { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.footer-links { margin-top: 16px; font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- アプリの見出し(案件手帳のページ) ---- */
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.app-head .sub { color: var(--ink-muted); font-size: 14px; margin: 2px 0 0; }

/* ---- 押せるボタン ---- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--anken); color: #FFFFFF; }
.btn-secondary { background: var(--surface); color: var(--anken); border-color: var(--anken); }
@media (prefers-color-scheme: dark) {
  .btn-secondary { color: #8DB4FF; border-color: #8DB4FF; }
}
.btn + .btn { margin-top: 12px; }

/* ---- カード ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 20px;
}
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; }

@media (max-width: 560px) {
  .summary { grid-template-columns: 1fr; }
  .metastrip { grid-template-columns: 1fr 1fr; }
  .stub { flex-direction: column; align-items: flex-start; }
}
