:root {
  color-scheme: light;
  --ink: #17312b;
  --muted: #60716c;
  --paper: #f6f7f2;
  --card: #ffffff;
  --line: #dce4df;
  --green: #0f7557;
  --green-dark: #09533e;
  --lime: #dff36d;
  --amber: #f7c85b;
  --red: #b9473b;
  --shadow: 0 18px 45px rgba(21, 49, 42, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(223, 243, 109, 0.35), transparent 32rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

a { color: inherit; }
.brand-link { text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 223, 0.9);
  background: rgba(246, 247, 242, 0.9);
  backdrop-filter: blur(14px);
}

.site-header .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 20px; }
.nav a { text-decoration: none; font-size: 0.92rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 22px rgba(15, 117, 87, 0.2);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--green-dark); }
.button.secondary { color: var(--ink); background: var(--lime); box-shadow: none; }
.button.small { min-height: 38px; padding-inline: 16px; font-size: 0.88rem; }

.hero { padding: 84px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 46px; align-items: center; }

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(223, 243, 109, 0.6);
  font-size: 0.86rem;
  font-weight: 800;
}

h1, h2, h3 { margin-top: 0; line-height: 1.25; letter-spacing: -0.035em; }
h1 { margin-bottom: 22px; font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { margin-bottom: 8px; }

.lead { max-width: 46rem; color: var(--muted); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.microcopy { margin-top: 12px; color: var(--muted); font-size: 0.82rem; }

.hero-card, .card, .diagnostic, .price-card, .crm-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card { padding: 28px; }
.hero-card ul, .card ul { padding-left: 1.2rem; }
.hero-card li + li, .card li + li { margin-top: 8px; }

.metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.metric:last-child { border-bottom: 0; }
.metric strong { grid-row: span 2; color: var(--green); font-size: 2rem; }
.metric span { font-weight: 700; }
.metric small { color: var(--muted); }

.section { padding: 72px 0; }
.section-header { max-width: 720px; margin-bottom: 30px; }
.section-header p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; box-shadow: none; }
.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--lime);
  font-weight: 900;
}

.diagnostic { padding: 30px; }
.question {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.question input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); }
.result {
  display: none;
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: #eef7f2;
}
.result.visible { display: block; }

