:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #1c1b18;
  --muted: #6b6860;
  --line: #e3e0d8;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e4f1ec;
  --warn: #9a5b10;
  --warn-soft: #fbefdc;
  --notice: #f3efe4;
  --chat-bg: #8aa3bf;
  --bubble-in: #ffffff;
  --bubble-bot: #ffffff;
  --line-green: #06c755;
  --sheet-head: #f1f3f4;
  --sheet-new: #fff7d6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151513;
    --surface: #1f1f1c;
    --text: #ecebe6;
    --muted: #a3a097;
    --line: #34332f;
    --accent: #5fbfa3;
    --accent-ink: #0f1a16;
    --accent-soft: #1e332c;
    --warn: #e8b36a;
    --warn-soft: #3a2d1a;
    --notice: #292822;
    --chat-bg: #2b3a4a;
    --bubble-in: #3a3a36;
    --bubble-bot: #3a3a36;
    --sheet-head: #2a2a27;
    --sheet-new: #3a3420;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 40px 16px 64px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.hero { margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
h1 { margin: 0 0 12px; font-size: clamp(22px, 4.6vw, 30px); line-height: 1.45; }
.lead { margin: 0; padding: 12px 14px; background: var(--accent-soft); border-radius: 10px; font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}
.label { display: block; font-weight: 700; margin-bottom: 8px; }
textarea {
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  min-height: 132px;
}
.hint { margin: 6px 0 12px; color: var(--muted); }
.samples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  font: inherit;
  padding: 6px 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.notice { margin: 0; padding: 10px 12px; background: var(--notice); border-radius: 10px; }
textarea:focus, .chip:focus-visible, .primary:focus-visible, summary:focus-visible, .sheet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.counter { color: var(--muted); font-size: 13px; }
.counter.over { color: var(--warn); font-weight: 700; }
.primary {
  font: inherit; font-weight: 700;
  padding: 10px 26px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.primary:disabled { opacity: 0.55; cursor: progress; }
.status { margin: 12px 0 0; min-height: 1.75em; color: var(--muted); }
.status.error { color: var(--warn); }

/* 結果: 3つの見本 */
.result { margin-bottom: 24px; }
.panels { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .panels { grid-template-columns: 0.85fr 1.4fr 1fr; align-items: start; } }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}
.panel-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.step {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 700;
}
.panel-sub { margin: 2px 0 12px 32px; color: var(--muted); }

