/* =====================================================================
   MAMORI SCAN — Landing page stylesheet
   構成: トークン / リセット / ヘッダー / ヒーロー / 速報帯 / 統計 / 課題カード /
         流れ / レポート / 足跡 / 料金 / 事件簿 / FAQ / 最終CTA / 追従ボタン / フッター /
         申込ページ / 記事・規約ページ
   ===================================================================== */

/* ---------- 1. トークン ---------- */
:root {
  --blue: #2150ac;
  --blue-hi: #1365c0;
  --blue-tint: #eaf0fb;
  --blue-soft: #9db8f0;
  --red: #cb1f03;
  --coral: #ff8a73;
  --coral-hi: #ff5a3c;
  --dark: #241716;
  --ink: #231815;
  --black: #0b0b0b;
  --cream: #f3f0eb;
  --line: #d9d4cc;
  --muted: #6b6b6b;
  --text-2: #4a4a4a;
  --mint: #7fe0a2;

  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --font-num: "Outfit", "Inter", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --sec-y: 64px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 18px;
}

/* ---------- 2. リセット / ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.arrow { font-family: var(--font-num); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 3. ヘッダー ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
}
.brand { display: inline-flex; align-items: center; }
.brand svg { height: 36px; width: auto; display: block; }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--red); color: #fff; border-radius: 10px; padding: 9px 14px;
  font-weight: 800; font-size: 14px; transition: filter .15s;
}
.header-cta:hover { filter: brightness(1.08); }

/* ---------- 4. ヒーロー ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero-deco {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--blue);
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 30% 100%);
}
.hero-stage { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.hero-mark {
  position: absolute; top: 18px; right: 5%; z-index: 1; pointer-events: none;
  display: inline-flex; align-items: flex-start; white-space: nowrap;
  font-family: var(--font-num); font-weight: 800; font-size: 128px; line-height: 1;
  color: var(--black);
}
.hero-mark .star { font-style: normal; font-size: .46em; line-height: 1; margin: .13em 0 0 -.07em; }
.hero-robot {
  position: absolute; right: -40%; bottom: 0; z-index: 2;
  height: 42%; width: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .4));
}
.hero-inner {
  position: relative; z-index: 3;
  max-width: var(--wrap); margin: 0 auto; padding: 26px var(--gutter) 36px;
}
.hero-title {
  font-weight: 900; letter-spacing: .01em; line-height: 1.08;
  font-size: clamp(40px, 12vw, 78px);
}
.hero-title .line { display: block; }
.hero-title .big { display: block; font-size: clamp(58px, 17vw, 120px); max-width: 4.2em; }
.hero-lead {
  font-weight: 700; font-size: clamp(16px, 4.4vw, 21px); line-height: 1.7;
  margin-top: 18px; max-width: 15em; word-break: auto-phrase;
}
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px;
  font-size: 13.5px; font-weight: 700;
}
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-chips i { color: var(--mint); font-size: 15px; }
.hero-note { color: #cfc9c4; font-size: 12px; margin: 8px 2px 0; }
.hero-title, .hero-lead, .hero-chips, .hero-note {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .4);
}

/* ドメイン入力フォーム */
.domain-form {
  display: flex; flex-direction: column; margin-top: 20px; max-width: 620px;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.domain-form.is-light { box-shadow: 0 8px 24px rgba(0, 0, 0, .10); border: 2px solid var(--dark); }
.domain-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: #fff;
  font-size: 16px; padding: 18px; color: var(--ink);
}
.domain-input::placeholder { color: #9b9b9b; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; cursor: pointer; border: 0;
  background: var(--red); color: #fff; font-weight: 800; font-size: 16px;
  padding: 16px 22px; transition: filter .15s;
}
.btn-cta:hover { filter: brightness(1.08); }
.btn-cta:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.btn-cta i { font-size: 19px; }
.form-error {
  display: none; align-items: center; gap: 8px; margin-top: 12px; max-width: 620px;
  background: #fff; color: var(--red); border: 1px solid var(--red); border-radius: var(--r-sm);
  padding: 10px 14px; font-size: 13.5px; font-weight: 700; line-height: 1.55;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.form-error.is-on { display: flex; }
.form-error i { font-size: 17px; flex: none; }

/* ---------- 5. 速報帯 ---------- */
.ticker { background: var(--black); color: #fff; }
.ticker-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 14px;
}
.ticker-label {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff; border-radius: 6px; padding: 4px 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
}
.ticker-list {
  display: flex; gap: 22px; overflow-x: auto; min-width: 0; scrollbar-width: none;
}
.ticker-list::-webkit-scrollbar { display: none; }
.ticker-list li { flex: none; }
.ticker-list a { color: #e9e4df; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ticker-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ticker-no {
  font-family: var(--font-num); font-weight: 800; color: var(--coral);
  margin-right: 8px; letter-spacing: .03em;
}

/* ---------- 6. セクション共通 ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: var(--sec-y) var(--gutter); }
.section-title {
  font-weight: 900; font-size: clamp(25px, 6.2vw, 40px); letter-spacing: .01em;
  line-height: 1.32; margin-bottom: 28px;
}
.eyebrow {
  color: var(--blue); font-weight: 800; font-size: clamp(14px, 3.8vw, 17px);
  letter-spacing: .04em; margin-bottom: 10px;
}
.eyebrow.is-inverse { color: var(--blue-soft); }
.text-link { display: inline-block; font-weight: 800; font-size: 15px; color: var(--blue); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link.is-inverse { color: #fff; }

/* ---------- 7. 統計 ---------- */
.stat-grid { display: grid; gap: 14px; }
.stat { background: var(--cream); border-radius: var(--r-lg); padding: 22px 22px 20px; }
.stat.is-hot { background: var(--dark); color: #fff; }
.stat-value {
  font-family: var(--font-num); font-weight: 800; line-height: 1; letter-spacing: -.01em;
  font-size: clamp(46px, 13vw, 64px); color: var(--blue);
}
.stat.is-hot .stat-value { color: var(--coral-hi); }
.stat-unit { font-family: var(--font-jp); font-weight: 800; font-size: .42em; margin-left: 4px; }
.stat figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--text-2); word-break: auto-phrase; }
.stat.is-hot figcaption { color: #e5dfd9; }
.stat b { font-weight: 800; }
.stat-source { margin: 12px 2px 0; font-size: 12px; }
.stat-source a { color: var(--muted); }
.stat-body { margin: 22px 0 10px; font-size: 16px; line-height: 1.9; max-width: 38em; }

/* ---------- 8. 課題カード ---------- */
.section.pain { padding-top: 24px; }
.pain-grid { display: grid; gap: 16px; }
.pain-card {
  display: flex; align-items: center; gap: 18px;
  border: 2px solid var(--blue); border-radius: var(--r-md); padding: 18px 20px; background: #fff;
}
.pain-icon {
  flex: none; width: 58px; height: 58px; border-radius: 15px; background: var(--blue-tint);
  display: grid; place-items: center;
}
.pain-icon i { font-size: 32px; color: var(--blue); }
.pain-title { color: var(--blue); font-weight: 800; font-size: clamp(19px, 5vw, 24px); margin-bottom: 2px; }
.pain-desc { color: var(--text-2); font-size: 15px; word-break: auto-phrase; }

/* ---------- 9. 流れ ---------- */
.flow { background: var(--cream); padding: var(--sec-y) 0; }
.flow .section-title { margin-bottom: 34px; }
.step { padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-tag { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.step-head { display: flex; align-items: baseline; gap: 16px; }
.step-num {
  flex: none; font-family: var(--font-num); font-weight: 800; color: var(--blue);
  font-size: clamp(20px, 5vw, 26px);
}
.step-title { font-weight: 900; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.4; }
.step-desc { color: #555; font-size: 15px; line-height: 1.85; margin-top: 8px; max-width: 40em; }

/* ---------- 10. レポート ---------- */
.report-grid { display: grid; gap: 28px; align-items: start; }
.count-box {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px;
  border: 2px solid var(--dark); border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 22px;
}
.count-value {
  font-family: var(--font-num); font-weight: 800; line-height: 1; color: var(--red);
  font-size: clamp(32px, 9vw, 50px);
}
.count-unit { font-weight: 800; font-size: 14px; margin-left: 4px; white-space: nowrap; }
.count-label { flex-basis: 100%; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.6; word-break: auto-phrase; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.7; color: var(--text-2); word-break: auto-phrase; }
.check-list b { display: block; color: var(--ink); font-size: 16px; font-weight: 800; }
.check-icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-tint);
  display: grid; place-items: center; margin-top: 2px;
}
.check-icon i { font-size: 20px; color: var(--blue); }
.report-figure {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  max-height: min(520px, 62vh);
}
.report-figure::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56%;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 86%); pointer-events: none;
}
.report-figure img { width: 100%; }
.report-caption {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 1; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
}

