:root {
  color: #10213f;
  background: #f8fbfc;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f8fbfc;
  color: #10213f;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(67, 141, 245, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(228, 233, 239, 0.84);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #10213f;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: #52627a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: #13b7b9;
}

main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-hero {
  padding: clamp(34px, 6vw, 62px);
  border: 1px solid #dfecef;
  border-radius: 36px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(16, 33, 63, 0.07);
}

.eyebrow {
  margin: 0 0 14px;
  color: #13b7b9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: #52627a;
  font-size: 16px;
  line-height: 1.9;
}

.updated {
  display: inline-flex;
  margin: 28px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8fafa;
  color: #157d80;
  font-size: 12px;
  font-weight: 800;
}

.document-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  margin-top: 58px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 110px;
  padding: 22px;
  border: 1px solid #e4e9ef;
  border-radius: 22px;
  background: #ffffff;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  color: #647287;
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
}

.legal-content {
  min-width: 0;
}

.legal-section {
  padding: 0 0 42px;
  scroll-margin-top: 110px;
}

.legal-section + .legal-section {
  padding-top: 42px;
  border-top: 1px solid #e4e9ef;
}

.legal-section__title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 17px;
}

.section-number {
  flex: 0 0 auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #e8fafa;
  color: #13a2a5;
  font-size: 12px;
  font-weight: 900;
}

h2 {
  margin: 2px 0 0;
  font-size: 21px;
  line-height: 1.5;
}

p,
li {
  color: #52627a;
  font-size: 14px;
  line-height: 2;
}

p {
  margin: 0;
}

p + p,
p + ul,
ul + p {
  margin-top: 14px;
}

ul {
  margin: 14px 0 0;
  padding-left: 1.4em;
}

.contact-box {
  margin-top: 8px;
  padding: 24px;
  border-radius: 22px;
  background: #e8fafa;
}

.contact-box strong {
  display: block;
  margin-bottom: 8px;
  color: #10213f;
  font-size: 15px;
}

.contact-box a {
  color: #0e8f92;
  font-weight: 800;
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid #e4e9ef;
  background: #ffffff;
}

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

.site-footer small {
  color: #7a879a;
}

.site-footer__links {
  display: flex;
  gap: 20px;
}

.site-footer__links a {
  color: #52627a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header__inner,
  .site-footer__inner,
  main {
    width: min(100% - 32px, 920px);
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .site-nav a:not([aria-current="page"]) {
    display: none;
  }

  main {
    padding: 36px 0 72px;
  }

  .legal-hero {
    border-radius: 28px;
  }

  .document-layout {
    display: block;
    margin-top: 44px;
  }

  .toc {
    position: static;
    margin-bottom: 42px;
  }

  .site-footer__inner {
    padding: 30px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 12px;
  }
}

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