/* クチコミブースト（仮称） LP — スマホファースト */

:root {
  --c-text: #26313a;
  --c-sub: #5b6770;
  --c-muted: #84909a;
  --c-bg: #ffffff;
  --c-bg-alt: #f4f6f5;
  --c-line: #dde3e1;
  --c-primary: #1f6f5c;
  --c-primary-dark: #17574a;
  --c-accent-bg: #e8f2ee;
  --radius: 10px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.45; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-primary); }

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 700; font-size: 17px; color: var(--c-primary-dark); }
.logo small { font-size: 11px; font-weight: 400; color: var(--c-muted); margin-left: 2px; }
.header-cta {
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: var(--c-primary); border: 1px solid var(--c-primary);
  border-radius: 999px; padding: 6px 14px; white-space: nowrap;
}

/* buttons */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.5;
  padding: 15px 22px; border-radius: var(--radius); border: 0; cursor: pointer;
  max-width: 100%;
}
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 2px 0 var(--c-primary-dark); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--c-primary-dark); }
.btn-block { display: block; width: 100%; padding-left: 10px; padding-right: 10px; }
.btn { word-break: auto-phrase; }
@media (max-width: 400px) { .btn-block { font-size: 15px; } }

/* hero（スマホではサービス名・価値提案・料金・CTAが最初の画面に収まるよう詰める） */
.hero { background: var(--c-accent-bg); padding: 22px 0 32px; }
.hero-service {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  font-size: 13px; font-weight: 700; color: var(--c-sub); margin-bottom: 10px;
}
.hero-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--c-primary-dark); background: #fff;
  border: 1px solid var(--c-primary); border-radius: 999px; padding: 1px 10px;
}
.hero h1 { font-size: 22px; margin-bottom: 10px; }
.hero-lead { color: var(--c-sub); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.hero-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px;
  font-weight: 700; margin-bottom: 14px;
}
.hero-price strong { font-size: 28px; color: var(--c-primary-dark); line-height: 1.2; }
.hero-price span { font-size: 12px; font-weight: 400; color: var(--c-sub); flex-basis: 100%; }
.hero .btn { width: 100%; }
.hero-note { font-size: 12px; color: var(--c-sub); margin-top: 8px; line-height: 1.6; }
.hero-note strong { color: var(--c-primary-dark); }
.pains { margin-top: 20px; padding-top: 14px; border-top: 1px dashed #b9cfc6; }
.pains li { font-size: 14px; color: var(--c-sub); }

/* sections */
.section { padding: 52px 0; }
.section:nth-of-type(odd) { background: var(--c-bg-alt); }
.section h2 { font-size: 21px; margin-bottom: 20px; text-align: center; }
.section-lead { color: var(--c-sub); margin-bottom: 24px; }

/* stats */
.stat-grid { display: grid; gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 18px 18px 14px;
}
.stat-num { font-size: 34px; font-weight: 700; color: var(--c-primary-dark); line-height: 1.2; }
.stat-num span { font-size: 20px; margin-left: 2px; }
.stat-num small { font-size: 16px; margin-right: 2px; }
.stat-text { margin-top: 6px; font-weight: 700; }
.source { margin-top: 8px; font-size: 11px; color: var(--c-muted); }
.stats-sum { margin-top: 22px; color: var(--c-sub); }

/* steps */
.steps { display: grid; gap: 16px; }
.step {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px;
}
.step-no {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--c-sub); font-size: 15px; }
.step > div { min-width: 0; flex: 1; }

