* {
  box-sizing: border-box;
}

html,
body {
  background: #fff;
}

body {
  margin: 0;
  color: #000;
  font-family: "Gen Interface JP", "Hiragino Sans", "Yu Gothic", Arial, sans-serif;
}

a {
  color: inherit;
}

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

.site {
  container-type: inline-size;
  inline-size: min(100%, 560px);
  margin-inline: auto;
  background: #fff;
}

.header,
main {
  --unit: calc(100cqi / 393);
}

.header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(79 * var(--unit));
  padding-inline: calc(27 * var(--unit)) calc(17 * var(--unit));
  border-bottom: 2px solid #000;
}

.logo,
.menu-toggle {
  display: block;
}

.logo img {
  display: block;
  width: calc(218.605 * var(--unit));
  height: auto;
}

.menu-toggle {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.menu-toggle img {
  display: block;
  width: max(44px, calc(46 * var(--unit)));
  height: auto;
}

[hidden] {
  display: none !important;
}

.navigation {
  position: absolute;
  inset: 100% 0 auto;
  padding: 8px calc(27 * var(--unit));
  background: #fff;
  border-block: 2px solid #000;
}

.navigation a {
  display: block;
  padding: 13px 0;
  font-size: max(14px, calc(15 * var(--unit)));
  text-decoration: none;
}

.navigation a + a {
  border-top: 1px solid #dedede;
}

.navigation a:hover {
  color: #c01925;
}

main {
  padding-block: 0 calc(87 * var(--unit));
}

.marquee {
  height: calc(57 * var(--unit));
  margin: 0 0 calc(50 * var(--unit));
  overflow: clip;
  font: 400 calc(47 * var(--unit)) / calc(57 * var(--unit))
    "Gen Interface JP Display", Arial, sans-serif;
  letter-spacing: .04em;
}

.marquee-track {
  display: flex;
  width: max-content;
  margin-left: calc(-97 * var(--unit));
  animation: marquee-scroll 16s linear infinite;
}

.marquee-group {
  display: flex;
}

.marquee-group > span {
  display: block;
  width: calc(306.225 * var(--unit));
  padding-left: calc(3.6 * var(--unit));
  white-space: nowrap;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

.brands {
  display: grid;
  gap: calc(40 * var(--unit));
  width: calc(340 * var(--unit));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.brand-link {
  display: block;
  position: relative;
  height: calc(260 * var(--unit));
  border-radius: calc(5 * var(--unit));
  text-align: center;
  text-decoration: none;
}

.card-background {
  height: calc(200 * var(--unit));
  border-radius: inherit;
  background: #f9f9f9;
}

.card-copy {
  margin-top: calc(18 * var(--unit));
}

.card-copy p,
.card-copy h2 {
  margin: 0;
  font-weight: 500;
}

.card-copy p {
  font-size: calc(13 * var(--unit));
  line-height: calc(11 * var(--unit));
  letter-spacing: .02em;
}

.card-copy h2 {
  margin-top: calc(14 * var(--unit));
  font-size: calc(26 * var(--unit));
  line-height: calc(17 * var(--unit));
  letter-spacing: .01em;
}

.card-product,
.card-doodle,
.entry-panel,
.entry-logo,
.entry-arrow {
  position: absolute;
  display: block;
  left: calc(var(--x) * var(--unit));
  top: calc(var(--y) * var(--unit));
  width: calc(var(--w) * var(--unit));
  height: calc(var(--h) * var(--unit));
  pointer-events: none;
}

.card-product {
  z-index: 1;
}

.card-doodle {
  z-index: 2;
}

.motion-enabled .brand:not(.is-visible) :is(.card-background, .card-copy, .card-product, .card-doodle) {
  opacity: 0;
}

.motion-enabled .brand-link:focus-visible :is(.card-background, .card-copy, .card-product, .card-doodle) {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    margin-left: 0;
  }

  .motion-enabled .brand:not(.is-visible) :is(.card-background, .card-copy, .card-product, .card-doodle) {
    opacity: 1;
  }
}


.site { overflow-x: clip; }
.header { z-index: 8; }
.entry {
  position: relative;
  display: block;
  height: calc(419 * var(--unit));
  box-shadow: inset 0 -1px #000;
  text-decoration: none;
}
.entry-title {
  position: absolute;
  inset: calc(50 * var(--unit)) 0 auto;
  z-index: 6;
  overflow: hidden;
  margin: 0;
  font: 400 calc(47 * var(--unit)) / calc(57 * var(--unit))
    "Gen Interface JP Display", Arial, sans-serif;
  letter-spacing: .04em;
  pointer-events: none;
}
.entry-title .marquee-track {
  margin-left: calc(var(--marquee-start) * var(--unit));
  animation-duration: 18s;
}
.entry-title .marquee-group > span {
  width: auto;
  padding: 0 calc(25.22 * var(--unit)) 0 0;
}
.entry .entry-line { z-index: 0; }
.entry-panel, .entry-logo { z-index: 1; }
.entry-arrow { z-index: 3; }
.entry + .marquee { margin-top: calc(107 * var(--unit)); }
.brand-link { border-radius: calc(15 * var(--unit)); }
.card-background { background: #f8f8f8; }
.card-copy { position: relative; z-index: 3; }
.motion-enabled .entry:not(.is-visible) :is(.card-doodle, .entry-panel, .entry-logo, .entry-arrow) {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .entry-title .marquee-track { animation: none; }
  .motion-enabled .entry:not(.is-visible) :is(.card-doodle, .entry-panel, .entry-logo, .entry-arrow) { opacity: 1; }
}
