:root {
  --ink: #133654;
  --ink-deep: #0b2b43;
  --text: #17384f;
  --muted: #557185;
  --paper: #edf7fc;
  --surface: #fbfdff;
  --white: #ffffff;
  --line: #c9ddea;
  --line-dark: #97bacf;
  --accent: #0f6da8;
  --max: 1120px;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 9px 13px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 253, 255, .96);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-link img { width: 27px; }
.brand-name { color: var(--ink); font-family: var(--font-serif); font-size: 24px; font-weight: 900; letter-spacing: .03em; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.back-link:hover { border-color: var(--accent); color: var(--accent); }

.legal-hero { padding: 82px 0 74px; border-bottom: 1px solid var(--line); background: var(--paper); }
.legal-kicker { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.legal-hero h1 {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(37px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.035em;
}
.legal-date { margin-top: 21px; color: var(--muted); font-size: 13px; }

.legal-main { padding: 78px 0 112px; }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 72px; }
.legal-nav {
  position: sticky;
  top: 106px;
  padding: 21px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.legal-nav strong { display: block; margin-bottom: 12px; color: var(--ink); font-size: 12px; letter-spacing: .08em; }
.legal-nav ol { display: grid; gap: 3px; padding: 0; list-style: none; }
.legal-nav a { display: block; padding: 6px 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-decoration: none; }
.legal-nav a:hover { color: var(--accent); }
.legal-document { min-width: 0; }
.legal-intro {
  margin-bottom: 48px;
  padding: 26px 28px;
  border-left: 4px solid var(--accent);
  background: var(--paper);
}
.legal-intro p + p { margin-top: 12px; }
.legal-section { padding: 0 0 44px; border-bottom: 1px solid var(--line); }
.legal-section + .legal-section { padding-top: 44px; }
.legal-section h2 {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.5;
}
.section-number { color: var(--accent); font-family: var(--font-serif); font-size: 15px; font-weight: 900; }
.legal-section p + p { margin-top: 14px; }
.legal-section ul { display: grid; gap: 8px; padding-left: 1.35em; }
.legal-section p + ul, .legal-section ul + p, .legal-section p + .legal-table-wrap { margin-top: 18px; }
.notice {
  margin-top: 19px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #f7fbfd;
  color: var(--muted);
  font-size: 14px;
}
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); }
.legal-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; }
.legal-table th, .legal-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { width: 29%; color: var(--ink); background: var(--paper); font-weight: 800; }
.legal-table a, .legal-section a { color: var(--accent); text-underline-offset: 4px; }
.legal-signature { margin-top: 52px; padding-top: 27px; border-top: 2px solid var(--ink); color: var(--ink); font-weight: 700; }

.site-footer { padding: 46px 0 34px; color: #c7dce7; background: var(--ink-deep); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin-top: 10px; color: #9fbac9; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; padding: 0; list-style: none; }
.footer-links a { color: #c7dce7; font-size: 11px; text-underline-offset: 4px; }
.footer-company { display: grid; grid-template-columns: 150px 1fr; gap: 28px; margin-top: 32px; padding-top: 27px; border-top: 1px solid #345b72; }
.footer-company h2 { color: var(--white); font-family: var(--font-serif); font-size: 18px; }
.footer-company dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 24px; }
.footer-company dl > div { display: grid; grid-template-columns: 88px 1fr; gap: 9px; }
.footer-company dt { color: #87a8ba; font-size: 10px; font-weight: 800; }
.footer-company dd { color: #d8e7ee; font-size: 10px; line-height: 1.7; }
.footer-company a { color: #d8e7ee; text-underline-offset: 3px; }
.footer-bottom { margin-top: 27px; padding-top: 21px; border-top: 1px solid #345b72; color: #8faabc; font-size: 10px; }

@media (max-width: 840px) {
  .legal-grid { grid-template-columns: 1fr; gap: 40px; }
  .legal-nav { position: static; }
  .legal-nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
  .footer-top { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .footer-company { grid-template-columns: 1fr; gap: 17px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand-name { font-size: 21px; }
  .back-link { font-size: 12px; }
  .legal-hero { padding: 58px 0 53px; }
  .legal-hero h1 { font-size: 36px; }
  .legal-main { padding: 54px 0 78px; }
  .legal-nav ol { grid-template-columns: 1fr; }
  .legal-intro { padding: 21px 19px; }
  .legal-section { padding-bottom: 35px; }
  .legal-section + .legal-section { padding-top: 35px; }
  .legal-section h2 { grid-template-columns: 30px minmax(0, 1fr); font-size: 21px; }
  .legal-table { min-width: 650px; }
  .legal-table--compact { min-width: 0; }
  .legal-table--compact th, .legal-table--compact td { display: block; width: 100%; }
  .legal-table--compact th { border-bottom: 0; padding-bottom: 7px; }
  .legal-table--compact td { padding-top: 7px; }
  .footer-company dl { grid-template-columns: 1fr; }
}

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