:root {
  --paper: #fcf9f2;
  --ink: #111821;
  --dark: #10151e;
  --accent: #ff632a;
  --line: #d4d3cc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.95;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.shell {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}
.legal-header {
  background: var(--dark);
}
.legal-header .shell {
  height: 102px;
  display: flex;
  align-items: center;
}
.brand {
  display: inline-flex;
  flex: none;
}
.brand img {
  display: block;
  width: 76px;
  height: 76px;
}
.title-block {
  padding: 52px 0 20px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.035em;
  margin: 0;
}
.legal-nav {
  display: flex;
  gap: 44px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  flex-wrap: wrap;
}
.legal-nav a {
  font-size: 16px;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.legal-nav a[aria-current] {
  color: #c63d0c;
  border-color: var(--accent);
}
.legal-nav a:hover {
  color: #c63d0c;
}
article {
  counter-reset: clause;
}
.intro {
  padding: 26px 0 32px;
}
.clause {
  position: relative;
  padding: 30px 0 32px 70px;
  border-top: 1px solid var(--line);
  counter-increment: clause;
}
.clause:before {
  content: counter(clause) ".";
  position: absolute;
  left: 0;
  top: 29px;
  font-size: 27px;
  font-weight: 800;
}
h2 {
  font-size: 27px;
  line-height: 1.5;
  margin: 0 0 14px;
  font-weight: 800;
}
p {
  margin: 0 0 16px;
}
p:last-child {
  margin-bottom: 0;
}
li {
  margin-bottom: 8px;
}
ul,
ol {
  padding-left: 1.5em;
}
article a {
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.note {
  font-size: 13px;
  color: #53575c;
  margin-top: 30px;
}
.legal-page {
  padding-bottom: 48px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}
th,
td {
  padding: 22px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
th {
  width: 24%;
  font-weight: 700;
}
td {
  overflow-wrap: anywhere;
}
.legal-footer {
  background: var(--dark);
  color: var(--paper);
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 36px;
}
.legal-footer .brand img {
  width: 56px;
  height: 56px;
}
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.legal-footer nav a {
  font-size: 12px;
  text-decoration: none;
}
.legal-footer a[aria-current] {
  color: #ff9267;
}
.legal-footer small {
  font-size: 10px;
  margin-left: auto;
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--paper);
  padding: 10px;
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }
  .legal-header .shell {
    height: 82px;
  }
  .brand img {
    width: 60px;
    height: 60px;
  }
  .title-block {
    padding: 32px 0 18px;
  }
  .eyebrow {
    font-size: 9px;
  }
  h1 {
    font-size: clamp(27px, 6vw, 38px);
    overflow-wrap: anywhere;
  }
  .legal-nav {
    gap: 6px 22px;
    padding-bottom: 18px;
  }
  .legal-nav a {
    font-size: 12px;
  }
  body {
    font-size: 14px;
  }
  .intro {
    padding: 24px 0;
  }
  .clause {
    padding: 25px 0 28px 34px;
  }
  .clause:before {
    font-size: 19px;
    top: 25px;
  }
  h2 {
    font-size: 21px;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 20px;
  }
  .legal-footer nav {
    flex: 1;
    gap: 10px 18px;
  }
  .legal-footer small {
    width: 100%;
    margin-left: 0;
  }
  .legal-page {
    padding-bottom: 24px;
  }
  th,
  td {
    display: block;
    width: 100%;
    padding: 14px 0;
  }
  td {
    border-top: 0;
    padding-top: 0;
  }
  table {
    margin-top: 24px;
  }
}
