:root {
  --brand: #0073a8;
  --brand-dark: #005075;
  --ink: #17232b;
  --muted: #5d6b74;
  --line: #dbe4e9;
  --surface: #ffffff;
  --surface-soft: #f4f8fa;
  --page: #eef3f6;
  --warning: #d79516;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(26, 57, 72, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-underline-offset: 0.16em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 115, 168, 0.35);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: 0 0 7px 7px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 0;
}

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

.header-inner,
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: end;
  padding: 1.4rem 0 1.1rem;
}

.brand-name {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.brand-name:hover {
  color: var(--brand-dark);
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.primary-nav {
  min-width: 0;
}

.nav-list,
.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  justify-content: flex-end;
}

.nav-list a {
  display: block;
  padding: 0.48rem 0.72rem;
  border-radius: 7px;
  color: #33434d;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: #e9f4f8;
  color: var(--brand-dark);
}

.site-main {
  width: min(960px, calc(100% - 2rem));
  min-height: 55vh;
  margin: 2.4rem auto 3.5rem;
}

.content-card {
  overflow: hidden;
  border: 1px solid rgba(219, 228, 233, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-header {
  padding: clamp(1.6rem, 4vw, 2.65rem) clamp(1.25rem, 5vw, 3.5rem) 0;
}

.page-title {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.article-body {
  padding: 1.6rem clamp(1.25rem, 5vw, 3.5rem) clamp(2.2rem, 5vw, 3.6rem);
  overflow-wrap: break-word;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--brand-dark);
  line-height: 1.3;
}

.article-body h2 {
  margin: 2.35rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #e6eef2;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.article-body h3 {
  margin: 1.8rem 0 0.7rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body figure,
.article-body table {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.45rem;
}

.article-body li + li {
  margin-top: 0.55rem;
}

.content-image {
  margin: 1.8rem auto;
  text-align: center;
}

.content-image img {
  display: block;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 8px;
}

.content-image figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.table-wrap table,
.article-body > table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.78rem 0.85rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

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

th {
  background: #eaf4f8;
  color: #173c4c;
  font-weight: 750;
}

tbody tr:nth-child(even) {
  background: #f8fbfc;
}

.content-separator,
.article-body hr {
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background: var(--line);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.button-wrap {
  margin: 0;
}

.button-link,
.static-button {
  display: inline-block;
  padding: 0.68rem 1.15rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(0, 115, 168, 0.15);
}

.button-link:hover,
.static-button:hover {
  background: var(--brand-dark);
}

.static-button.secondary {
  background: #43545e;
}

.text-center,
.align-center {
  text-align: center;
}

.static-page-intro {
  max-width: 800px;
  color: #465761;
  font-size: 1.05rem;
}

.faq-group {
  margin: 2.5rem 0;
}

.faq-item {
  margin-bottom: 1rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdfe;
}

.faq-item h3 {
  margin-top: 0;
}

.faq-item > :last-child {
  margin-bottom: 0;
}

.faq-cta {
  margin-top: 2.6rem;
  padding: 1.45rem;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #edf7fb;
  text-align: center;
}

.faq-cta p {
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-card {
  max-width: 720px;
  margin: 1.6rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.contact-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-email {
  overflow-wrap: anywhere;
  color: var(--brand-dark);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 800;
}

.contact-note {
  max-width: 800px;
  margin: 1.8rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--warning);
  border-radius: 0 7px 7px 0;
  background: #fff9ea;
}

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

.legal-updated {
  color: var(--muted);
  font-size: 0.93rem;
}

.legal-section {
  margin-top: 2.1rem;
}

.site-footer {
  border-top: 1px solid #ccd9df;
  background: #17313e;
  color: #dbe8ed;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: 1.6rem 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin: 0;
  font-size: 0.9rem;
}

.footer-meta a,
.language-list a {
  color: #e7f4f8;
}

.language-list {
  justify-content: flex-end;
}

.language-list a {
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  font-size: 0.85rem;
  text-decoration: none;
}

.language-list a:hover,
.language-list a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.error-card {
  padding: clamp(2rem, 7vw, 4.5rem);
  text-align: center;
}

.error-card .page-title {
  margin-bottom: 1rem;
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav-list,
  .language-list {
    justify-content: flex-start;
  }

  .header-inner {
    gap: 0.9rem;
  }

  .footer-inner {
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .footer-inner,
  .site-main {
    width: min(100% - 1rem, 960px);
  }

  .site-main {
    margin-top: 1rem;
  }

  .page-header,
  .article-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-list {
    gap: 0.25rem;
  }

  .nav-list a {
    padding: 0.42rem 0.5rem;
    font-size: 0.88rem;
  }

  .faq-item,
  .faq-cta,
  .contact-card {
    padding: 1rem;
  }

  .static-button,
  .button-link {
    display: block;
    width: 100%;
    margin: 0.45rem 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
