:root {
  --bg: #0f172a;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  /* ブランドの色（ロゴ・アイコンと同じエメラルド） */
  --brand: #047857;
  --brand-dark: #065f46;
  --card: #ffffff;
  --soft: #ecfdf5;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #f8fafc;
  line-height: 1.75;
}
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header.site { background: var(--bg); color: #fff; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
/* 上の案内：狭い画面では2段目に、広い画面ではロゴとボタンの間に */
.gnav { order: 3; width: 100%; display: flex; gap: 4px 18px; font-size: 14px; overflow-x: auto; }
.gnav a { color: #cbd5e1; text-decoration: none; white-space: nowrap; padding: 4px 0; }
.gnav a:hover { color: #fff; }
@media (min-width: 720px) { .gnav { order: 0; width: auto; margin-left: auto; } }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 700; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--brand-dark); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.ghost { background: transparent; border: 2px solid #fff; }

.hero { background: var(--bg); color: #fff; padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.3; margin: 0 0 12px; }
.hero p.lead { font-size: 18px; color: #cbd5e1; margin: 0 0 24px; }
.hero .note { font-size: 13px; color: #94a3b8; margin-top: 12px; }
.hero .shot { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); max-width: 360px; justify-self: center; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }

section { padding: 56px 0; }
section h2 { font-size: clamp(22px, 4.5vw, 30px); margin: 0 0 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps .card::before {
  counter-increment: step; content: counter(step); display: inline-flex; width: 32px; height: 32px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 8px;
}
.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.shots figure { margin: 0; }
.shots img { border-radius: 14px; border: 1px solid var(--line); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.alt { background: #fff; }
dl.faq dt { font-weight: 700; margin-top: 18px; }
dl.faq dd { margin: 4px 0 0; color: var(--muted); }
.cta { background: var(--soft); text-align: center; }
.sister { display: flex; flex-wrap: wrap; gap: 12px; }
footer { background: var(--bg); color: #94a3b8; font-size: 14px; padding: 36px 0 28px; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.fnav { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fnav div { display: grid; gap: 6px; align-content: start; }
.fnav-title { margin: 0 0 4px; color: #fff; font-weight: 700; }
.copy { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid #1e293b; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
.doc h1 { font-size: 28px; }
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc { background: #fff; }
.mt { margin-top: 28px; }
.muted { color: var(--muted); }
.center { justify-content: center; }
/* 日本語の見出しを言葉の途中で折り返さない（読点と <wbr> で折り返す） */
.hero h1, section h2 { word-break: keep-all; overflow-wrap: anywhere; }

.demo { width: 100%; max-width: 720px; margin: 20px auto 0; display: block; border-radius: 14px; background: #0f172a; }
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; min-width: 520px; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
table.compare thead th { background: #f1f5f9; font-size: 14px; color: var(--muted); }
table.compare td:last-child { font-weight: 700; color: var(--brand-dark); }
.price { max-width: 520px; margin: 0 auto; text-align: center; }
/* .card p より強くする（字の大きさが効くように） */
.card p.price-main { font-size: 40px; font-weight: 800; color: var(--brand); margin: 0 0 4px; line-height: 1.3; }
/* お問い合わせ */
.narrow { max-width: 680px; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; width: 100%;
}
.form textarea { resize: vertical; }
.req, .opt { margin-left: 8px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.req { background: #fee2e2; color: #b91c1c; }
.opt { background: #f1f5f9; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 65px; }
.form-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 12px; margin: 0; }
.form button[disabled] { opacity: .6; }
.small { font-size: 13px; }

/* トップ：特長の札・大きいボタン・3つの手順 */
.badges { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { border: 1px solid #334155; border-radius: 999px; padding: 4px 12px; font-size: 14px; color: #e2e8f0; }
.btn.big { padding: 16px 30px; font-size: 18px; }
.flow { list-style: none; padding: 0; margin: 0; counter-reset: flow; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flow li { counter-increment: flow; }
.flow figure { margin: 0 0 14px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0f172a; max-width: 300px; }
.flow h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.flow h3::before {
  content: counter(flow); display: inline-flex; width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0;
  background: var(--brand); color: #fff; font-size: 15px; align-items: center; justify-content: center;
}
.flow p { margin: 0; color: var(--muted); font-size: 15px; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.center-text { text-align: center; margin-top: 28px; }
.split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 720px) { .split { grid-template-columns: 280px 1fr; } }
.split figure { margin: 0; }
figure.phone img { border-radius: 18px; border: 1px solid var(--line); max-width: 280px; }
figure.paper img { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(15,23,42,.12); max-width: 280px; }
ul.news { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
ul.news li { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
ul.news time { color: var(--muted); font-size: 14px; min-width: 9em; }

/* 説明のページ */
.doc .narrow { max-width: 820px; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc h2[id] { scroll-margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.crumb a { text-decoration: none; }
.toc { background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 12px 20px; margin: 24px 0; }
.toc ol { margin: 0; columns: 2 220px; }
.toc a { text-decoration: none; }
.tip { background: var(--soft); border-left: 4px solid var(--brand); border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.key { font-weight: 700; }
.entry { padding: 20px 0; border-bottom: 1px solid var(--line); }
.entry h2 { margin-top: 4px; }
.entry .date { margin: 0; color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.tag { background: #f1f5f9; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
table.compare.plain td:last-child { font-weight: 400; color: var(--ink); }
table.compare.plain { min-width: 0; }
table.compare.plain th { white-space: nowrap; }
main.doc { display: block; padding: 32px 0 64px; }
table.compare.plain td { overflow-wrap: anywhere; }
