:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-muted: #eef4f1;
  --ink: #10222c;
  --muted: #56636b;
  --line: #dce6e2;
  --primary: #126b67;
  --primary-dark: #0d4f4d;
  --accent: #d85f4a;
  --gold: #f1c44e;
  --success: #43a071;
  --shadow: 0 18px 56px rgba(16, 34, 44, 0.12);
  --container: min(1120px, calc(100vw - 40px));
  --radius: 8px;
  --font-sans: "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(16, 34, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 44, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  position: relative;
  overflow-x: clip;
}

.container,
.site-header,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 10px -14px;
  z-index: -1;
  border: 1px solid rgba(220, 230, 226, 0.88);
  border-radius: 999px;
  background: rgba(244, 247, 245, 0.88);
  box-shadow: 0 10px 28px rgba(16, 34, 44, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

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

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 72px 0 104px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(244, 247, 245, 0.98) 0%, rgba(244, 247, 245, 0.9) 42%, rgba(244, 247, 245, 0.22) 100%),
    linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

.hero-visual {
  position: absolute;
  top: 52px;
  right: max(-140px, calc((100vw - 1120px) / 2 - 220px));
  z-index: -2;
  width: min(820px, 68vw);
  opacity: 0.88;
  filter: drop-shadow(0 32px 58px rgba(16, 34, 44, 0.2));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
.statement {
  letter-spacing: 0;
}

h1 {
  max-width: 10em;
  font-size: clamp(2.9rem, 8vw, 6.1rem);
  line-height: 1.05;
}

.lead {
  max-width: 46rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.95;
}

.hero-actions,
.cta-actions,
.price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

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

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

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

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button-ghost {
  border-color: rgba(244, 247, 245, 0.4);
  color: #fff;
  background: rgba(244, 247, 245, 0.1);
}

.button.is-placeholder::after {
  content: "設定待ち";
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.72rem;
  white-space: nowrap;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 96px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2,
.statement {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
}

.section-header p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.9;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card,
.brief-preview,
.notice,
.document-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(16, 34, 44, 0.07);
}

.card {
  padding: 26px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.card p,
.card li,
.notice p,
.document-card p,
.document-card li {
  color: var(--muted);
  line-height: 1.85;
}

.signal {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--surface-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statement-band {
  color: #fff;
  background: var(--ink);
}

.statement-band .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 32px;
}

.statement-band p {
  color: rgba(244, 247, 245, 0.78);
  line-height: 1.9;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 68px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 26px;
  left: 24px;
  color: var(--accent);
  font-weight: 900;
}

.brief-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  overflow: hidden;
}

.brief-preview-copy {
  padding: clamp(26px, 4vw, 42px);
}

.brief-preview-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.22;
}

.brief-preview-copy p {
  color: var(--muted);
  line-height: 1.9;
}

.brief-preview-copy ul,
.price-card ul {
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

.brief-preview-image {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(18, 107, 103, 0.1), rgba(216, 95, 74, 0.08)),
    var(--surface-muted);
}

.pricing-grid {
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-card.featured {
  border-color: rgba(18, 107, 103, 0.5);
  box-shadow: 0 18px 44px rgba(18, 107, 103, 0.14);
}

.price-label {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  margin: 14px 0 10px;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.price-copy {
  min-height: 7.2em;
  color: var(--muted);
  line-height: 1.85;
}

.price-card li {
  color: var(--muted);
  line-height: 1.8;
}

.price-actions {
  margin-top: auto;
  padding-top: 24px;
}

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

.notice {
  margin-top: 18px;
  padding: 20px;
}

.notice-actions {
  margin-top: 16px;
}

.notice strong {
  color: var(--ink);
}

.faq-grid .card h3 {
  min-height: 3.2em;
}

.cta-panel {
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 107, 103, 0.92), rgba(16, 34, 44, 0.96)),
    var(--ink);
}

.cta-panel p {
  max-width: 58ch;
  margin: 16px 0 0;
  color: rgba(244, 247, 245, 0.8);
  line-height: 1.9;
}

.cta-actions {
  margin-top: 28px;
}

.document-page {
  padding: 72px 0 96px;
}

.document-hero {
  max-width: 800px;
  margin-bottom: 28px;
}

.document-hero h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.document-hero p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.9;
}

.document-card {
  padding: clamp(24px, 4vw, 42px);
}

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

.document-section:first-child {
  padding-top: 0;
}

.document-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.document-section h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.document-section dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.document-section dl div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
}

.document-section dt {
  font-weight: 800;
}

.document-section dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.inline-link,
.footer-links a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(18, 107, 103, 0.28);
  outline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

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

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

  .site-header::before {
    border-radius: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-visual {
    right: -260px;
    width: 920px;
    opacity: 0.24;
  }

  .grid-2,
  .grid-3,
  .statement-band .container,
  .brief-preview {
    grid-template-columns: 1fr;
  }

  .price-copy,
  .faq-grid .card h3 {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 1120px);
  }

  .site-nav {
    gap: 10px 14px;
    justify-content: flex-start;
    font-size: 0.86rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .section {
    padding: 68px 0;
    scroll-margin-top: 148px;
  }

  .card,
  .price-card {
    padding: 22px;
  }

  .step {
    padding-left: 52px;
  }

  .step::before {
    left: 20px;
  }

  .document-section dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .reveal,
  .button {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
