:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: rgba(0, 0, 0, 0.08);
  --error: #d70015;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}

@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    backdrop-filter: blur(20px) saturate(1.5);
  }
}

.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -10px -6px;
  padding: 10px 6px;
  color: var(--text);
}

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

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

.narrow {
  max-width: 760px;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 76vh;
  text-align: center;
}

.hero-inner {
  padding: 120px 0 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
}

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

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 {
  text-wrap: balance;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-copy,
.lead {
  max-width: 760px;
  color: var(--text-dim);
  font-size: 18px;
}

.hero-copy {
  max-width: 40em;
  margin: 0 auto;
  font-size: 19px;
}

.section {
  padding: 80px 0;
}

.panel {
  border-radius: 28px;
  background: var(--bg-alt);
  padding: clamp(32px, 5vw, 56px);
}

.panel .lead:last-child,
.panel .steps:last-child {
  margin-bottom: 0;
}

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

.card {
  border: 0;
  border-radius: 18px;
  background: var(--bg-alt);
  padding: 30px;
}

.card p {
  margin: 0;
  color: var(--text-dim);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.price-card,
.status-card,
.table-wrap {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}

.price-card,
.status-card {
  padding: 32px;
}

.price {
  margin: 18px 0;
}

.price span {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
}

.price small {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
}

ul,
ol {
  padding-left: 1.35em;
}

li + li {
  margin-top: 8px;
}

.price-card ul {
  margin: 24px 0 0;
  padding-left: 0;
  list-style: none;
}

.price-card li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.flow ol,
.steps {
  margin-bottom: 24px;
}

.flow ol,
.steps {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.flow li,
.steps li {
  position: relative;
  min-height: 28px;
  padding-left: 44px;
  counter-increment: step;
}

.flow li::before,
.steps li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  content: counter(step);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 980px;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  text-decoration: none;
}

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

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

.button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.button.secondary:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button:disabled {
  cursor: not-allowed;
  background: #d2d2d7;
  border-color: #d2d2d7;
  color: #6e6e73;
}

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: 3px;
}

.note {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}

.form-error {
  min-height: 1.75em;
  margin: 10px 0 0;
  color: var(--error);
  font-weight: 700;
}

[data-drop-area] {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-dim);
}

[data-drop-area] > :first-child {
  margin-top: 0;
}

[data-drop-area] > :last-child {
  margin-bottom: 0;
}

details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding-right: 32px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  right: 4px;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  content: "";
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(225deg);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 40px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 14px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -10px 0;
  padding: 10px 0;
}

.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 64px 0;
  background: var(--bg-alt);
}

.center-page .status-card {
  max-width: 760px;
}

.status-card h1 {
  font-size: clamp(2rem, 4vw, 2.2rem);
}

.legal-hero {
  padding-bottom: 48px;
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 4vw, 2.4rem);
}

.table-wrap {
  overflow-x: auto;
}

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

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

th {
  width: 32%;
  background: var(--bg-alt);
  font-weight: 700;
}

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

.policy-list {
  margin-bottom: 28px;
}

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 72px 0 48px;
  }

  .feature-grid,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  section[id] {
    scroll-margin-top: 120px;
  }

  .status-card h1 {
    font-size: 1.6rem;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
  }
}

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

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

  .button {
    width: 100%;
  }

  .panel,
  .price-card,
  .status-card {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
