/* トップページ (訴求)。site.css の上に重ねる。見た目の正は docs/デザイン方針.md (v0.2「店の記録簿」)。
   - 色は墨と紙。朱は受付印だけ、標識黄は録音中の「印」の画面の中だけ。緑・グラデーション・丸いピル・絵文字は使わない
   - 面 (白地 + 枠 #7A7A73 + 角 4px) を紙の地に並べる。影は付けない
   - スマホで読まれる前提 (社労士から LINE で届く)。1 画面 1 つのことだけ言う */
:root { --wide: 68rem; --shu: #C73A1D; --yellow: #F2C200; --orange: #FFB000; }
.lp .wrap { max-width: var(--wide); }
.lp main { padding-bottom: 24px; }
.lp section { padding: 56px 0 8px; }
.lp section + section { border-top: 1.5px solid var(--sumi); margin-top: 48px; }
.lp h2 { font-size: 26px; line-height: 1.45; margin: 0 0 14px; padding: 0; border: 0; }
.lp h3 { font-size: 19px; line-height: 1.5; }
.lp .lead { font-size: 17px; line-height: 1.9; max-width: 40em; }
.lp .src { font-size: 13px; color: var(--usuzumi); }
.lp .src a { color: var(--usuzumi); }
.lp .num { font-variant-numeric: tabular-nums; }

/* ---------- ヘッダー ---------- */
.lp header.site { position: sticky; top: 0; z-index: 20; }
.lp header.site nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.lp header.site nav a { margin: 0; }
.lp header.site nav .btn { min-height: 40px; padding: 7px 14px; font-size: 15px; border-bottom-width: 3px; }
@media (max-width: 719px) { .lp header.site nav .hide-sp { display: none; } }

/* ---------- ファーストビュー ---------- */
.hero { padding: 28px 0 8px; }
.hero-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; } }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; border-top: 1.5px solid var(--sumi);
  border-bottom: 1.5px solid var(--sumi); padding: 3px 0; margin: 0 0 16px; }
.hero h1 { font-size: 34px; line-height: 1.38; margin: 0 0 16px; letter-spacing: .01em; }
@media (min-width: 900px) { .hero h1 { font-size: 44px; } }
.hero .lead { margin: 0 0 20px; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--edge); background: var(--sheet);
  border-radius: 4px; margin: 0 0 18px; }
