:root {
  color-scheme: light;
  --background: #f7f7f4;
  --surface: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --border: #d8dadd;
  --accent: #f4c542;
  --link: #1457a6;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

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

.site-header__inner,
.policy,
.site-footer__inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand::after {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  margin-top: 2px;
  background: var(--accent);
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}

.policy {
  padding: 56px 0 72px;
}

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

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

h1 {
  margin: 0;
  font-size: 36px;
}

h2 {
  margin: 44px 0 12px;
  font-size: 24px;
}

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

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 24px;
}

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

.updated,
.summary {
  color: var(--muted);
}

.updated {
  margin-top: 10px;
  font-size: 14px;
}

.summary {
  max-width: 720px;
  margin-top: 24px;
  font-size: 18px;
}

.key-points {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-left: 5px solid var(--accent);
  background: var(--surface);
}

.key-points strong {
  display: block;
  margin-bottom: 8px;
}

.service-table {
  width: 100%;
  margin: 20px 0 24px;
  border-collapse: collapse;
  background: var(--surface);
}

.service-table th,
.service-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.service-table th {
  background: #ededeb;
  font-size: 14px;
}

.language-divider {
  height: 1px;
  margin: 72px 0 0;
  border: 0;
  background: var(--border);
}

.language-heading {
  margin-top: 56px;
}

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

.site-footer__inner {
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 640px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .policy {
    padding-top: 40px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  .service-table,
  .service-table tbody,
  .service-table tr,
  .service-table th,
  .service-table td {
    display: block;
  }

  .service-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .service-table tr + tr {
    border-top: 12px solid var(--background);
  }

  .service-table td {
    border-top: 0;
  }

  .service-table td:first-child {
    border-top: 1px solid var(--border);
    font-weight: 700;
  }
}

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

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

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

  a {
    color: inherit;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  .key-points,
  .service-table {
    break-inside: avoid;
  }
}
