:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --text: #1f2933;
  --muted: #667085;
  --line: #d9e2ea;
  --primary: #176b87;
  --primary-dark: #0f5269;
  --accent: #d97706;
  --green: #2f855a;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(31, 41, 51, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.hero {
  background:
    linear-gradient(120deg, rgba(23, 107, 135, 0.95), rgba(47, 133, 90, 0.86)),
    linear-gradient(0deg, #234, #234);
  color: white;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 44px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.78);
}

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

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
}

.lead {
  margin: 18px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

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

.button.primary {
  background: white;
  color: var(--primary-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
}

.button.page-primary {
  background: var(--primary);
  color: white;
}

.button.page-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--primary);
}

.app-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.app-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section.compact {
  padding-top: 36px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 28px;
}

.section-lead {
  margin: 0 0 24px;
  max-width: 780px;
  color: var(--muted);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

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

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

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

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p,
.card ul,
.card ol {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
}

.plain-list {
  padding-left: 20px;
}

.plain-list li + li {
  margin-top: 6px;
}

.notice {
  border-left: 5px solid var(--accent);
  background: #fff7ed;
  padding: 16px 18px;
  border-radius: 8px;
}

.page-title {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 24px;
}

.page-title h1 {
  color: var(--text);
  font-size: 38px;
}

.page-title p {
  color: var(--muted);
  margin-bottom: 0;
}

.content {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
}

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

.content h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content h3 {
  margin-top: 24px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

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

.content th {
  background: var(--surface-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #edf2f7;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

  .hero-inner,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 34px;
  }
}