.phone { background: var(--chat-bg); border-radius: 12px; padding: 14px 12px; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble-row { display: flex; gap: 8px; align-items: flex-start; }
.avatar {
  flex: none; display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 12px; font-weight: 700;
}
.avatar.customer { background: #d9d3c7; color: #5a5446; }
.avatar.bot { background: var(--line-green); color: #fff; }
.bubble {
  margin: 0;
  padding: 10px 12px;
  border-radius: 4px 16px 16px 16px;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.incoming { background: var(--bubble-in); }
.notice-bubble { background: var(--bubble-bot); flex: 1; white-space: normal; }
.chat-time { margin: 0 0 0 40px; font-size: 11px; color: #f0f3f7; }
.c-head { margin: 0 0 6px; font-weight: 700; }
.c-head.escalated { color: var(--warn); }
.c-summary { margin: 0; }
.c-draft { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.c-label { margin: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
.c-draft-subject { margin: 2px 0 4px; font-weight: 600; }
.c-draft-body { margin: 0; white-space: pre-wrap; }
.quick { display: flex; gap: 6px; margin-left: 40px; flex-wrap: wrap; }
.quick span {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
}

.sheet { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.sheet table { width: 100%; min-width: 480px; border-collapse: collapse; line-height: 1.5; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.sheet th { background: var(--sheet-head); font-weight: 700; white-space: nowrap; }
.sheet tr.old td { color: var(--muted); }
.sheet tr.new td { background: var(--sheet-new); overflow-wrap: anywhere; }
.sheet td:first-child { white-space: nowrap; }
.sheet td:nth-child(4) { min-width: 9em; }

.gmail { margin-top: 12px; }
.gmail summary, .more summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.approve-body { margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-weight: 400; }
.mail { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 13px; }
.mail-row { margin: 0 0 4px; overflow-wrap: anywhere; }
.mail-row .muted { display: inline-block; width: 3em; }
.mail-body { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-note { margin: 0; color: var(--muted); font-size: 12px; }

.more { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 12px 0 0; }
.facts > div { min-width: 0; }
.facts .span { grid-column: 1 / -1; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.plain { list-style: none; margin: 0; padding: 0; }

/* 下部 */
.offer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.offer-lead { margin: 0 0 16px; font-weight: 700; font-size: 17px; }
.scope { margin: 0 auto 12px; max-width: 600px; text-align: left; }
.scope > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.scope dt { font-weight: 700; }
.scope dd { margin: 0; color: var(--muted); }
.offer-title { margin: 32px 0 12px; font-size: 18px; font-weight: 700; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.plan-name { margin: 0 0 8px; font-weight: 700; }
/* 料金は「初期費用」と「月額」の2段。それぞれの下に含まれるものを小さく */
.fee { margin: 0; }
.fee > div { padding: 8px 0; border-top: 1px solid var(--line); }
.fee dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.fee dd { margin: 0; }
.fee-price { font-size: 20px; font-weight: 700; }
.fee-note { font-size: 14px; color: var(--muted); }
.tax { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
/* お約束は「見出し＋一文」を縦に */
.promises { margin: 0 auto; max-width: 600px; text-align: left; }
.promises > div { padding: 10px 0; border-top: 1px solid var(--line); }
.promises dt { font-weight: 700; }
.promises dd { margin: 2px 0 0; color: var(--muted); }
.consult { margin: 0 auto; max-width: 600px; text-align: left; }
.consult .offer-title { text-align: center; }
.consult p { margin: 0 0 8px; }
.consult-how { color: var(--muted); }
.consult-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
.consult-line { display: inline-block; text-decoration: none; }
.consult-mail { color: var(--accent); font-weight: 700; }
.to-consult { margin: 16px 0 0; }
.to-consult a {
  display: inline-block; padding: 8px 22px; border: 1px solid var(--accent); border-radius: 10px;
  color: var(--accent); font-weight: 700; text-decoration: none;
}
.to-consult a::after { content: " ↓"; }
.consult { scroll-margin-top: 16px; }
.operator { margin: 32px 0 0; color: var(--muted); font-size: 14px; }

/* 冒頭: 対象と3ステップの帯 */
.for { margin: 12px 0 0; }
.steps { display: flex; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  flex: 1; position: relative; counter-increment: step;
  padding: 10px 12px 10px 18px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; line-height: 1.5;
}
.steps li::before { content: counter(step) ". "; color: var(--accent); }
.steps li:first-child { border-radius: 10px 0 0 10px; padding-left: 12px; }
.steps li:last-child { border-radius: 0 10px 10px 0; }
.steps li + li { border-left: 0; }

/* 開いた時点の見本と「自分の文で試す」 */
.section-title { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.preview-head { margin-bottom: 12px; }
.preview-note { margin: 0; color: var(--muted); }
.try { margin-top: 8px; }
.try .section-title { margin-bottom: 12px; }

/* 違い・導入の流れ・よくある質問 */
.difference { margin: 0 auto; max-width: 600px; text-align: left; padding: 12px 14px; background: var(--accent-soft); border-radius: 10px; }
.flow { margin: 0 auto; max-width: 600px; padding: 0; list-style: none; text-align: left; counter-reset: flow; }
.flow li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); counter-increment: flow; }
.flow-label { font-weight: 700; }
.flow-label::before { content: counter(flow) ". "; color: var(--accent); }
.flow-text { color: var(--muted); }
.your-part { margin: 12px auto 0; max-width: 600px; text-align: left; }
.faq { margin: 0 auto; max-width: 600px; text-align: left; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); }

@media (max-width: 560px) {
  .wrap { padding-top: 28px; }
  /* スマホでは、増えた1行を「列名: 値」の縦並びで見せる */
  .sheet table { min-width: 0; }
  .sheet thead, .sheet tr.old { display: none; }
  .sheet tr.new td { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; border: 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .sheet tr.new td:last-child { border-bottom: 0; }
  .sheet tr.new td::before { content: attr(data-label); font-weight: 700; color: var(--muted); }
  .facts, .plans { grid-template-columns: 1fr; }
  .scope > div, .flow li { grid-template-columns: 1fr; gap: 2px; }
  .steps { flex-direction: column; }
  .steps li, .steps li:first-child, .steps li:last-child { border-radius: 0; padding-left: 12px; }
  .steps li:first-child { border-radius: 10px 10px 0 0; }
  .steps li:last-child { border-radius: 0 0 10px 10px; }
  .steps li + li { border-left: 1px solid var(--line); border-top: 0; }
  .primary { width: 100%; }
}