/* Three-service diagnosis */
.narrow { width: min(860px, calc(100% - 32px)); }
.diagnosis-hero { padding: 78px 0 28px; }
.diagnosis-hero h1 { font-size: clamp(2.25rem, 6vw, 4.7rem); }
.diagnosis-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.diagnosis-points span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78); color: var(--muted); font-size: .82rem; font-weight: 700; }
.diagnosis-section { padding-top: 28px; }
.diagnosis-wizard { position: relative; overflow: hidden; }
.diagnosis-progress { height: 8px; margin: -30px -30px 14px; background: #e5ebe7; }
.diagnosis-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--green), #51ad67); transition: width .25s ease; }
.progress-text { margin: 0 0 18px; color: var(--muted); text-align: right; font-size: .84rem; font-weight: 700; }
.diagnosis-question { min-width: 0; margin: 0; padding: 25px 0; border: 0; border-bottom: 1px solid var(--line); }
.diagnosis-question legend { width: 100%; margin-bottom: 14px; font-size: 1.05rem; font-weight: 850; }
.question-index { display: inline-grid; width: 31px; height: 31px; place-items: center; margin-right: 10px; border-radius: 10px; background: var(--lime); }
.diagnosis-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.diagnosis-option { position: relative; display: flex; min-height: 58px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.diagnosis-option:hover { border-color: #83a197; transform: translateY(-1px); }
.diagnosis-option:has(input:checked) { border-color: var(--green); background: #edf8f2; box-shadow: 0 0 0 1px var(--green); }
.diagnosis-option input { width: 19px; height: 19px; margin: 0 10px 0 0; accent-color: var(--green); }
.diagnosis-option span { font-size: .92rem; font-weight: 650; line-height: 1.45; }
.form-error { min-height: 1.6em; margin: 14px 0 0; color: var(--red); font-weight: 700; }
.diagnosis-result { scroll-margin-top: 82px; margin-top: 28px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.diagnosis-result[hidden] { display: none; }
.result-kicker { margin: 0 0 6px; color: var(--muted); font-size: .82rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.diagnosis-result h2 { margin-bottom: 10px; color: var(--green); }
.result-summary { margin: 0 0 26px; font-size: 1.05rem; }
.score-list { display: grid; gap: 13px; padding: 22px; border-radius: 18px; background: #f3f6f3; }
.score-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; font-size: .88rem; }
.score-track { height: 10px; overflow: hidden; border-radius: 999px; background: #dce4df; }
.score-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #6bbd72); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.result-panel, .secondary-recommendation, .next-action { padding: 22px; border: 1px solid var(--line); border-radius: 18px; }
.result-panel h3, .secondary-recommendation h3, .next-action h3 { margin-bottom: 10px; }
.result-panel ul, .result-panel ol { margin: 0; padding-left: 1.25rem; }
.result-panel li + li { margin-top: 7px; }
.secondary-recommendation { margin-top: 16px; background: #fff9e8; }
.secondary-recommendation p:last-child { margin-bottom: 0; }
.next-action { margin-top: 16px; border-color: #b8d7ca; background: #eef7f2; }
.next-action > p { margin-bottom: 0; }
.copy-status { min-height: 1.5em; color: var(--green-dark); font-size: .86rem; font-weight: 700; }
.diagnosis-notice { margin: 20px 0 0; font-size: .86rem; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { position: relative; padding: 28px; box-shadow: none; }
.price-card.featured { border: 2px solid var(--green); transform: translateY(-6px); }
.tag { position: absolute; top: -14px; right: 20px; padding: 5px 12px; border-radius: 999px; color: #fff; background: var(--green); font-size: 0.8rem; font-weight: 800; }
.price { margin: 16px 0; color: var(--green); font-size: 1.65rem; font-weight: 900; }

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--amber);
  background: #fff9e8;
  color: #5f512c;
}

.footer { padding: 36px 0 48px; color: var(--muted); font-size: 0.86rem; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; }

/* CRM */
.crm-body { background: #eef1ed; }
.crm-header { padding: 30px 0 18px; }
.crm-header h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.6rem); }
.crm-header p { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.toolbar input, .toolbar select, .lead-row select, .lead-row textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.toolbar input { min-width: 250px; padding: 0 12px; }
.toolbar select { padding: 0 12px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stat strong { display: block; font-size: 1.7rem; }
.stat span { color: var(--muted); font-size: 0.82rem; }
.lead-list { display: grid; gap: 12px; padding-bottom: 60px; }
.lead-row { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.lead-top { display: grid; grid-template-columns: 1.2fr 0.55fr 0.45fr; gap: 16px; align-items: start; }
.lead-top h3 { margin-bottom: 4px; }
.lead-meta { color: var(--muted); font-size: 0.85rem; }
.priority { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 900; }
.priority-A { color: #07533d; background: #d9f4e8; }
.priority-B { color: #785807; background: #fff1bd; }
.priority-C { color: #6b3330; background: #f7d7d4; }
.lead-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 16px; }
.lead-details p { margin: 0; }
.lead-details strong { display: block; margin-bottom: 3px; font-size: 0.8rem; }
.lead-actions { display: grid; grid-template-columns: 200px 1fr; gap: 12px; margin-top: 16px; }
.card-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lead-row select { padding: 0 10px; }
.lead-row textarea { min-height: 74px; padding: 10px; resize: vertical; }
.caution { color: var(--red); font-weight: 700; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Print checklist */
.checklist-page { width: min(900px, calc(100% - 30px)); margin: 28px auto; padding: 42px; background: #fff; box-shadow: var(--shadow); }
.checklist-page h1 { font-size: 2.2rem; }
.field-line { min-height: 32px; border-bottom: 1px solid #aab6b1; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-block { break-inside: avoid; }
.check-block label { display: block; padding: 5px 0; }
.check-block input { margin-right: 8px; }
.memo-box { min-height: 110px; border: 1px solid #aab6b1; border-radius: 10px; }

@media (max-width: 820px) {
  .hero-grid, .grid-3, .pricing, .check-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .nav a:not(.button) { display: none; }
  .price-card.featured { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lead-top, .lead-details, .lead-actions { grid-template-columns: 1fr; }
  .footer .container { flex-direction: column; }
  .diagnosis-options, .result-grid { grid-template-columns: 1fr; }
  .diagnosis-result { padding: 24px 18px; }
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .checklist-page { width: auto; margin: 0; padding: 12mm; box-shadow: none; }
}
