/* マクロ引継ぎ帳 LP — 総務・経理の責任者向け。落ち着き・信頼感・読みやすさ。
   色: 紺（基本・ボタン）＋琥珀（強調: バッジと 2027 年の注意だけ）＋青みのグレー */
:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --alt: #EAEEF3;
  --ink: #1C2733;
  --ink-2: #3D4A58;
  --muted: #5A6674;
  --line: #D6DDE5;
  --base: #1F3A5F;
  --base-hover: #172C48;
  --base-soft: #E3EAF3;
  --accent: #B45309;
  --accent-soft: #FBF0E4;
  --radius: 8px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--base); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.5; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.wrap-narrow { max-width: 760px; }
.br-sp { display: inline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.brand-mark { width: 28px; height: 28px; }
.header-cta {
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: #FFFFFF; background: var(--base);
  padding: 8px 14px; border-radius: 6px;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid #EBCFB0; border-radius: 4px;
  padding: 4px 10px;
}

/* Hero */
.hero { padding: 40px 0 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(27px, 7vw, 46px); line-height: 1.45; margin: 18px 0 18px; letter-spacing: .02em; }
.lead { font-size: 17px; color: var(--ink-2); }
.hero .btn { margin-top: 26px; }
.fine { margin-top: 12px; font-size: 13px; color: var(--muted); }
.hero-art { max-width: 340px; width: 100%; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 32px;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .06em;
  border-radius: 6px; border: 0; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--base); color: #FFFFFF; }
.btn-primary:hover { background: var(--base-hover); }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--alt); }
.section-title {
  font-size: clamp(22px, 5.6vw, 32px);
  margin-bottom: 32px; padding-left: 14px; border-left: 4px solid var(--base);
  line-height: 1.5;
}
.section-lead { color: var(--ink-2); margin: -12px 0 24px; }

/* Problems */
.cards { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.card-num { display: block; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .1em; margin-bottom: 8px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card-alert { border-top: 4px solid var(--accent); }
.card-alert .card-num { color: var(--accent); }

/* Features */
.features { display: grid; gap: 12px; }
.feature { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.feature-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 4px;
  background: var(--base); color: #FFFFFF; font-weight: 700;
}
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.feature strong { color: var(--ink); background: linear-gradient(transparent 62%, #F7DFC3 62%); }
.compare {
  margin-top: 24px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--base);
  border-radius: var(--radius); color: var(--ink-2); font-size: 15px;
}

/* Steps */
.steps { display: grid; gap: 12px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--base); color: var(--base); font-weight: 700; font-size: 15px;
  margin-bottom: 10px;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Price table (stacks on phones) */
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.price-table thead { display: none; }
.price-table tr { display: block; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child { border-bottom: 0; }
.price-table th[scope="row"] { display: block; text-align: left; font-size: 17px; color: var(--base); margin-bottom: 4px; }
.price-table td { display: block; font-size: 15px; color: var(--ink-2); }
.price-table td.price { margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.price-table + .fine { margin-top: 12px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 18px 4px; font-weight: 700; font-size: 16px; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; margin-left: auto; color: var(--base); flex: none; }
.faq details[open] summary::after { content: "－"; }
.q { flex: none; color: var(--base); font-weight: 700; }
.faq details p { padding: 0 4px 20px 32px; color: var(--ink-2); font-size: 15px; }

/* Sign-up */
.signup { background: var(--base); color: #E8EEF5; }
.signup .section-title { color: #FFFFFF; border-left-color: #8FA9C9; margin: 16px 0 12px; }
.badge-on-dark { background: #FFFFFF; border-color: #FFFFFF; }
.signup-lead { color: #D3DEEA; margin-bottom: 28px; }
.form { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 26px 18px; }
.form > .fine { margin: 0 0 18px; }
.field { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.field > label, .field legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 10px; padding: 0; }
.req { font-size: 12px; font-weight: 700; color: #FFFFFF; background: var(--accent); border-radius: 3px; padding: 0 7px; }
.opt-label { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--alt); border-radius: 3px; padding: 0 7px; }
input[type="email"], input[type="text"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #FFFFFF; border: 1px solid #B9C4D0; border-radius: 6px;
  padding: 12px 14px; min-height: 50px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--base); box-shadow: 0 0 0 3px var(--base-soft); }
.options { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  font-size: 15px; line-height: 1.5;
}
.opt input { width: 19px; height: 19px; margin: 0; accent-color: var(--base); flex: none; }
.opt:has(input:checked) { border-color: var(--base); background: var(--base-soft); }
.form-success { margin-top: 16px; font-weight: 700; color: var(--base); }
.privacy { margin-top: 18px; font-size: 13px; color: #C7D3E0; }
.privacy a { color: #FFFFFF; }

/* Footer */
.site-footer { padding: 36px 0 48px; font-size: 13px; color: var(--muted); }
.notes { display: grid; gap: 6px; max-width: 60em; }
.notes li { padding-left: 1em; text-indent: -1em; }
.notes li::before { content: "※"; }
.footer-line { margin-top: 16px; }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .br-sp { display: none; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .options { grid-template-columns: repeat(2, 1fr); }
  .options-4 { grid-template-columns: repeat(4, 1fr); }
  .options-1 { grid-template-columns: 1fr; }
  .options-check { grid-template-columns: repeat(4, 1fr); }
  .form { padding: 34px 30px; }

  .price-table thead { display: table-header-group; }
  .price-table thead th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 12px 20px; background: var(--alt); border-bottom: 1px solid var(--line); }
  .price-table tr { display: table-row; padding: 0; }
  .price-table th[scope="row"], .price-table td { display: table-cell; padding: 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
  .price-table th[scope="row"] { width: 22%; margin: 0; }
  .price-table td.price { width: 24%; margin: 0; white-space: nowrap; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .section { padding: 96px 0; }
}

/* 送信まわり（プログラマー追加） */
.form-error { margin-top: 16px; font-weight: 700; color: #9F1D1D; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* チェッカー（/check/）への導線（プログラマー追加） */
.check-link { margin-top: 14px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.check-link a { font-weight: 700; text-underline-offset: 3px; }
.check-link a::after { content: " →"; }
.check-link a:hover { color: var(--base-hover); text-decoration-thickness: 2px; }
.check-note { font-size: 13px; color: var(--muted); }
.card .check-link { font-size: 14px; }
