@font-face {
  font-family: "Big Shoulders Display";
  src: url("../assets/fonts/big-shoulders-display.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #141614;
  --plate: #1c1f1d;
  --bone: #edeee9;
  --muted: #b4b8b2;
  --line: #3d4340;
  --beetle: #c51f3a;
  --beetle-deep: #9e1730;
  --on-beetle: #fff6f4;
  --cage: #e4c54a;
  --olive: #4a5740;
  --denim: #24344a;
  --focus: #e4c54a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-enter: 480ms;
  --display: "Big Shoulders Display", "Hiragino Sans", "Yu Gothic UI";
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic";
  --gutter: clamp(1.1rem, 3.5vw, 2.4rem);
  --page: min(72rem, calc(100% - 2 * var(--gutter)));
  --spine: 4.75rem;
  --mast: 3.6rem;
  --dock: 4.1rem;
  --tap: 2.75rem;
  --hair: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mast) + 3.2rem);
  -webkit-text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .gate__name,
  .gate__kana {
    transform: none !important;
    opacity: 1 !important;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--bone);
  font-family: var(--jp);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  inset-inline-start: 0.8rem;
  top: -4rem;
  z-index: 30;
  background: var(--beetle);
  color: var(--on-beetle);
  padding: 0.5rem 0.8rem;
}

.skip:focus {
  top: 0.8rem;
}

.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;
}

