:root {
  --paper: #fff;
  --soft: #f4f5f2;
  --ink: #202522;
  --muted: #58625c;
  --rule: #929a94;
  --line: #d9dcd8;
  --accent: #174936;
  --hover: #123b2c;
  --focus: #226448;
  --sans: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  --mono: Consolas,"SFMono-Regular","Liberation Mono",monospace;
  --gutter: clamp(16px,5.15vw,28px);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  line-height: 1.65;
}

h1, h2, h3, p, ol, figure, dl, dd {
  margin: 0;
}

a {
  color: inherit;
  touch-action: manipulation;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter),1184px);
  margin-inline: auto;
}

.mast {
  border-bottom: 1px solid var(--line);
}

.mast .wrap, .foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mast .wrap {
  min-height: 70px;
}

.logo {
  display: block;
  width: 136px;
  line-height: 0;
  height: auto;
}

.login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 0 8px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--muted);
  text-underline-offset: 4px;
  text-decoration: none;
  border-radius: 4px;
}

.login:hover {
  background: var(--soft);
  color: var(--ink);
  text-decoration: underline;
}

.login:active, .primary:active {
  box-shadow: inset 0 0 0 2px currentColor;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 44px;
  padding: 12px 27px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  border-radius: 4px;
  text-decoration: none;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.primary:hover {
  background: var(--hover);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr);
  grid-template-areas: "copy record" "action record";
  column-gap: clamp(40px,6.5vw,104px);
  align-content: center;
  padding-block: clamp(62px,7.3vw,112px);
}

.intro {
  grid-area: copy;
}

.scope {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 450;
}

h1 {
  font-size: clamp(2.25rem,3.92vw,3.75rem);
  font-weight: 700;
  letter-spacing: -.062em;
  line-height: 1.31;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.sub {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-top: 24px;
  line-height: 1.85;
  text-wrap: pretty;
}

.action {
  grid-area: action;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 30px;
}

.hint {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.record {
  grid-area: record;
  align-self: center;
  width: 100%;
  margin: 0;
  border-top: 2px solid var(--ink);
}

.record figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: .8125rem;
}

.record-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0 17px;
}

.group h2 {
  font-size: clamp(1.4rem,2.05vw,1.8rem);
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -.035em;
}

.volume, .print-id, .number {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.volume {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: .9375rem;
}

.record-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
}

.number {
  font-size: 2.8rem;
  line-height: 1.04;
  letter-spacing: -.065em;
}

.over {
  font-size: .64em;
  color: var(--rule);
}

.total {
  color: var(--muted);
}

.ratio-label {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
  margin-top: 5px;
}

.track {
  height: 3px;
  background: var(--line);
  position: relative;
}

.track::before {
  content: "";
  position: absolute;
  inset: 0 85% 0 0;
  background: var(--accent);
}

.record-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.record-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.record-list li:last-child {
  border: 0;
}

.record-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 550;
}

.record-name svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}

.print-id {
  font-size: .8125rem;
  color: var(--muted);
  white-space: nowrap;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 650;
  font-size: .875rem;
  white-space: nowrap;
}

.state svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.how {
  border-top: 1px solid var(--line);
  padding-block: clamp(44px,5.3vw,80px);
}

.how h2, .shop h2, .finish h2 {
  font-size: clamp(1.6rem,2.75vw,2.5rem);
  letter-spacing: -.046em;
  line-height: 1.4;
}

.how-body {
  display: grid;
  grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr);
  column-gap: clamp(40px,6.5vw,104px);
  align-items: start;
  margin-top: 32px;
}

.steps {
  list-style: none;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0,1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.steps li:first-child {
  border-top: 1px solid var(--rule);
}

.stepno {
  font: 400 1rem/1.9 var(--mono);
  color: var(--muted);
}

.steps h3 {
  font-size: 1.25rem;
  letter-spacing: -.025em;
  line-height: 1.6;
}

.steps p, .shop p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 36em;
  margin-top: 5px;
  text-wrap: pretty;
}

.editions {
  background: var(--soft);
  padding: 22px 26px 24px;
}

.editions figcaption, .shop-example figcaption {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.editions .cardname {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.5;
  margin: 12px 0 16px;
}

.editions dl {
  border-top: 1px solid var(--rule);
}

.edrow {
  display: grid;
  grid-template-columns: minmax(0,1fr) 3.6em;
  column-gap: 8px;
  align-items: baseline;
  padding: 12px 0;
}

.edrow+.edrow {
  border-top: 1px solid var(--line);
}

.edrow:last-child {
  padding-bottom: 0;
}

.edrow dt {
  font-weight: 650;
  font-size: 1rem;
  grid-column: 1;
}

.edrow dd {
  color: var(--muted);
  font-size: .875rem;
  grid-column: 1;
  line-height: 1.6;
}

.edrow .code {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  font: 400 1rem/1.6 var(--mono);
  white-space: nowrap;
}

.shop {
  border-block: 1px solid var(--line);
  padding-block: clamp(40px,4.8vw,72px);
}

.shop .wrap {
  display: grid;
  grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr);
  column-gap: clamp(40px,6.5vw,104px);
  align-items: center;
}

