:root {
  --bg: #ffffff;
  --surface: #f6f7f8;
  --surface-strong: #eef1f3;
  --text: #151719;
  --muted: #5f6670;
  --line: #dde2e7;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --accent-soft: #e5f4f2;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.muted {
  background: var(--surface);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.header-nav a {
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.hero {
  padding: 104px 0 92px;
  background:
    linear-gradient(180deg, #f7faf9 0%, #ffffff 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 56px;
  align-items: center;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
}

h1 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0;
}

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

h3 {
  font-size: 20px;
}

.lead {
  margin-top: 26px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.65;
}

.hero-copy p:not(.eyebrow, .lead) {
  max-width: 760px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.primary:hover,
.primary:focus-visible {
  background: var(--accent-dark);
}

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

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--accent);
}

.product-panel,
.compare-card,
.template-card,
.fit-card,
.price-box,
.code-note,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-panel {
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel-label,
.card-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-facts {
  margin: 26px 0 0;
}

.product-facts div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.product-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-facts dd {
  margin: 4px 0 0;
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.problem-grid,
.fit-grid,
.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.muted-list li::before {
  background: var(--muted);
}

.conclusion {
  margin: 34px 0 0;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  background: #fff;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface);
  font-size: 14px;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody td:last-child {
  color: var(--accent-dark);
  font-weight: 700;
}

.compare-card {
  padding: 28px;
}

.accent-card {
  background: var(--accent-soft);
  border-color: #b9ded8;
}

.compare-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.template-card {
  padding: 22px;
  min-height: 220px;
}

.template-card p {
  color: var(--muted);
}

.template-card .result {
  margin-top: 20px;
  color: var(--text);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.steps p {
  margin: 18px 0 0;
  font-weight: 700;
}

.code-note {
  margin-top: 28px;
  padding: 26px;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre {
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
}

.fit-card {
  padding: 28px;
}

.price-section {
  background: #121619;
  color: #fff;
}

.price-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.price {
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.1;
}

.included-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 24px 0;
  padding-left: 20px;
}

.notice {
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.final-cta {
  text-align: center;
}

.final-cta .container {
  max-width: 820px;
}

.final-cta p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-grid,
  .problem-grid,
  .fit-grid,
  .before-after {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 72px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .header-nav {
    width: 100%;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .lead {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .product-panel,
  .price-box {
    padding: 24px;
  }

  .card-grid,
  .steps,
  .included-list,
  .compare-card ul {
    grid-template-columns: 1fr;
  }

  .template-card,
  .steps li {
    min-height: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
