/* site.css — LP・規約ページ共通。色・余白・禁止事項は brand_bonzee.md（bonzee.css 由来） */
:root {
  --brand: #1A936F; --dark: #12684E; --tint: #E9F7F2; --ink: #1C1F1E; --muted: #5A625E;
  --rule: #D7DDDA; --paper: #FFFFFF; --alt: #F6F8F7; --warn: #B45309; --err: #B42318;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --radius: 4px; --measure: 42em;
  --font: "Meiryo", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--paper); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 var(--s2); font-weight: 700; }
h1 { font-size: 40px; letter-spacing: .01em; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p, li { margin: 0 0 var(--s2); }
.measure { max-width: var(--measure); }
small, .note { font-size: 14px; color: var(--muted); }
a { color: var(--dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--s3); }
.section { padding: var(--s5) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.alt { background: var(--alt); }
.topbar { height: 6px; background: var(--brand); }
.kicker { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .08em; margin: 0 0 var(--s1); }

/* ヘッダ */
.header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header .in { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s3); max-width: 1080px; margin: 0 auto; }
.header img { height: 30px; width: auto; display: block; }
.header .name { font-weight: 700; font-size: 17px; white-space: nowrap; }
.header nav { margin-left: auto; display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.header nav a { text-decoration: none; font-size: 15px; font-weight: 700; color: var(--ink); }
.header nav a:hover { color: var(--brand); }

/* ボタン */
.btn { display: inline-block; font: inherit; font-weight: 700; cursor: pointer; padding: 12px 24px; border-radius: var(--radius);
       border: 1px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; line-height: 1.4; }
.btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--dark); }
.btn--ghost:hover { background: var(--tint); color: var(--dark); }
.btn--big { font-size: 18px; padding: 14px 32px; }
.btn--sm { font-size: 14px; padding: 8px 16px; }

/* ヒーロー */
.hero { padding: var(--s5) 0; background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%); }
.hero .in { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s4); align-items: center; }
.hero h1 { font-size: 44px; margin-bottom: var(--s2); }
.hero .lead { font-size: 18px; max-width: 30em; }
.tags { display: flex; gap: var(--s1); flex-wrap: wrap; margin: 0 0 var(--s3); padding: 0; list-style: none; }
.tags li { margin: 0; font-size: 15px; font-weight: 700; color: var(--dark); background: var(--paper); border: 1px solid var(--brand); padding: 4px 12px; border-radius: var(--radius); }
.cta { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.cta .note { margin: 0; }
.heroSheetWrap { position: relative; height: 380px; overflow: hidden; border: 1px solid var(--rule); background: #CFD6D2; border-radius: var(--radius); }
.heroSheet { position: absolute; left: 24px; top: 20px; background: #fff; padding: 8mm 0 0 7mm; width: 210mm; height: 297mm;
             display: grid; grid-template-columns: repeat(4, 48.3mm); grid-auto-rows: 25.4mm; transform: scale(1.32); transform-origin: top left; }
.heroSheet .lb { width: 48.3mm; height: 25.4mm; padding: .8mm; display: flex; flex-direction: column; align-items: center; justify-content: center; outline: .2mm dashed #B9C2BD; outline-offset: -.2mm; overflow: hidden; }
.heroSheet .lb .bc { width: 30mm; }
.heroSheet .lb .bc svg { width: 100%; display: block; }
.heroSheet .lb .nm { font-size: 2.3mm; font-weight: 700; line-height: 1.15; margin-top: .5mm; text-align: center; }
.heroSheet .lb .ex { font-size: 2.3mm; line-height: 1; margin-top: .5mm; }
.heroCaption { position: absolute; right: 12px; bottom: 10px; font-size: 13px; color: #fff; background: rgba(28,31,30,.75); padding: 2px 10px; border-radius: var(--radius); }

/* 困りごと */
.story { border-left: 4px solid var(--brand); padding: var(--s1) 0 var(--s1) var(--s3); max-width: 46em; }
.story p:last-child { margin-bottom: 0; }

/* 特長（等価に並べない） */
.lanes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.lane { border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: var(--s3); }
.lane.is-primary { border-left-color: var(--brand); background: var(--tint); }
.lane .no { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
.lane h3 { margin: 4px 0 var(--s1); }
.lane p { margin: 0; color: var(--ink); }

/* 手順 */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.steps li { margin: 0; }
.steps li::before { content: counter(step); counter-increment: step; display: grid; place-items: center; width: 40px; height: 40px; background: var(--brand); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: var(--s1); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; }
.shot { margin: var(--s4) 0 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--alt); }
.shot img { display: block; width: 100%; }
.shot figcaption { font-size: 14px; color: var(--muted); padding: var(--s1) var(--s2); border-top: 1px solid var(--rule); background: var(--paper); }

/* 表 */
.table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); }
.table th, .table td { border: 1px solid var(--rule); padding: 12px var(--s2); text-align: left; vertical-align: top; }
.table thead th { background: var(--brand); color: #fff; font-size: 15px; }
.table tbody tr:nth-child(even) { background: var(--alt); }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .code { font-family: Consolas, Menlo, monospace; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > .table { min-width: 560px; }

/* 料金 */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-items: stretch; }
.plan { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: var(--s3); display: flex; flex-direction: column; }
.plan.is-primary { border-color: var(--brand); border-width: 2px; }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-size: 32px; font-weight: 700; line-height: 1.2; margin: var(--s1) 0 4px; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 1.2em; margin: var(--s2) 0; }
.plan li { margin-bottom: 4px; }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan .draft { font-size: 13px; color: var(--warn); font-weight: 700; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: var(--s2) 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; gap: var(--s2); }
.faq summary::before { content: "Q"; color: var(--brand); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq .a { display: flex; gap: var(--s2); margin-top: var(--s1); max-width: 46em; }
.faq .a::before { content: "A"; color: var(--muted); font-weight: 700; }
.faq .a p { margin: 0; }

/* 相談 */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s4); align-items: start; }
.contact .box { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: var(--s3); }
.contact .tel { font-size: 28px; font-weight: 700; color: var(--dark); text-decoration: none; display: block; line-height: 1.3; }
.contact .box p { margin-bottom: var(--s1); }

.footer { border-top: 1px solid var(--rule); padding: var(--s3) 0; font-size: 14px; color: var(--muted); }
.footer .in { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.footer a { color: var(--muted); }
.footer .sp { flex: 1; }

/* 規約ページ */
.doc { max-width: 46em; }
.doc h2 { font-size: 22px; margin-top: var(--s4); }
.doc .table th { width: 12em; background: var(--alt); }
.todo { background: #FFF4E5; color: var(--warn); font-weight: 700; padding: 0 4px; }

@media (max-width: 900px) {
  .hero .in, .contact { grid-template-columns: 1fr; }
  .heroSheetWrap { height: 300px; }
  .lanes, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --s4: 32px; --s5: 40px; }
  h1, .hero h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hero .lead { font-size: 16px; }
  .header .in { flex-wrap: wrap; gap: var(--s2); }
  .header nav { margin-left: 0; gap: 12px; }
  .heroSheet { transform: scale(0.95); left: 8px; top: 8px; }
  .heroSheetWrap { height: 240px; }
  .contact .tel { font-size: 24px; }
}
