@charset "UTF-8";

:root {
  --paper: #f7f5ee;
  --surface: #fbfaf6;
  --ink: #172b3c;
  --muted: #53616a;
  --blue: #304d6b;
  --line: #d5d6cc;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
}

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.4;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.5;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.26em;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 2px solid #986123;
  outline-offset: 4px;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(100% - 2 * clamp(16px, 5vw, 56px), 1120px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: 8px;
  left: 8px;
  background: var(--surface);
  padding: 10px 14px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 24px;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 33px;
  padding-top: 4px;
  clip-path: polygon(50% 0, 87% 17%, 100% 100%, 0 100%, 13% 17%);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  font-size: 0.875rem;
}

.site-header nav a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-header nav a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(42px, 6vw, 88px);
}

h1 {
  font-size: clamp(2.125rem, 4.15vw, 3.875rem);
  line-height: 1.26;
  letter-spacing: -0.025em;
}

.hero-intro {
  max-width: 29em;
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.9;
}

.hero-genre {
  white-space: nowrap;
}

.release-status {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.interest-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.rules-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  font-weight: 600;
}

.interest-button:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
}

.example-board picture,
.screen-list img {
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
}

.example-board img,
.screen-list img {
  width: 100%;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.section {
  padding-block: clamp(40px, 6vw, 80px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.rules {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "board explanation";
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.rules-copy {
  grid-area: explanation;
}

.example-board {
  grid-area: board;
}

.rules h2 + p {
  margin-top: 16px;
}

.rule-notes {
  margin-top: 22px;
}

.rule-notes > div {
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.rule-notes dt,
.device-list dt {
  font-weight: 600;
}

.rule-notes dd,
.device-list dd {
  color: var(--muted);
}

.movement-study {
  width: min(100%, 365px);
  justify-self: center;
}

.movement-study svg {
  width: 100%;
  background: #f0ecdf;
}

.development {
  background: #eef0eb;
  border-block: 1px solid var(--line);
}

.development-intro {
  margin-top: 14px;
  max-width: 38em;
}

.screen-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 56px);
  margin-top: 32px;
}

.screen-list article {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.screen-list p {
  margin-top: 6px;
  color: var(--muted);
}

.screen-list img {
  margin-top: 16px;
}

.device-list {
  margin-bottom: 14px;
}

.device-list > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.device-list > div:first-child {
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
}

.privacy summary {
  min-height: 44px;
  padding-block: 10px;
  font-weight: 600;
}

.interest-section {
  border-block: 1px solid var(--line);
  background: #eaece4;
}

.interest-inner {
  align-items: center;
  padding-block: clamp(32px, 5vw, 56px);
}

.interest-inner h2 + p {
  margin-top: 12px;
}

.interest-button {
  cursor: pointer;
  max-width: 100%;
}

.interest-button:disabled {
  cursor: default;
  background: #d6dcd5;
  color: var(--ink);
}

.feedback,
.interest-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.feedback:empty {
  margin: 0;
}

.site-footer {
  padding-block: 20px 32px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}

.footer-links p {
  margin-right: auto;
}

.privacy {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.privacy p + p {
  margin-top: 10px;
}

@media (max-width: 680px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .rules {
    grid-template-columns: 1fr;
    grid-template-areas: "explanation" "board";
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
  }

  .site-header nav {
    column-gap: 14px;
    font-size: 0.8125rem;
  }

  .hero {
    row-gap: 18px;
    padding-block: 28px 36px;
  }

  .hero-intro {
    margin-top: 14px;
  }

  .release-status {
    margin-top: 10px;
  }

  .rules-link {
    margin-top: 12px;
  }

  .split,
  .screen-list {
    grid-template-columns: 1fr;
  }

  .movement-study {
    width: min(85%, 290px);
  }

  .example-board {
    width: min(100%, 340px);
    justify-self: center;
  }
}

@media (max-width: 370px) {
  .device-list > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
