:root {
  --accent: #1d4ed8;
  --accent-soft: #e8f0ff;
  --ink: #16181d;
  --muted: #5b6270;
  --line: #e3e6ec;
  --bg: #ffffff;
  --tint: #f6f7f9;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

h1, h2, h3, p { margin: 0; }
/* 見出しは単語の途中ではなく、文節の切れ目で折り返す */
h1, h2, h3 { word-break: auto-phrase; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ヘッダー */
.top { border-bottom: 1px solid var(--line); }
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand { font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--accent); }
.badge {
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 12px;
}

/* ヒーロー */
.hero {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--accent-soft), var(--bg) 85%);
}
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(28px, 5.2vw, 46px);
  line-height: 1.35; font-weight: 800; letter-spacing: .01em;
  max-width: 20em; text-wrap: balance;
}
.lead { margin-top: 20px; color: var(--muted); font-size: 17px; max-width: 40em; }

/* 登録フォーム */
.signup { margin-top: 32px; max-width: 560px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"], .signup select {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #c9ced8; border-radius: 10px; padding: 13px 14px;
}
.signup input[type="email"] { flex: 1 1 240px; min-width: 0; }
.signup input:focus-visible, .signup select:focus-visible, .signup button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px;
}
.signup button {
  font: inherit; font-weight: 700; color: #fff; background: var(--accent);
  border: 0; border-radius: 10px; padding: 13px 22px; cursor: pointer;
  flex: 0 0 auto; transition: filter .15s;
}
.signup button:hover { filter: brightness(1.1); }
.signup button[disabled] { opacity: .6; cursor: default; }
.segment { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.segment select { width: 100%; max-width: 320px; }
.hp { position: absolute; left: -9999px; }
.signup-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.signup-status { margin-top: 10px; font-size: 14px; font-weight: 700; min-height: 1.8em; }
.signup-status.error { color: #b42318; }
.signup-done {
  margin-top: 32px; max-width: 560px; padding: 20px 22px;
  border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-soft);
}
.signup-done strong { display: block; font-size: 18px; color: var(--accent); }

/* セクション */
.block { padding: 72px 0; }
.block.tint { background: var(--tint); }
.block h2 { font-size: clamp(22px, 3.6vw, 30px); line-height: 1.45; font-weight: 800; margin-bottom: 32px; }

.cards, .steps, .list { list-style: none; margin: 0; padding: 0; }
.cards, .steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cards li, .steps li {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.cards h3, .steps h3 { font-size: 17px; line-height: 1.55; margin-bottom: 8px; }
.cards p, .steps p { color: var(--muted); font-size: 15px; }

/* ヒーローの2カラム */
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-text { min-width: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
}

/* できること：説明と画面イメージを左右に並べる */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.feature { display: grid; gap: 24px; align-items: center; }
.feature-text h3 { font-size: 21px; line-height: 1.5; margin-bottom: 10px; }
.feature-text p { color: var(--muted); }
.num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
}
@media (min-width: 800px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .feature:nth-child(even) .feature-text { order: 2; }
}
.shot { margin: 0; min-width: 0; }
.shot figcaption, .shot-note { color: var(--muted); font-size: 12px; text-align: center; margin-top: 12px; }
.shot-note { margin-top: 40px; }

/* 画面イメージ（HTML と CSS で描いた見本の画面） */
.mock {
  background: #fff; border: 1px solid #d6dae2; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 40px -18px rgb(20 30 60 / .35), 0 2px 6px rgb(20 30 60 / .06);
  font-size: 13px; line-height: 1.6; color: var(--ink); max-width: 460px; margin: 0 auto;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f3f6; border-bottom: 1px solid #e1e4ea; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cdd2db; }
.mock-bar span { margin-left: 8px; font-weight: 700; font-size: 12px; color: #4a5160; }
.mock-body { padding: 16px; display: grid; gap: 10px; }

.mock.phone { max-width: 290px; border-radius: 34px; border: 8px solid #1c1f26; }
.mock-notch { width: 90px; height: 18px; margin: 0 auto; background: #1c1f26; border-radius: 0 0 12px 12px; }
.mock-head { text-align: center; font-weight: 800; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }

.m-label { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.m-title { font-weight: 800; font-size: 15px; }
.m-field { border: 1px solid #d6dae2; border-radius: 8px; padding: 8px 10px; background: #fafbfc; }
.m-field.tall { min-height: 58px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips span { border: 1px solid #d6dae2; border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted); }
.m-chips .on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.m-check { display: flex; align-items: center; gap: 8px; }
.m-check b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 12px; }
.m-btn { text-align: center; background: var(--accent); color: #fff; font-weight: 700; border-radius: 8px; padding: 10px; }
.m-btn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }

.m-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.m-item.slim { padding: 8px 12px; }
.m-item div { display: grid; min-width: 0; }
.m-item span { color: var(--muted); font-size: 12px; }
.tag { flex: none; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #eef0f4; color: #4a5160; }
.tag.new { background: #fde8e6; color: #b42318; }
.tag.done { background: #e3f4ea; color: #17643a; }

.m-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--accent-soft); display: grid; gap: 12px; }
.m-timeline li { position: relative; }
.m-timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.m-timeline b { display: block; font-size: 11px; color: var(--muted); }

.m-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-kpis.three { grid-template-columns: repeat(3, 1fr); }
.m-kpis > div { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; display: grid; }
.m-kpis span { font-size: 11px; color: var(--muted); font-weight: 700; }
.m-kpis b { font-size: 26px; line-height: 1.3; color: var(--accent); }
.m-kpis small { font-size: 13px; margin-left: 2px; }
.m-kpis .up { color: #17643a; }

.m-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.m-table th, .m-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.m-table th { font-size: 10px; color: var(--muted); }
.m-table th:first-child, .m-table td:first-child { text-align: left; }
.m-table .o { color: var(--accent); font-weight: 800; }
.m-table .x { color: #b3b9c4; }

.m-pair { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.m-pair span { color: var(--muted); flex: none; }
.m-pair b { text-align: right; }

.m-bubble { border-radius: 12px; padding: 10px 12px; }
.m-bubble.q { background: var(--accent); color: #fff; margin-left: 40px; }
.m-bubble.a { background: #f1f3f6; margin-right: 20px; }
.m-bubble ol { margin: 6px 0 0; padding-left: 18px; }
.m-bubble mark { background: #ffe58a; font-weight: 700; padding: 0 2px; }
.m-note { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 8px 10px; background: #eef0f4; color: #4a5160; }
.m-note.ok { background: #e3f4ea; color: #17643a; }
.m-note.ng { background: #fde8e6; color: #b42318; }

.m-bar { display: grid; grid-template-columns: 6.5em 1fr 3em; align-items: center; gap: 8px; font-size: 12px; }
.m-bar div { height: 10px; background: #eef0f4; border-radius: 999px; overflow: hidden; }
.m-bar b { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.m-bar em { font-style: normal; font-weight: 700; text-align: right; }

.m-drop { border: 2px dashed #c3c9d4; border-radius: 10px; padding: 16px; text-align: center; color: var(--muted); background: #fafbfc; }
.m-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-file b { min-width: 0; }

.m-meter { display: grid; gap: 4px; }
.m-meter-head { display: flex; justify-content: space-between; gap: 10px; }
.m-meter-head span { color: var(--muted); flex: none; }
.m-meter-track { position: relative; height: 10px; background: #eef0f4; border-radius: 999px; }
.m-meter-track i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.m-meter-track u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.m-meter em { font-style: normal; font-size: 12px; color: var(--muted); }
.m-meter.warn i { background: #d92d20; }
.m-meter.warn em { color: #b42318; font-weight: 700; }

.m-mail { display: grid; gap: 10px; }
.m-mail-sub { font-weight: 800; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }

.m-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-checks li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.m-checks li::before { grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; margin-top: 2px; }
.m-checks .ok::before { content: "✓"; background: #1f9254; }
.m-checks .ng::before { content: "!"; background: #d92d20; }
.m-checks .ng { border-color: #f3b5ae; background: #fff8f7; }
.m-checks span { font-size: 12px; color: var(--muted); }
.m-checks .ng span { color: #b42318; }

/* 掲示ポスターの見本 */
.mock.paper { max-width: 320px; padding: 24px 22px; border-radius: 6px; display: grid; gap: 12px; }
.paper-title { text-align: center; font-weight: 800; font-size: 16px; line-height: 1.5; border-bottom: 3px solid var(--accent); padding-bottom: 10px; }
.paper-shop { text-align: center; font-weight: 700; color: var(--muted); }
.mock.paper ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.paper-foot { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); border-radius: 8px; padding: 10px; }
.paper-foot span { display: grid; font-size: 12px; }
.qr {
  flex: none; width: 56px; height: 56px; border: 4px solid #fff; background-color: #fff;
  background-image:
    linear-gradient(90deg, #16181d 50%, transparent 0),
    linear-gradient(#16181d 50%, transparent 0),
    linear-gradient(90deg, transparent 50%, #16181d 0);
  background-size: 8px 8px, 12px 12px, 20px 20px;
  background-blend-mode: multiply;
}

/* 料金 */
.price { border: 2px solid var(--accent); border-radius: 16px; padding: 28px; }
.price-main { display: flex; align-items: baseline; gap: 6px; color: var(--accent); }
.price-main strong { font-size: 52px; line-height: 1.1; font-weight: 800; }
.price-main span { font-size: 18px; font-weight: 700; }
.price-note { margin-top: 8px; color: var(--muted); font-size: 15px; }
.price-list { list-style: none; margin: 18px 0 10px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.price-list li { position: relative; padding-left: 28px; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 4px; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 800; line-height: 1;
}

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 15px; }

.cta .lead { margin-top: 0; }

/* フッター */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.foot p + p { margin-top: 6px; }

/* 一覧ページ */
.list-title { font-size: 28px; font-weight: 800; }
.list { margin-top: 28px; display: grid; gap: 12px; }
.list a {
  display: grid; gap: 2px; padding: 18px 20px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
}
.list a:hover { border-color: var(--accent); }
.list span { color: var(--muted); font-size: 14px; }

@media (max-width: 560px) {
  .hero { padding: 44px 0 52px; }
  .block { padding: 52px 0; }
  .signup button { flex: 1 1 100%; }
}