/* ---------- 11. 足跡 ---------- */
.trace { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.trace::before {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 30%; opacity: .55;
  background: var(--blue); clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none;
}
.trace-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: var(--sec-y) var(--gutter);
  display: grid; gap: 28px; align-items: center;
}
.trace .section-title { color: #fff; }
.trace-desc { font-size: 15.5px; line-height: 1.9; color: #e5dfd9; margin-bottom: 16px; max-width: 34em; }
.trace-list { display: grid; gap: 10px; }
.trace-list li {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 15px; word-break: auto-phrase;
}
.trace-list i { flex: none; font-size: 22px; color: var(--coral); }

/* ---------- 12. 料金 ---------- */
.plan-grid { display: grid; gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: #fff;
  border: 2px solid var(--line); border-radius: var(--r-xl); padding: 24px 22px;
}
.plan.is-main { border-color: var(--red); box-shadow: 0 14px 34px rgba(203, 31, 3, .14); }
.plan-name { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; }
.plan-kind {
  font-size: 12px; font-weight: 800; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px;
}
.plan-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.plan-value {
  font-family: var(--font-num); font-weight: 800; line-height: 1.1; color: var(--ink);
  font-size: clamp(36px, 9vw, 44px);
}
.plan.is-main .plan-value { font-family: var(--font-jp); font-weight: 900; color: var(--red); }
.plan-yen { font-weight: 800; font-size: 14px; }
.plan-was { margin-top: 4px; font-size: 13px; color: var(--muted); }
.plan-camp {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 13.5px; font-weight: 800; color: var(--red);
}
.plan-left { background: var(--red); color: #fff; border-radius: 6px; padding: 1px 9px; font-size: 12.5px; }
.plan-desc { margin-top: 14px; font-size: 14.5px; line-height: 1.8; color: var(--text-2); }
.plan-points { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--text-2); }
.plan-points li { position: relative; padding-left: 1.5em; word-break: auto-phrase; }
.plan-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 800; }
.plan.is-main .plan-points { margin-bottom: 20px; }
.plan-cta {
  margin-top: auto; display: block; width: 100%; border: 0; cursor: pointer;
  border-radius: 12px; background: var(--red); color: #fff;
  font-weight: 800; font-size: 16px; padding: 15px 18px; transition: filter .15s;
}
.plan-cta:hover { filter: brightness(1.08); }
.plan-link { margin-top: auto; padding-top: 16px; font-weight: 800; font-size: 15px; color: var(--blue); }
.plan-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.plan-note { margin: 18px 2px 0; font-size: 13px; line-height: 1.85; color: var(--muted); }
.plan-note b { color: var(--ink); }

/* ---------- 13. 事件簿 ---------- */
.section.cases { padding-top: 24px; }
.cases .section-title { margin-bottom: 12px; }
.cases-lead { color: var(--text-2); font-size: 15px; line-height: 1.85; max-width: 40em; margin-bottom: 28px; }
.case-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.case-card {
  --accent: var(--blue);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 9px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.case-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); border-color: var(--accent); }
