/* ===== デザイントークン =====
   元サイト bottleneck.seventy-seventy.com（リポジトリ bottleneck-ai の src/ui/style.css）の値を踏襲。
   色は 4 値のみ・アクセントカラーなし。8px スケール。 */
:root {
  --background: #FFFFFF;
  --foreground: #1A1A1A;
  --foreground-secondary: #767676;
  --rule: #E5E5E5;

  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-system: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --measure: 780px;

  --fs-body: 17px;
  --fs-h1: 28px;
  --fs-h2: 22px;
  --fs-h3: 18px;
  --fs-small: 14px;
  --lh-body: 1.9;
  --ls-body: 0.03em;
}

/* ===== ベース ===== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--background); color: var(--foreground); }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 400;
  line-height: var(--lh-body); letter-spacing: var(--ls-body);
}
main.bn { width: 100%; max-width: var(--measure); margin-inline: auto; padding: var(--s7) var(--s5); }
h1 { font-size: var(--fs-h1); line-height: 1.5; letter-spacing: .01em; font-weight: 700; margin: 0 0 var(--s3); }
h2 { font-size: var(--fs-h2); line-height: 1.5; font-weight: 700; margin: 0 0 var(--s3); }
h3 { font-size: var(--fs-h3); line-height: 1.6; font-weight: 700; margin: 0 0 var(--s2); }
p { margin: 0 0 var(--s3); }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }

/* ===== ボタン ===== */
button {
  border: 1px solid var(--foreground); background: var(--foreground); color: var(--background);
  font-family: var(--font-sans); font-size: var(--fs-small); line-height: 1.6; letter-spacing: .1em;
  padding: var(--s1) var(--s3); min-height: 44px; cursor: pointer;
}
button:disabled { cursor: wait; opacity: .6; }
button.bn-secondary { background: var(--background); color: var(--foreground); }
button.bn-link {
  border: 0; background: none; color: var(--foreground-secondary); min-height: 0; padding: 4px 0;
  letter-spacing: .03em; text-decoration: underline; text-underline-offset: .2em;
}

/* ===== 入力 ===== */
textarea, input[type="text"], input[type="email"] {
  border: 1px solid var(--rule); background: var(--background); color: var(--foreground);
  font-family: var(--font-system); font-size: var(--fs-small); line-height: 1.6; letter-spacing: 0;
  border-radius: 0;
}
input[type="text"], input[type="email"] { display: block; width: 100%; min-height: 44px; padding: var(--s1) var(--s2); }
textarea { display: block; width: 100%; padding: var(--s1) var(--s2); resize: vertical; }
textarea::placeholder, input::placeholder { color: var(--foreground-secondary); }

/* ===== 文字スタイル ===== */
.type-label { color: var(--foreground-secondary); font-size: var(--fs-small); line-height: 1.6; letter-spacing: .16em; margin-bottom: var(--s1); }
.type-lead { font-size: 18px; line-height: 1.6; letter-spacing: .02em; }
.type-caption { color: var(--foreground-secondary); font-size: var(--fs-small); line-height: 1.6; letter-spacing: .03em; }

/* ===== レイアウト部品 ===== */
.bn-header { margin-bottom: var(--s5); }
.bn-view { padding-bottom: var(--s5); }
.bn-note { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s3) 0; margin-bottom: var(--s4); font-size: 16px; }
.bn-note p { margin-bottom: var(--s1); }
.bn-note p:last-child { margin-bottom: 0; }
.bn-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0; }
.bn-error { border-top: 1px solid var(--rule); padding-top: var(--s2); margin-top: var(--s2); }
.bn-done { border-top: 1px solid var(--rule); padding-top: var(--s3); }

.bn-progress { display: flex; justify-content: space-between; gap: var(--s2); border-bottom: 1px solid var(--rule); padding-bottom: var(--s1); margin-bottom: var(--s4); }

.bn-step-head { margin-bottom: var(--s3); }
.bn-step-intro { margin-bottom: var(--s3); }

/* 設問 */
.bn-field { margin-bottom: var(--s4); }
.bn-q { display: block; font-size: 16px; font-weight: 700; line-height: 1.7; letter-spacing: .02em; margin-bottom: 4px; }
.bn-req { display: inline-block; margin-left: var(--s1); font-size: 12px; font-weight: 400; letter-spacing: .1em; color: var(--foreground-secondary); border: 1px solid var(--rule); padding: 0 6px; line-height: 1.6; vertical-align: 1px; }
.bn-help { margin: 0 0 var(--s1); }
.bn-field-error { border-left: 2px solid var(--foreground); padding-left: var(--s2); margin: var(--s1) 0 0; font-size: var(--fs-small); line-height: 1.6; letter-spacing: .02em; }
.bn-field.has-error input[type="text"], .bn-field.has-error input[type="email"], .bn-field.has-error textarea, .bn-field.has-error .bn-choice { border-color: var(--foreground); }

/* 選択肢 */
.bn-choices { display: grid; gap: var(--s1); margin-top: var(--s1); }
.bn-choice {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: var(--s1) var(--s2);
  border: 1px solid var(--rule); font-size: 16px; line-height: 1.6; letter-spacing: .02em; cursor: pointer;
}
.bn-choice input { accent-color: var(--foreground); width: 18px; height: 18px; margin: 0; flex: none; }
.bn-choice:has(input:checked) { border-color: var(--foreground); }
.bn-clear { margin-top: 4px; font-size: 13px; }

/* お客さんカード（5枚） */
.bn-card { border: 1px solid var(--rule); padding: var(--s3); margin-bottom: var(--s3); }
.bn-card .bn-field:last-child { margin-bottom: 0; }
.bn-card-hint { margin-bottom: var(--s3); }

/* 操作バー */
.bn-nav { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--rule); }
.bn-nav:has(> :only-child) { justify-content: flex-end; }

/* 確認画面 */
.bn-review-section { border-top: 1px solid var(--rule); padding-top: var(--s3); margin-bottom: var(--s4); }
.bn-review-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.bn-review-head h2 { margin: 0; font-size: var(--fs-h3); }
.bn-review-sub { font-weight: 700; font-size: 15px; margin: var(--s2) 0 4px; }
.bn-review-item { margin-bottom: var(--s2); }
.bn-review-q { color: var(--foreground-secondary); font-size: var(--fs-small); line-height: 1.6; letter-spacing: .03em; }
.bn-review-a { margin: 0; font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.bn-review-a.is-empty { color: var(--foreground-secondary); }
#turnstile { margin: var(--s3) 0 var(--s2); min-height: 65px; }

/* ハニーポット：画面外へ（display:none だとボットに見抜かれやすい） */
.bn-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.bn-footer { border-top: 1px solid var(--rule); padding-top: var(--s3); margin-top: var(--s6); }
.bn-footer p { margin: 0; }

@media (max-width: 700px) {
  main.bn { padding: var(--s5) var(--s3); }
  textarea, input[type="text"], input[type="email"] { font-size: 16px; }
  h1 { font-size: 24px; }
  .bn-card { padding: var(--s2); }
  .bn-review-head { align-items: flex-start; }
}