/* 仕組みのイメージ図（HTML/CSSのみ。実画面ではない） */
.mock {
  position: relative; margin: 14px 0 0; max-width: 340px;
  border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden;
  font-size: 13px; line-height: 1.6; color: var(--c-text);
}
.mock p { color: inherit; font-size: inherit; }
.mock-label {
  display: block; text-align: right; font-size: 10px; color: var(--c-muted);
  background: #fff; border-top: 1px solid var(--c-line); padding: 2px 8px; line-height: 1.6;
}
.mock-line { background: #e7edf3; }
.mock-bar {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: #fff; border-bottom: 1px solid var(--c-line); font-weight: 700; font-size: 12px;
}
.mock-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.mock-body { padding: 10px 12px 12px; }
.bubble {
  background: #fff; border-radius: 4px 14px 14px 14px; padding: 8px 11px; max-width: 92%;
}
.bubble-link {
  display: inline-block; margin-top: 6px; background: #fff; color: var(--c-primary);
  font-weight: 700; font-size: 12px; border-radius: 999px; padding: 3px 12px; border: 1px solid #c4d6cf;
}
.mock-notice { background: #f1f3f4; }
.notice { margin: 12px 10px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 10px;
  padding: 9px 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.notice > div { min-width: 0; }
.notice-icon {
  flex: 0 0 26px; height: 26px; border-radius: 7px; background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.mock .notice-title { font-weight: 700; font-size: 12px; }
.mock .notice-text { color: var(--c-sub); font-size: 12px; }
.stars { color: #e3a008; letter-spacing: 1px; }
.star-off { color: #cfd5d9; }
.mock-draft { background: #fff; }
.draft-inner { padding: 12px; }
.mock .draft-head { font-weight: 700; font-size: 12px; color: var(--c-primary-dark); margin-bottom: 4px; }
.draft-text { background: var(--c-bg-alt); border-radius: 8px; padding: 8px 10px; }
.draft-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; font-size: 12px; font-weight: 700; }
.draft-actions span { border-radius: 6px; padding: 4px 12px; }
.draft-edit { border: 1px solid var(--c-line); color: var(--c-sub); }
.draft-ok { background: var(--c-primary); color: #fff; }

/* trust */
.trust-list { display: grid; gap: 14px; }
.trust-list li {
  background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-primary);
  border-radius: var(--radius); padding: 16px 18px;
}
.trust-list h3 { font-size: 17px; margin-bottom: 4px; }
.trust-list p { color: var(--c-sub); font-size: 15px; }

/* pricing */
.plans { display: grid; gap: 16px; }
.plan {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px 20px;
}
.plan-featured { border: 2px solid var(--c-primary); }
.plan h3 { font-size: 18px; }
.price { margin: 6px 0 14px; color: var(--c-sub); }
.price strong { font-size: 30px; color: var(--c-text); margin-left: 4px; }
.plan li { position: relative; padding-left: 22px; margin-top: 6px; font-size: 15px; }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 9px; height: 5px; border-left: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
  transform: rotate(-45deg);
}
.plan-terms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 26px; }
.plan-terms li {
  font-size: 14px; font-weight: 700; color: var(--c-primary-dark);
  background: var(--c-accent-bg); border-radius: 999px; padding: 4px 14px;
}

/* faq */
.faq details {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 44px 16px 18px; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--c-primary);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; color: var(--c-sub); font-size: 15px; }

/* form */
.form {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px 18px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req, .opt { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.req { background: #b3473b; color: #fff; }
.opt { background: var(--c-line); color: var(--c-sub); }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; /* iOSのズーム防止 */
  padding: 12px; border: 1px solid #c4ccc9; border-radius: 8px; background: #fff; color: var(--c-text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.form-note { font-size: 12px; color: var(--c-muted); margin-top: 12px; }
.form-result {
  margin-top: 16px; padding: 14px; border-radius: 8px;
  background: var(--c-accent-bg); color: var(--c-primary-dark); font-weight: 700; font-size: 15px;
}
.form-result.is-error { background: #fbecea; color: #8a2f25; }
.form-result a { color: inherit; }
.btn:disabled { opacity: .7; cursor: wait; }
.field-consent { margin-bottom: 20px; }
.field .consent { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.field .consent input { padding: 0; width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--c-primary); }

.after-submit {
  background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-primary);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
}
.after-submit h3 { font-size: 16px; margin-bottom: 6px; }
.after-submit ol { list-style: decimal; padding-left: 1.4em; color: var(--c-sub); font-size: 14px; }

.form-done {
  background: #fff; border: 2px solid var(--c-primary); border-radius: var(--radius);
  padding: 24px 20px; text-align: center;
}
.form-done-title { font-size: 22px; font-weight: 700; color: var(--c-primary-dark); margin-bottom: 8px; }
.form-done-sub { margin-top: 10px; font-size: 13px; color: var(--c-sub); }

/* モバイル固定CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-line);
  padding: 8px 12px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
  transition: transform .2s ease, opacity .2s ease;
}
.sticky-cta .btn { display: block; width: 100%; padding: 11px 12px; font-size: 15px; }
.sticky-cta p { text-align: center; font-size: 11px; color: var(--c-sub); margin-top: 3px; line-height: 1.4; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; visibility: hidden; }
body { padding-bottom: 92px; background: #26313a; } /* 固定CTAで本文の末尾が隠れないように。余白はフッター色で埋める */
main { background: var(--c-bg); }

/* footer */
.site-footer { background: #26313a; color: #c9d1d6; padding: 32px 0; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-brand { font-weight: 700; color: #fff; margin-bottom: 8px; }
.copy { margin-top: 12px; font-size: 12px; color: #8f9aa2; }

/* tablet / desktop */
@media (min-width: 720px) {
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 34px; }
  .hero .btn { width: auto; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 26px; margin-bottom: 28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .form, .after-submit, .form-done { max-width: 640px; margin-left: auto; margin-right: auto; }
  .form { padding: 32px; }
  .hero-price span { flex-basis: auto; }
  .hero-note { font-size: 13px; }
  .sticky-cta { display: none; }
  body { padding-bottom: 0; background: var(--c-bg); }
  .section-lead { text-align: center; }
}

/* 見出しの1文字だけの折り返しを防ぐ */
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; }
.nobr { display: inline-block; }
.req { white-space: nowrap; }
.pc-only { display: none; }
@media (min-width: 720px) { .pc-only { display: inline; } }

/* privacy.html */
.doc { padding: 40px 0 56px; }
.doc .container { max-width: 760px; }
.doc h1 { font-size: 24px; margin-bottom: 18px; }
.doc h2 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--c-sub); font-size: 15px; }
.doc ul { list-style: disc; padding-left: 1.4em; }
.doc .doc-date { margin-top: 32px; font-size: 13px; color: var(--c-muted); }
.page-doc { padding-bottom: 0; background: var(--c-bg); }

/* 固定ヘッダーの下に隠れないように */
#signup, #form-done, #form-result { scroll-margin-top: 72px; }
