:root {
  --ink: #172026;
  --muted: #5f6b73;
  --line: #d9e2e7;
  --paper: #f7faf9;
  --surface: #ffffff;
  --accent: #187f78;
  --accent-strong: #0d5f5a;
  --warm: #f2b84b;
  --rose: #d96d61;
  --shadow: 0 20px 60px rgba(23, 32, 38, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 250, 249, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

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

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px) 36px;
  background:
    linear-gradient(120deg, rgba(24, 127, 120, .12), transparent 42%),
    linear-gradient(30deg, rgba(217, 109, 97, .12), transparent 36%);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead,
.page-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

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

.hero-actions,
.checkout-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button.primary:hover,
.button.primary:focus {
  background: var(--accent-strong);
}

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

.product-visual {
  min-width: 0;
}

.mail-window {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  background: #eaf1f0;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}

.window-bar span:nth-child(2) {
  background: var(--warm);
}

.window-bar span:nth-child(3) {
  background: var(--accent);
}

.mail-grid {
  display: grid;
  grid-template-columns: 155px 1fr;
  min-height: 360px;
}

.mail-grid aside {
  padding: 20px;
  color: var(--muted);
  background: #f0f5f4;
  border-right: 1px solid var(--line);
  font-size: 13px;
}

.mail-grid section {
  padding: 26px;
}

.message-line {
  height: 14px;
  width: 72%;
  margin-bottom: 14px;
  background: #dce8e6;
  border-radius: 999px;
}

.message-line.wide {
  width: 96%;
}

.message-line.short {
  width: 44%;
}

.ai-panel {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid #b8d8d4;
  border-radius: 8px;
  background: #f8fffd;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: #dff2ef;
  font-size: 12px;
  font-weight: 800;
}

.section,
.pricing-grid,
.checkout-note,
.legal-page,
.page-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 74px 0;
}

.section-heading h2,
.band h2,
.checkout-note h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

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

.feature-card,
.price-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card h3,
.price-card h2 {
  margin: 0 0 10px;
}

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px clamp(18px, 4vw, 56px);
  color: #fff;
  background: #203532;
}

.band .eyebrow,
.band p {
  color: #c7e6df;
}

.page-hero {
  padding: 64px 0 34px;
}

.pricing-grid {
  align-items: stretch;
  padding-bottom: 28px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
}

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

.annual {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.price-card ul {
  flex: 1;
  padding-left: 1.2em;
  color: var(--muted);
}

.checkout-buttons .button {
  width: 100%;
}

.checkout-note {
  margin-bottom: 72px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

code {
  word-break: break-all;
  color: var(--accent-strong);
}

.legal-page {
  padding: 58px 0 86px;
  max-width: 860px;
}

.legal-page h1 {
  margin: 0 0 28px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
}

.legal-page h2 {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-list {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.legal-list dt,
.legal-list dd {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.legal-list dt {
  font-weight: 800;
  background: #eef4f3;
}

.legal-list dd {
  background: #fff;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

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

  .nav {
    justify-content: flex-start;
  }

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

  .hero {
    min-height: auto;
  }

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

  .mail-grid aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .legal-list {
    grid-template-columns: 1fr;
  }

  .legal-list dt {
    border-bottom: 0;
  }
}
