:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #f0f4f2;
  --ink: #17211f;
  --muted: #66706c;
  --line: #d9ded9;
  --accent: #167c72;
  --accent-2: #0f5e56;
  --warn: #9a650f;
  --danger: #b3342f;
  --ok: #25704f;
  --shadow: 0 18px 44px rgba(27, 39, 36, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 244, 0.93);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 900;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.hero-band,
.section,
.proof-strip,
.site-footer,
.diagnose-layout,
.thanks-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 44px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.18;
}

h1 {
  max-width: 780px;
  font-size: clamp(36px, 6vw, 64px);
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
}

h3 {
  font-size: 18px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.product-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-top {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}

.preview-form,
.preview-result {
  display: grid;
  gap: 10px;
}

.preview-form span,
.preview-result div,
.preview-result p {
  min-height: 38px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
}

.preview-result b {
  color: var(--accent-2);
  font-size: 28px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 0 34px;
}

.proof-strip div,
.feature-grid article,
.price-card,
.thanks-panel,
.notice-box,
.upgrade-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.proof-strip div {
  padding: 16px;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: 24px;
}

.proof-strip span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid article,
.price-card {
  padding: 18px;
}

.feature-grid p,
.price-card li,
.dense-list p,
.notice-box p,
.upgrade-box li,
.site-footer p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
}

.price-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.price-card.featured {
  border-color: rgba(22, 124, 114, 0.5);
  box-shadow: var(--shadow);
}

.badge {
  width: fit-content;
  border-radius: 999px;
  background: #dff0ec;
  color: var(--accent-2);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
}

.badge.paid {
  background: #fff0d8;
  color: var(--warn);
}

.price {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
}

.diagnose-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(420px, 1.14fr);
  gap: 18px;
  align-items: start;
  padding: 28px 0 48px;
}

.diagnose-form,
.diagnose-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  padding: 9px 10px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 124, 114, 0.12);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  padding: 8px;
  font-size: 13px;
}

.check-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.score-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.score-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.score-card strong {
  display: block;
  font-size: 56px;
  line-height: 1;
}

.result-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.result-list.empty {
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--muted);
}

.result-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.result-item span {
  width: 58px;
  height: fit-content;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 3px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.result-item.critical {
  border-left-color: var(--danger);
}

.result-item.critical span {
  background: var(--danger);
}

.result-item.warning {
  border-left-color: var(--warn);
}

.result-item.warning span {
  background: var(--warn);
}

.result-item.ok {
  border-left-color: var(--ok);
}

.result-item.ok span {
  background: var(--ok);
}

.result-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.upgrade-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fbfcfb;
}

.thanks-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px);
}

.thanks-panel {
  max-width: 760px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.notice-box {
  padding: 16px;
  background: #fbfcfb;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 52px;
}

.legal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.legal-panel + .legal-panel {
  margin-top: 14px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.legal-table th,
.legal-table td {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 220px;
  color: var(--muted);
  font-size: 13px;
}

.plain-list {
  padding-left: 20px;
}

.plain-list li {
  margin: 8px 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero-band,
  .diagnose-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .feature-grid,
  .pricing-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table td {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }
}
