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

.global-footer {
  --global-footer-content: min(1120px, calc(100% - 40px));
  --global-footer-ink: #09151c;
  --global-footer-water: #07364b;
  --global-footer-white: #fff;
  --global-footer-gold: #c7a66a;
  --global-footer-line: rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.82);
  background: var(--global-footer-ink);
  font-family: "Zen Kaku Gothic New", "Yu Gothic UI", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.035em;
  text-align: left;
}

.global-footer a {
  color: inherit;
}

.global-footer a:focus-visible {
  outline: 3px solid var(--global-footer-gold);
  outline-offset: 5px;
}

.global-footer__main {
  width: var(--global-footer-content);
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.global-footer__brand {
  margin: 0 0 1rem;
  color: var(--global-footer-white);
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.global-footer__brand small {
  display: block;
  margin-top: 0.65rem;
  font-family: "Zen Kaku Gothic New", "Yu Gothic UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.global-footer__story {
  max-width: 24rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.global-footer__nav {
  align-self: center;
}

.global-footer__nav-title {
  margin: 0 0 1rem;
  color: var(--global-footer-gold);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.global-footer__nav ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
  list-style: none;
}

.global-footer__nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--global-footer-white);
  font-size: 0.9rem;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.global-footer__nav a:hover {
  text-decoration: underline;
}

.global-footer__credits {
  border-top: 1px solid var(--global-footer-line);
  border-bottom: 1px solid var(--global-footer-line);
  background: rgba(7, 54, 75, 0.34);
}

.global-footer__credits-inner {
  width: var(--global-footer-content);
  margin-inline: auto;
  padding: 1.6rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.global-footer__credit {
  min-width: 0;
  padding: 0.4rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.global-footer__credit:first-child {
  padding-left: 0;
  border-right: 1px solid var(--global-footer-line);
}

.global-footer__credit:last-child {
  padding-right: 0;
}

.global-footer__credit-label {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.global-footer__credit-name {
  margin: 0;
  color: var(--global-footer-white);
  font-size: 1rem;
  font-weight: 700;
}

.global-footer__credit-link {
  flex: 0 0 auto;
  color: var(--global-footer-gold);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.global-footer__credit-link:hover {
  text-decoration: underline;
}

.global-footer__bottom {
  width: var(--global-footer-content);
  margin-inline: auto;
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.global-footer__bottom p {
  margin: 0;
}

@media (max-width: 820px) {
  .global-footer__main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .global-footer__nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-footer__credits-inner {
    grid-template-columns: 1fr;
  }

  .global-footer__credit {
    padding: 1rem 0;
  }

  .global-footer__credit:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--global-footer-line);
  }
}

@media (max-width: 620px) {
  .global-footer {
    --global-footer-content: min(100% - 28px, 1120px);
    font-size: 16px;
  }

  .global-footer__nav ul {
    gap: 0.4rem 1rem;
  }

  .global-footer__credit {
    align-items: flex-start;
  }

  .global-footer__credit-label,
  .global-footer__bottom {
    font-size: 0.875rem;
  }

  .global-footer__bottom {
    display: block;
  }

  .global-footer__bottom p + p {
    margin-top: 0.5rem;
  }
}