.shop p {
  margin-top: 15px;
  max-width: 31em;
}

.shop-example {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--line);
  padding: 11px 0 15px;
}

.shop-example figcaption {
  margin-bottom: 13px;
}

.shop-identity {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.shop-identity strong {
  font-size: 1.125rem;
}

.shop-identity .print-id {
  color: var(--ink);
  font-size: 1rem;
}

.shop-spec {
  font-size: .875rem;
  color: var(--muted);
  margin: 3px 0 13px;
}

.shop-state {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .875rem;
}

.shop-state span+span {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.finish {
  background: var(--soft);
  padding-block: clamp(44px,5.5vw,82px);
}

.finish .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.finish .action {
  align-items: center;
  padding: 0;
}

.foot .wrap {
  padding-block: 26px;
}

.foot .logo {
  width: 100px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .875rem;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  text-underline-offset: .2em;
}

.foot p {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.7;
}

.inline-example {
  display: none;
}

@media (max-width: 900px) {
  .hero, .how-body, .shop .wrap {
    column-gap: 30px;
  }
  h1 {
    font-size: clamp(2rem,3.9vw,2.5rem);
  }
  .editions {
    padding-inline: 19px;
  }
  .steps li {
    gap: 6px;
  }
}

@media (max-width: 740px) {
  .mast .wrap {
    min-height: 55px;
  }
  .logo {
    width: 125px;
    height: auto;
  }
  .login {
    font-size: .875rem;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px 0 32px;
  }
  .scope {
    font-size: .8125rem;
    margin-bottom: 12px;
  }
  h1 {
    font-size: clamp(1.55rem,8.03vw,2.45rem);
    line-height: 1.38;
    letter-spacing: -.052em;
  }
  .sub {
    font-size: 1rem;
    margin-top: 14px;
    line-height: 1.7;
    font-weight: 400;
  }
  .record {
    margin-top: 23px;
  }
  .record figcaption {
    padding-top: 9px;
  }
  .record-summary {
    padding: 10px 0 12px;
  }
  .group h2 {
    font-size: 1.3125rem;
  }
  .volume {
    font-size: .8125rem;
  }
  .number {
    font-size: 2.25rem;
  }
  .ratio-label {
    margin-top: 3px;
  }
  .record-list {
    margin-top: 3px;
  }
  .record-list li {
    padding: 6px 0;
  }
  .record-name {
    font-size: .9375rem;
    line-height: 1.55;
  }
  .state {
    font-size: .8125rem;
    gap: 4px;
  }
  .action {
    padding-top: 17px;
    align-items: center;
    gap: 8px;
  }
  .primary {
    width: 100%;
    min-height: 50px;
    padding-inline: 12px;
  }
  .how {
    padding: 35px 0 34px;
  }
  .how h2, .shop h2, .finish h2 {
    font-size: 1.3125rem;
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: -.035em;
  }
  .how-body {
    display: block;
    margin-top: 22px;
  }
  .steps li {
    grid-template-columns: 22px minmax(0,1fr);
    gap: 10px;
    padding: 18px 0;
  }
  .stepno {
    font-size: .875rem;
  }
  .steps h3 {
    font-size: 1rem;
    font-weight: 600;
  }
  .steps p {
    font-size: 1rem;
    font-weight: 400;
    margin-top: 5px;
    line-height: 1.7;
  }
  .how-body>.editions {
    display: none;
  }
  .inline-example {
    display: block;
    grid-column: 1/-1;
  }
  .editions {
    padding: 13px 16px 15px;
    margin: 4px 0 2px;
  }
  .editions .cardname {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 5px 0 8px;
    color: var(--ink);
  }
  .edrow {
    padding: 9px 0;
  }
  .edrow dd {
    font-size: .8125rem;
  }
  .shop {
    padding: 32px 0;
  }
  .shop .wrap {
    display: block;
  }
  .shop p {
    margin-top: 10px;
  }
  .shop-example {
    margin-top: 20px;
  }
  .shop-example figcaption {
    margin-bottom: 8px;
  }
  .finish {
    padding: 35px 0 32px;
  }
  .finish .wrap {
    display: block;
  }
  .finish .action {
    margin-top: 18px;
  }
  .foot .wrap {
    display: block;
    padding-block: 23px;
  }
  .foot .logo {
    width: 96px;
  }
  .foot p {
    margin-top: 12px;
  }
}

@media (max-width: 370px) {
  .hero {
    padding-top: 21px;
  }
}

@media (min-width: 460px) and (max-width: 740px) {
  .hero, .how .wrap, .shop .wrap, .finish .wrap {
    max-width: 540px;
  }
}

@media (forced-colors: active) {
  .track {
    border: 1px solid CanvasText;
  }
  .track::before {
    background: Highlight;
  }
  .primary {
    border: 1px solid LinkText;
  }
}

.symbols {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
}

@media (max-width: 740px) {
  h1 span {
    white-space: normal;
  }
}
