html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  font-family: "Yu Gothic", Meiryo, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus, #ef573b);
  outline-offset: 4px;
}
button:hover {
  filter: brightness(1.08);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
button {
  border: 1px solid currentColor;
  background: transparent;
  padding: 9px 18px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4vw;
  border-bottom: 1px solid currentColor;
}
header .brand {
  font:
    900 25px Arial,
    sans-serif;
  letter-spacing: -1px;
}
header nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  background: white;
  color: #111;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.micro {
  font-size: 11px;
  letter-spacing: 1px;
}
.button-fill {
  background: var(--ink);
  color: var(--bg);
}
.status {
  font-size: 12px;
  line-height: 1.75;
}
footer {
  padding: 30px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid currentColor;
}
footer p {
  font-size: 12px;
  max-width: 650px;
  margin: 0;
}
footer strong {
  font:
    900 20px Arial,
    sans-serif;
}
dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid currentColor;
  padding: 25px;
}
dialog::backdrop {
  background: #141821c9;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-head button {
  font-size: 28px;
  border: 0;
  width: 44px;
  padding: 0;
}
dialog h2 {
  font:
    32px Georgia,
    "Yu Mincho",
    serif;
}
dialog p {
  font-size: 14px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
input[type="range"] {
  accent-color: var(--ink);
  min-height: 44px;
  max-width: 100%;
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 700px) {
  header {
    padding: 17px 20px;
    gap: 10px;
  }
  header .brand {
    font-size: 20px;
  }
  header nav {
    gap: 14px;
    font-size: 11px;
  }
  footer {
    padding: 25px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  footer p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
:root {
  --bg: #ffd82e;
  --ink: #183056;
  --focus: #f04e28;
  --frame: #183056;
}
.cycle-stage {
  position: relative;
  min-height: 760px;
  padding: 25px 4vw;
  overflow: hidden;
}
.cycle-stage h1 {
  font:
    900 clamp(100px, 19vw, 280px)/0.9 Impact,
    "Arial Narrow",
    sans-serif;
  letter-spacing: -0.055em;
  margin: 25px -1vw 0;
  text-align: center;
}
.bike-wrap {
  position: absolute;
  width: 720px;
  height: 420px;
  top: 235px;
  left: calc(50% - 360px);
  transform: rotate(-8deg);
  z-index: 3;
}
.bike {
  position: relative;
  width: 720px;
  height: 420px;
}
.wheel {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 15px solid #18263b;
  border-radius: 50%;
  top: 155px;
  background: repeating-conic-gradient(
    from 4deg,
    #1c3044 0deg 0.45deg,
    transparent 0.5deg 15deg
  );
  box-shadow:
    inset 0 0 0 3px #f3f0d4,
    inset 0 0 0 6px #34455b;
}
.wheel:after {
  content: "";
  position: absolute;
  left: calc(50% - 8px);
  top: calc(50% - 8px);
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #183056;
}
.back-wheel {
  left: 20px;
}
.front-wheel {
  right: 20px;
}
.tube {
  position: absolute;
  height: 14px;
  background: var(--frame);
  border-radius: 7px;
  transform-origin: left center;
  box-shadow: inset 0 3px #ffffff33;
}
.rear-top {
  width: 177px;
  left: 140px;
  top: 268px;
  transform: rotate(-52deg);
}
.rear-bottom {
  width: 183px;
  left: 140px;
  top: 268px;
  transform: rotate(4deg);
}
.seat-tube {
  width: 171px;
  left: 316px;
  top: 281px;
  transform: rotate(-113deg);
}
.top-tube {
  width: 242px;
  left: 249px;
  top: 133px;
  transform: rotate(0deg);
}
.down-tube {
  width: 227px;
  left: 316px;
  top: 281px;
  transform: rotate(-42deg);
}
.head-tube {
  width: 67px;
  left: 488px;
  top: 129px;
  transform: rotate(68deg);
}
.fork {
  position: absolute;
  left: 507px;
  top: 184px;
  width: 107px;
  height: 11px;
  background: var(--frame);
  transform: rotate(45deg);
  transform-origin: left center;
  border-radius: 5px;
}
.seat-post {
  position: absolute;
  left: 238px;
  top: 93px;
  width: 12px;
  height: 57px;
  transform: rotate(-23deg);
  background: #283647;
}
.saddle {
  position: absolute;
  left: 193px;
  top: 85px;
  width: 92px;
  height: 16px;
  background: #18263b;
  border-radius: 50% 25% 40% 50%;
  transform: rotate(-3deg);
}
.handle-stem {
  position: absolute;
  left: 465px;
  top: 106px;
  width: 66px;
  height: 11px;
  background: #283647;
  transform: rotate(-25deg);
}
.handle {
  position: absolute;
  left: 510px;
  top: 71px;
  width: 58px;
  height: 67px;
  border: 10px solid #18263b;
  border-left: 0;
  border-bottom-color: transparent;
  border-radius: 0 40px 35px 0;
  transform: rotate(-14deg);
}
.crank {
  position: absolute;
  left: 284px;
  top: 249px;
  width: 68px;
  height: 68px;
  border: 8px solid #18263b;
  border-radius: 50%;
  background: repeating-conic-gradient(
    #18263b 0 12deg,
    transparent 12deg 72deg
  );
}
.pedal {
  position: absolute;
  left: 311px;
  top: 277px;
  width: 75px;
  height: 10px;
  background: #18263b;
  transform: rotate(50deg);
  transform-origin: left center;
}
.pedal:after {
  content: "";
  position: absolute;
  right: -15px;
  top: -7px;
  width: 32px;
  height: 11px;
  background: #18263b;
  transform: rotate(-50deg);
}
.chain {
  position: absolute;
  left: 141px;
  top: 262px;
  width: 181px;
  height: 37px;
  border: 3px solid #344359;
  border-radius: 30px;
  transform: rotate(3deg);
}
.bike-label {
  position: absolute;
  left: 6vw;
  top: 300px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.bike-label b {
  font:
    56px Impact,
    sans-serif;
}
.bike-label span {
  font-size: 11px;
}
.geometry-note {
  position: absolute;
  right: 5vw;
  top: 330px;
  width: 160px;
}
.geometry-note > span {
  font-size: 11px;
}
.geometry-note p {
  font:
    23px/1.6 "Yu Mincho",
    serif;
  margin: 15px 0;
}
.stage-dimensions {
  position: absolute;
  left: 38%;
  bottom: 100px;
  font: 11px Arial;
  display: flex;
  gap: 45px;
}
.stage-footer {
  position: absolute;
  bottom: 25px;
  left: 4vw;
  right: 4vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.stage-footer strong {
  font:
    32px/1.4 "Yu Gothic",
    sans-serif;
}
.stage-footer > span {
  font: 11px Arial;
}
.fit-panel {
  background: #183056;
  color: #ffd82e;
  padding: 40px 5vw;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.4fr;
  gap: 30px;
  align-items: center;
}
.fit-title h2 {
  font:
    25px "Yu Mincho",
    serif;
  margin: 10px 0 0;
}
.fit-control > span {
  display: block;
  font-size: 11px;
  margin-bottom: 13px;
}
.fit-control .controls {
  gap: 7px;
}
.fit-control button {
  min-width: 44px;
  padding: 8px 14px;
}
.fit-control button[aria-pressed="true"] {
  background: #ffd82e;
  color: #183056;
}
.colors button {
  font-size: 11px;
  min-width: 45px;
  padding: 8px 10px;
}
.height-control label {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.height-control input {
  width: 100%;
  accent-color: #ffd82e;
}
.fit-panel > .status {
  grid-column: 1/4;
  margin: 0;
}
.fit-panel > .button-fill {
  color: #183056;
  background: #ffd82e;
  border-color: #ffd82e;
}
.spec-strip {
  padding: 40px 5vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  border-bottom: 1px solid #183056;
}
.spec-strip > div {
  border-right: 1px solid #183056;
  padding-right: 20px;
}
.spec-strip > div:last-child {
  border: 0;
}
.spec-strip span {
  display: block;
  font-size: 11px;
  margin-bottom: 12px;
}
.spec-strip strong {
  font:
    44px Impact,
    sans-serif;
}
.spec-strip small {
  font: 12px Arial;
}
.workshop {
  padding: 75px 10vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.workshop h2 {
  font:
    48px/1.4 "Yu Mincho",
    serif;
}
.workshop p {
  font-size: 15px;
  line-height: 2;
  max-width: 430px;
}
.workshop span {
  font-size: 12px;
}
@media (max-width: 1050px) {
  .bike-label {
    top: 260px;
  }
  .bike-label b {
    font-size: 40px;
  }
  .bike-label span {
    display: none;
  }
  .geometry-note {
    display: none;
  }
  .cycle-stage {
    min-height: 720px;
  }
  .bike-wrap {
    top: 200px;
    transform: rotate(-8deg) scale(0.85);
  }
  .stage-dimensions {
    left: 30%;
    bottom: 120px;
    gap: 25px;
  }
  .fit-panel {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .fit-panel > .status {
    grid-column: 1;
  }
  .spec-strip strong {
    font-size: 34px;
  }
  .workshop {
    padding: 60px 6vw;
    gap: 40px;
  }
  .workshop h2 {
    font-size: 40px;
  }
}
@media (max-width: 600px) {
  header .brand {
    font-size: 17px;
  }
  header nav {
    font-size: 11px;
    gap: 10px;
  }
  .cycle-stage {
    min-height: 540px;
    padding: 20px;
  }
  .cycle-stage h1 {
    font-size: 21vw;
    letter-spacing: -3px;
    margin: 40px 0 0;
  }
  .bike-wrap {
    top: 120px;
    left: calc(50% - 360px);
    transform: rotate(-8deg) scale(0.46);
  }
  .bike-label {
    top: 185px;
    left: 20px;
  }
  .bike-label b {
    font-size: 28px;
  }
  .stage-dimensions {
    left: 20px;
    right: 20px;
    bottom: 140px;
    gap: 10px;
    justify-content: space-between;
    font-size: 11px;
  }
  .stage-footer {
    left: 20px;
    right: 20px;
    bottom: 30px;
  }
  .stage-footer strong {
    font-size: 25px;
  }
  .stage-footer > span {
    max-width: 100px;
    font-size: 11px;
    text-align: right;
  }
  .fit-panel {
    padding: 35px 25px;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .fit-panel > .status {
    grid-column: auto;
  }
  .height-control input {
    width: 100%;
  }
  .fit-title h2 {
    font-size: 28px;
  }
  .spec-strip {
    grid-template-columns: 1fr 1fr;
    padding: 35px 25px;
    gap: 30px;
  }
  .spec-strip > div:nth-child(2) {
    border-right: 0;
  }
  .spec-strip strong {
    font-size: 37px;
  }
  .spec-strip span {
    font-size: 11px;
  }
  .workshop {
    padding: 45px 25px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .workshop h2 {
    font-size: 36px;
    margin-bottom: 15px;
  }
}
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 22px;
    gap: 10px;
  }
  header .brand {
    font-size: 20px;
    white-space: nowrap;
  }
  header nav {
    font-size: 12px;
    gap: 24px;
  }
  header nav a {
    white-space: nowrap;
  }
  .cycle-stage {
    min-height: 590px;
  }
  .stage-dimensions {
    bottom: 130px;
    padding: 12px 0;
    border-top: 1px solid #183056;
    border-bottom: 1px solid #183056;
    background: #ffd82e;
    gap: 10px;
    z-index: 4;
  }
  .bike-wrap {
    top: 90px;
  }
  .stage-footer {
    bottom: 25px;
  }
}
