html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f8fb;
  color: #1f2937;
  font-family: "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-inner,
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #111827;
  color: #fff;
}

.legal-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: #4b5563;
  font-size: 0.875rem;
}

.legal-main {
  padding: 2rem 0 3rem;
}

.legal-layout {
  display: grid;
  gap: 1.25rem;
}

.legal-hero,
.legal-section {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  padding: 1.25rem;
}

.legal-hero h1 {
  margin: 0;
  color: #111827;
  font-size: 1.75rem;
  line-height: 1.35;
}

.legal-lead {
  margin: 0.75rem 0 0;
  color: #4b5563;
  line-height: 1.8;
}

.legal-section h2 {
  margin: 0 0 0.875rem;
  color: #111827;
  font-size: 1.125rem;
  line-height: 1.45;
}

.legal-section h3 {
  margin: 1rem 0 0.5rem;
  color: #111827;
  font-size: 1rem;
  line-height: 1.5;
}

.legal-section p,
.legal-section li,
.legal-table {
  line-height: 1.8;
}

.legal-section p {
  margin: 0.5rem 0 0;
}

.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 0;
  vertical-align: top;
  text-align: left;
}

.legal-table tr:first-child th,
.legal-table tr:first-child td {
  border-top: 0;
}

.legal-table th {
  width: 15rem;
  color: #374151;
  font-weight: 700;
}

.muted {
  color: #6b7280;
}

.legal-back-link {
  margin: 0.25rem 0 0;
}

.legal-back-link a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  color: #374151;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 0.8125rem;
}

@media (min-width: 720px) {
  .header-inner,
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .legal-main {
    padding-top: 3rem;
  }

  .legal-hero,
  .legal-section {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 0;
  }

  .legal-table tr:first-child {
    border-top: 0;
  }

  .legal-table th,
  .legal-table td {
    border-top: 0;
    padding: 0;
  }

  .legal-table td {
    margin-top: 0.25rem;
  }
}