.case-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.case-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.case-file { font-family: var(--font-num); font-weight: 800; font-size: 14px; letter-spacing: .04em; color: var(--accent); white-space: nowrap; }
.case-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; color: var(--muted); white-space: nowrap; }
.case-tag i { font-size: 15px; color: var(--accent); }
.case-title { font-weight: 900; font-size: clamp(18px, 4.6vw, 21px); line-height: 1.5; margin-top: 2px; word-break: auto-phrase; text-wrap: balance; }
.case-desc { font-size: 14px; line-height: 1.85; color: #555; }
.case-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.case-when { font-size: 12.5px; color: var(--muted); }
.case-go { font-weight: 800; font-size: 14px; color: var(--accent); white-space: nowrap; }
.cases-more { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }

/* ---------- 14. FAQ ---------- */
.section.faq { padding-top: 24px; }
.faq .section-title { margin-bottom: 12px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer;
  background: none; border: 0; text-align: left; padding: 18px 2px;
  font-weight: 800; font-size: clamp(17px, 4.6vw, 21px); word-break: auto-phrase;
}
.faq-mark { flex: none; color: var(--red); font-size: 14px; transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.faq-item.is-open .faq-mark { transform: rotate(90deg); }
.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s cubic-bezier(.4, 0, .2, 1); }
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a {
  color: var(--text-2); font-size: 15px; line-height: 1.85; padding: 0 2px 18px 26px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .3s ease .06s, transform .3s ease .06s;
}
.faq-item.is-open .faq-a { opacity: 1; transform: none; }

/* ---------- 15. 最終CTA（規制線テープ） ---------- */
.final { position: relative; background: var(--cream); overflow-x: clip; overflow-y: visible; margin-top: 24px; }
.tape {
  position: relative; z-index: 1; width: calc(100% + 120px); margin: -4px 0 0 -60px; padding: 8px 0;
  background: repeating-linear-gradient(-45deg, var(--black) 0 18px, var(--red) 18px 36px);
  transform: rotate(-1.4deg);
}
.tape span {
  display: block; white-space: nowrap; overflow: hidden; background: var(--black); color: #fff;
  font-family: var(--font-num); font-weight: 800; font-size: 13px; letter-spacing: .24em; padding: 4px 0;
}
.final-inner { max-width: 760px; margin: 0 auto; padding: 44px var(--gutter) 64px; text-align: center; }
.final-badge { width: 84px; height: 84px; margin: 0 auto 14px; object-fit: contain; }
.final .section-title { margin-bottom: 10px; }
.final-desc { font-size: 16px; color: var(--text-2); margin-bottom: 4px; }
.final .domain-form, .final .form-error { margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- 16. 追従ボタン（モバイル） ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(36, 23, 22, .94); backdrop-filter: blur(6px);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-cta.is-on { transform: none; }
.sticky-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 520px; border: 0; cursor: pointer; border-radius: 12px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 16px; padding: 14px 18px;
}
.sticky-btn i { font-size: 19px; }
.sticky-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- 17. フッター ---------- */
.site-footer { background: var(--black); color: #fff; padding: 40px var(--gutter) 24px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-logo { justify-self: start; }
.footer-logo svg { height: 42px; width: auto; display: block; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.footer-head { margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: #fff; font-size: 13.5px; font-weight: 700; opacity: .88; white-space: nowrap; }
.footer-col:last-child { grid-column: 1 / -1; }
.footer-col:last-child ul { grid-template-columns: 1fr 1fr; }
.footer-col a:hover, .footer-col a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.ext-mark { font-family: var(--font-num); margin-left: 3px; font-size: 12px; }
.footer-bottom {
  max-width: var(--wrap); margin: 32px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom small { font-size: 12px; opacity: .6; }
.back-top { color: #fff; font-family: var(--font-num); font-weight: 700; font-size: 13px; letter-spacing: .06em; opacity: .85; white-space: nowrap; }
.back-top:hover { opacity: 1; }

/* ---------- 17b. 申込ページ（apply.html） ---------- */
.apply { background: var(--cream); padding: 40px var(--gutter) 80px; }
.apply-inner { max-width: 640px; margin: 0 auto; }
.apply-lead { font-size: 15.5px; line-height: 1.9; color: var(--text-2); margin: -10px 0 28px; }
.apply-form { background: #fff; border: 2px solid var(--line); border-radius: var(--r-xl); padding: 28px 24px; display: grid; gap: 18px; }
.field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.field .req { display: inline-block; margin-left: 6px; background: var(--red); color: #fff; font-size: 11px; border-radius: 4px; padding: 0 6px; vertical-align: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px;
  font-size: 16px; background: #fff; outline: 0; transition: border-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field .is-invalid { border-color: var(--red); }
.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.apply-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.7; }
.apply-note i { color: var(--blue); font-size: 17px; flex: none; margin-top: 3px; }
.apply-form .form-error { margin-top: 0; }
.apply-form .plan-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.apply-done { background: #fff; border: 2px solid var(--blue); border-radius: var(--r-xl); padding: 36px 24px; text-align: center; }
.apply-done i { font-size: 48px; color: var(--blue); }
.apply-done h2 { font-weight: 900; font-size: 24px; margin: 8px 0 10px; }
.apply-done p { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; }
.apply-done code { background: var(--cream); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* ---------- 17c. 記事・規約ページ（articles/ ・ legal/） ---------- */
.doc { background: #fff; padding: 8px var(--gutter) 72px; }
.doc-inner { max-width: 760px; margin: 0 auto; }
.breadcrumb { max-width: 760px; margin: 0 auto 26px; font-size: 12.5px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc-title {
  font-weight: 900; font-size: clamp(26px, 6.4vw, 38px); line-height: 1.4; letter-spacing: .01em;
}
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.doc-meta .tag {
  font-weight: 800; color: var(--blue); background: var(--blue-tint); border-radius: 6px; padding: 0 8px;
}
.doc-lead {
  margin-top: 22px; padding: 18px 20px; background: var(--cream); border-radius: var(--r-md);
  font-size: 16px; line-height: 1.9; font-weight: 500;
}
.doc-body { margin-top: 30px; font-size: 16px; line-height: 2; color: #333; }
.doc-body > * + * { margin-top: 18px; }
.doc-body h2 {
  margin-top: 44px; padding-left: 14px; border-left: 5px solid var(--blue);
  font-weight: 900; font-size: clamp(20px, 5vw, 25px); line-height: 1.5; color: var(--ink);
}
.doc-body h3 { margin-top: 30px; font-weight: 800; font-size: 18px; line-height: 1.6; color: var(--ink); }
.doc-body ul, .doc-body ol { display: grid; gap: 8px; padding-left: 1.4em; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li::marker { color: var(--blue); font-weight: 800; }
.doc-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc-body b, .doc-body strong { font-weight: 800; color: var(--ink); }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.75; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--cream); font-weight: 800; width: 34%; word-break: auto-phrase; }
.doc-note {
  display: flex; gap: 10px; align-items: flex-start;
  border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  font-size: 14px; line-height: 1.8; color: var(--text-2);
}
.doc-note i { flex: none; font-size: 20px; color: var(--blue); margin-top: 3px; }
.doc-note.is-warn { border-color: var(--red); }
.doc-note.is-warn i { color: var(--red); }
.timeline { list-style: none !important; padding-left: 0 !important; gap: 0 !important; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue);
}
.timeline b { display: block; }
.doc-cta {
  margin-top: 48px; background: var(--dark); color: #fff; border-radius: var(--r-xl);
  padding: 28px 24px; text-align: center;
}
.doc-cta h2 { font-weight: 900; font-size: clamp(20px, 5vw, 24px); line-height: 1.5; }
.doc-cta p { margin: 8px 0 18px; font-size: 14.5px; color: #e5dfd9; }
.doc-cta .plan-cta { display: inline-flex; width: auto; align-items: center; gap: 8px; padding: 14px 26px; }
.doc-related { margin-top: 40px; }
.doc-related h2 { font-weight: 900; font-size: 18px; margin-bottom: 12px; }
.doc-related ul { display: grid; gap: 10px; }
.doc-related a {
  display: block; border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  font-weight: 800; font-size: 15px; line-height: 1.6; transition: border-color .15s;
}
.doc-related a:hover { border-color: var(--blue); color: var(--blue); }
.doc-related small { display: block; font-weight: 700; font-size: 12px; color: var(--muted); }
.article-group { margin-top: 36px; }
.article-group > h2 { font-weight: 900; font-size: clamp(20px, 5vw, 24px); margin-bottom: 14px; }
.article-group .case-grid { margin-top: 0; }

/* ---------- 18. モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-mark, .faq-a-wrap, .faq-a, .sticky-cta, .case-card, .doc-related a { transition: none; }
  .case-card:hover { transform: none; }
}

/* ---------- 19. レスポンシブ ---------- */
@media (min-width: 760px) {
  .domain-form { flex-direction: row; }
  .btn-cta { padding: 0 22px; }
  .hero-inner { padding: 52px var(--gutter) 64px; min-height: 540px; }
  .hero-lead { font-size: 21px; max-width: 18em; }
  .hero-chips { max-width: 31em; }
  .hero-robot { height: 78%; right: 4%; }
  .hero-mark { font-size: 205px; right: 11%; top: 14px; }
  .trace::before { width: 42%; opacity: .9; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .trace-inner { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-inner .case-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-related ul { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: none; }
  .footer-nav { grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 56px; }
  .footer-col:last-child { grid-column: auto; }
  .footer-col:last-child ul { grid-template-columns: 1fr; }
}
@media (min-width: 980px) {
  .hero-inner { padding: 60px var(--gutter) 72px; min-height: 580px; }
  .hero-robot { height: 84%; right: 4%; }
  .hero-mark { font-size: 225px; right: 12%; }
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .pain-card { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 170px; }
  .report-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: start; gap: 40px; }
  .footer-nav { justify-content: end; }
  .footer-logo svg { height: 50px; }
}

/* 申込フォームのボット対策項目（人には見せない） */
.hp-field { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