.terms div { padding: 10px 10px 9px; border-left: 1px solid var(--rule); }
.terms div:first-child { border-left: 0; }
.terms b { display: block; font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.terms span { font-size: 13px; color: var(--usuzumi); line-height: 1.5; display: block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.cta-row .btn { font-size: 18px; min-height: 58px; padding: 15px 28px; }
.hero .note { margin-top: 10px; }

/* 電話の枠 (実際のアプリの画面を入れる) */
.phones { position: relative; display: flex; justify-content: center; gap: 0; min-height: 420px; }
.phone { width: 214px; aspect-ratio: 780 / 1480; border: 9px solid var(--sumi); border-radius: 30px; overflow: hidden;
  background: var(--sumi); flex: none; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phones .phone:first-child { transform: translateY(26px); margin-right: -26px; position: relative; z-index: 1; }
.phones .phone:last-child { position: relative; z-index: 2; }
@media (min-width: 900px) { .phone { width: 238px; } }
.stamp { position: absolute; right: 4%; bottom: -8px; z-index: 3; width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--shu); color: var(--shu); background: rgba(255,255,255,.9); display: grid; place-content: center;
  text-align: center; transform: rotate(-9deg); font-weight: 700; line-height: 1.25; }
.stamp::before { content: ""; position: absolute; inset: 5px; border: 1.5px solid var(--shu); border-radius: 50%; }
.stamp b { font-size: 20px; letter-spacing: .2em; margin-right: -.2em; }
.stamp span { font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- 「うちも対象?」 ---------- */
.facts { display: grid; gap: 0; background: var(--sheet); border: 1px solid var(--edge); border-radius: 4px; }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 16px; padding: 16px; border-top: 1px solid var(--rule); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-weight: 700; color: var(--usuzumi); }
.facts dd { margin: 0; }
.facts dd strong { font-size: 19px; }
@media (max-width: 559px) { .facts > div { grid-template-columns: 1fr; } }

/* ---------- 足りないもの ---------- */
.gap-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .gap-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; } }
.scenes { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--edge); border-radius: 4px; }
.scenes li { padding: 16px 16px 16px 52px; border-top: 1px solid var(--rule); position: relative; }
.scenes li:first-child { border-top: 0; }
.scenes li::before { content: "□"; position: absolute; left: 16px; top: 14px; font-size: 22px; line-height: 1.3; }
.scenes b { display: block; font-size: 17px; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.photo figcaption { font-size: 13px; color: var(--usuzumi); margin-top: 6px; }
.position { display: grid; grid-template-columns: 1fr 1.25fr 1fr; margin-top: 18px; border: 1px solid var(--edge);
  border-radius: 4px; background: var(--sheet); text-align: center; font-size: 14px; }
.position div { padding: 12px 8px; border-left: 1px solid var(--rule); }
.position div:first-child { border-left: 0; }
.position .me { outline: 2px solid var(--sumi); outline-offset: -2px; font-weight: 700; }
.position b { display: block; font-size: 16px; }

/* ---------- 流れ (帳面の行番号で) ---------- */
.steps-lp { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; }
.steps-lp > li { display: grid; gap: 18px; padding: 28px 0; border-top: 1px solid var(--edge); counter-increment: s; }
.steps-lp > li:first-child { border-top: 0; padding-top: 12px; }
@media (min-width: 760px) {
  .steps-lp > li { grid-template-columns: 1fr 250px; gap: 40px; align-items: center; }
  .steps-lp > li.wide-visual { grid-template-columns: 1fr 1.1fr; }
}
.steps-lp h3 { margin: 0 0 8px; font-size: 21px; }
.steps-lp h3::before { content: counter(s); display: inline-grid; place-content: center; width: 34px; height: 34px;
  border: 2px solid var(--sumi); border-radius: 50%; font-size: 17px; margin-right: 10px; vertical-align: 2px; }
.steps-lp .who { font-size: 14px; font-weight: 700; color: var(--usuzumi); margin: 0 0 4px; }
.steps-lp p { margin: 6px 0; }
.shot { width: 100%; max-width: 250px; aspect-ratio: 780 / 1100; border: 1px solid var(--edge); border-radius: 4px;
  overflow: hidden; background: var(--sheet); justify-self: center; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.dark { border-color: var(--sumi); }
.doc { border: 1px solid var(--edge); background: #fff; border-radius: 2px; overflow: hidden; }
.doc img { display: block; width: 100%; height: auto; }

/* ---------- 3 つ並び (面) ---------- */
.cols3 { display: grid; gap: 12px; }
@media (min-width: 760px) { .cols3 { grid-template-columns: repeat(3, 1fr); } }
.cols3 .panel { margin: 0; }
.cols3 h3 { margin: 0 0 6px; }

/* ---------- 法定の措置の対照表 ---------- */
.ledger { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: 15px; }
.ledger th, .ledger td { border: 1px solid var(--edge); padding: 12px; text-align: left; vertical-align: top; }
.ledger thead th { background: var(--paper); font-size: 14px; }
.ledger tbody th { width: 24%; }
.ledger td.owner { color: var(--usuzumi); }
@media (max-width: 719px) {
  .ledger thead { display: none; }
  .ledger tr { display: block; border: 1px solid var(--edge); margin-bottom: 12px; background: var(--sheet); }
  .ledger th, .ledger td { display: block; border: 0; border-top: 1px solid var(--rule); }
  .ledger tbody th { width: auto; border-top: 0; font-size: 17px; }
  .ledger td::before { content: attr(data-h); display: block; font-size: 13px; font-weight: 700; color: var(--usuzumi); }
}

/* ---------- 記録の信頼 ---------- */
.proof-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .proof-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.hashline { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; word-break: break-all;
  background: var(--sheet); border: 1px solid var(--edge); padding: 10px 12px; border-radius: 2px; }
.checks { list-style: none; padding: 0; margin: 12px 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--rule); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: "✓"; position: absolute; left: 4px; top: 7px; font-weight: 700; color: var(--blue); }

/* ---------- 料金 ---------- */
.compare { display: grid; gap: 12px; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1.2fr 1fr; align-items: stretch; } }
.compare .panel { margin: 0; }
.compare .me { border: 2.5px solid var(--sumi); }
.compare .price { font-size: 38px; }
.compare .dim { color: var(--usuzumi); }
.compare ul { padding-left: 1.2em; margin: 8px 0 14px; }
.compare li { margin: 4px 0; }

/* ---------- 社労士 ---------- */
.adv-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .adv-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; } }

