:root {
  color-scheme: light;
  --background: #f3f6f8;
  --surface: #ffffff;
  --ink: #1b2530;
  --muted: #697586;
  --blue: #247ba0;
  --blue-dark: #1b607d;
  --blue-soft: #e3f1f8;
  --line: #dce7ee;
  --shadow: 0 14px 36px rgba(11, 31, 51, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "YuGothic", "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(36, 123, 160, 0.28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(220, 231, 238, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 880px);
  min-height: 64px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-right: 9px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  place-items: center;
  vertical-align: -1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

main {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  margin-bottom: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff 35%, #eef8fc 100%);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.45;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.55rem);
  letter-spacing: -0.02em;
}

.lead {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.document {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document section + section {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 1.3rem;
}

.document h3 {
  margin: 26px 0 8px;
  font-size: 1.05rem;
}

.document p {
  margin: 0 0 14px;
}

.document p:last-child {
  margin-bottom: 0;
}

.document ul,
.document ol {
  margin: 12px 0 16px;
  padding-left: 1.4em;
}

.document li + li {
  margin-top: 7px;
}

.note {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 4px 12px 12px 4px;
  background: var(--blue-soft);
}

.note strong {
  color: var(--blue-dark);
}

code {
  padding: 0.12em 0.38em;
  border-radius: 5px;
  background: #eef2f5;
  color: #344454;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.83em;
}

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

.page-card {
  display: flex;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  flex-direction: column;
  text-decoration: none;
}

.page-card:hover {
  border-color: rgba(36, 123, 160, 0.42);
  color: var(--ink);
  transform: translateY(-2px);
}

.page-card h2 {
  margin: 10px 0 8px;
  font-size: 1.18rem;
}

.page-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-card .arrow {
  margin-top: auto;
  padding-top: 16px;
  color: var(--blue);
  font-weight: 800;
}

.support-card {
  margin: 22px 0;
  padding: 24px;
  border: 1px solid rgba(36, 123, 160, 0.25);
  border-radius: 16px;
  background: var(--blue-soft);
}

.support-card p {
  margin-bottom: 8px;
}

.mail-link {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  font-weight: 800;
}

.site-footer {
  padding: 0 16px 42px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-bottom: 9px;
  gap: 16px;
  flex-wrap: wrap;
}

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

@media (max-width: 700px) {
  .header-inner {
    min-height: 58px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.76rem;
  }

  .brand-text {
    display: none;
  }

  .brand-mark {
    margin-right: 0;
  }

  main {
    padding: 28px 0 52px;
  }

  .hero,
  .document {
    padding: 24px 20px;
  }

  .document section + section {
    margin-top: 34px;
    padding-top: 30px;
  }

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

  .page-card {
    min-height: 0;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-header,
  .site-footer {
    display: none;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .hero,
  .document {
    border: 0;
    box-shadow: none;
  }
}
