@font-face {
  font-family: "Futura";
  src:
    url("../font/Futura.woff2") format("woff2"),
    url("../font/Futura.woff") format("woff"),
    url("../font/Futura.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text-muted: #b8b8b8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Futura", "Arial", "Helvetica", sans-serif;
  font-weight: normal;
  background: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a {
  font-weight: normal;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.socials {
  position: absolute;
  top: 28px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: socials-fade-in 0.6s ease-out 1s forwards;
}

.socials .wechat-entry {
  position: relative;
}

.socials a {
  display: inline-block;
  width: 32px;
  height: 32px;
  text-decoration: none;
  background-image: url("../images/social-sprite-all.png");
  background-repeat: no-repeat;
  background-size: 320px 64px;
  background-position: calc(var(--icon-index) * -32px) 0;
}

.socials a:hover,
.socials a:focus-visible {
  background-position: calc(var(--icon-index) * -32px) -32px;
}

.wechat-qrcode {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  width: 120px;
  height: 120px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid #e7e7e7;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.socials .wechat-entry.qr-open-right .wechat-qrcode {
  left: 0;
  right: auto;
}

.socials .wechat-entry.qr-open-left .wechat-qrcode {
  right: 0;
  left: auto;
}

.wechat-qrcode img {
  width: 100%;
  height: 100%;
}

.socials .wechat-entry:hover .wechat-qrcode,
.socials .wechat-entry:focus-within .wechat-qrcode {
  opacity: 1;
  visibility: visible;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 210px;
}

.logo {
  width: auto;
  height: clamp(92px, 10.5vw, 168px);
  max-width: min(1120px, 88vw);
  display: block;
  opacity: 0;
  transform: translateY(44px);
  animation: logo-slide-up 1.8s ease-out 0.15s forwards;
}

.management {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-muted);
  letter-spacing: 1px;
  opacity: 0;
  animation: management-slide-up 0.8s ease-out 1s forwards;
}

@keyframes management-slide-up {
  from {
    opacity: 0;
    transform: translate(-50%, 44px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes logo-slide-up {
  from {
    opacity: 0;
    transform: translateY(44px);
  }

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

@keyframes socials-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .socials,
  .logo,
  .management {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.management h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 0.95;
  letter-spacing: 1.6px;
}

.management p {
  margin: 0;
}

.management .name {
  margin-bottom: 2px;
  font-size: 14px;
  letter-spacing: 1.1px;
}

.management .mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.management .mail a {
  color: inherit;
  text-decoration: none;
}

.management .mail a:hover,
.management .mail a:focus-visible {
  text-decoration: underline;
}

.management .mail img {
  width: 20px;
  height: 16px;
}

.copyright {
  position: absolute;
  left: 26px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9b9b9;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.copyright img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

@media (max-width: 749px) {
  .socials {
    top: 18px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, 26px);
    gap: 8px;
    justify-content: center;
  }

  .socials a {
    width: 26px;
    height: 26px;
    background-size: 260px 52px;
    background-position: calc(var(--icon-index) * -26px) 0;
  }

  .socials a:hover,
  .socials a:focus-visible {
    background-position: calc(var(--icon-index) * -26px) -26px;
  }

  .wechat-qrcode {
    right: 0;
    left: auto;
    width: 92px;
    height: 92px;
  }

  .hero {
    padding: 80px 14px 200px;
  }

  .logo {
    height: clamp(56px, 11vw, 86px);
    max-width: 92vw;
  }

  .management {
    bottom: 108px;
    letter-spacing: 0.8px;
  }

  .copyright {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
  }

  .copyright span {
    white-space: nowrap;
  }
}
