:root {
  --bg: #f4f8ff;
  --bg-soft: #eaf3ff;
  --card: #ffffff;
  --text: #27313f;
  --muted: #607086;
  --accent: #6f9ed8;
  --accent-strong: #315f93;
  --warm: #6d7f9c;
  --border: #d8e5f5;
  --shadow: 0 18px 45px rgba(49, 95, 147, 0.10);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body {
  margin: 0;
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(226, 239, 255, 0.86), rgba(244, 248, 255, 0.62) 38%, rgba(244, 248, 255, 1)),
    linear-gradient(135deg, rgba(109, 127, 156, 0.08), rgba(111, 158, 216, 0.10));
}

a {
  color: var(--accent-strong);
  font-weight: 700;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

a:focus-visible {
  outline: 3px solid rgba(49, 95, 147, 0.35);
  outline-offset: 3px;
  border-radius: 6px;
}

p {
  margin: 0 0 1em;
}

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

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.06rem;
}

ul {
  margin: 0;
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.38rem;
}

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

.narrow {
  width: min(900px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 229, 245, 0.92);
  background: rgba(244, 248, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(49, 95, 147, 0.16);
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}

.site-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(111, 158, 216, 0.14);
  color: var(--accent-strong);
}

main {
  padding: 3rem 0 4rem;
}

.hero {
  padding: 2.4rem 0 1.5rem;
}

.hero p {
  max-width: 760px;
  font-size: 1.08rem;
}

.lead {
  color: var(--accent-strong);
  font-size: clamp(1.25rem, 3vw, 1.85rem) !important;
  font-weight: 800;
  margin-bottom: 1rem;
}

.eyebrow {
  color: var(--warm);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.updated {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 1.2rem 0 0;
}

.card {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.legal-card section {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1.3rem;
}

.legal-card section:first-of-type {
  margin-top: 1.8rem;
}

.page-heading {
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.85rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.54em;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.62);
}

.pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.mini-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f7fbff;
}

.mini-card p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(49, 95, 147, 0.24);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--accent-strong);
  text-decoration: none;
}

.button-link:hover {
  background: #ffffff;
}

.english-section {
  border-left: 5px solid var(--accent);
}

.faq {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f7fbff;
}

.faq-item h3 {
  margin-bottom: 0.45rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

caption {
  padding: 1rem;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

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

th {
  width: 32%;
  color: var(--accent-strong);
  background: #f7fbff;
  font-weight: 800;
}

td p,
td ul {
  margin-bottom: 0.75rem;
}

td p:last-child,
td ul:last-child {
  margin-bottom: 0;
}

.not-found {
  text-align: center;
}

.not-found .button-row {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  display: grid;
  gap: 0.65rem;
  padding: 1.4rem 0 1.6rem;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

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

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

@media (max-width: 760px) {
  .shell,
  .narrow {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .site-nav a,
  .footer-nav a {
    padding-inline: 0.55rem;
  }

  main {
    padding-top: 1.6rem;
  }

  .hero {
    padding-top: 1.2rem;
  }

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

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-link {
    width: 100%;
  }

  .table-wrap {
    margin-inline: -0.25rem;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 15px;
  }

  .site-nav,
  .footer-nav {
    width: 100%;
  }

  .site-nav a,
  .footer-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .card {
    padding: 1rem;
  }

}
