@font-face {
  font-family: 'Kanagawa Game Sans JP';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-jp-v1/noto-sans-jp-kanagawa-a30745d935fe.woff2') format('woff2');
}

:root {
  color-scheme: light;
  background: #eef4f7;
  color: #17212b;
  font-family:
    'Kanagawa Game Sans JP',
    'Noto Sans JP',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  line-height: 1.75;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: #eef4f7;
  overflow-wrap: anywhere;
}

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding-top: env(safe-area-inset-top, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  background:
    radial-gradient(circle at top right, rgb(255 193 115 / 28%), transparent 32rem), #eef4f7;
}

a {
  color: #075985;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.site-header,
.legal-main,
.site-footer {
  width: min(100%, 800px);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 32px);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 20px 12px;
}

.brand {
  color: #17212b;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.875rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.legal-main {
  padding-block: 12px 48px;
}

.legal-main h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.legal-main h2 {
  margin: 0 0 12px;
  color: #164e63;
  font-size: clamp(1.1rem, 5vw, 1.35rem);
  line-height: 1.45;
}

.legal-main p,
.legal-main ul {
  margin-top: 0;
}

.legal-main li + li {
  margin-top: 8px;
}

.document-meta {
  margin: 0 0 20px;
  color: #52616f;
  font-size: 0.875rem;
}

.draft-notice {
  margin: 0 0 24px;
  border: 1px solid #d97706;
  border-radius: 12px;
  padding: 12px 16px;
  color: #713f12;
  background: #fffbeb;
  font-weight: 700;
}

.legal-section {
  margin: 0 0 16px;
  border: 1px solid #cfdae2;
  border-radius: 16px;
  padding: clamp(18px, 5vw, 28px);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 12px 32px rgb(15 23 42 / 7%);
}

.contact-address {
  font-style: normal;
}

.contact-email {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 18px;
  background: #075985;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid #cfdae2;
  padding-block: 20px calc(24px + env(safe-area-inset-bottom, 0));
  color: #52616f;
  font-size: 0.8rem;
}

@media (max-width: 359px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .legal-main ul {
    padding-left: 22px;
  }
}
