:root {
  color-scheme: light;
  background: #eef4f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
}

body {
  background: #eef4f4;
}

.page {
  width: 100%;
}

.design-canvas {
  position: relative;
  width: min(100%, 750px);
  margin-inline: auto;
  background: #fff;
  box-shadow: 0 0 28px rgb(0 37 37 / 12%);
  container-type: inline-size;
}

.design-slice,
.rank-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.prefix-slice {
  aspect-ratio: 750 / 10593;
}

.rank-two {
  aspect-ratio: 750 / 2954;
}

.rank-three {
  aspect-ratio: 750 / 2590;
}

.rank-four {
  aspect-ratio: 750 / 2648;
}

.rank-five {
  aspect-ratio: 750 / 2638;
}

.suffix-slice {
  aspect-ratio: 750 / 3827;
}

.slice-image {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 139.2%;
  max-width: none;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.live-countdown {
  position: absolute;
  z-index: 4;
  top: 9.34579439%;
  left: 3.33333333%;
  display: flex;
  width: 93.33333333%;
  height: 1.60483338%;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 20px 20px;
  background: #fff;
  color: #111;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(16px, 5.2cqw, 39px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.countdown-prefix {
  margin-right: 0.35em;
}

.countdown-value {
  min-width: 1.65em;
  color: #ff8500;
  font-size: clamp(32px, 11.2cqw, 84px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  text-align: center;
}

.countdown-seconds {
  font-size: clamp(25px, 8cqw, 60px);
}

.countdown-unit {
  margin-inline: 0.08em 0.22em;
}

.comparison-scroll {
  position: absolute;
  z-index: 4;
  top: 43.82139148%;
  left: 4.93333333%;
  width: 95.06666667%;
  height: 15.35919947%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.comparison-scroll::-webkit-scrollbar {
  display: none;
}

.comparison-scroll:focus-visible {
  outline: 5px solid #006b63;
  outline-offset: -5px;
}

.comparison-table-image {
  display: block;
  width: 146.42356241%;
  max-width: none;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.comparison-swipe-hint {
  position: absolute;
  z-index: 5;
  top: 49.91031813%;
  left: 29.733333%;
  display: grid;
  width: 44.8%;
  height: 1.83139809%;
  place-items: center;
  border-radius: 10px;
  background: rgb(34 34 34 / 72%);
  color: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(11px, 3.5cqw, 26px);
  font-weight: 700;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.comparison-swipe-hint.is-hidden {
  opacity: 0;
}

.rank-two .slice-image {
  transform: translateY(-41.95247525%);
}

.rank-three .slice-image {
  transform: translateY(-53.65148515%);
}

.rank-four .slice-image {
  transform: translateY(-63.90891089%);
}

.rank-five .slice-image {
  transform: translateY(-74.3960396%);
}

.suffix-slice .slice-image {
  transform: translateY(-84.84356436%);
}

.sort-hotspot,
.cta-hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sort-hotspot {
  width: 46.266667%;
  height: 0.66081374%;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(0 0 0 / 18%);
  color: #00c4bd;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(16px, 5.1cqw, 38px);
  font-weight: 700;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, transform 100ms ease;
}

.sort-hotspot:hover {
  background: #eafffd;
}

.sort-hotspot:active {
  transform: translateY(2px);
}

.sort-hotspot.is-active {
  border-color: #00c4bd;
  background: #00c4bd;
  color: #fff;
}

.sort-total,
.sort-safety {
  left: 2.4%;
}

.sort-rate,
.sort-method {
  left: 51.333333%;
}

.sort-total,
.sort-rate {
  top: 62.34305674%;
}

.sort-safety,
.sort-method {
  top: 63.23987539%;
}

.cta-hotspot {
  left: 10.8%;
  width: 78.533333%;
  border-radius: 12px;
}

.rank-one-cta {
  top: 84.87680544%;
  height: 0.97234022%;
}

.rank-two .card-cta {
  top: 71.8348%;
  height: 3.486798%;
}

.rank-three .card-cta {
  top: 75.559846%;
  height: 3.976834%;
}

.rank-four .card-cta {
  top: 78.398792%;
  height: 3.889728%;
}

.rank-five .card-cta {
  top: 78.695982%;
  height: 3.904473%;
}

.sort-hotspot:focus-visible,
.cta-hotspot:focus-visible {
  outline: 5px solid #fff;
  outline-offset: -5px;
  box-shadow: 0 0 0 8px #006b63;
}

.rank-heading {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 2.4%;
  display: grid;
  width: 95.2%;
  aspect-ratio: 714 / 86;
  place-items: center;
  background: #00c4bd;
  color: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(20px, 6.4cqw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.ranking-list.is-shuffling .rank-card {
  animation: shuffle-in 260ms ease-out;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes shuffle-in {
  from {
    opacity: 0.35;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 749px) {
  .design-canvas {
    box-shadow: none;
  }
}

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

  .ranking-list.is-shuffling .rank-card {
    animation: none;
  }
}
