:root {
  color-scheme: light;
  --primary: #2a40ff;
  --primary-dark: #1c1d3a;
  --primary-hover: #202775;
  --background: #f8f8fb;
  --surface: #ffffff;
  --text: #333333;
  --muted: #666666;
  --border: #e0e0e0;
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--background);
}

body {
  margin: 0;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid rgb(42 64 255 / 35%);
  outline-offset: 3px;
}

.site-header {
  background: var(--primary-dark);
  border-bottom: 1px solid #313c4e;
}

.site-header__inner,
main,
.site-footer__inner {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 195px;
  height: 34px;
}

main {
  margin-block: 40px 64px;
  padding: clamp(24px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgb(62 47 40 / 7%);
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.3;
}

h2 {
  margin-top: 2.5em;
  padding-bottom: 0.35em;
  font-size: 1.35rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}

h3 {
  margin-top: 2em;
  font-size: 1.15rem;
}

h4 {
  margin-top: 1.75em;
  font-size: 1rem;
}

p,
ul {
  margin-block: 0.8em;
}

.legal-list {
  padding-left: 1.5em;
}

.hero {
  text-align: center;
}

.hero p {
  color: var(--muted);
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  background: var(--primary);
  border-radius: 10px;
}

.button:hover {
  color: #ffffff;
  background: var(--primary-hover);
}

.button:focus-visible {
  outline-color: var(--primary);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-top: 40px;
}

.revisions {
  margin-top: 40px;
  color: var(--muted);
  text-align: right;
}

.table-scroll {
  overflow-x: auto;
}

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

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

.legal-table th {
  width: 30%;
  min-width: 180px;
  background: var(--background);
}

.site-footer {
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.notice {
  padding: 16px;
  background: var(--background);
  border-radius: 10px;
}

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

  main {
    margin-block: 20px 40px;
    border-radius: 12px;
  }
}
