:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #172027;
  --muted: #596872;
  --line: #d8e0e5;
  --accent: #007c91;
  --accent-strong: #005d6d;
  --accent-soft: #e3f6f8;
  --warning: #7a4c00;
  --warning-bg: #fff4d8;
  --focus: #005fcc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page,
.site-footer-inner {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #00a5b9;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

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

.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.page {
  padding-block: 52px 72px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

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

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

h2 {
  margin: 48px 0 14px;
  padding-top: 4px;
  font-size: 24px;
}

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

p,
ul,
ol,
dl {
  margin-block: 10px;
}

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

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

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

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #34434c;
  font-size: 18px;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
}

.notice.warning {
  border-left-color: var(--warning);
  background: var(--warning-bg);
  color: #4d350d;
}

.legal-section {
  scroll-margin-top: 24px;
}

.table-wrap {
  margin-block: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

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

th {
  background: #edf3f5;
  font-weight: 700;
}

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

.link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.link-item {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.link-item h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 19px;
}

.link-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.contact-block {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

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

  .page {
    padding-block: 36px 56px;
  }

  h2 {
    margin-top: 38px;
  }

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

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

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

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

  .site-nav,
  .site-footer,
  .action-link {
    display: none;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  a {
    color: inherit;
  }
}
