:root {
  --ink: #1e2622;
  --ink-soft: #4f5a54;
  --line: #dce3df;
  --green: #217346;
  --green-deep: #175734;
  --green-pale: #e6f4eb;
  --indigo: #26499d;
  --match: #33415c;
  --sum: #386f5f;
  --split: #a86a1b;
  --dup: #a2402b;
  --merge: #7a4b6e;
  --display: 'Shippori Mincho', 'Yu Mincho', serif;
  --body: 'Zen Kaku Gothic New', 'Yu Gothic', 'Meiryo', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.85;
  background: #edf4f0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); }
b { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

/* ヘッダー */
.top-wrap { background: #fff; }
.top { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.brand img { border-radius: 10px; }
.pill { text-decoration: none; color: var(--green-deep); border: 1.5px solid var(--green); border-radius: 999px; padding: 6px 18px; font-size: 15px; font-weight: 700; }
.pill:hover { background: var(--green-pale); }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0 0; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.5; letter-spacing: 0.02em; }

/* ヒーロー：画面の端から端まで */
.hero { padding: 0; }
.hero-band { background: #f7fcfa; border-bottom: 1px solid #d5e6dc; }
.hero-img {
  width: 100%; max-width: 1120px; margin: 0 auto; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.hero .hero-cta { position: relative; z-index: 2; margin-top: -44px; padding: 0 24px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; }
.cta p { font-size: 15px; color: var(--ink-soft); }
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 20px;
  padding: 16px 40px; border-radius: 12px; border: 2px solid var(--green-deep);
  box-shadow: 4px 4px 0 rgba(23, 87, 52, 0.28);
}
a.btn:hover { background: var(--green-deep); }
.btn small { font-size: 13px; font-weight: 500; opacity: 0.9; }
.btn.is-pending { background: #6f9a80; border-color: #5f8a70; box-shadow: none; }

/* お困りごと */
.worry-stage { display: flex; align-items: flex-start; justify-content: center; gap: 40px; margin-top: 32px; }
.worry-img { flex: none; width: 200px; height: auto; }
.bubbles { list-style: none; display: grid; gap: 20px; justify-items: start; }
.bubbles li {
  position: relative; background: #fff; border: 2px solid #1a1a1a; border-radius: 18px;
  padding: 10px 20px; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.10);
  font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.6; width: fit-content; max-width: 100%; text-wrap: balance;
}
.bubbles li::before, .bubbles li::after { content: ''; position: absolute; top: 50%; }
.bubbles li::before { right: -22px; margin-top: -11px; border: 11px solid transparent; border-left: 22px solid #1a1a1a; border-right: 0; }
.bubbles li::after { right: -17px; margin-top: -8px; border: 8px solid transparent; border-left: 17px solid #fff; border-right: 0; }
.worry-a { margin-top: 32px; font-size: 20px; }
.worry-a b { color: var(--indigo); background: linear-gradient(transparent 62%, #dfe8fb 62%); }

/* 進め方 */
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; align-items: start; }
.flow figure { display: grid; gap: 14px; }
.frame { border: 1.5px solid #1a1a1a; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.10); }
figcaption { display: flex; gap: 10px; align-items: baseline; font-weight: 700; font-size: 17px; line-height: 1.6; }
figcaption span {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transform: translateY(-1px);
}
.done-card { border: 2px solid var(--green-deep); border-radius: 8px; background: var(--green-pale); box-shadow: 6px 6px 0 rgba(23, 87, 52, 0.28); overflow: hidden; aspect-ratio: 1600 / 950; display: grid; align-content: start; }
.done-card b { background: var(--green); color: #fff; padding: 12px 16px; font-size: 16px; }
.done-card i { display: block; height: 36px; border-bottom: 1px solid #c8e1d0; }
.done-card i:nth-of-type(1)::before, .done-card i:nth-of-type(2)::before, .done-card i:nth-of-type(3)::before { content: '●●●●　▲▲▲▲'; color: #6f9a80; letter-spacing: 0.1em; line-height: 36px; padding-left: 16px; font-style: normal; font-size: 15px; }

/* できること */
.lead-in { margin-top: 8px; color: var(--ink-soft); }
.features dl { margin-top: 28px; display: grid; gap: 0; }
.feat { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; padding: 20px 0 20px 20px; border-bottom: 1px solid var(--line); border-left: 6px solid var(--c); }
.feat-match { --c: var(--match); } .feat-sum { --c: var(--sum); } .feat-split { --c: var(--split); }
.feat-dup { --c: var(--dup); } .feat-merge { --c: var(--merge); }
.feat dt { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--c); }
.feat dd { font-size: 17px; }

/* 安心 */
.safe ul { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.safe li { background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 8px; padding: 18px 22px; font-size: 17px; }
.safe li b { display: block; font-size: 19px; }

/* 入手 */
.get { text-align: center; padding-bottom: 24px; }
.get p { margin-top: 12px; }
.get .cta { margin-top: 24px; }

/* フッター */
.foot { max-width: 1120px; margin: 72px auto 0; padding: 32px 24px 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 15px; color: var(--ink-soft); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot .pending { color: var(--ink-soft); }

/* 規約ページ */
.doc { max-width: 760px; padding-top: 24px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 38px); }
.doc-intro { margin-top: 20px; }
.doc section { padding-top: 36px; }
.doc h2 { font-size: 20px; }
.doc p { margin-top: 10px; }

@media (max-width: 860px) {
  .flow-grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; gap: 4px; }
  section { padding-top: 56px; }
  .worry-stage { gap: 24px; }
  .bubbles li { padding: 8px 14px; }
}
@media (max-width: 520px) {
  .btn { font-size: 17px; padding: 14px 24px; }
}