/* ---------- よくある質問 ---------- */
.faq { background: var(--sheet); border: 1px solid var(--edge); border-radius: 4px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; font-weight: 700; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 16px; top: 15px; font-size: 20px; }
.faq details[open] summary::after { content: "－"; }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.faq .a { padding: 0 16px 16px; }
.faq .a p:first-child { margin-top: 0; }

/* ---------- 最後の呼びかけ ---------- */
.final { background: var(--sumi); color: #fff; border-radius: 4px; padding: 32px 20px; margin-top: 8px; }
.final h2 { color: #fff; }
.final .btn { background: #fff; color: var(--sumi); border-bottom-color: var(--edge); }
.final .note, .final a { color: #E6E6E0; }

/* ---------- スマホの下に出る申し込みの帯 (ファーストビューを過ぎたら) ---------- */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--sheet); border-top: 1.5px solid var(--sumi);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .2s ease; }
.stickybar.show { transform: none; }
.stickybar .t { flex: 1; font-size: 13px; line-height: 1.45; }
.stickybar .t b { font-size: 15px; }
.stickybar .btn { min-height: 48px; padding: 11px 16px; font-size: 16px; }
@media (min-width: 900px) { .stickybar { display: none; } }
@media (prefers-reduced-motion: reduce) { .stickybar { transition: none; } }

/* ---------- 狭い画面で横にはみ出さない ---------- */
.hero-grid, .gap-grid, .proof-grid, .adv-grid, .cols3, .compare, .steps-lp > li { grid-template-columns: minmax(0, 1fr); }
.hero-grid > *, .gap-grid > *, .proof-grid > *, .adv-grid > *, .steps-lp > li > * { min-width: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .gap-grid, .proof-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .adv-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (min-width: 760px) {
  .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .steps-lp > li { grid-template-columns: minmax(0, 1fr) 250px; }
  .steps-lp > li.wide-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
@media (max-width: 559px) {
  .phones { min-height: 0; padding-bottom: 20px; }
  .phone { width: 44vw; border-width: 7px; border-radius: 24px; }
  .phones .phone:first-child { margin-right: -5vw; transform: translateY(18px); }
  .stamp { width: 86px; height: 86px; right: 0; }
  .stamp b { font-size: 17px; }
  .stamp span { font-size: 12px; }
  .hero h1 { font-size: 30px; }
  .terms b { font-size: 17px; }
  .terms div { padding: 9px 8px; }
  .position { font-size: 13px; }
  .position b { font-size: 15px; }
}

/* 見出しは文節の切れ目でだけ折り返す */
.nb { display: inline-block; }
@media (max-width: 559px) {
  .lp section { padding-top: 36px; }
  .lp section + section { margin-top: 28px; }
  .lp h2 { font-size: 23px; }
  .lp .lead { font-size: 16px; }
}
@media (max-width: 899px) { body.lp { padding-bottom: 76px; } }

.lp section, .lp h2 { scroll-margin-top: 76px; }

.stamp { width: 112px; height: 112px; }
.stamp span { font-size: 12px; letter-spacing: -.02em; }
@media (max-width: 559px) { .stamp { width: 92px; height: 92px; } .stamp span { font-size: 11px; } }

.lp header.site .brand { white-space: nowrap; }
@media (max-width: 559px) { .lp header.site nav { gap: 2px 12px; font-size: 14px; } .lp header.site nav a { font-size: 14px; } }

/* ---------- 対策する理由 (数字と悪循環) ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0 24px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-card { background: var(--sheet); border: 1px solid var(--edge); border-radius: 4px; padding: 14px 14px 12px; display: flex; flex-direction: column; }
.stat-card b { font-size: 40px; line-height: 1.1; letter-spacing: -.01em; }
.stat-card b small { font-size: 20px; margin-left: 2px; }
.stat-card p { margin: 8px 0 10px; font-size: 15px; line-height: 1.6; flex: 1; }
.stat-card .src { font-size: 12px; line-height: 1.5; }
@media (max-width: 559px) { .stat-card b { font-size: 32px; } .stat-card p { font-size: 14px; } }
.cycle-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cycle { background: var(--sheet); border: 1px solid var(--edge); border-radius: 4px; padding: 16px; }
.cycle.bad { border-top: 5px solid var(--red); }
.cycle.good { border-top: 5px solid var(--blue); }
.cycle h3 { margin: 0 0 8px; }
.cycle ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.cycle li { counter-increment: c; position: relative; padding: 10px 0 10px 40px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.6; }
.cycle li:first-child { border-top: 0; }
.cycle li::before { content: counter(c); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-content: center; font-weight: 700; font-size: 14px; color: #fff; }
.cycle.bad li::before { background: var(--red); }
.cycle.good li::before { background: var(--blue); }
.cycle li b { display: block; font-size: 16px; }
.cycle .loop { margin: 6px 0 0; font-weight: 700; color: var(--red); }

.lp header.site .brand .brandsub, header.site .brand .brandsub { display: block; font-weight: 400; font-size: 12.5px; color: var(--usuzumi); line-height: 1.3; margin-top: 1px; }
@media (max-width: 559px) { header.site .brand .brandsub { display: none; } }

/* ---------- 図 (SVG。線は墨、色は意味のあるところだけ) ---------- */
.lp svg { fill: none; stroke: var(--sumi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp svg text { stroke: none; fill: var(--sumi); font-family: inherit; font-size: 15px; font-weight: 700; text-anchor: middle; }
.lp svg text.s { font-size: 12.5px; font-weight: 400; fill: var(--usuzumi); }
.lp svg .fill-shu { fill: var(--shu); stroke: none; }
.lp svg .fill-yellow { fill: #F2C200; }
.lp svg .fill-red { fill: var(--red); stroke: none; }
.lp svg .fill-sumi { fill: var(--sumi); stroke: none; }
.lp svg .shu { stroke: var(--shu); }

/* 流れの帯 */
.flowstrip { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  margin: 4px 0 8px; padding: 14px 8px; background: var(--sheet); border: 1px solid var(--edge); border-radius: 4px; }
.flowstrip li { position: relative; text-align: center; padding: 0 4px; }
.flowstrip li + li::before { content: ""; position: absolute; left: -7px; top: 22px; width: 8px; height: 8px;
  border-top: 2px solid var(--edge); border-right: 2px solid var(--edge); transform: rotate(45deg); }
.flowstrip svg { width: 42px; height: 42px; }
.flowstrip b { display: block; font-size: 14.5px; margin-top: 2px; }
.flowstrip span { display: block; font-size: 12px; color: var(--usuzumi); }
@media (max-width: 559px) {
  .flowstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 4px; }
  .flowstrip li + li::before { display: none; }
  .flowstrip li:last-child { grid-column: span 2; }
}

/* 悪循環の図 */
.loopfig { width: 100%; max-width: 360px; height: auto; display: block; margin: 4px auto 2px; }
.loopfig .arc path { stroke: var(--red); stroke-width: 2; }
.loopfig .node rect { fill: var(--sheet); stroke: var(--sumi); stroke-width: 1.5; }
.cycle .loop { color: var(--red); margin-top: 8px; }

/* 法定 4 項目 */
.duty { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .duty { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.duty .panel { margin: 0; }
.duty svg { width: 40px; height: 40px; }
.duty h3 { margin: 6px 0 8px; }
.duty p { margin: 6px 0; font-size: 15px; line-height: 1.65; }
.duty p b { display: inline-block; min-width: 4.2em; font-size: 13px; color: var(--usuzumi); }
.duty p.owner { color: var(--usuzumi); }

/* ハッシュの鎖 */
.chain { width: 100%; height: auto; margin: 10px 0 4px; }
.chain .node rect { fill: var(--sheet); stroke: var(--sumi); stroke-width: 1.5; }
.chain .arc path { stroke: var(--sumi); }

/* 「止まる」側の図 */
.loopfig.stop .faded { stroke: var(--rule); stroke-width: 2; stroke-dasharray: 6 7; }
.loopfig.stop .live { stroke: var(--blue); stroke-width: 2.5; }
.loopfig.stop .cut { stroke: var(--red); stroke-width: 3; }
.loopfig.stop .bar rect { fill: var(--blue); stroke: var(--blue); }
.loopfig.stop .node.out rect { fill: var(--sheet); stroke: var(--blue); stroke-width: 1.5; }
.loopfig.stop text.w { fill: #fff; }
.loopfig.stop text.cutlabel { fill: var(--red); font-weight: 700; }
.cycle .loop.ok { color: var(--blue); }
/* 見出しは文節で折る。ぶら下がりを防ぐ */
.lp h2 .nb + .nb { margin-left: .1em; }

/* 日本語を文節の切れ目で折り返す (Chrome / Edge)。対応していないブラウザは今までどおり */
.lp h1, .lp h2, .lp h3, .lp p, .lp li, .lp dd, .lp summary, .lp .terms span, .lp .stat-card p,
.lp .duty p, .lp .scenes b, .lp .cycle li { word-break: auto-phrase; line-break: strict; }
