:root {
  --bg-main: #e8ecf0;
  --bg-card: #ffffff;
  --text-main: #1f2a37;
  --text-sub: #5b6473;
  --blue: #1d3b9e;
  --border: #dfe5ee;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.narrow {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  background: var(--blue);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-weight: 700;
  font-size: 18px;
}

.site-header .brand:link,
.site-header .brand:visited,
.site-header .brand:hover,
.site-header .brand:active {
  color: #fff !important;
}

.brand img {
  height: 30px;
  width: auto;
}

.button-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 16px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.button-white:hover {
  transform: translateY(-1px);
}

.legal-page {
  padding-top: 120px;
  padding-bottom: 72px;
}

.legal-heading {
  text-align: center;
  margin-bottom: 30px;
}

.legal-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.3;
}

.legal-heading p {
  margin: 10px 0 0;
  color: var(--text-sub);
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 14px;
}

.legal-section + .legal-section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid #e8edf4;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
}

.legal-section p {
  margin: 0;
  color: var(--text-sub);
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-sub);
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.legal-table th,
.legal-table td {
  border-bottom: 1px solid #e8edf4;
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
}

.legal-table th {
  width: 240px;
  color: #334155;
  font-weight: 700;
  background: #f8fafc;
}

.note {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.site-footer {
  padding: 30px 0;
  background: var(--bg-main);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #69707c;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: #4b5563;
}

@media (max-width: 680px) {
  .container,
  .narrow {
    width: calc(100% - 28px);
  }

  .legal-page {
    padding-top: 104px;
  }

  .legal-card {
    padding: 18px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand span {
    font-size: 16px;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}
