/* メッセドット 紹介ページ。色は web/src/styles.css（管理画面）と同じトークン */
:root {
  --primary: #2e6f4e;          /* 塗りボタン・見出し。白文字で5.9:1 */
  --primary-hover: #255c40;
  --brand: #4c9e73;            /* 中間緑。下線・アイコン */
  --line: #06c755;             /* LINE想起の差し色。文字色には使わない（白地で2.2:1） */
  --brand-soft: #e9f2ec;
  --brand-soft-bd: #cfe2d5;
  --bg: #ffffff;               /* 地は白。生成り・淡い色面は使わない（AIっぽく見えるため） */
  --surface: #ffffff;
  --surface-alt: #f4f5f6;      /* 無彩色の薄いグレー。モック内の面だけに使う */
  --border: #dcdfe3;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --subtle: #8a8a8a;
  --danger: #b53a3a;
  --dark: #17352a;             /* 資料請求セクションの面 */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(23, 53, 42, .10);
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 800px; }
.sp-only { display: none; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-weight: 700; text-decoration: none; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(46, 111, 78, .28); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--brand-soft-bd); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { font-size: 14px; padding: 8px 18px; }
.btn-lg { font-size: 16px; padding: 15px 30px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- ロゴ ---------- */
.logo { font-weight: 900; font-size: 22px; letter-spacing: .02em; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin: 0 3px; display: inline-block; }
.logo-sm { font-size: 18px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--primary); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-login { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.link-login:hover { color: var(--primary); }

/* ---------- ファーストビュー ---------- */
.hero { padding: 72px 0 88px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.nw { display: inline-block; }
.hero h1 { font-size: clamp(28px, 3.7vw, 44px); line-height: 1.4; font-weight: 900; letter-spacing: .01em; margin-bottom: 22px; }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.hero-lead strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks li::before { content: ""; width: 6px; height: 6px; background: var(--primary); flex: none; }

/* スマホの絵 */
.hero-visual { position: relative; display: flex; justify-content: center; padding-bottom: 24px; }
.phone { width: 300px; background: var(--surface-alt); border: 10px solid #20262a; border-radius: 40px; box-shadow: 0 30px 60px rgba(23, 53, 42, .22), 0 0 0 1px rgba(0, 0, 0, .05); overflow: hidden; }
.phone-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 14px 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.phone-back { color: var(--subtle); font-size: 20px; line-height: 1; }
.phone-name { font-weight: 700; }
.phone-pill { margin-left: auto; font-size: 11px; font-weight: 700; color: #a3611a; border: 1px solid #d9b98f; padding: 1px 8px; border-radius: 999px; }
.phone-talk { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 380px; }
.day { text-align: center; font-size: 10px; color: var(--subtle); }
.bub { max-width: 84%; font-size: 12.5px; line-height: 1.7; padding: 10px 12px; border-radius: 12px; }
.bub.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-top-left-radius: 4px; }
.draft { background: var(--surface); border: 1px solid var(--brand-soft-bd); border-top: 3px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; box-shadow: 0 6px 16px rgba(23, 53, 42, .08); }
.draft-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ai-badge { font-size: 10.5px; font-weight: 700; color: var(--primary); border: 1px solid var(--brand-soft-bd); padding: 0 7px; border-radius: 4px; }
.draft-note { font-size: 10px; color: var(--subtle); }
.draft-body { font-size: 12.5px; line-height: 1.75; margin-bottom: 10px; }
.draft-actions, .send-art { display: flex; gap: 8px; justify-content: flex-end; }
.mini { font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.mini.ghost { color: var(--primary); border: 1px solid var(--brand-soft-bd); background: var(--surface); }
.mini.go { color: #fff; background: var(--primary); }
.float-note { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); white-space: nowrap; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 8px; box-shadow: var(--shadow); padding: 12px 16px; font-size: 13px; font-weight: 700; line-height: 1.5; }

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--border); }
.section-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--brand); text-align: center; margin-bottom: 8px; }
.section-eyebrow.on-dark { color: #9fd3b4; text-align: left; }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.5; text-align: center; margin-bottom: 48px; }

/* お悩み */
.pains { background: var(--surface); }
.pain-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain-list li { border-top: 3px solid var(--primary); padding: 18px 4px 0; }
.pain-list h3 { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.pain-list p { font-size: 14.5px; color: var(--muted); }

/* 使い方 */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 24px 24px; position: relative; display: flex; flex-direction: column; }
.step-no { position: absolute; top: -18px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--bg); }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step > p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.step-art { margin-top: auto; background: var(--surface-alt); border-radius: 10px; padding: 14px; min-height: 118px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.row-mini { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 8px; padding: 8px 10px; }
.av { width: 28px; height: 28px; border-radius: 50%; background: #e3e6ea; color: #4a5056; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.row-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.row-t b { font-size: 12px; }
.row-t small { font-size: 11px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { margin-left: auto; font-size: 11px; font-weight: 700; color: #a3611a; }
.draft.small { box-shadow: none; }
.draft.small p { font-size: 12px; line-height: 1.7; margin-top: 6px; }
.send-art { justify-content: center; }

/* 特長 */
.features { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 4px; padding: 24px 24px 26px; background: var(--surface); }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* 導入の流れ */
.ob-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: ob; }
.ob-steps li { counter-increment: ob; position: relative; padding: 0 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ob-steps li::before { content: counter(ob); width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); color: var(--primary); font-weight: 900; font-size: 18px; display: grid; place-items: center; margin-bottom: 8px; position: relative; z-index: 1; }
.ob-steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: calc(50% + 26px); width: calc(100% - 52px); border-top: 2px dashed var(--brand-soft-bd); }
.ob-steps b { font-size: 17px; }
.ob-steps span { font-size: 14px; color: var(--muted); }

/* よくある質問 */
.faq { background: var(--surface); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--brand); font-weight: 900; margin-right: 10px; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px 46px; color: var(--muted); font-size: 15px; }

/* 資料請求 */
.request { background: var(--dark); color: #fff; }
.request-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.request-copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.5; margin-bottom: 16px; }
.request-copy > p { color: #cfe2d5; margin-bottom: 22px; }
.request-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.request-points li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.request-points li::before { content: ""; width: 6px; height: 6px; background: #fff; flex: none; }

.lead-form { background: var(--surface); color: var(--text); border-radius: 18px; padding: 32px 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.fld { margin-bottom: 18px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.req, .opt { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 4px; line-height: 1.7; }
.req { color: #fff; background: var(--danger); }
.opt { color: var(--muted); border: 1px solid var(--border); }
.fld input, .fld select, .fld textarea { width: 100%; font-family: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(76, 158, 115, .2); }
.fld input::placeholder, .fld textarea::placeholder { color: #9aa0a6; }
.fld.has-err input, .fld.has-err select, .fld.has-err textarea { border-color: var(--danger); }
.hint { font-size: 12px; color: var(--subtle); margin-top: 4px; }
.err { font-size: 13px; color: var(--danger); font-weight: 500; margin-top: 4px; }
.err:empty { display: none; }
.agree .check { font-weight: 500; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { background: #fbeeee; color: var(--danger); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }

/* フッター */
.site-footer { background: #10261e; color: #b9c9bf; padding: 40px 0; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-footer .logo { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: #dbe7df; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.tm, .copy { width: 100%; font-size: 12px; color: #8ea597; }
.copy { margin-top: -6px; }

/* ---------- 下層ページ（プライバシーポリシー・完了） ---------- */
.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 900; margin-bottom: 12px; }
.doc .doc-meta { color: var(--subtle); font-size: 14px; margin-bottom: 40px; }
.doc-body { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.doc-body h2 { font-size: 19px; font-weight: 700; margin: 36px 0 10px; padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.5; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { font-size: 15px; color: #333; }
.doc-body ul, .doc-body ol { padding-left: 1.4em; margin: 8px 0; }
.doc-body li + li { margin-top: 4px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.doc-body th, .doc-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--surface-alt); width: 30%; font-weight: 700; }
.done { text-align: center; padding: 96px 0 120px; }
.done h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin-bottom: 16px; }
.done p { color: var(--muted); margin-bottom: 8px; }
.done .btn { margin-top: 28px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: left; }
  .pain-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .ob-steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .ob-steps li:nth-child(2)::after { display: none; }
  .request-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .header-inner { gap: 12px; height: 58px; }
  .header-cta { gap: 14px; }
  .logo { font-size: 20px; }
  .hero { padding: 40px 0 64px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-checks { flex-direction: column; }
  .phone { width: 270px; }
  .float-note { font-size: 12px; padding: 10px 14px; }
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 36px; }
  .sp-only { display: inline; }
  .pain-list, .feature-grid { grid-template-columns: 1fr; }
  .ob-steps { grid-template-columns: 1fr; gap: 0; }
  .ob-steps li { flex-direction: row; text-align: left; align-items: flex-start; padding: 0 0 26px; gap: 4px 14px; flex-wrap: wrap; }
  .ob-steps li::before { width: 40px; height: 40px; font-size: 15px; margin: 0; flex: none; }
  .ob-steps li::after { display: none; }
  .ob-steps b { padding-top: 6px; }
  .ob-steps span { width: 100%; padding-left: 54px; margin-top: -6px; }
  .lead-form { padding: 24px 18px; }
  .fld-row { grid-template-columns: 1fr; gap: 0; }
  .doc-body { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
