:root {
  --bg: #f4f1eb;
  --paper: #fffefa;
  --paper-2: #fbf7ef;
  --ink: #161512;
  --muted: #6f6a60;
  --line: #ddd4c5;
  --line-strong: #c7bca9;
  --red: #d83b25;
  --teal: #176f68;
  --gold: #a06b14;
  --green: #386641;
  --shadow: 0 22px 70px rgba(44, 35, 25, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.72;
}

body {
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid rgba(221, 212, 197, 0.82);
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

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

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: min(680px, 62svh);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(64px, 8vh, 92px) 0 clamp(56px, 7vh, 78px);
  background:
    linear-gradient(90deg, rgba(244, 241, 235, 1) 0%, rgba(244, 241, 235, 0.98) 42%, rgba(244, 241, 235, 0.88) 64%, rgba(244, 241, 235, 0.76) 100%);
}

.hero > img {
  position: absolute;
  top: 12%;
  right: max(-110px, -6vw);
  width: min(760px, 54vw);
  height: 68%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.3;
  filter: saturate(0.75);
  border: 1px solid rgba(199, 188, 169, 0.75);
  box-shadow: 0 24px 80px rgba(44, 35, 25, 0.12);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 241, 235, 1) 0%, rgba(244, 241, 235, 0.99) 42%, rgba(244, 241, 235, 0.86) 61%, rgba(244, 241, 235, 0.18) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(590px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.45rem, 4.35vw, 4.05rem);
  line-height: 1.02;
  max-width: 100%;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.12;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

p {
  margin: 0 0 16px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: #474238;
  font-size: 1.1rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.hero-actions,
.quick-facts,
.problem-grid,
.deliverable-grid,
.price-grid {
  display: grid;
  gap: 14px;
}

.hero-actions {
  grid-template-columns: repeat(2, minmax(0, 220px));
  margin-top: 26px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fffefa;
}

.button.secondary {
  background: rgba(255, 254, 250, 0.78);
}

.button:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fffefa;
}

.quick-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1120px;
  margin: -1px auto 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.quick-facts article {
  min-height: 110px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.quick-facts article:last-child {
  border-right: 0;
}

.quick-facts span,
.plan {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quick-facts strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.4;
}

.section-block {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.problem-grid,
.deliverable-grid,
.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-grid article,
.deliverable-grid article,
.price-grid article,
.contact-box {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.problem-grid article,
.deliverable-grid article,
.price-grid article {
  min-height: 220px;
  padding: 24px;
}

.problem-grid p,
.deliverable-grid p,
.price-grid p,
.demo-section p,
.safety-section li,
.contact-section p,
footer p,
figcaption {
  color: var(--muted);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.flow div {
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  font-weight: 900;
}

.flow div:last-child {
  border-right: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  background: var(--paper);
}

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

th {
  width: 160px;
  background: var(--paper-2);
  color: #3a342b;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
}

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

.deliverable-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 900;
}

.price-grid article.featured {
  border-color: var(--teal);
  background: #f1fbf8;
}

.price-grid h3 {
  margin-top: 10px;
  font-size: 1.55rem;
}

.safety-section ul,
.contact-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.safety-section li,
.contact-box li {
  margin-bottom: 10px;
}

.contact-box {
  margin-top: 24px;
  padding: 24px;
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 52px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-grid p {
  max-width: 620px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

.policy-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) 18px 72px;
}

.policy-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
  margin-bottom: 30px;
}

.policy-hero h1 {
  max-width: 780px;
}

.policy-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-weight: 650;
}

.policy-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.policy-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.policy-section p,
.policy-section li {
  color: var(--muted);
}

.policy-section ul {
  margin: 0 0 16px;
  padding-left: 1.1rem;
}

.policy-section li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .site-header,
  .section-heading,
  .footer-grid {
    display: block;
  }

  nav {
    margin-top: 10px;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 72px 0 44px;
  }

  .hero > img {
    display: none;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(244, 241, 235, 0.62) 0%, rgba(244, 241, 235, 1) 100%);
  }

  .hero-copy {
    margin: 0 18px;
    width: calc(100% - 36px);
  }

  .hero-actions,
  .quick-facts,
  .problem-grid,
  .deliverable-grid,
  .price-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .quick-facts article,
  .flow div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-facts article:last-child,
  .flow div:last-child {
    border-bottom: 0;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.08;
    word-break: break-all;
  }

  .hero-copy > p:not(.eyebrow) {
    word-break: break-all;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 12px;
  }
}