.band {
  width: var(--page);
  margin-inline: auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: var(--mast);
  padding: 0.45rem var(--gutter);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.mark {
  display: grid;
  text-decoration: none;
  line-height: 0.9;
}

.mark:hover {
  color: var(--bone);
}

.mark__en {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.mark__ja {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.live {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.live__tick {
  width: 0.42rem;
  height: 1.1rem;
  background: var(--line);
}

.live[data-state="open"] .live__tick {
  background: var(--cage);
}

.live[data-state="closed"] .live__tick {
  background: var(--beetle);
}

.tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.langs,
.page-nav {
  display: flex;
  gap: 0.15rem;
}

.lang,
.page-nav a {
  min-height: 2.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid transparent;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
}

.lang[aria-pressed="true"],
.page-nav a[aria-current="page"] {
  border-color: var(--bone);
}

.lang:hover,
.page-nav a:hover {
  color: var(--bone);
  border-color: var(--muted);
}

.spine {
  position: sticky;
  top: var(--mast);
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    90deg,
    #191c1a 0 2px,
    #151715 2px 5px
  );
}

.spine a {
  display: grid;
  justify-items: start;
  gap: 0.05rem;
  min-height: 3rem;
  padding: 0.4rem 0.7rem;
  text-decoration: none;
  border-inline-end: 1px solid var(--line);
}

.spine a:last-child {
  border-inline-end: 0;
}

.spine a[aria-current="true"] {
  background: color-mix(in srgb, var(--beetle) 18%, transparent);
}

.spine__code {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.spine__name {
  font-size: 0.68rem;
  color: var(--muted);
}

.spine a[aria-current="true"] .spine__code {
  color: var(--cage);
}

.act {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--beetle);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.btn:hover {
  color: var(--on-beetle);
}

.btn:active {
  transform: scale(0.98);
}

.btn--go {
  background: var(--beetle);
  color: var(--on-beetle);
}

.btn--go:hover {
  background: var(--beetle-deep);
  border-color: var(--beetle-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--bone);
  color: var(--bone);
}

.btn--ghost:hover {
  background: var(--bone);
  color: var(--canvas);
}

.gate {
  display: grid;
  gap: 1.4rem;
  padding: 1.6rem 0 2.4rem;
}

.gate__copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.gate__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.4rem, 16vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  animation: rise var(--t-enter) var(--ease) both;
}

.gate__kana {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  animation: rise var(--t-enter) var(--ease) 80ms both;
}

.gate__line {
  max-width: 28rem;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.status__mark {
  width: 0.45rem;
  height: 1.15rem;
  background: var(--line);
}

.status[data-state="open"] .status__mark {
  background: var(--cage);
}

.status[data-state="closed"] .status__mark {
  background: var(--beetle);
}

.gate__shot {
  margin: 0;
}

.gate__shot img {
  width: 100%;
  height: min(52vw, 22rem);
  object-fit: cover;
  border-radius: var(--hair);
}

.gate__cap {
  margin-top: 0.45rem;
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cut {
  display: grid;
  border-top: 1px solid var(--line);
}

.hold {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.hold:hover {
  color: inherit;
  background: color-mix(in srgb, var(--plate) 70%, transparent);
}

.hold__code {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  min-width: 4.2rem;
}

.hold--2 .hold__code {
  color: color-mix(in srgb, var(--denim) 35%, var(--bone));
}

.hold--1 .hold__code {
  color: var(--beetle);
}

.hold--b .hold__code {
  color: color-mix(in srgb, var(--olive) 55%, var(--bone));
}

.hold__body {
  display: grid;
  gap: 0.2rem;
}

.hold__name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hold__line {
  color: var(--muted);
  font-size: 0.95rem;
}

.hold img {
  width: 5.6rem;
  height: 5.6rem;
  object-fit: cover;
  border-radius: var(--hair);
}

.floor {
  padding: 2.4rem 0 2.8rem;
  border-top: 1px solid var(--line);
}

.floor__head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.floor__code {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  line-height: 0.8;
}

.floor__title {
  font-size: 1.15rem;
}

.floor__lede {
  max-width: 36rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.floor--2 {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--denim) 28%, transparent), transparent 42%);
}

.floor--b {
  background:
    linear-gradient(270deg, color-mix(in srgb, var(--olive) 22%, transparent), transparent 48%);
}

.split {
  display: grid;
  gap: 1.1rem;
}

.split img {
  width: 100%;
  border-radius: var(--hair);
  object-fit: cover;
}

.pair {
  display: grid;
  gap: 0.7rem;
}

.pair img {
  width: 100%;
  height: 14rem;
  border-radius: var(--hair);
  object-fit: cover;
}

.split > figure img {
  height: min(28rem, 70vw);
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

.stamps {
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.stamps h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.stamp {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-top: 1px dashed var(--line);
}

.stamp:last-child {
  border-bottom: 1px dashed var(--line);
}

.stamp__ink {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--beetle);
  color: var(--beetle);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  transform: rotate(-8deg);
}

.stamp q {
  quotes: "\201C" "\201D";
  font-size: 1.08rem;
}

.stamp cite {
  display: block;
  margin-top: 0.3rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.visit {
  display: grid;
  gap: 1.2rem;
  padding: 2.4rem 0 5.5rem;
  border-top: 1px solid var(--line);
}

.plate {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
  background: var(--plate);
  border: 1px solid var(--line);
}

.plate h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.15rem;
}

.facts {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.45rem 0.8rem;
}

.facts dt {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.mapframe {
  min-height: 16rem;
  border: 1px solid var(--line);
}

.mapframe iframe {
  width: 100%;
  height: 16rem;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.film {
  font-size: 0.92rem;
}

.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 22;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--canvas);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.dock a {
  min-height: var(--dock);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-inline-end: 1px solid var(--line);
}

.dock a:last-child {
  border-inline-end: 0;
}

.dock a:first-child {
  background: var(--beetle);
  color: var(--on-beetle);
}

.dock a:first-child:hover {
  color: var(--on-beetle);
  background: var(--beetle-deep);
}

.site-foot {
  padding: 1.4rem var(--gutter) 5.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-foot a {
  color: var(--bone);
  text-decoration: none;
}

.route {
  padding: 1.8rem 0 2.4rem;
  display: grid;
  gap: 1.2rem;
}

.route h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.path {
  display: grid;
  gap: 0;
}

.path li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.8rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.path {
  padding: 0;
  margin: 0;
}

.path li:last-child {
  border-bottom: 1px solid var(--line);
}

.path__n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cage);
}

.act--late {
  margin-top: 1rem;
}

.mapframe--follow {
  margin-top: 0.8rem;
}

@media (min-width: 720px) {
  .band {
    width: min(72rem, calc(100% - var(--spine) - 2 * var(--gutter)));
    margin-inline-start: calc(var(--spine) + var(--gutter));
    margin-inline-end: var(--gutter);
  }

  .site-foot {
    padding-inline-start: calc(var(--spine) + var(--gutter));
    padding-bottom: 1.6rem;
  }

  .spine {
    position: fixed;
    inset-block: var(--mast) 0;
    inset-inline-start: 0;
    width: var(--spine);
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    border-bottom: 0;
    border-inline-end: 1px solid var(--line);
  }

  .spine a {
    align-content: end;
    min-height: 0;
    padding: 0.9rem 0.55rem 1.1rem;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    writing-mode: horizontal-tb;
  }

  .spine a:last-child {
    border-bottom: 0;
  }

  .spine__code {
    font-size: 1.55rem;
  }

  .gate {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.15fr);
    align-items: end;
    padding-top: 2.2rem;
  }

  .gate__shot img {
    height: 26rem;
  }

  .hold {
    padding: 1.4rem 0;
  }

  .hold img {
    width: 7.2rem;
    height: 7.2rem;
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .floor--1 .split {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .floor--b .split {
    grid-template-columns: 1fr 1.05fr;
  }

  .pair {
    grid-template-columns: 1fr 1fr;
  }

  .visit {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.1fr);
    padding-bottom: 3rem;
  }

  .mapframe iframe {
    height: 100%;
    min-height: 18rem;
  }

  .dock {
    display: none;
  }

  .route {
    grid-template-columns: minmax(16rem, 0.85fr) minmax(18rem, 1.15fr);
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .gate__name {
    font-size: 9rem;
  }

  .hold__code {
    min-width: 6.5rem;
  }
}

@media (max-width: 719px) {
  .page-nav {
    display: none;
  }

  .live span[data-remain] {
    display: none;
  }
}
